Filtered resource dialog [message #140123] |
Mon, 06 October 2003 09:36  |
Eclipse User |
|
|
|
Originally posted by: noemail.noemail.com
Hi,
I am new to Eclipse plugin development, and I want to create a dialog that
allows the selection of 1 or more resources from a tree view of project
resources. And I want to be able to filter the contents of the tree view so
that only resources of a particular extension are shown in the tree. I know
how to create a tree view and filter this but I was hoping there would
already be a dialog built into the Eclipse api that would do all this for
me so I don't have to worry about resource issues like synchronization -
something like a ResourceSelectionDialog but with filtering. Unfortunately,
I cannot find such a thing which makes me think I have not been looking in
the right place or have overlooked something. Does anyone know of some
control that has this sort of function?
Failing that would the recommended way to go about creating such a thing be
to create my own TreeViewer for the resources I am interested in showing
and simply put this in a dialog or does anyone know of a more appropriate
approach?
Thanks,
Allan.
|
|
|
Re: Filtered resource dialog [message #142434 is a reply to message #140123] |
Fri, 10 October 2003 15:09  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
I don't think there is an easy way to do this. You could subclass
ResourceSelectionDialog and CheckboxTreeAndListGroup. You would just
need to override createTreeViewer in the latter to add the filter to the
viewer.
--
Allan Boyd wrote:
> Hi,
>
> I am new to Eclipse plugin development, and I want to create a dialog that
> allows the selection of 1 or more resources from a tree view of project
> resources. And I want to be able to filter the contents of the tree view so
> that only resources of a particular extension are shown in the tree. I know
> how to create a tree view and filter this but I was hoping there would
> already be a dialog built into the Eclipse api that would do all this for
> me so I don't have to worry about resource issues like synchronization -
> something like a ResourceSelectionDialog but with filtering. Unfortunately,
> I cannot find such a thing which makes me think I have not been looking in
> the right place or have overlooked something. Does anyone know of some
> control that has this sort of function?
>
> Failing that would the recommended way to go about creating such a thing be
> to create my own TreeViewer for the resources I am interested in showing
> and simply put this in a dialog or does anyone know of a more appropriate
> approach?
>
> Thanks,
> Allan.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04267 seconds