Skip to main content



      Home
Home » Modeling » EMF » ActionBarContributor
ActionBarContributor [message #379706] Fri, 03 October 2003 13:09 Go to next message
Eclipse UserFriend
Hi,

I want to change the behaviour of the generated ActionBarContributor so that
the create child submenu launches a child specific wizard instead of simply
creating a child. Having looked at the code it appears I can achieve this
by subclassing CommandParameter to hold the wizard class and creating this
new class in the collectNewChildDescriptors method. I can then subclass
CreateNewChild action to launch the specified wizard in the run method.

Is this a sensible approach or is there a better solution?

John.
Re: ActionBarContributor [message #379709 is a reply to message #379706] Fri, 03 October 2003 14:10 Go to previous message
Eclipse UserFriend
John,

Your design seems reasonable to me, although if you want to maintain the
separation between the UI-independent (edit) and UI-dependent (editor) plugins,
you might want to consider using some kind of UI independent "wizard descriptor"
in the CommandParameter. Maybe that's already what you had in mind, or maybe
you've already combined the two plugins anyway?

Frank.


John Howard wrote:

> Hi,
>
> I want to change the behaviour of the generated ActionBarContributor so that
> the create child submenu launches a child specific wizard instead of simply
> creating a child. Having looked at the code it appears I can achieve this
> by subclassing CommandParameter to hold the wizard class and creating this
> new class in the collectNewChildDescriptors method. I can then subclass
> CreateNewChild action to launch the specified wizard in the run method.
>
> Is this a sensible approach or is there a better solution?
>
> John.
Previous Topic:creating custom elist with proxies
Next Topic:[newbie]Wrong result from "Using EMF" article
Goto Forum:
  


Current Time: Mon Oct 27 18:11:07 EDT 2025

Powered by FUDForum. Page generated in 0.03223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top