Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Working sets
Working sets [message #327947] Fri, 09 May 2008 09:57 Go to next message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
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 10:29 Go to previous messageGo to next message
Eclipse UserFriend
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 #327949 is a reply to message #327948] Fri, 09 May 2008 11:11 Go to previous messageGo to next message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
Ed Merks wrote:
> 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?
>
>

I am missing something from your "configuration" remark. From the point
of view of the upper right corner menu, the Project Explorer shows the
classic menu with the working set options, and I have my working set
page wizard correctly listed and open. I can create, remove, edit my
working sets. My problems starts when I select one of them.


Thank you very much for the link. I am going to read it right now!

Cheers,
Fabio
Re: Working sets [message #327952 is a reply to message #327949] Fri, 09 May 2008 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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.


Fabio Mancinelli wrote:
> Ed Merks wrote:
>> 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?
>>
>>
>
> I am missing something from your "configuration" remark. From the
> point of view of the upper right corner menu, the Project Explorer
> shows the classic menu with the working set options, and I have my
> working set page wizard correctly listed and open. I can create,
> remove, edit my working sets. My problems starts when I select one of
> them.
>
>
> Thank you very much for the link. I am going to read it right now!
>
> Cheers,
> Fabio
Re: Working sets [message #327978 is a reply to message #327952] Sun, 11 May 2008 18:41 Go to previous messageGo to next message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
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 22:58 Go to previous messageGo to next message
Eclipse UserFriend
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 19:48 Go to previous message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
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
Previous Topic:launch a make in the current project directory
Next Topic:project.getWorkingLocation()
Goto Forum:
  


Current Time: Thu Jun 27 19:24:09 GMT 2024

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

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

Back to the top