Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JavaUI.createTypeDialog problem utilisation
JavaUI.createTypeDialog problem utilisation [message #256506] Wed, 17 September 2008 15:04
Jean-François  Garreau is currently offline Jean-François GarreauFriend
Messages: 5
Registered: July 2009
Junior Member
Hello

here is my problem, I want to search in my application some classes witch
are implemnting or extending a specified class.

I have a plugin "A" witch is deploy in my application. In this plugin I
could find a class MyClassInterface and a class MyClassImplementation
(implementing MyCLassInterface). So I want to search in my application all
classes that implementing MyClassInterface.

After some research I thought that the method JavaUI.createTypeDialog
could solve my problem but it doesn't. I launch the SelectionDialog with
this way :


IRunnableContext context = PlatformUI.getWorkbench().getProgressService();
IJavaSearchScope scope = SearchEngine.createWorkspaceScope();
SelectionDialog dialog = JavaUI.createTypeDialog(shell, context, scope,
IJavaElementSearchConstants.CONSIDER_ALL_TYPES, false);

dialog.open();

I don't see in class list the class MyClassInterface or
MyClassImplementation... I don't understand why ? And if I use short cut
CRTL + SHIT + T, I don't even see those class...

I read lot's of post with the same problem as mine but I didn't find a
solution that I could understand. I've also read these post for example
http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg1 2287.html

Some times, I see that developpers use an object IJavaProject or a
IProject... but I don't understand how to get thoses object neither if
they could solve realy my problem.

I ask me also how to specify that the SelectionDialog will be restrict to
classes that implements MyClassInterface. I understand that I have to use
IJavaElement but I don't understand how to create the IJavaElement
corresponding to my interface ?

Could someone help me please ?

Jean-François Garreau
Previous Topic:Java editor overlay
Next Topic:Java metamodel
Goto Forum:
  


Current Time: Sun Jun 30 13:57:21 GMT 2024

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

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

Back to the top