Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to stop GMFgen to generate Open and OpenURI
How to stop GMFgen to generate Open and OpenURI [message #219058] Tue, 17 February 2009 09:30 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

When marking <?gmfgen generated="false"?>, doesn't seem to stop GMFGen
from regenerating "Open" and "OpenURI" commands and bindings.
What's the trick for stopping the generation of these actions?

thank You Christophe
Re: How to stop GMFgen to generate Open and OpenURI [message #219144 is a reply to message #219058] Wed, 18 February 2009 10:13 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Christophe,

Are you using latest GMf version (id attribute generated for each extension
points declaration: <extension point="org.eclipse.ui.commands" id="rcp-menu-commands">)

-----------------
Alex Shatalin
Re: How to stop GMFgen to generate Open and OpenURI [message #219160 is a reply to message #219144] Wed, 18 February 2009 12:48 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Alex,

It seems I am not using the latest. These id's are not added to the
extension point. I have an option in the menu which says "Migrate to GMF
2.1" for my .gmfmap, I have run this, but I don't see a difference on
the generated gmfgen and the generated code? Does gmfgen somehow track
the version number?


Thanks Christophe







Alex Shatalin wrote:
> Hello Christophe,
>
> Are you using latest GMf version (id attribute generated for each
> extension points declaration: <extension point="org.eclipse.ui.commands"
> id="rcp-menu-commands">)
>
> -----------------
> Alex Shatalin
>
>
Re: How to stop GMFgen to generate Open and OpenURI [message #219261 is a reply to message #219160] Thu, 19 February 2009 10:58 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Christophe,

> It seems I am not using the latest. These id's are not added to the
Then i suggest you to try install latest M build of GMF 2.2.

> on the generated gmfgen and the generated code? Does gmfgen somehow
> track the version number?
We have two different versions of all the models and you can figure out wich
one is used by NS uri used in corresponding .gmfmap, .... files. Here are
the latest NS URIs:
- http://www.eclipse.org/gmf/2008/GenModel
- http://www.eclipse.org/gmf/2006/GraphicalDefinition
- http://www.eclipse.org/gmf/2008/mappings
- http://www.eclipse.org/gmf/2005/ToolDefinition

BTW, migrate ... action is available on any GMF models (including those files
wich are up to date already), so i suggest you first install latest version
of GMF then try to open your models and working with it. In case of any problems
with models you can execute migrate action.

-----------------
Alex Shatalin
Re: How to stop GMFgen to generate Open and OpenURI [message #221555 is a reply to message #219261] Mon, 16 March 2009 14:59 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Alex,

I have finally managed to get the latest GMF running. ( A bit of trouble
harvesting all the required bundles).

So I am running Eclipse 3.5 on Mac with Cocoa etc..
On the issue below, I have commented out commands, bindings etc..
related to Open and OpenURI. (Setting generated to false).


However when I regenerate the code, the commands are back.
So clearly, this is not the way. How is it done?


Before: I comment out the commands. (Same for the bindings).

</extension><extension point="org.eclipse.ui.commands"
id="rcp-menu-commands">
<?gmfgen generated="false"?>
<!--
<command
name="%openURIActionLabel"
description="%openURIActionDescription"
categoryId="org.eclipse.ui.category.file"
id="com.netxforge.planner.emf.diagram.OpenURICommand"/>
<command
name="%openActionLabel"
description="%openActionDescription"
categoryId="org.eclipse.ui.category.file"
id="com.netxforge.planner.emf.diagram.OpenCommand"/>
-->
</extension>


After: This below is added to plugin.xml.


<extension point="org.eclipse.ui.commands" id="rcp-menu-commands">
<?gmfgen generated="true"?>
<command
name="%openURIActionLabel"
description="%openURIActionDescription"
categoryId="org.eclipse.ui.category.file"
id="com.netxforge.planner.emf.diagram.OpenURICommand"/>
<command
name="%openActionLabel"
description="%openActionDescription"
categoryId="org.eclipse.ui.category.file"
id="com.netxforge.planner.emf.diagram.OpenCommand"/>
</extension>

<extension point="org.eclipse.ui.bindings" id="rcp-command-bindings">
<?gmfgen generated="true"?>
<key
commandId="com.netxforge.planner.emf.diagram.OpenURICommand "
sequence="M1+U"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/ >
<key
commandId="com.netxforge.planner.emf.diagram.OpenCommand"
sequence="M1+O"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/ >
</extension>





Alex Shatalin wrote:
> Hello Christophe,
>
>> It seems I am not using the latest. These id's are not added to the
> Then i suggest you to try install latest M build of GMF 2.2.
>
>> on the generated gmfgen and the generated code? Does gmfgen somehow
>> track the version number?
> We have two different versions of all the models and you can figure out
> wich one is used by NS uri used in corresponding .gmfmap, .... files.
> Here are the latest NS URIs:
> - http://www.eclipse.org/gmf/2008/GenModel
> - http://www.eclipse.org/gmf/2006/GraphicalDefinition
> - http://www.eclipse.org/gmf/2008/mappings
> - http://www.eclipse.org/gmf/2005/ToolDefinition
>
> BTW, migrate ... action is available on any GMF models (including those
> files wich are up to date already), so i suggest you first install
> latest version of GMF then try to open your models and working with it.
> In case of any problems with models you can execute migrate action.
>
> -----------------
> Alex Shatalin
>
>
Re: How to stop GMFgen to generate Open and OpenURI [message #221995 is a reply to message #221555] Thu, 19 March 2009 14:59 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Christophe,

Can you please file a request for it?

-----------------
Alex Shatalin
Re: How to stop GMFgen to generate Open and OpenURI [message #222012 is a reply to message #221995] Thu, 19 March 2009 15:29 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi, Not sure what you mean with request?
Should I log this in bugzilla?

rgds Christophe

Alex Shatalin wrote:
> Hello Christophe,
>
> Can you please file a request for it?
>
> -----------------
> Alex Shatalin
>
>
Re: How to stop GMFgen to generate Open and OpenURI [message #222048 is a reply to message #222012] Thu, 19 March 2009 16:34 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Christophe,

yes

-----------------
Alex Shatalin
Re: How to stop GMFgen to generate Open and OpenURI [message #222111 is a reply to message #221995] Fri, 20 March 2009 15:49 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269542


Alex Shatalin wrote:
> Hello Christophe,
>
> Can you please file a request for it?
>
> -----------------
> Alex Shatalin
>
>
Re: How to stop GMFgen to generate Open and OpenURI [message #227694 is a reply to message #222111] Mon, 27 April 2009 14:42 Go to previous message
Eclipse UserFriend
Originally posted by: jxtamarc.gmail.com

El dia Fri, 20 Mar 2009 16:49:38 +0100, en/na Christophe Bouhier va
escriure:

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=269542
>
>
> Alex Shatalin wrote:
>> Hello Christophe,
>>
>> Can you please file a request for it?
>>
>> -----------------
>> Alex Shatalin
>>
>>

try this :

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg30090.html

;-)

it worked for me
Previous Topic:How to make OpenURI action invisible
Next Topic:Drag and Drop on a diagram creates EditPart in wrong place
Goto Forum:
  


Current Time: Fri Apr 26 02:57:03 GMT 2024

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

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

Back to the top