Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353824 - [Commands] Allow BaseNewWizardMenu to be contributed declaratively
Summary: [Commands] Allow BaseNewWizardMenu to be contributed declaratively
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 16:44 EDT by Patrick Paulin CLA
Modified: 2019-11-14 03:49 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Paulin CLA 2011-08-03 16:44:56 EDT
Build Identifier: 3.7.0 I20110613-1736

I'd like to say goodbye to the ActionBarAdvisor for good, but the one thing that's stopping me is the BaseNewWizardMenu contribution. If there's a way to add this declaratively and I'm just unaware of it, let me know.

I've tried to add it as a dynamic menu, but it fails because BaseNewWizardMenu does not have a zero-arg constructor. The current constructor is:

public BaseNewWizardMenu(IWorkbenchWindow window, String id)

Could the window be replaced with a call to PlatformUI.getWorkbench().getActiveWorkbencWindow(). And perhaps the id could just not be set?

In my admittedly simplistic testing this seems to work fine, but I'm guessing I'm missing something. In any case, if there's a way to make BaseNewWizardMenu work declaratively that would be great.


Reproducible: Always
Comment 1 Paul Webster CLA 2011-08-08 10:24:37 EDT
after determining what the contribution should look like, we should look at org.eclipse.ui.ExtensionFactory as a way to provide the contribution item without making the implementation visible.

PW
Comment 2 Lars Vogel CLA 2019-11-14 03:49:43 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.