storing session parameters [message #463004] |
Sat, 03 February 2007 16:41 |
Eclipse User |
|
|
|
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 #463024 is a reply to message #463005] |
Sun, 04 February 2007 02:57 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03783 seconds