Home » Eclipse Projects » Eclipse Platform » Working sets
Working sets [message #327947] |
Fri, 09 May 2008 05:57  |
Eclipse User |
|
|
|
Dear all,
do you know a tutorial on how to manage working sets?
I have successfully set up the working set extension point, but elements
in the working set are presented in the Project Explorer in a flat way,
though my adapters correctly provide getParent() information.
Maybe I am missing something trivial but I cannot understand what, so a
complete tutorial would be useful.
Thanks for the hints.
Cheers,
Fabio
|
|
|
Re: Working sets [message #327948 is a reply to message #327947] |
Fri, 09 May 2008 06:29   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------070500080207000801050002
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Fabio,
I found this blog demo pretty useful:
http://www.peterfriese.de/eclipse-working-sets-part-i/
You know you have to configure the explorer to show working sets via the
drop down menu in the upper right correct, right?
Fabio Mancinelli wrote:
> Dear all,
>
> do you know a tutorial on how to manage working sets?
> I have successfully set up the working set extension point, but
> elements in the working set are presented in the Project Explorer in a
> flat way, though my adapters correctly provide getParent() information.
>
> Maybe I am missing something trivial but I cannot understand what, so
> a complete tutorial would be useful.
>
> Thanks for the hints.
>
> Cheers,
> Fabio
--------------070500080207000801050002
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fabio,<br>
<br>
I found this blog demo pretty useful:<br>
<blockquote><a
href="http://www.peterfriese.de/eclipse-working-sets-part-i/">http://www.peterfriese.de/eclipse-working-sets-part-i/</a><br>
</blockquote>
You know you have to configure the explorer to show working sets via
the drop down menu in the upper right correct, right?<br>
<br>
<br>
Fabio Mancinelli wrote:
<blockquote cite="mid:g017ap$f5l$1@build.eclipse.org" type="cite">Dear
all,
<br>
<br>
do you know a tutorial on how to manage working sets?
<br>
I have successfully set up the working set extension point, but
elements in the working set are presented in the Project Explorer in a
flat way, though my adapters correctly provide getParent() information.
<br>
<br>
Maybe I am missing something trivial but I cannot understand what, so a
complete tutorial would be useful.
<br>
<br>
Thanks for the hints.
<br>
<br>
Cheers,
<br>
Fabio
<br>
</blockquote>
<br>
</body>
</html>
--------------070500080207000801050002--
|
|
| | |
Re: Working sets [message #327978 is a reply to message #327952] |
Sun, 11 May 2008 14:41   |
Eclipse User |
|
|
|
Ed Merks wrote:
> Fabio,
>
> The drop down menu has the choice for "Top Elements" as being "Projects"
> or "Working Sets". I assume you don't have the former selected while
> expect the behavior of the latter.
>
>
Hi Ed,
yes I have "TopLevel Elements" set on "Working Sets".
Anyway there has been a misunderstanding probably because maybe I have
asked my question in the wrong way.
I am not interested in using working sets from a user point of view, but
from a plugin developer point of view.
What happens is the following. Normally I have this:
Project
+ Contribution via Common Navigator extension points
+ Parent element A
+ Child A.1
+ Child A.2
+ Child A.3
+ ...
The contribution shows elements that do not reside on the workspace (in
particular, I present a list of element available on a remote server
hierarchy).
I set up a working set type by providing an implementation of a
WizardPage for selecting elements presented through the Common Navigator
contribution. I do this through the org.eclipse.ui.workingSets extension
point.
Everything works. I am able to build a working sets containing, for
example, A, A.1, A.2. But when I activate the working set just created
instead of having in the project explorer
A
|- A.1
|- A.2
I have
A
A.1
A.2
That is parent-child relationships are not taken into account.
All the elements A, A.1, etc. are adaptable to WorkbenchAdapter and the
getParent() method correctly returns the actual parent.
I don't know what's wrong in my code since I think that I have set up
things correctly, but of course there is something that doesn't work.
That's why I was asking about a tutorial, but from the plugin developer
perspective.
Thank you for your help.
Cheers,
Fabio
|
|
|
Re: Working sets [message #327981 is a reply to message #327978] |
Sun, 11 May 2008 18:58   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Fabio Mancinelli wrote:
> Ed Merks wrote:
>> Fabio,
>>
>> The drop down menu has the choice for "Top Elements" as being
>> "Projects" or "Working Sets". I assume you don't have the former
>> selected while expect the behavior of the latter.
>>
>>
> Hi Ed,
>
> yes I have "TopLevel Elements" set on "Working Sets".
> Anyway there has been a misunderstanding probably because maybe I have
> asked my question in the wrong way.
>
> I am not interested in using working sets from a user point of view,
> but from a plugin developer point of view.
>
> What happens is the following. Normally I have this:
>
> Project
> + Contribution via Common Navigator extension points
> + Parent element A
> + Child A.1
> + Child A.2
> + Child A.3
> + ...
>
> The contribution shows elements that do not reside on the workspace
> (in particular, I present a list of element available on a remote
> server hierarchy).
>
> I set up a working set type by providing an implementation of a
> WizardPage for selecting elements presented through the Common
> Navigator contribution. I do this through the
> org.eclipse.ui.workingSets extension point.
>
> Everything works. I am able to build a working sets containing, for
> example, A, A.1, A.2. But when I activate the working set just created
> instead of having in the project explorer
>
> A
> |- A.1
> |- A.2
>
> I have
>
> A
> A.1
> A.2
>
> That is parent-child relationships are not taken into account.
>
> All the elements A, A.1, etc. are adaptable to WorkbenchAdapter and
> the getParent() method correctly returns the actual parent.
By actual parent, I assume you mean that A.1's parent is A? I get the
sense that perhaps you've somehow returning the same object as the
parent for A, A.1, and A.2. I've never used these APIs, so I doubt
what I can say will be of much help. Sorry. Hopefully someone else can
help...
>
> I don't know what's wrong in my code since I think that I have set up
> things correctly, but of course there is something that doesn't work.
>
> That's why I was asking about a tutorial, but from the plugin
> developer perspective.
>
> Thank you for your help.
>
> Cheers,
> Fabio
|
|
|
Re: Working sets [message #328083 is a reply to message #327981] |
Tue, 13 May 2008 15:48  |
Eclipse User |
|
|
|
Ed Merks wrote:
> By actual parent, I assume you mean that A.1's parent is A? I get the
> sense that perhaps you've somehow returning the same object as the
> parent for A, A.1, and A.2. I've never used these APIs, so I doubt
> what I can say will be of much help. Sorry. Hopefully someone else can
> help...
>
Thank you anyway Ed.
Working sets are not working as I expected (even for standard
resources)... Maybe I should use filters to show only the selected elements.
Cheers,
Fabio
|
|
|
Goto Forum:
Current Time: Thu May 22 13:34:15 EDT 2025
Powered by FUDForum. Page generated in 0.03585 seconds
|