Bug 46764 Change type refactoring: NLS has two keys ChangeTypeRefactoring.invalidSelection with different values
N20031114 Please use the NLS search facility to make sure your NLS stuff is correct. To enable go to Search Dialog -> Customize and check NLS search. Then fill in the NLS search page.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ChangeTypeAction.java
if (refactoring == null)
				return;
			new RefactoringStarter().activate(refactoring, createWizard(refactoring), getShell(), fDialogMessageTitle, false);
		} catch (CoreException e){
			ExceptionHandler.handle(e, fDialogMessageTitle, RefactoringMessages.getString("ChangeTypeAction.exception")); 
		}
	}
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction
	 */		
	public void selectionChanged(ITextSelection selection) {
		setEnabled(checkEnabled(selection));
	}
	
	private static ChangeTypeRefactoring createRefactoring(ICompilationUnit cunit, ITextSelection selection) throws CoreException {
		return ChangeTypeRefactoring.create(cunit, 
				selection.getOffset(), selection.getLength());
	}
	private RefactoringWizard createWizard(ChangeTypeRefactoring refactoring) {
		String pageTitle= RefactoringMessages.getString("ChangeTypeAction.change_type"); 
		return new ChangeTypeWizard(refactoring);
	}
	private boolean checkEnabled(ITextSelection selection) {
		return fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null;
	}
	private RefactoringWizard createWizard(Refactoring refactoring) {
		return new ChangeTypeWizard((ChangeTypeRefactoring)refactoring);
	}
}