Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Workbench saved state location
Workbench saved state location [message #435822] Wed, 24 August 2005 15:00 Go to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Hi,

I have an RCP application deployed with Java Web Start, and I would like
the saved workbench state to follow users around when they move to other
machines.

Using the JNLP file I have set the osgi.instance.area and
osgi.configuration.area variables to point at @user.home, but
unfortunately that ends up pointing at C:\Documents and Settings\username.
I would like to use a location on the user's "home" network drive, but for
some users that is H: and for some users it is O:.

Is there anything I can do to compute the value for the saved state
location before it is required by the workbench?

Thanks,
Neil
Re: Workbench saved state location [message #435849 is a reply to message #435822] Thu, 25 August 2005 02:21 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
You can't do that for the configuration location, however you can
programmaticaly set the osgi.instance.area in your workbench advisor by
using the Platform.getLocation() API.
Note that to make sure that a default value is not picked for you, set
osgi.instance.area to "@noDefault" in the jnlp file.



Neil Bartlett wrote:
> Hi,
>
> I have an RCP application deployed with Java Web Start, and I would like
> the saved workbench state to follow users around when they move to other
> machines.
>
> Using the JNLP file I have set the osgi.instance.area and
> osgi.configuration.area variables to point at @user.home, but
> unfortunately that ends up pointing at C:\Documents and
> Settings\username. I would like to use a location on the user's "home"
> network drive, but for some users that is H: and for some users it is O:.
>
> Is there anything I can do to compute the value for the saved state
> location before it is required by the workbench?
>
> Thanks,
> Neil
>
Re: Workbench saved state location [message #436236 is a reply to message #435849] Fri, 02 September 2005 13:33 Go to previous message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Pascal,

Thanks for this, but I don't really follow you. How does the getLocation()
method of Platform allow me to SET the instance location?

Also the difference between instance location and configuration location
is not clear to me. Which of these is used to store the workbench state,
ie the last-open perspective and view arrangement?

Thanks,
Neil.

Pascal Rapicault wrote:

> You can't do that for the configuration location, however you can
> programmaticaly set the osgi.instance.area in your workbench advisor by
> using the Platform.getLocation() API.
> Note that to make sure that a default value is not picked for you, set
> osgi.instance.area to "@noDefault" in the jnlp file.



> Neil Bartlett wrote:
>> Hi,
>>
>> I have an RCP application deployed with Java Web Start, and I would like
>> the saved workbench state to follow users around when they move to other
>> machines.
>>
>> Using the JNLP file I have set the osgi.instance.area and
>> osgi.configuration.area variables to point at @user.home, but
>> unfortunately that ends up pointing at C:Documents and
>> Settingsusername. I would like to use a location on the user's "home"
>> network drive, but for some users that is H: and for some users it is O:.
>>
>> Is there anything I can do to compute the value for the saved state
>> location before it is required by the workbench?
>>
>> Thanks,
>> Neil
>>
Previous Topic:Problem with JBoss 3.2.3, Web Start and RCP
Next Topic:extra whitespace in sectionclient
Goto Forum:
  


Current Time: Thu Dec 26 16:01:42 GMT 2024

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

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

Back to the top