Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Class Loader Issue
Class Loader Issue [message #603871] Tue, 29 December 2009 01:13 Go to next message
Neha is currently offline Neha
Messages: 12
Registered: December 2009
Junior Member
Hi,
I am creating a plugin for ffaster view development.
The scenario is a user selects a java file and clicks on New --> View then he gets a list of all the attributes defined in the java file.
I am using Reflection to get all the attributes and methods of the java class.
I need a class object to give as input to reflection class. I am not able to get the class object of java file selected.

It is able to find classes those are present in Plugin code.

Kindly Help.

Its very urgent.
Re: Class Loader Issue [message #603907 is a reply to message #603871] Sat, 02 January 2010 04:38 Go to previous message
Ankur Sharma is currently offline Ankur Sharma
Messages: 68
Registered: July 2009
Member
On 12/29/2009 11:43 AM, neha.pandey@lntinfotech.com wrote:
> Hi,
> I am creating a plugin for ffaster view development.
> The scenario is a user selects a java file and clicks on New --> View
> then he gets a list of all the attributes defined in the java file.
> I am using Reflection to get all the attributes and methods of the java
> class. I need a class object to give as input to reflection class. I am
> not able to get the class object of java file selected.
>
> It is able to find classes those are present in Plugin code.
>
> Kindly Help.
>
> Its very urgent.

I believe a better approach would be to hook into CNF to see the selected class and then use JDT.
You may also have a look the way outline view shows the class outline, sounds like you are trying to
achieve something similar.

--
Ankur..
Eclipse PDE UI Committer | IBM India Software Lab, Bangalore
+91-99456-94011 | @ankur_sharma | http://blog.ankursharma.org
Previous Topic:Class Loader Issue
Next Topic:IPluginModelBase listener + stale information
Goto Forum:
  


Current Time: Fri Aug 22 19:53:44 EDT 2014

Powered by FUDForum. Page generated in 0.02144 seconds