Skip to main content


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: 25
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: 25
Registered: February 2017
Junior Member
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: Sat Nov 09 04:10:33 GMT 2024

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

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

Back to the top