Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to use GraphicalNode and CanonicalConnection EditPolicy together
how to use GraphicalNode and CanonicalConnection EditPolicy together [message #10006] Tue, 08 August 2006 13:30 Go to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Hi all,

I've tried several setups for CanonicalConnectionEditPolicy but I
keep getting duplicated links for my connections.

For one model connection, there is one link that gets created by the
GraphicalNode policy and another by the CanonicalConnection policy.

What's the proper way to use the Canonical policy?

thank you
vlad
Re: how to use GraphicalNode and CanonicalConnection EditPolicy together [message #10124 is a reply to message #10006] Tue, 08 August 2006 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Found the culprit in
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt:

/**
* Return a list of editparts who's canonical editpolicies should be disabled
* prior to executing the commands associated to the supplied request.
* This implementation will return the editpart honoring a <code>SemanticWrapperRequest</code>
* and a <code>CreateConnectionViewRequest</code>'s source and target editparts.
*
* @param request a request that has returned a command.
* @return list of editparts.
*/
Collection disableCanonicalFor( final Request request ) {
//
// not the most generic of solution; however, it will have to do for now...
//
// Alternate solutions
// 1. common request interface on all the requests
// IRequest#getAffectedEditParts
//
// 2. Traverse down the command and collect of the ICommand#getAffectedObjects()
// -- this requires that all our commands properly set this value.


On Tue, 08 Aug 2006 13:30:28 -0400, Vlad Ciubotariu wrote:

> Hi all,
>
> I've tried several setups for CanonicalConnectionEditPolicy but I
> keep getting duplicated links for my connections.
>
> For one model connection, there is one link that gets created by the
> GraphicalNode policy and another by the CanonicalConnection policy.
>
> What's the proper way to use the Canonical policy?
>
> thank you
> vlad
Re: how to use GraphicalNode and CanonicalConnection EditPolicy together [message #19415 is a reply to message #10006] Tue, 15 August 2006 10:54 Go to previous message
Eclipse UserFriend
Hello Vlad,

Looks like this problem covered by the following request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=148021.

-----------------
Alex Shatalin
Previous Topic:Multiple diagrams
Next Topic:Any plans to provide layouts implementions ?
Goto Forum:
  


Current Time: Mon Jun 16 18:40:46 EDT 2025

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

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

Back to the top