Strange Behaviour of GMF M4 [message #89455] |
Thu, 04 January 2007 09:07  |
Eclipse User |
|
|
|
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 #91164 is a reply to message #89996] |
Wed, 10 January 2007 09:50  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04191 seconds