| Add an action to a CLabel [message #674324] |
Thu, 26 May 2011 10:04  |
Eclipse User |
|
|
|
Hello,
In the current Eclipse IDE I've created a view which works as a menu. Inside the view I've added CLables which are supposed to work as the buttons. My question is, how can I add actions to those CLabels to make them work as buttons.
For example, I have a CLabel in which I've set a folder image, so it's supposed to allow the user to open files when he click it, like the File->Open option.
What do I have to add to the Mouse Listener of the CLabel??
Thank you very much in advanced for any response.
Ivan RAICHS
|
|
|
| Re: Add an action to a CLabel [message #674500 is a reply to message #674324] |
Fri, 27 May 2011 03:15  |
Eclipse User |
|
|
|
Hello,
I've been googling and trying different things, and I think that what I have to do is add a handler via extension point to my CLabels, but I don't know really how to do it. I've been testing that is easy to do with commands added in menus, but I don't know really how to manage my specific case.
Thank you for any guidance!
Ivan RAICHS
|
|
|
Powered by
FUDForum. Page generated in 0.03992 seconds