Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Class Loader Issue(Facing Issue in getting the class defined in Workspace .)
Class Loader Issue [message #505275] Tue, 29 December 2009 06: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 #505581 is a reply to message #505275] Sat, 02 January 2010 09: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:actionsSet is visible in all perspectives
Next Topic:Class Loader Issue
Goto Forum:
  


Current Time: Fri Oct 31 08:49:08 GMT 2014

Powered by FUDForum. Page generated in 0.01677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software