Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable Palette Element
Disable Palette Element [message #1753487] Tue, 07 February 2017 01:37 Go to next message
Eclipse UserFriend
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 09:55 Go to previous message
Eclipse UserFriend
solved it with throwing a custom exception from addIfPossible method(my implementation from IFeatureProvider)
Previous Topic:selecting one Node (along with inside edges) from CSSDiagramImpl file and saving it in a new file
Next Topic:How to manipulate the contents of a GMF diagram programmatically?
Goto Forum:
  


Current Time: Tue Jul 15 08:15:18 EDT 2025

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

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

Back to the top