Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Filter scope of SelectionDialog
Filter scope of SelectionDialog [message #122804] Fri, 28 November 2003 05:49 Go to next message
Eclipse UserFriend
Hi,

I open an org.eclipse.ui.dialogs.Selection by calling
JavaUI.createTypeDialog(...).
I use a scope limited to my project classpth and set by calling these
methods :
IJavaElement[] elements = new IJavaElement[] { jprojet };
IJavaSearchScope scope = SearchEngine.createJavaSearchScope(elements);

I want to know if it's possible to filter the scope in order to limit the
selection to classes which extand a defined superclass.

thanks.

Loïc
Re: Filter scope of SelectionDialog [message #122826 is a reply to message #122804] Fri, 28 November 2003 06:56 Go to previous messageGo to next message
Eclipse UserFriend
Use SearchEngine.createHierarchyScope(IType) where the given type is your
superclass.

Jerome

"Lo
Re: Filter scope of SelectionDialog [message #122836 is a reply to message #122826] Fri, 28 November 2003 07:54 Go to previous message
Eclipse UserFriend
Thank you, I still wonder how I didn't see this method...

Loïc


Jerome Lanneluc wrote:

> Use SearchEngine.createHierarchyScope(IType) where the given type is your
> superclass.

> Jerome

> "Loïc" <lbertholet@sysdeo.com> wrote in message
> news:bq7983$j5e$1@eclipse.org...
> > Hi,
> >
> > I open an org.eclipse.ui.dialogs.Selection by calling
> > JavaUI.createTypeDialog(...).
> > I use a scope limited to my project classpth and set by calling these
> > methods :
> > IJavaElement[] elements = new IJavaElement[] { jprojet };
> > IJavaSearchScope scope = SearchEngine.createJavaSearchScope(elements);
> >
> > I want to know if it's possible to filter the scope in order to limit the
> > selection to classes which extand a defined superclass.
> >
> > thanks.
> >
> > Loïc
> >
Previous Topic:plugin extension point questions
Next Topic:CVS Outgoing Information
Goto Forum:
  


Current Time: Mon May 12 05:05:14 EDT 2025

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

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

Back to the top