예제 #1
0
  @Before
  public void setUp() throws Exception {
    tearDown();

    wizard = createNewProjectWizard();
    IWorkbenchWindow window = WorkbenchUtils.getActiveWorkbenchWindow();
    wizard.init(window.getWorkbench(), null);

    Shell parent = WorkbenchUtils.getActiveWorkbenchShell();
    wizDialog = new WizardDialog__Accessor(parent, wizard);
    wizDialog.setBlockOnOpen(false);
    wizDialog.open();
  }
예제 #2
0
 public static ScriptEditor openDeeEditorForFile(IFile file) {
   IWorkbenchPage page = WorkbenchUtils.getActivePage();
   try {
     ScriptEditor editor = (ScriptEditor) IDE.openEditor(page, file, DeeEditor.EDITOR_ID);
     assertTrue(editor.getScriptSourceViewer() != null);
     return editor;
   } catch (PartInitException e) {
     throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
   }
 }