Skip to main content



      Home
Home » Eclipse Projects » GEF » Disable palette item
Disable palette item [message #85921] Sat, 28 June 2003 16:01 Go to next message
Eclipse UserFriend
Is there a way to disable palette items? My model can contain at-most-one
of a certain object. There is a palette item corresponding to this
object. I'd like to disable this palette item once the model contains the
object in question. Is this possible? If not, does anyone have
suggestions on a decent workaround (removing the palette item altogether,
popping up an error dialog, etc.)?
Re: Disable palette item [message #85935 is a reply to message #85921] Sat, 28 June 2003 16:24 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You can pop up a dialog if and when that item's tool is activated. Do this
at the edit domain perhaps, which is where the active tool is held.

The palette's model is shared across all editor instances, so removing it or
disabling it is problematic.

"Greg Merrill" <greghmerrill@yahoo.com> wrote in message
news:bdks5u$r37$1@rogue.oti.com...
> Is there a way to disable palette items? My model can contain at-most-one
> of a certain object. There is a palette item corresponding to this
> object. I'd like to disable this palette item once the model contains the
> object in question. Is this possible? If not, does anyone have
> suggestions on a decent workaround (removing the palette item altogether,
> popping up an error dialog, etc.)?
>
>
Previous Topic:GEF and V3 M1
Next Topic:Why can't I see my new connection?
Goto Forum:
  


Current Time: Fri Jul 18 15:38:49 EDT 2025

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

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

Back to the top