public WebProjectFirstPage(IDataModel model, String pageName) {
   super(model, pageName);
   setTitle(WEBUIMessages.WEB_PROJECT_MAIN_PG_TITLE);
   setDescription(WEBUIMessages.WEB_PROJECT_MAIN_PG_DESC);
   setImageDescriptor(
       J2EEUIPlugin.getDefault().getImageDescriptor(J2EEUIPluginIcons.WEB_PROJECT_WIZARD_BANNER));
   setInfopopID(IWebUIContextIds.NEW_DYNAMIC_WEB_PROJECT_PAGE1);
 }
Beispiel #2
0
  @Override
  public void run() {
    Shell shell = getWorkbenchWindow().getShell();
    if (null == selection) {
      ISelection autoselection = getWorkbenchWindow().getSelectionService().getSelection();
      if (autoselection instanceof IStructuredSelection)
        this.selection = (IStructuredSelection) autoselection;
    }

    try {
      primRun(shell);
      this.selection = null;
    } catch (Throwable t) {
      J2EEUIPlugin.logError(t);
      String ERROR_OCCURRED_TITLE =
          J2EEUIMessages.getResourceString("ERROR_OCCURRED_TITLE"); // $NON-NLS-1$
      String ERROR_OCCURRED_MESSAGE =
          J2EEUIMessages.getResourceString("ERROR_OCCURRED_MESSAGE"); // $NON-NLS-1$
      ErrorDialog.openError(shell, ERROR_OCCURRED_TITLE, ERROR_OCCURRED_MESSAGE, t, 0, false);
    }
  }
Beispiel #3
0
 protected IWorkbenchWindow getWorkbenchWindow() {
   return J2EEUIPlugin.getPluginWorkbench().getActiveWorkbenchWindow();
 }