Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Strange Behaviour of GMF M4
Strange Behaviour of GMF M4 [message #89455] Thu, 04 January 2007 09:07 Go to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Hello,

due to problem with Diagram Validation in RCP editor applications (see
Thread news://news.eclipse.org:119/en0j34$snj$1@utils.eclipse.org and
bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206 . Help is
appreciated) I thought of using the M4 release of GMF. So I gave it a
try and regenerated code from the models I´ve got. First thing I noticed
was that the Menubar in the generated RCP application is missing, so the
creation of a new diagram is not possible. Second thing I noticed was
that there was a new subpackage preferences generated in the diagram
package and that some Classes in the application package got the prefix
Diagram (e.g. my previous class EditorPerspective is now named
DiagramEditorPerspective). After a look into the
DiagramEditorActionBarAdvisor class I noticed that the fillMenuBar()
method is empty and many other things are missing. Is this a bug, have
some model parameters changed (hopefully not) or is it supposed to be
this way (don´t think so). I hope someone can help.

Greetings,
Christian
Re: Strange Behaviour of GMF M4 [message #89623 is a reply to message #89455] Fri, 05 January 2007 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

It should be possible to configure rcp menu; regenerate gmfgen model
please so default items got added; you may also choose particular menu
items you need in your application. I also add preferences support so
diagram editor registers pref pages and has GenDiagramPreferences object
that translates in DiagramPreferenceHint configuration - but this is not
finished yet. I've also decided to remove some application class names
from the model since they seems to be not important; so these class
names get 'Diagram' prefix instead of '<model_name>'.

Christian Dänekas wrote:
> Hello,
>
> due to problem with Diagram Validation in RCP editor applications (see
> Thread news://news.eclipse.org:119/en0j34$snj$1@utils.eclipse.org and
> bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206 . Help is
> appreciated) I thought of using the M4 release of GMF. So I gave it a
> try and regenerated code from the models I´ve got. First thing I noticed
> was that the Menubar in the generated RCP application is missing, so the
> creation of a new diagram is not possible. Second thing I noticed was
> that there was a new subpackage preferences generated in the diagram
> package and that some Classes in the application package got the prefix
> Diagram (e.g. my previous class EditorPerspective is now named
> DiagramEditorPerspective). After a look into the
> DiagramEditorActionBarAdvisor class I noticed that the fillMenuBar()
> method is empty and many other things are missing. Is this a bug, have
> some model parameters changed (hopefully not) or is it supposed to be
> this way (don´t think so). I hope someone can help.
>
> Greetings,
> Christian
Re: Strange Behaviour of GMF M4 [message #89996 is a reply to message #89623] Sat, 06 January 2007 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Okay,

I did already regenerate the gmfgen model since I supposed there are new
options. But somehow the default menu bar entries are nonexistant. Do I
have to delete the old model before generating the new from the mapping?
Otherwise I have no Idea. Do you get the "Diagram" menu item which
contains the "Validate" option when generating an rcp application? And
do you know anything about the dependency to org.eclipse.ui.ide which is
still needed in a rcp app which is kinda wierd?

Greetings,
Christian
Dmitry Stadnik schrieb:
> It should be possible to configure rcp menu; regenerate gmfgen model
> please so default items got added; you may also choose particular menu
> items you need in your application. I also add preferences support so
> diagram editor registers pref pages and has GenDiagramPreferences object
> that translates in DiagramPreferenceHint configuration - but this is not
> finished yet. I've also decided to remove some application class names
> from the model since they seems to be not important; so these class
> names get 'Diagram' prefix instead of '<model_name>'.
>
> Christian Dänekas wrote:
>> Hello,
>>
>> due to problem with Diagram Validation in RCP editor applications (see
>> Thread news://news.eclipse.org:119/en0j34$snj$1@utils.eclipse.org and
>> bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206 . Help is
>> appreciated) I thought of using the M4 release of GMF. So I gave it a
>> try and regenerated code from the models I´ve got. First thing I
>> noticed was that the Menubar in the generated RCP application is
>> missing, so the creation of a new diagram is not possible. Second
>> thing I noticed was that there was a new subpackage preferences
>> generated in the diagram package and that some Classes in the
>> application package got the prefix Diagram (e.g. my previous class
>> EditorPerspective is now named DiagramEditorPerspective). After a look
>> into the DiagramEditorActionBarAdvisor class I noticed that the
>> fillMenuBar() method is empty and many other things are missing. Is
>> this a bug, have some model parameters changed (hopefully not) or is
>> it supposed to be this way (don´t think so). I hope someone can help.
>>
>> Greetings,
>> Christian
Re: Strange Behaviour of GMF M4 [message #91164 is a reply to message #89996] Wed, 10 January 2007 09:50 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Your gmfgen model should contain default menu structure after generation
like in org.eclipse.gmfg.examples.taipan/models/taipan.gmfgen; there is
no need to remove old gmfgen model.

Christian Dänekas wrote:
> Okay,
>
> I did already regenerate the gmfgen model since I supposed there are new
> options. But somehow the default menu bar entries are nonexistant. Do I
> have to delete the old model before generating the new from the mapping?
> Otherwise I have no Idea. Do you get the "Diagram" menu item which
> contains the "Validate" option when generating an rcp application? And
> do you know anything about the dependency to org.eclipse.ui.ide which is
> still needed in a rcp app which is kinda wierd?
>
> Greetings,
> Christian
> Dmitry Stadnik schrieb:
>> It should be possible to configure rcp menu; regenerate gmfgen model
>> please so default items got added; you may also choose particular menu
>> items you need in your application. I also add preferences support so
>> diagram editor registers pref pages and has GenDiagramPreferences
>> object that translates in DiagramPreferenceHint configuration - but
>> this is not finished yet. I've also decided to remove some application
>> class names from the model since they seems to be not important; so
>> these class names get 'Diagram' prefix instead of '<model_name>'.
>>
>> Christian Dänekas wrote:
>>> Hello,
>>>
>>> due to problem with Diagram Validation in RCP editor applications
>>> (see Thread
>>> news://news.eclipse.org:119/en0j34$snj$1@utils.eclipse.org and bug
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206 . Help is
>>> appreciated) I thought of using the M4 release of GMF. So I gave it a
>>> try and regenerated code from the models I´ve got. First thing I
>>> noticed was that the Menubar in the generated RCP application is
>>> missing, so the creation of a new diagram is not possible. Second
>>> thing I noticed was that there was a new subpackage preferences
>>> generated in the diagram package and that some Classes in the
>>> application package got the prefix Diagram (e.g. my previous class
>>> EditorPerspective is now named DiagramEditorPerspective). After a
>>> look into the DiagramEditorActionBarAdvisor class I noticed that the
>>> fillMenuBar() method is empty and many other things are missing. Is
>>> this a bug, have some model parameters changed (hopefully not) or is
>>> it supposed to be this way (don´t think so). I hope someone can help.
>>>
>>> Greetings,
>>> Christian
Previous Topic:Remove a link from the model along with its source or target
Next Topic:How to give relative path to icons
Goto Forum:
  


Current Time: Mon Jul 21 21:51:23 EDT 2025

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

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

Back to the top