@Override public void execute(IAction arg0) { WorkbenchPart workbench = YRCDesktopUI.getCurrentPart(); workbench.setFocus(); Element eInput = YRCXmlUtils.createDocument("SearchCriteria").getDocumentElement(); YRCXmlUtils.setAttribute(eInput, "ReferenceOrderSearchEditorKey", System.currentTimeMillis()); YRCEditorInput editorInput = null; editorInput = new YRCEditorInput(eInput, new String[] {""}, ""); boolean b = YRCPlatformUI.openEditor(XPXRefOrderSearchEditor.ID_EDITOR, editorInput); }