| View previous topic :: View next topic |
| Author |
Message |
AntonioJSG
Joined: 12 Nov 2008 Posts: 2 Location: Guatemala
|
Posted: Fri Nov 06, 2009 5:49 am Post subject: Get Selected Node from Projects Tab |
|
|
Hi, I have Netbeans 6.5.1
I developed a simple plugin that is a topComponent with an action button.
The action method should get the node that is selected in the Projects Explorer Tab. Then get the corresponding DataObject, get the .class object in order to perform Reflexion on it. Example, get all properties from a Customer object class declared in some project.
I have study NetBeans pluging development with the Book Rich Client Programming from SUN. Also read the platform FAQ. I have tried with WindowManager, with TopComponent.Registry, System FileSystem and with LookUp without success. I have only been able to get the node when selecting the project node from the same plugin I developed. After several hours, I finally gave up.
Please advice how I can get the a selected node so I can build a DataObject and then perform Reflexion on the corresponding class.
Thank you. |
|
| Back to top |
|
 |
AntonioJSG
Joined: 12 Nov 2008 Posts: 2 Location: Guatemala
|
Posted: Mon Nov 09, 2009 7:39 am Post subject: |
|
|
It doesn´t matter anymore.
I found the answer.
Tks.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|