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 06:33 Go to next message
Juliane Mueller is currently offline Juliane Mueller
Messages: 19
Registered: August 2011
Junior Member
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 09:24 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1268
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Juliane,

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?

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


Current Time: Wed May 22 09:08:49 EDT 2013

Powered by FUDForum. Page generated in 0.02070 seconds