Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » storing session parameters
storing session parameters [message #463004] Sat, 03 February 2007 16:41 Go to next message
Eclipse UserFriend
Originally posted by: canterburry.gmail.com

Hey,

I am looking for a place to store runtime session parameters. These do not
need to be persistent and are not necessarily related to any particular
resource.

My particular scenario is: I obtain a reference to extending plug-in B from
an extension point in plug-in A. I just want a convenient and known place to
store the reference to plug-in B inside some session parameter in A so that
other parts of plug-in A can easily access plug-in B's reference. Thus, the
parameter does not need persistence past the session.

I have tried looking for session parameters but all I find relates to
session parameters for a particular resource (typically a file in the
workspace) . I just need something like System.setProperties(string, obj)
but local to my plug-in.

Thanks
-HC
Re: storing session parameters [message #463005 is a reply to message #463004] Sat, 03 February 2007 16:44 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
Save the reference of your object in the Plugin (Activator) class.

Snjeza

HC wrote:
> Hey,
>
> I am looking for a place to store runtime session parameters. These do not
> need to be persistent and are not necessarily related to any particular
> resource.
>
> My particular scenario is: I obtain a reference to extending plug-in B from
> an extension point in plug-in A. I just want a convenient and known place to
> store the reference to plug-in B inside some session parameter in A so that
> other parts of plug-in A can easily access plug-in B's reference. Thus, the
> parameter does not need persistence past the session.
>
> I have tried looking for session parameters but all I find relates to
> session parameters for a particular resource (typically a file in the
> workspace) . I just need something like System.setProperties(string, obj)
> but local to my plug-in.
>
> Thanks
> -HC
>
>
Re: storing session parameters [message #463024 is a reply to message #463005] Sun, 04 February 2007 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: canterburry.gmail.com

Thanks for the reply. Is that really the best way...or...the most used way?

-HC


"Snjezana Peco" <snjeza.peco@gmail.com> wrote in message
news:eq2e4q$lhs$2@utils.eclipse.org...
>
> Save the reference of your object in the Plugin (Activator) class.
>
> Snjeza
>
> HC wrote:
>> Hey,
>>
>> I am looking for a place to store runtime session parameters. These do
>> not need to be persistent and are not necessarily related to any
>> particular resource.
>>
>> My particular scenario is: I obtain a reference to extending plug-in B
>> from an extension point in plug-in A. I just want a convenient and known
>> place to store the reference to plug-in B inside some session parameter
>> in A so that other parts of plug-in A can easily access plug-in B's
>> reference. Thus, the parameter does not need persistence past the
>> session.
>>
>> I have tried looking for session parameters but all I find relates to
>> session parameters for a particular resource (typically a file in the
>> workspace) . I just need something like System.setProperties(string, obj)
>> but local to my plug-in.
>>
>> Thanks
>> -HC
Re: storing session parameters [message #463025 is a reply to message #463004] Sun, 04 February 2007 07:22 Go to previous message
Vyas  is currently offline Vyas Friend
Messages: 8
Registered: July 2009
Junior Member
Cookies?
Previous Topic:Custom Status Line?
Next Topic:Headless product export for webstart
Goto Forum:
  


Current Time: Wed Jan 15 10:27:25 GMT 2025

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

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

Back to the top