Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding Custom Action to generated DiagramActionBarContributor..?
Adding Custom Action to generated DiagramActionBarContributor..? [message #158266] Mon, 05 November 2007 05:34 Go to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi All,


How can we add custom actions to the generated
XXXDiagramActionBarContributor class.


Thanks for any Ideas, Biju
Re: Adding Custom Action to generated DiagramActionBarContributor..? [message #158274 is a reply to message #158266] Mon, 05 November 2007 06:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Biju,

Is your question a general one about how best to hand modify generated
code so that it can still be generated without losing the changes you
have added or is there something more specific you are trying to figure out?


biju wrote:
> Hi All,
>
>
> How can we add custom actions to the generated
> XXXDiagramActionBarContributor class.
>
>
> Thanks for any Ideas, Biju
Re: Adding Custom Action to generated DiagramActionBarContributor..? [message #158319 is a reply to message #158274] Mon, 05 November 2007 08:50 Go to previous message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Ed Merks,

Thanks for your reply,

I was looking on how to add , context specific custom
actions to generated editors, I got the solution , which is to use the
following extension point.

Thanks, Biju
____________________________________________________________ ____________

<extension
point = "org.eclipse.ui.editorActions">
<editorContribution
id="org.eclipse.ui.examples.readmetool.ec1"
targetID="PlanningEditor">
<action id="com.ints.scopeye.client.actions.RunAction"
label="Run"
toolbarPath="ReadmeEditor"
icon="icons/alt_window_16.gif"
tooltip="run"

class="com.ints.scopeye.client.actions.PlanningEditorRunAction "
definitionId="com.ints.scopeye.client.actions.RunAction"
/>
</editorContribution>
</extension>


Ed Merks wrote:
> Biju,
>
> Is your question a general one about how best to hand modify generated
> code so that it can still be generated without losing the changes you
> have added or is there something more specific you are trying to figure
> out?
>
>
> biju wrote:
>> Hi All,
>>
>>
>> How can we add custom actions to the generated
>> XXXDiagramActionBarContributor class.
>>
>>
>> Thanks for any Ideas, Biju
Previous Topic:on the new tabbed properties
Next Topic:gmf2 value of propertysheet listener
Goto Forum:
  


Current Time: Sun Jul 27 18:40:09 EDT 2025

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

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

Back to the top