Package org.apache.click.eclipse.ui.wizard

Examples of org.apache.click.eclipse.ui.wizard.NewClickPageWizard


            if(type!=null){
              JavaUI.revealInEditor(JavaUI.openInEditor(type), (IJavaElement)type);
            } else {
              if(superClass!=null && superClass==ClickPlugin.CLICK_PAGE_CLASS){
                // Opens the new page creation wizard
                NewClickPageWizard wizard = new NewClickPageWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                wizard.setInitialClassName(className);
                if(textFileName!=null){
                  wizard.setInitialPageName(textFileName.getText());
                }
                WizardDialog dialog = new WizardDialog(text.getShell(), wizard);
                dialog.open();
              } else {
                // Opens the new java class creation wizard
                NewClassWizard wizard = new NewClassWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                if(superClass!=null){
                  if(superClass == ClickPlugin.CLICK_CONTROL_IF || superClass.endsWith("Service")){
                    wizard.addInterface(superClass);
                  } else {
                    wizard.setSuperClass(superClass);
                  }
                }
                wizard.setClassName(className);
                WizardDialog dialog = new WizardDialog(text.getShell(), wizard);
                dialog.open();
              }
            }
          }
View Full Code Here


            if(type != null){
              JavaUI.revealInEditor(JavaUI.openInEditor(type), (IJavaElement)type);
            } else {
              if(superClass != null && superClass == ClickPlugin.CLICK_PAGE_CLASS){
                // Opens the new page creation wizard
                NewClickPageWizard wizard = new NewClickPageWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                wizard.setInitialClassName(className);
                if(textFileName != null){
                  wizard.setInitialPageName(textFileName.getText());
                }
                WizardDialog dialog = new WizardDialog(text.getShell(), wizard);
                dialog.open();
              } else {
                // Opens the new java class creation wizard
                NewClassWizard wizard = new NewClassWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                if(superClass != null){
                  if(superClass == ClickPlugin.CLICK_CONTROL_IF
                      || superClass == ClickPlugin.CLICK_PAGE_INTERCEPTOR_IF
                      || superClass.endsWith("Service")){
                    wizard.addInterface(superClass);
                  } else {
                    wizard.setSuperClass(superClass);
                  }
                }
                wizard.setClassName(className);
                WizardDialog dialog = new WizardDialog(text.getShell(), wizard);
                dialog.open();
              }
            }
          }
View Full Code Here

            return;
          }
        } catch(Exception ex){
        }
       
        NewClickPageWizard wizard = new NewClickPageWizard();
        wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
        wizard.setInitialPageName(textPath.getText());
        wizard.setInitialClassName(textClass.getText());
        WizardDialog dialog = new WizardDialog(textPath.getShell(), wizard);
        dialog.open();
      }
    });
   
View Full Code Here

  /**
   * Opens {@link org.apache.click.eclipse.ui.wizard.NewClickPageWizard}.
   */
  public void run(IAction action) {
    NewClickPageWizard wizard = new NewClickPageWizard();
    wizard.init(PlatformUI.getWorkbench(), this.selection);
    WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
    dialog.open();
  }
View Full Code Here

TOP

Related Classes of org.apache.click.eclipse.ui.wizard.NewClickPageWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.