Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to call myAction when pressing the Next Button of myWizardPage(How to call myAction when pressing the Next Button of myWizardPage)
How to call myAction when pressing the Next Button of myWizardPage [message #1015703] Fri, 01 March 2013 20:13 Go to next message
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
Registered: February 2013
Member
Hi,


I have implemented a popup menu using actions in the view of the Model Explorer when

creating a papyrus Model.I have defined the actions in plugin.xmland they are working

nicely:

<plugin>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
id="com.architect.commands.GenerateModel"
objectClass="org.eclipse.emf.facet.infra.browser.uicore.internal.model.ModelElementItem">
<menu
id="com.architect.commands.menu2"
label="Model">
</menu>
<action
class="com.architect.commands.actions.ImportPlatform"
id="importplatform"
label="Import Platform"
menubarPath="com.architect.commands.menu2/group">
</action>
</objectContribution>
</extension>

I have implemented also wizardsPages.

I want to know how to call myAction which implements IObjectActionDelegate when

pressing the NEXT button of wizard.

I would be very grateful if you help me.

Thanks in advance.

Best Regards

[Updated on: Sat, 02 March 2013 11:30]

Report message to a moderator

Re: How to call myAction when pressing the Next Button of myWizardPage [message #1015767 is a reply to message #1015703] Sat, 02 March 2013 13:54 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

I don't understand the question. Action delegates are the old way of
contributing actions to menus. They have nothing to do with wizards.

If you want to reuse the bahviour of some action delegate in a wizard,
you can probably just instantiate the action delegate class and invoke
it. Or you can factor out the action delegate's behaviour into some
more conveniently shareable form.

Or is the problem simply that you don't know how to intercept the
user's press on the Next button? That's not a question for this forum.
It's a question for the general Eclipse UI forum. I don't know that a
wizard even has access to the buttons of its container (the wizard
dialog).

Cheers,

Christian


On 2013-03-01 20:13:33 +0000, Mariem Makni said:

> Hi,
>
>
> I have implemented a popup menu using actions in the view of the Model
> Explorer when
> creating a papyrus Model.I have defined the actions in plugin.xmland
> they are working
> nicely:
>
> <plugin>
> <extension
> point="org.eclipse.ui.popupMenus">
> <objectContribution
> adaptable="false"
> id="com.architect.commands.GenerateModel"
>
> objectClass="org.eclipse.emf.facet.infra.browser.uicore.internal.model.ModelElementItem">
>
> <menu
> id="com.architect.commands.menu2"
> label="Model">
> </menu>
> <action
> class="com.architect.commands.Wizards.ModelAction"
> id="GenerateModel"
> label="Generate Model"
> menubarPath="com.architect.commands.menu2/group"
> style="push">
> </action>
> </objectContribution>
> </extension>
>
> I have implemented also wizardsPages.
>
> I want to know how to call myAction which implements IObjectActionDelegate when
> pressing the NEXT button of wizard.
>
> I would be very grateful if you help me.
>
> Thanks in advance.
>
> Best Regards
Previous Topic:problem displaying popup menu
Next Topic:Call menu action
Goto Forum:
  


Current Time: Fri Mar 29 13:17:22 GMT 2024

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

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

Back to the top