Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow use wbp-palette-commands.xml inside plug-in project
https://www.eclipse.org/forums/index.php/mv/msg/369598/902289/#msg_902289
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]]>Arthur Fücher2012-08-16T19:31:54-00:00Re: How use wbp-palette-commands.xml inside plug-in project
https://www.eclipse.org/forums/index.php/mv/msg/369598/902290/#msg_902290
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.]]>Konstantin Scheglov2012-08-16T19:37:58-00:00Re: How use wbp-palette-commands.xml inside plug-in project
https://www.eclipse.org/forums/index.php/mv/msg/369598/902291/#msg_902291
But how I make the palette read this command? I've see org.eclipse.wb.internal.core.editor.palette.PaletteManager.commandsRead(), and I just found it searching in the current workspace, not in my plugin...
I'll see a little more...]]>Arthur Fücher2012-08-16T19:41:37-00:00Re: How use wbp-palette-commands.xml inside plug-in project
https://www.eclipse.org/forums/index.php/mv/msg/369598/902293/#msg_902293
I add the listener in my HorizontalBoxInfo, and it works! It's the best way to do that?
Thks for your support!]]>Arthur Fücher2012-08-16T20:10:46-00:00Re: How use wbp-palette-commands.xml inside plug-in project
https://www.eclipse.org/forums/index.php/mv/msg/369598/902297/#msg_902297
If you want to have it active always, you need org.eclipse.wb.core.model.IRootProcessor register in "org.eclipse.wb.core.rootProcessors" extension point.]]>Konstantin Scheglov2012-08-16T20:41:38-00:00