Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Is it possible to disable PaletteEntries?
Is it possible to disable PaletteEntries? [message #146611] Thu, 05 August 2004 10:01 Go to next message
Eclipse UserFriend
Originally posted by: mastr.arcor.de

Hey @ll!

I provide some CreationTools in my palette.
Now when working with my editor there are some circumstances that not
allow to create a special Model type (which can be created via
CreationTool).

So is there a possibility to deactivate a PaletteEntry (this one providing
the CreationTool)?
Where do I best do so (EditPart, Editor...) ?

Thanks in advance,
Martin.
Re: Is it possible to disable PaletteEntries? [message #146657 is a reply to message #146611] Thu, 05 August 2004 15:53 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Sorry, I don't think there's a way of disabling that item on the palette.
But if it's not possible to use that tool (i.e., if the targeted EditPart
returns null or UnexecutableCommand), the user will see a "Not allowed"
cursor when dragging that tool. Is that not acceptable?

"mastr" <mastr@arcor.de> wrote in message news:cet0h6$2lm$1@eclipse.org...
> Hey @ll!
>
> I provide some CreationTools in my palette.
> Now when working with my editor there are some circumstances that not
> allow to create a special Model type (which can be created via
> CreationTool).
>
> So is there a possibility to deactivate a PaletteEntry (this one providing
> the CreationTool)?
> Where do I best do so (EditPart, Editor...) ?
>
> Thanks in advance,
> Martin.
>
Previous Topic:Automatic scrolling
Next Topic:Drag and Drop issue
Goto Forum:
  


Current Time: Fri Dec 27 03:22:29 GMT 2024

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

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

Back to the top