[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How to stop GMFgen to generate Open and OpenURI

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