Skip to main content


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 06:13 Go to next message
Neha is currently offline NehaFriend
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 09:38 Go to previous message
Ankur Sharma is currently offline Ankur SharmaFriend
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 Apr 19 01:32:43 GMT 2024

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

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

Back to the top