Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Persist a WorkingSet?
Persist a WorkingSet? [message #61530] Tue, 03 June 2003 22:09 Go to next message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
How does one persist/re-instantiate a defined WorkingSet? I've looked at
the ResourceNavigator code and have figured out that it involves an
IDialogSettings object somehow, but it's not clear how to use such a
thing. In particular, IDialogSettings implements a 'save(String
fileName)' signature, but that seems rather kludgy, and anyway, when I
tried it, it appears that none of my WorkingSet definition was saved
(though some very pretty xml markup was written).

Anyone have any pointers?

--dave
Re: Persist a WorkingSet? [message #63659 is a reply to message #61530] Thu, 05 June 2003 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

David Bailey wrote:

>How does one persist/re-instantiate a defined WorkingSet?
>
See IWorkingSetManager [to get it use:
PlatformUI.getWorkbench().getWorkingSetManager()]

HTH
Dani
Re: Persist a WorkingSet? [message #63812 is a reply to message #63659] Thu, 05 June 2003 13:32 Go to previous messageGo to next message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
Daniel Megert wrote:

> David Bailey wrote:

> >How does one persist/re-instantiate a defined WorkingSet?
> >
> See IWorkingSetManager [to get it use:
> PlatformUI.getWorkbench().getWorkingSetManager()]

> HTH
> Dani

Emperically, the IWorkingSetManager retains the IWorkingSet for me (that
is, the same collection of working sets shows up in the working set
selection wizard), but the DEFINITION of the working set has been lost.
When I attempt to edit my working set, all checkboxes are cleared.

My research into the code for the ResourceNavigator seems to indicate that
the use of IDialogSettings is necessary, but I can't find much information
about exactly how that is used.

Thanks,

--dave
Re: Persist a WorkingSet? [message #63880 is a reply to message #63812] Thu, 05 June 2003 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

David Bailey wrote:

>Daniel Megert wrote:
>
>
>
>>David Bailey wrote:
>>
>>
>
>
>
>>>How does one persist/re-instantiate a defined WorkingSet?
>>>
>>>
>>>
>>See IWorkingSetManager [to get it use:
>>PlatformUI.getWorkbench().getWorkingSetManager()]
>>
>>
>
>
>
>>HTH
>>Dani
>>
>>
>
>Emperically, the IWorkingSetManager retains the IWorkingSet for me (that
>is, the same collection of working sets shows up in the working set
>selection wizard), but the DEFINITION of the working set has been lost.
>When I attempt to edit my working set, all checkboxes are cleared.
>
>My research into the code for the ResourceNavigator seems to indicate that
>the use of IDialogSettings is necessary, but I can't find much information
>about exactly how that is used.
>
What exactly are you trying to do?

Dani
Re: Persist a WorkingSet? [message #64267 is a reply to message #63880] Thu, 05 June 2003 17:53 Go to previous messageGo to next message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
Daniel Megert wrote:

> David Bailey wrote:

> >Daniel Megert wrote:
> >
> >
> >
> >>David Bailey wrote:
> >>
> >>
> >
> >
> >
> >>>How does one persist/re-instantiate a defined WorkingSet?
> >>>
> >>>
> >>>
> >>See IWorkingSetManager [to get it use:
> >>PlatformUI.getWorkbench().getWorkingSetManager()]
> >>
> >>
> >
> >
> >
> >>HTH
> >>Dani
> >>
> >>
> >
> >Emperically, the IWorkingSetManager retains the IWorkingSet for me (that
> >is, the same collection of working sets shows up in the working set
> >selection wizard), but the DEFINITION of the working set has been lost.
> >When I attempt to edit my working set, all checkboxes are cleared.
> >
> >My research into the code for the ResourceNavigator seems to indicate that
> >the use of IDialogSettings is necessary, but I can't find much information
> >about exactly how that is used.
> >
> What exactly are you trying to do?

> Dani

The problem here may stem from the fact that I am trying to write a
'logical' repository navigator. The concept is similar to the Resource
Navigator, but the tree structure does not (necessarily) mirror any
filesystem structure. Consequently, the nodes in the tree are not
IResource nodes (though they are IAdaptable --- I discovered that is a
requirement in order to have any hope of defining a WorkingSet).

Ideally, I want this navigator to have all of the functionality of the
Resource Navigator, at least where it makes sense. In particular, the
user should have the ability to define WorkingSets --- and those
WorkingSets should be properly persisted/resurrected between sessions.

Now, with that background, please insert my previous comments about the
IWorkingSetManager and IDialogSettings here.

It has occurred to me that the WorkingSet persistence mechanism expects
all objects in a working set to implement IResource or something like
that, but I haven't yet found anything in the code to confirm that
suspicion. Perhaps I simply haven't looked hard enough.

--dave

P.S. I am under the impression that there is a plan to generalize the
Resource Navigator concept in 3.0 to eliminate the assumption that the
navigator is always working with IResouces. I say, hear hear.
Re: Persist a WorkingSet? [message #64677 is a reply to message #64267] Thu, 05 June 2003 21:20 Go to previous message
David Bailey is currently offline David BaileyFriend
Messages: 45
Registered: July 2009
Member
Okay, I got it now. Via a different route, I learned about the
IPersistableElement interface and the org.eclipse.ui.elementFactories
extension point. That seems to do the trick.

Thanks,

--dave
Previous Topic:View arrangement question
Next Topic:obtaining a file under development for plugins
Goto Forum:
  


Current Time: Sun Jul 07 09:27:00 GMT 2024

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

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

Back to the top