|Re: Dynamic editor palette cusomization? [message #1404632 is a reply to message #1404584]
||Mon, 04 August 2014 15:09
|| Pierre-Charles David
Registered: July 2009
Le 04/08/2014 15:51, Stefan Schulz a écrit :|
> Hi there,
> first of all, thank you for making such a great tool.
> I figured it'd be great to dynamically fill the editor's palette with the elements of the model's imported interfaces.
I'm not sure I understand. The items in the palette are not elements
from the model being edited, but tools that can be applied on the model
to modify it in arbitrary ways (as defined in the *.odesign file/model).
If I follow you example when you import the "Airport" EClass on the
second diagram you want a new entry in the palette named "Airport" to
appear, right? But what would such a tool do when the user executes it?
> Is such behaviour possible and if so,
If my intepretation is correct that you want the structure and content
of the palette to change dynamically depending on the structure of the
user's model, then no it is not possible. You can have palette entries
which are visible or not depending on various conditions (e.g. which
layers are enabled), but they must all exist beforehand ("statically")
on the *.odesign model(s).
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.01918 seconds