Bug 44162 [Wizards] Define constants for wizard ids of new.file, new.folder, and new.project
In perspective factories, plugins have to reference the New wizards with a string that is susceptible to change during API reorganizations. For example, in org.eclipse.ui.internal.ResourcePerspective: // Add "new wizards". layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ There are constants for most view id's, for example IPageLayout.ID_RES_NAV, but not for these. This request is to add constants for the new wizard ids in the appropriate location. In addition to new.folder and new.file above, you also need a constant for new.project. There may be others but those are the only ones I found in a search.
bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/ResourcePerspective.java
}
    /**
     * Defines the initial layout for a page.  
     * @param layout The layout we are filling
     */
    public void defineLayout(IPageLayout layout) {
        
        String editorArea = layout.getEditorArea();
        
        IFolderLayout topLeft = layout.createFolder(
                "topLeft", IPageLayout.LEFT, (float) 0.26, editorArea);
        topLeft.addView(ID_PROJECT_EXPLORER);
        topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        
        topLeft.addPlaceholder("org.eclipse.ui.views.ResourceNavigator"); 
        
        IFolderLayout bottomLeft = layout.createFolder(
                "bottomLeft", IPageLayout.BOTTOM, (float) 0.50,
                "topLeft");
        bottomLeft.addView(IPageLayout.ID_OUTLINE);
        
		IFolderLayout bottomRight = layout.createFolder(
                "bottomRight", IPageLayout.BOTTOM, (float) 0.66,
                editorArea);
		
		bottomRight.addView(IPageLayout.ID_TASK_LIST);
		
    }
}