Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Own DeleteFromDiagramCommandHandler(Own Handler Instead of an installed handler)
Own DeleteFromDiagramCommandHandler [message #1406901] Mon, 11 August 2014 11:59 Go to next message
Erik Schondorff is currently offline Erik SchondorffFriend
Messages: 25
Registered: October 2013
Junior Member
Hello community,

I want to implement my own DeleteFromDiagramCommandHandler which should inherit from org.eclipse.papyrus.uml.diagram.common.handlers.DeleteFromDiagramCommandHandler. How can I accomplish that Papyrus use my DeleteFromDiagramCommandHandler instead of the default Papyrus handler in all Use Cases?

In the plugin.xml I added a handler and a provider with my own Delete Handler and own ActionStateProvider, but this was not enough to override the all deletion cases, e.g. the deletion with "Del"-Key.

Thanks in advance.
Re: Own DeleteFromDiagramCommandHandler [message #1409538 is a reply to message #1406901] Mon, 18 August 2014 11:06 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 820
Registered: February 2011
Senior Member
Hi Erik,

The extension point org.eclipse.ui.handlers should be sufficient. Specify a handler for the command org.eclipse.ui.edit.delete, and provide a specific "activeWhen" condition (It should be more specific than the one defined in Papyrus, to have a higher priority and actually override it)

Previous Topic:Executable Models: How to model non trivial guard with Papyrus and Moka
Next Topic:How to listen to models being loaded?
Goto Forum:

Current Time: Tue Mar 28 15:59:30 GMT 2017

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

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