Bug 115460 [key binding] Move keybindings for word caret moving to dialogAndWindow context
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
fHandlerActivations.add(handlerService.activateHandler(ITextEditorActionDefinitionIds.SELECT_WORD_NEXT, new AbstractHandler() {
				public Object execute(ExecutionEvent event) throws ExecutionException {
					fIterator.setText(fNavigable.getText());
					int caretPosition= fNavigable.getCaretPosition();
					int newCaret= fIterator.following(caretPosition);
					if (newCaret != BreakIterator.DONE) {
						Point selection= fNavigable.getSelection();
						if (caretPosition == selection.y)
							fNavigable.setSelection(selection.x, newCaret);
						else
							fNavigable.setSelection(selection.y, newCaret);
					}
					fIterator.setText(EMPTY_TEXT);
					return null;
				}
			}));
			fHandlerActivations.add(handlerService.activateHandler(ITextEditorActionDefinitionIds.SELECT_WORD_PREVIOUS, new AbstractHandler() {
				public Object execute(ExecutionEvent event) throws ExecutionException {
					fIterator.setText(fNavigable.getText());
					int caretPosition= fNavigable.getCaretPosition();
					int newCaret= fIterator.preceding(caretPosition);
					if (newCaret != BreakIterator.DONE) {
						Point selection= fNavigable.getSelection();
						if (caretPosition == selection.x)
							fNavigable.setSelection(selection.y, newCaret);
						else
							fNavigable.setSelection(selection.x, newCaret);
					}
					fIterator.setText(EMPTY_TEXT);