Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » why is the GMF diagram in the New/Example section
why is the GMF diagram in the New/Example section [message #141166] Wed, 04 July 2007 03:47 Go to next message
Eclipse UserFriend
Hello,
I have a GMF diagram and I'd like to ask why I have to chose
"New/Examples" when I want to create a new diagram instance. Is it
possible to do otherwise ?

thanks,
Tex.
Re: why is the GMF diagram in the New/Example section [message #141256 is a reply to message #141166] Wed, 04 July 2007 06:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tex,

This is controlled by the creationWizardCategory property of GenDiagram,
whose default value is "org.eclipse.ui.Examples".

Best regards,
Boris


Tex Twil wrote:
> Hello,
> I have a GMF diagram and I'd like to ask why I have to chose
> "New/Examples" when I want to create a new diagram instance. Is it
> possible to do otherwise ?
>
> thanks,
> Tex.
Re: why is the GMF diagram in the New/Example section [message #141598 is a reply to message #141256] Fri, 06 July 2007 06:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Boris Blajer wrote:
> This is controlled by the creationWizardCategory property of GenDiagram,
> whose default value is "org.eclipse.ui.Examples".

Thats ok, but how could i change it so that it consists a new generation
process? The plugin.xml is overwritten every new generation process (GMF
1.0.3).

I read something about an custom plugin, but i can't figure out how i
could combine the gmf diagram plugin with the custom plugin so that it
works for getting custom perspective and category for the NewWizard and
so on.

Could someone please give me some hints for that?
Regards
jens
Re: why is the GMF diagram in the New/Example section [message #141774 is a reply to message #141598] Mon, 09 July 2007 07:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jens,

You should change the value in the gmfgen model. In this case, the
correct value will be used, and not overwritten on each regeneration.

> I read something about an custom plugin, but i can't figure out how i
> could combine the gmf diagram plugin with the custom plugin so that it
> works for getting custom perspective and category for the NewWizard and
> so on.
>
Not sure I understand what you are talking about. Custom perspective,
wizard category and other associated options should be specified in the
gmfgen model, not by custom plugin.


Best regards,
Boris
Re: why is the GMF diagram in the New/Example section [message #141948 is a reply to message #141774] Tue, 10 July 2007 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Boris Blajer wrote:
>> I read something about an custom plugin, but i can't figure out how i
>> could combine the gmf diagram plugin with the custom plugin so that it
>> works for getting custom perspective and category for the NewWizard and
>> so on.
>>
> Not sure I understand what you are talking about. Custom perspective,
> wizard category and other associated options should be specified in the
> gmfgen model, not by custom plugin.

Thats my problem, i can't find "custom perspective" in the gmfgen file
:). The category should be simple, but we want a custom perspective too.

jens
Re: why is the GMF diagram in the New/Example section [message #141960 is a reply to message #141948] Tue, 10 July 2007 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jens,

I see. Perspective customization is only available in the RCP mode. For
the non-RCP version, it can be done either with custom templates or
manually (in the latter case, do not forget to omit the <?gmfgen
generated="true"?> processing instruction or specify <?gmfgen
generated="false"?> so that it is preserved by subsequent regenerations).

Best regards,
Boris


Jens Krause wrote:
> Boris Blajer wrote:
>>> I read something about an custom plugin, but i can't figure out how i
>>> could combine the gmf diagram plugin with the custom plugin so that
>>> it works for getting custom perspective and category for the
>>> NewWizard and so on.
>>>
>> Not sure I understand what you are talking about. Custom perspective,
>> wizard category and other associated options should be specified in
>> the gmfgen model, not by custom plugin.
>
> Thats my problem, i can't find "custom perspective" in the gmfgen file
> :). The category should be simple, but we want a custom perspective too.
>
> jens
Re: why is the GMF diagram in the New/Example section [message #141968 is a reply to message #141960] Tue, 10 July 2007 12:18 Go to previous message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Boris Blajer wrote:
> I see. Perspective customization is only available in the RCP mode. For
> the non-RCP version, it can be done either with custom templates or
> manually (in the latter case, do not forget to omit the <?gmfgen
> generated="true"?> processing instruction or specify <?gmfgen
> generated="false"?> so that it is preserved by subsequent regenerations).

Well, and that is only available in GMF 2.0 :-(. As many feature i'd
like to have. But i once tried to migrate to 2.0 and i didn't work out.

jens
Previous Topic:Create a new view for an existing diagram
Next Topic:Synchronized diagrams and model element index reordering
Goto Forum:
  


Current Time: Tue Jul 22 12:58:32 EDT 2025

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

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

Back to the top