Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable Palette Element
Disable Palette Element [message #1753487] Tue, 07 February 2017 06:37 Go to next message
Umut Kazan is currently offline Umut KazanFriend
Messages: 18
Registered: February 2017
Junior Member
Hello,

I need to disable some elements in my palette. Want them to be visible to users but not usable. I can override canAdd method and always return false but that affects my example models that contain referred elements. Thanks for the ideas

Bpmn modeler
org.eclipse.bpmn2.modeler.ui.features.gateway
Re: Disable Palette Element [message #1753745 is a reply to message #1753487] Thu, 09 February 2017 14:55 Go to previous message
Umut Kazan is currently offline Umut KazanFriend
Messages: 18
Registered: February 2017
Junior Member
solved it with throwing a custom exception from addIfPossible method(my implementation from IFeatureProvider)
Previous Topic:Update programmatically figure with EditPart
Next Topic:selecting one Node (along with inside edges) from CSSDiagramImpl file and saving it in a new file
Goto Forum:
  


Current Time: Fri Oct 20 01:51:11 GMT 2017

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

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