Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Highlight anchors?
Highlight anchors? [message #743800] Fri, 21 October 2011 18:46 Go to next message
Hernan Gonzalez is currently offline Hernan GonzalezFriend
Messages: 181
Registered: October 2010
Location: Buenos Aires, Argentina
Senior Member
(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 18:46]

Report message to a moderator

Re: Highlight anchors? [message #744949 is a reply to message #743800] Sat, 22 October 2011 13:11 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 157
Registered: July 2009
Senior Member
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 08:38 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 14:20 Go to previous messageGo to next message
Hernan Gonzalez is currently offline Hernan GonzalezFriend
Messages: 181
Registered: October 2010
Location: Buenos Aires, Argentina
Senior Member
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 19:27]

Report message to a moderator

Re: Highlight anchors? [message #749408 is a reply to message #748154] Tue, 25 October 2011 07:47 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 11:39 Go to previous messageGo to next message
Hernan Gonzalez is currently offline Hernan GonzalezFriend
Messages: 181
Registered: October 2010
Location: Buenos Aires, Argentina
Senior Member
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 13:18 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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: Fri Dec 19 23:29:41 GMT 2014

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

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