Java 类org.eclipse.ui.dialogs.WizardNewProjectReferencePage 实例源码

项目:andmore2    文件:NewAppWizard.java   
@Override
public void addPages() {
    super.addPages();

    mainPage = new WizardNewProjectCreationPage("basicNewProjectPage") { //$NON-NLS-1$
        @Override
        public void createControl(Composite parent) {
            super.createControl(parent);
            createWorkingSetGroup((Composite) getControl(), getSelection(),
                    new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$
            Dialog.applyDialogFont(getControl());
        }
    };
    mainPage.setTitle("Android Application");
    mainPage.setDescription("Create Android Application Project");
    this.addPage(mainPage);

    // only add page if there are already projects in the workspace
    if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) {
        referencePage = new WizardNewProjectReferencePage("basicReferenceProjectPage");//$NON-NLS-1$
        referencePage.setTitle("Project References");
        referencePage.setDescription("Project References");
        this.addPage(referencePage);
    }
}
项目:OpenSPIFe    文件:EnsembleBasicNewProjectResourceWizard.java   
@SuppressWarnings("unused")
private WizardNewProjectReferencePage getWizardNewProjectReferencePage() {
    WizardNewProjectReferencePage referencePage = new WizardNewProjectReferencePage(
        "basicReferenceProjectPage");

    referencePage.setTitle(ResourceMessages.NewProject_referenceTitle);
    referencePage.setDescription(ResourceMessages.NewProject_referenceDescription);
    return referencePage;
}
项目:Pydev    文件:AbstractNewProjectWizard.java   
/**
 * Adds the project references page to the wizard.
 */
protected void addProjectReferencePage() {
    // only add page if there are already projects in the workspace
    // i.e.: always adding reference page now instead of doing the check below because the django wizard
    // had problems when creating a new project and there were no projects in the workspace
    // (so, made the simpler solution which was just always showing that page)
    //
    // if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) {
    referencePage = new WizardNewProjectReferencePage("Reference Page");
    referencePage.setTitle("Reference page");
    referencePage.setDescription("Select referenced projects");
    this.addPage(referencePage);
}