Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to retrieve modifiers from resolved types
How to retrieve modifiers from resolved types [message #257094] Mon, 27 October 2008 09:50 Go to next message
Eclipse UserFriend
Hello,

I'm working on a plugin that provides content assist as an extension of
the WTP XML Editor. The suggested content is a liste of classes found in
the current project's classpath.
I can successfully retrieve a list of <IType> which are instances of
ResolvedSourceType or ResolvedBinary Type. Now, I'd like to filter the
result and hide the abstract classes, since the user should not be able to
select on of those

From what I read on previous messages and tried by myself, I can not use
standard Java Reflection APIs because of ClassLoading issues (which I can
understand : the plugin and the project don't share the same
classloaders). So I need to use the JDT APIs, but I did not find anything
yet..
How can I do this ?

Thank you in advance
Regards,
Xavier
Re: How to retrieve modifiers from resolved types [message #257103 is a reply to message #257094] Mon, 27 October 2008 16:07 Go to previous messageGo to next message
Eclipse UserFriend
Xavier Coulon wrote:

You mostly likely want to make use of IType's superinterface and
method org.eclipse.jdt.core.IMember.getFlags().

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: How to retrieve modifiers from resolved types [message #257105 is a reply to message #257103] Mon, 27 October 2008 16:57 Go to previous message
Eclipse UserFriend
Thanks a lot, this is exactly what I was looking for !
And using the 'Flags' utility class, I can check whether the class is
abstract or not.

Regards,
Xavier
Previous Topic:variable propagation
Next Topic:Debugging Eclipse plugin
Goto Forum:
  


Current Time: Fri Jul 25 17:26:14 EDT 2025

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

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

Back to the top