Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FixedConnectionAnchor not having editpart problem
FixedConnectionAnchor not having editpart problem [message #226018] Sat, 04 November 2006 13:11 Go to next message
Eclipse UserFriend
Originally posted by: martypal2005.gmail.com

I'm working my way through the Logic example.

My current problem:
I'm trying to connect the different parts of the model. I use the

ToolEntry tool = new PanningSelectionToolEntry();
tool = new ConnectionCreationToolEntry( .... )

as it is done in the LogicPlugin.java

eventually triggering off the FixedConnectionAnchor figure.

However I get a visual representation of the connection, it does not have any edit part. I need this to process the model and know which parts are connected to which.

What I would like is the connection to be represented in the model and that the viewer has a registered editpart with it that I can access from my actions.

Any help would be appreciated.
Re: FixedConnectionAnchor not having editpart problem [message #226027 is a reply to message #226018] Sat, 04 November 2006 16:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martypal2005.gmail.com

In LoginPlugin.java all the elements of the palette is created. Each CombinedTemplateCreationEntry has a parameter for which model object it represents.

I was wondering where or how are the model objects mapped to its figures and its editparts in this project?
Re: FixedConnectionAnchor not having editpart problem [message #226058 is a reply to message #226027] Sat, 04 November 2006 21:19 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

The EditPartFactory is responsible for creating EditParts given a model
object. The viewer keeps mappings of figure-to-editpart and
model-to-editpart in its visualPartMap and editPartRegistry respectively.

"Martin Olsen" <martypal2005@gmail.com> wrote in message
news:1178901.1162658012801.JavaMail.root@cp1.javalobby.org...
> In LoginPlugin.java all the elements of the palette is created. Each
> CombinedTemplateCreationEntry has a parameter for which model object it
> represents.
>
> I was wondering where or how are the model objects mapped to its figures
> and its editparts in this project?
Previous Topic:Moving children figures
Next Topic:How to implement Container and Layout Policy
Goto Forum:
  


Current Time: Sun Oct 17 06:56:24 GMT 2021

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

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

Back to the top