public IWorkbenchPart handleActivation() {
   try {
     return RCPUtil.openEditor(new OverviewEntryEditorInput(this), IssueTypeEditor.EDITOR_ID);
   } catch (PartInitException e) {
     throw new RuntimeException(e);
   }
 }
 /**
  * checks if the -clearWorkspace programm argument is set and if so clears the workspace directory
  * of the application
  */
 protected void checkClearWorkspace() {
   String[] args = NLBasePlugin.getDefault().getApplication().getArguments();
   boolean doClearWorkspace = false;
   for (int i = 0; i < args.length; i++) {
     String arg = args[i];
     String val = i + 1 < args.length ? args[i + 1] : null;
     if ("--clearWorkspace".equals(arg)) // $NON-NLS-1$
     doClearWorkspace = Boolean.parseBoolean(val);
   }
   if (doClearWorkspace) {
     logger.info("************ clearing workspace! **************"); // $NON-NLS-1$
     RCPUtil.clearWorkspace(false);
   }
 }
Пример #3
0
 protected void createNewOrder() {
   // only close, open will occur automatically because of partListener in
   // ArticleContainerQuickSaleEditor
   RCPUtil.closeEditor(getEditorInput(), false);
 }
 public static String openFileExtDlg() {
   FileExtDialog dlg = new FileExtDialog(RCPUtil.getActiveShell());
   if (dlg.open() == Window.OK) return dlg.getFileExt();
   else return null;
 }