DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Using the Java Hierarchy programmatically
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2008
Question Using the Java Hierarchy programmatically - 10-19-2009, 09:54 AM

hello,

I am creating a plugin which allows the creation of specific JAVA projects. The specificity of the plugin is to automatically create some domain classes (code generation) according to some rules (described in an XML file)

To do that, I have created a different abstract classes (a set of MySpecificClass) that derives from a class MyAbstractClass. Each rule will create a class that derives from a MySpecificClass sot he user will be able to write the very specific stuff

Anyway, this is the context.

Before knowing which class my rule engine can automatically create, I'd like to know which MySpecificClass are in my classpath (they may be in different jars)

So, I'd like to access a kind of java.util.Collection of classes. to process it programmatically

I suppose I can reuse the Hierarchy view facility. I have debugged my eclipse app, made a hierarchy query (F4) and breakpointed a bit. I found that the pivot class is the CreateTypeHierarchyOperation. Unfortunatelly, it is internal.

Do you think this is the only method? Do you have a code snippet to do that?
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2008
Default 10-20-2009, 07:26 AM

nobody? This is very important for my project. thank's in advance to give me some clues. I will fill the thread with my solution
Reply With Quote
Reply

Tags
hierarchy rcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a java project programmatically during run time ? pratibha Eclipse 2 05-22-2009 05:35 PM
Programmatically maximize/restore a view in Eclipse and Eclipse WIndow khewuwei Eclipse 0 11-27-2008 08:32 PM
Hiding a editor programmatically in eclipse rcp gautam_manoj Eclipse 0 07-10-2008 10:46 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com