Community
Participate
Working Groups
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.
This is a pretty simple fix that any new contributor could resolve. Where would these constants go though? Would it make sense for them to be in the wizard class themselves like BasicNewFolderResourceWizard.WIZARD_ID?
Tod, can you comment on an appropriate class for the constants to live in per comment 1?
Remy that sounds like the right place.
Created attachment 89318 [details] Patch to add the requested wizard IDs as public string constants.
Patch released for build >20080214
Verified in I20080323-2000