Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » EditDomain
EditDomain [message #160453] Sat, 04 December 2004 18:43 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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 #160562 is a reply to message #160453] Mon, 06 December 2004 16:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> 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?

> 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 19:31 Go to previous message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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
Previous Topic:how to detect the behavior of delete a model from a LogicDiagram( logic example)
Next Topic:IFigure.validate(), invalidate(), revalidate(), setValid()
Goto Forum:
  


Current Time: Fri Mar 29 00:10:32 GMT 2024

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

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

Back to the top