selection= expandToWord(selection);
	public void run() {				ICodeAssist resolve= getCodeAssist();		if (resolve != null && fEditor.getSelectionProvider() != null) {			ITextSelection selection= (ITextSelection) fEditor.getSelectionProvider().getSelection();			try {				if (selection.getLength() > 0) {					IJavaElement[] result= resolve.codeSelect(selection.getOffset(), selection.getLength());					if (result != null && result.length > 0) {						List filtered= filterResolveResults(result);						IJavaElement selected= selectJavaElement(filtered, getShell(), fDialogTitle, fDialogMessage);						if (selected != null) {							open(selected);							return;						}					}				} else {					openOnEmptySelection(selection);					return;				}			} catch (JavaModelException x) {				JavaPlugin.log(x.getStatus());			} catch (PartInitException x) {				JavaPlugin.log(x);			}		}				getShell().getDisplay().beep();			}