|
Re: ResourceListSelectionDialog [message #125587 is a reply to message #125097] |
Tue, 09 September 2003 15:14 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds