Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] About the workbench selection

Hi,

This is me again with Visual Editor.
I am now trying to develop a new view to use it with VE. My view needs to know witch item is selected on the workbench. For example, if user clic on a JButton called myButton, I would like to be able to get an handle on the myButton class (in order to read his attributes for example).
I have tried to follow this tutorial : http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html, I managed to get back something but it is an Object type class whereas the item I clicked was a JButton. I tried to cast it in the JButton type but it failed, it seems to me that this is totally an other object ... Could you please help to find out how to get an handle on this JButton ?

I don't really know if it is a VE problem but perhaps some of you have tried to do the same someday, I hope.

Thank you very much for your help and looking forward to hearing from you.

Cheers,
Nicolas.

Back to the top