Skip to main content



      Home
Home » Modeling » Graphiti » Highlight anchors?
Highlight anchors? [message #743800] Fri, 21 October 2011 14:46 Go to next message
Eclipse UserFriend
(I had the idea that this had been mentioned in the forum, but I can't find anything now, perhaps I was wrong)

I'd want to highlight the anchors when a connection creation is attempted (perhaps in canStartConnection() / canCreate() ). Is this possible?

[Updated on: Fri, 21 October 2011 14:46] by Moderator

Re: Highlight anchors? [message #744949 is a reply to message #743800] Sat, 22 October 2011 09:11 Go to previous messageGo to next message
Eclipse UserFriend
This comes close: http://www.eclipse.org/forums/index.php/m/632041/
Re: Highlight anchors? [message #747716 is a reply to message #744949] Mon, 24 October 2011 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Also, there is a new feature in M3 that eases this, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329517

Pre-requisite is that the anchors have a GraphicsAlgorithm as representation
(so are no ChopboxAnchors).

Michael
Re: Highlight anchors? [message #748154 is a reply to message #747716] Mon, 24 October 2011 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, that's what I was missing. It doesn't satisfy me, however, that one is supposed (aparently? judging by the chess example) to make the highlight inside the pictogram hierarchy...

I have commented this in the issue tracker (I'm not sure if this kind of comments should better post here).

BTW, wouldn't that example set the editor as dirty ? (because we are modifying the diagram!)

[Updated on: Mon, 24 October 2011 15:27] by Moderator

Re: Highlight anchors? [message #749408 is a reply to message #748154] Tue, 25 October 2011 03:47 Go to previous messageGo to next message
Eclipse UserFriend
As also stated in the bug: the upcoming border decorators will be an option
to do that without modifying the model.

Michael
Re: Highlight anchors? [message #752421 is a reply to message #749408] Wed, 26 October 2011 07:39 Go to previous messageGo to next message
Eclipse UserFriend
Wouldn't it be possible to manipulate directly the Draw2D's Figure from the feature method?
Re: Highlight anchors? [message #752651 is a reply to message #752421] Wed, 26 October 2011 09:18 Go to previous message
Eclipse UserFriend
Sure, but from Graphiti's point of view (trying to hide GEF/Draw2D) this
would only be the last resort.

Michael
Previous Topic:Graphiti and Java 1.5
Next Topic:Eclipse Con Europe 2011
Goto Forum:
  


Current Time: Wed Jul 23 14:51:58 EDT 2025

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

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

Back to the top