How use wbp-palette-commands.xml inside plug-in project [message #902289] |
Thu, 16 August 2012 19:31  |
Eclipse User |
|
|
|
Hi,
I want to restrict the components and categories in the toolkit. I want to know if can I use the wbp-palette-commands.xml inside my plugin.
I see that if I put this XML in a folder called wbp-meta inside the project where my plug-in is running it works. But I want that the plug-in do this restriction...
Are there anyway to do that? Put this XML inside the plug-in? Or exists a extension point to do that?
[]'s
|
|
|
Re: How use wbp-palette-commands.xml inside plug-in project [message #902290 is a reply to message #902289] |
Thu, 16 August 2012 19:37   |
Eclipse User |
|
|
|
What do you mean under "restrict"?
Palette command can be read from jars, from project and from WindowBuilder internal location.
See org.eclipse.wb.internal.core.editor.palette.PaletteManager.commandsRead()
There is also org.eclipse.wb.core.editor.palette.PaletteEventListener which you can register and manipulate palette categories and entries before they are shown.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04115 seconds