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 10:18
eclipse user is currently offline eclipse user
Messages: 2
Registered: July 2013
Junior Member
Hello,

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 10: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: Mon Sep 01 14:52:01 EDT 2014

Powered by FUDForum. Page generated in 0.02356 seconds