Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Adding a new shape to diagram by double-click
Adding a new shape to diagram by double-click [message #1005422] Fri, 25 January 2013 11:33 Go to next message
Juliane Mueller is currently offline Juliane MuellerFriend
Messages: 30
Registered: August 2011
Dear all,

I want to add a new shape to diagram automatically by double-click on an EClass.
Is there any way to make this possible?

I've tried to call the "addShapeFeature" in the double-click-feature. But this failures.

Regards, Juliane
Re: Adding a new shape to diagram by double-click [message #1005461 is a reply to message #1005422] Fri, 25 January 2013 14:24 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1898
Registered: July 2009
Location: Walldorf, Germany
Senior Member

I would expect that defining a custom feature as double click feature and
inside creating an add context and calling addIfPossible on the feature
provider should work. Was that what your tried? What was the failure?

Previous Topic:Multiple ImageProviders in separate plug-ins
Next Topic:Providing a correct MoveShapeFeature
Goto Forum:

Current Time: Fri Sep 21 12:46:48 GMT 2018

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

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

Back to the top