Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple Views on a same domainElement
Multiple Views on a same domainElement [message #1086663] Wed, 14 August 2013 14:18
eclipse user is currently offline eclipse userFriend
Messages: 3
Registered: July 2013
Junior Member

i'm wondering if it is possible to create more than one View on the same
domain Element with GMF.
Here are the details of the problem.

I've got a Container model object that can contains other model objects.
What i would like, is being able to create 2 differents EditParts for
the contained domain Objects. One for the text, and another one to
handle the Connections.

My ContainerEditPart has a registered CanonicalEditPolicy, but
apparently, it does not allow to have more than one View for the same
domainObject(i tried to register a specify a dedicated elementType for
the ConnectionsHandlersEditParts), i would need to override some
methods, but they are all final, so its not a solution. And i dont want
to add a dummy class in my model to match the ConnectionsHandler
EditPart, i've got no use for them.

|1. A |
|2. B |
|3. C |
|1|2|3| <---- EditPart to handle connections

Thanks for your help.

[Updated on: Wed, 14 August 2013 14:25]

Report message to a moderator

Previous Topic:how to change color by changing of properties value
Next Topic:Unhandled event loop exception
Goto Forum:

Current Time: Wed Apr 14 15:12:52 GMT 2021

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

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

Back to the top