Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ResourceListSelectionDialog
ResourceListSelectionDialog [message #125097] Tue, 09 September 2003 13:02 Go to next message
Thijs Metsch is currently offline Thijs MetschFriend
Messages: 13
Registered: July 2009
Junior Member
hello again,

I want to open an ResourceListSelectionDialog only showing *.java
files.Opening a Dialog is done like this:

ResourceListSelectionDialog dialog = new
ResourceListSelectionDialog(shell,
ResourcesPlugin.getWorkspace().getRoot(), IResource.DEPTH_INFINITE |
IResource.FILE );

Inserting *.java in the PAttern Text Field works but now i wan't to set
this value programatically. Now how do I set the Pattern to search only
for *.java?

I found setInitialSelectionElement and setInitialSelection in the API
Documentation but i can't get them to work. Has anybody a code snippet
for me?

thx ind advance again

-Thijs
Re: ResourceListSelectionDialog [message #125587 is a reply to message #125097] Tue, 09 September 2003 15:14 Go to previous message
Eclipse UserFriend
Originally posted by: lynne_kues.oti.com

There is no API for setting an initial pattern string for the dialog. You
could open a bug report requesting the feature - it would be simple enough
to add.

I thought you might be able to subclass the dialog to get the behavior you
want, but the fields/methods that you would need to access are not public.

"Thijs Metsch" <thijs.metsch@dlr.de> wrote in message
news:bjkiv1$sqs$1@eclipse.org...
> hello again,
>
> I want to open an ResourceListSelectionDialog only showing *.java
> files.Opening a Dialog is done like this:
>
> ResourceListSelectionDialog dialog = new
> ResourceListSelectionDialog(shell,
> ResourcesPlugin.getWorkspace().getRoot(), IResource.DEPTH_INFINITE |
> IResource.FILE );
>
> Inserting *.java in the PAttern Text Field works but now i wan't to set
> this value programatically. Now how do I set the Pattern to search only
> for *.java?
>
> I found setInitialSelectionElement and setInitialSelection in the API
> Documentation but i can't get them to work. Has anybody a code snippet
> for me?
>
> thx ind advance again
>
> -Thijs
>
Previous Topic:Editor and multiple editor input
Next Topic:Plug-In Dependency problems
Goto Forum:
  


Current Time: Sat Jul 27 16:11:02 GMT 2024

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

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

Back to the top