Problems with multi-page editors [message #115372] |
Thu, 29 March 2007 10:01  |
Eclipse User |
|
|
|
Originally posted by: Stefan.Warwas.freenet.de
Hi,
I have following problem: I created a multi-page editor with two
diagrams, but whenever I insert the "related diagram" reference and
generate the source code, the main diagram is "destroyed". "destroyed"
means that the main diagram is still working but I can't place nodes
anymore. Before I "related" both diagrams it was working. Additionally
the palette of the main diagram is mixed up with the sub-diagram's
palette. When I place the mouse cursor in the main diagram a bubble with
all elements I can create there opens. But all elements in that bubble
are disabled. When I open an old diagram where nodes have already been
placed, the double click feature works.
What I did (I am using GMF 2.0M5uh):
- create the main editor (genmodel, gmftool, gmfgraph, gmfmap)
- create the sub-editor (gmftool, gmfmap; use genmodel and gmfgraph of
main diagram)
- edit gmfgen of sub-editor:
- Gen Editor Generator
* Model ID (editor id)
* Package Name Prefix (main-package for sub-diagram)
- Gen Plugin:
* ID (name of project folder)
* Name (plugin name)
- Gen Editor View:
* ID: is automatically set when I change the package name
- Gen Diagram.Editor
* Editing Domain ID: is automatically set when I change
GenPlugin.ID
- edit gmfmap of main editor:
* insert "related diagram" reference to the sub-editors gmfmap
- edit gmfgen of main editor:
- Open Diagram Behaviour
* Diagram Kind: GenEditorGenerator.ModelID
* Editor ID: GenEditorView.ID
- generate source code of both diagrams
I tried this several times and I got always the same problem described
above. Have I missed to set some attributes or is it just a bug?
Do I have to set the "Package Name Prefix" attribute to another value
compared to the main diagram or do they have to be the same?
I have absolutely no idea what could be wrong. Thanks a lot in advance!
There is also another bug: when I set the "diagramKind" and "editorID"
attributes in a gmfgen file and regenerate it from the corresponding
gmfmap file, the values of both attributes are discarted and one has to
set them again.
Regards,
Stefan
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03136 seconds