|
Re: Update palette dynamically [message #1816121 is a reply to message #1816078] |
Mon, 21 October 2019 13:48 |
|
Hi,
This is not supported (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=442145). The tools on the palette of a Sirius diagram are not just elements "prototypes" that are copied/instanciated on the diagram, they are tools defined statically in the odesign model, with possibly complex behavior. Adding new tools dynamically would imply modifying the odesign being used to add the tool definitions, but modifying the modeler's definition in this way is not supported.
Depending on your context, one possible workaround is to define *one* tool in your odesign which invokes some Java code that displays through an SWT/JFace dialog the list of possible libraries (computed dynamically by your code), and then add the one selected.
Regards,
Pierre-Charles David
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03404 seconds