Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Where is the missing WorkbenchContentProvider???
Where is the missing WorkbenchContentProvider??? [message #1601061] Wed, 04 February 2015 17:52 Go to next message
Nigel Daniels is currently offline Nigel DanielsFriend
Messages: 40
Registered: May 2011
Member
Hi,

I'm trying to create an ElementTreeSelectionDialog and wanted to show
the workbench content in it so the user can select the location of a
file. To populate this I was going to use:

final ElementTreeSelectionDialog fileSelectionDialog = new
ElementTreeSelectionDialog(
getShell(), new WorkbenchLabelProvider(), new
WorkbenchContentProvider());

However I cannot locate the WorkbenchContentProvider! According to the
included platform Javadoc this is found in:

org.eclipse.ui.model.WorkbenchContentProvider

If I look in the dependant plugin org.eclipse.ui.workbench (I am using
org.eclipse.ui.workbench_3.105.2.v20140211-1711.jar as I am developing
for Kepler SR2) I can see that this package contains the associated
BaseWorkbenchContentProvider.

Is there a different plugin that provides this or has it been depricated
and removed?

If so what is the approach I should be using to populate the dialog?

Thanks.
Re: Where is the missing WorkbenchContentProvider??? [message #1601104 is a reply to message #1601061] Wed, 04 February 2015 18:33 Go to previous message
Nigel Daniels is currently offline Nigel DanielsFriend
Messages: 40
Registered: May 2011
Member
Opps answered my own question after some more digging in a different
project.. I needed the org.eclipse.ui.ide plugin.

On 4/Feb/2015 09:52, Nigel Daniels wrote:
> Hi,
>
> I'm trying to create an ElementTreeSelectionDialog and wanted to show
> the workbench content in it so the user can select the location of a
> file. To populate this I was going to use:
>
> final ElementTreeSelectionDialog fileSelectionDialog = new
> ElementTreeSelectionDialog(
> getShell(), new WorkbenchLabelProvider(), new
> WorkbenchContentProvider());
>
> However I cannot locate the WorkbenchContentProvider! According to the
> included platform Javadoc this is found in:
>
> org.eclipse.ui.model.WorkbenchContentProvider
>
> If I look in the dependant plugin org.eclipse.ui.workbench (I am using
> org.eclipse.ui.workbench_3.105.2.v20140211-1711.jar as I am developing
> for Kepler SR2) I can see that this package contains the associated
> BaseWorkbenchContentProvider.
>
> Is there a different plugin that provides this or has it been depricated
> and removed?
>
> If so what is the approach I should be using to populate the dialog?
>
> Thanks.
Previous Topic:Open editor from custom view
Next Topic:Request for feature: more support for method calls in debugger
Goto Forum:
  


Current Time: Sat Apr 27 01:54:18 GMT 2024

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

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

Back to the top