Adding function to the palette? [message #909658] |
Fri, 07 September 2012 10:10  |
Eclipse User |
|
|
|
Hello,
i would like to add a function to the palette that does not create a new object.
I.e if i click on an entry a function should start which will open a messagedialog or something like that.
if someone could give me an advice what to do, i'd appreciate that.
Thanks in advance.
|
|
|
|
|
Re: Adding function to the palette? [message #910116 is a reply to message #910024] |
Sat, 08 September 2012 14:24   |
Eclipse User |
|
|
|
I really don't know if it makes sense, since the expected palette behaviour is usually to provide a set of tools to create something within the diagram. I think when user clicks palette he is not expecting dialogs or something else for something that is not related to the diagram itself. For that you have coolbars, platform actions, ..etc.
That's why I suggested this "hack", otherwise, yes , i would suggest something like that (specialized entry), if it is possible.
But, I don't consider myself an expert at all, and maybe someone else could find it useful.
|
|
|
Re: Adding function to the palette? [message #910675 is a reply to message #910116] |
Mon, 10 September 2012 03:44  |
Eclipse User |
|
|
|
+1
The palette is intended to be used for new object creation, not for
providing custom functionality.
Another "hack" would be to implement open the functionality (opening the
popup and whatever you want to trigger) simply from inside a create feature.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04410 seconds