[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Obtaining classes/types of a project

Hey guys,

   Thanks for your responses. Traversing the class heirarchy doesn't have to be as complicated as I may have conveyed. I've created a plugin for deploying applications to our live server, but I only want to deploy the user's applications that are of a certain type (just a class). This "special type" is defined by either extending a class called ProviderBase, or implementing an interface called IContentProvider. ProviderBase is actually just a superclass which implements IContentProvider itself, but the user can choose either route. 

   So, I'm iterating through a user's projects and trying to get all the classes they've made. Then I would just easily query if a class's superclass is ProviderBase (Class.getSuperclass()), or if the class implements IContentProvider(Class.getInterfaces()). I'll take a look at the JDT stuff. A friend has also suggested looking into natures, which I'm not experienced with. I'll keep you posted.

Thanks,
Ryan