Bug 44162 - [Wizards] Define constants for wizard ids of new.file, new.folder, and new.project
Summary: [Wizards] Define constants for wizard ids of new.file, new.folder, and new.p...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard: hasPatch
Keywords: api, contributed
Depends on:
Blocks:
 
Reported: 2003-10-03 17:54 EDT by Ed Burnette CLA
Modified: 2008-03-24 12:31 EDT (History)
1 user (show)

See Also:


Attachments
Patch to add the requested wizard IDs as public string constants. (7.24 KB, patch)
2008-02-08 17:00 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Burnette CLA 2003-10-03 17:54:16 EDT
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.
Comment 1 Remy Suen CLA 2007-12-15 15:58:24 EST
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?
Comment 2 Remy Suen CLA 2008-02-07 15:54:12 EST
Tod, can you comment on an appropriate class for the constants to live in per comment 1?
Comment 3 Tod Creasey CLA 2008-02-07 17:00:03 EST
Remy that sounds like the right place.
Comment 4 Remy Suen CLA 2008-02-08 17:00:44 EST
Created attachment 89318 [details]
Patch to add the requested wizard IDs as public string constants.
Comment 5 Tod Creasey CLA 2008-02-14 10:26:39 EST
Patch released for build >20080214
Comment 6 Tod Creasey CLA 2008-03-24 12:31:16 EDT
Verified in I20080323-2000