Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353824

Summary: [Commands] Allow BaseNewWizardMenu to be contributed declaratively
Product: [Eclipse Project] Platform Reporter: Patrick Paulin <patrick>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, remy.suen
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

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.