EditDomain [message #160453] |
Sat, 04 December 2004 13:43  |
Eclipse User |
|
|
|
Hi,
I've been digging through the GEF Programmer's Guide and now got some
questions regarding EditDomains.
The programmer's Guide says:
"[The EditDomain] may span across multiple EditorParts working on the same
model instance or it may be confined to just one View in a Perspective"
That pretty much sounds like what I'm trying to do.
I would like to have a not yet known number of visual editors
(GraphicalEditorWithFlyoutPalette preferably) inside a MultiPageEditor.
Each of those visual editors should work on the same model set. A model
used on editor A may appear on editor B with a slightly different View.
Changing the properties of a model on editor A should hit through to editor
B and vice versa.
Are there any snippets that do something similar?
Until know I'm kind lost in GEF though really impressed by it!
Thanks a lot!
Regards,
Fabian
P.S.: Are there any good books on GEF?
|
|
|
|
Re: EditDomain [message #160637 is a reply to message #160562] |
Mon, 06 December 2004 14:31  |
Eclipse User |
|
|
|
Randy Hudson wrote:
>> I've been digging through the GEF Programmer's Guide and now got some
>> questions regarding EditDomains.
>>
>> The programmer's Guide says:
>> "[The EditDomain] may span across multiple EditorParts working on the
>> same model instance or it may be confined to just one View in a
>> Perspective"
>>
>> That pretty much sounds like what I'm trying to do.
>> I would like to have a not yet known number of visual editors
>> (GraphicalEditorWithFlyoutPalette preferably) inside a MultiPageEditor.
>> Each of those visual editors should work on the same model set. A model
>> used on editor A may appear on editor B with a slightly different View.
>> Changing the properties of a model on editor A should hit through to
> editor
>> B and vice versa.
>
> If both editors are displaying the same model, this should just happen for
> free. what is the question? What have you tried that is not working?
Well, I haven't got that far to look at the internals, but when I drag an
Element from the Palette onto the GraphicalViewer, doesn't it instanciate a
model object as well as an EditPart ?
That means I would have to access this model through my editor, right?
If both editors should share their model base, could they somehow be shared
on a layer above the editors, not below?
Am I talking nonsense? :) Does it make any sense?
I hope one could clear this up for me.
Thanks a lot!
Fabian
|
|
|
Powered by
FUDForum. Page generated in 0.04381 seconds