Static Objects [message #72416] |
Thu, 31 January 2008 08:01  |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
Hi!
until now, i wasn't aware that static objects belong to every session (pls
don't laugh :) ). thats a big problem because i need to use static objects
for a db connection for example. a single view has a static variable
because other views need to change/read this value and i can't deliver the
view object to every other objects to call the getter and setter.
so i need a way to put global objects (such as non-static db connection,
integers and strings) in my app so every other object can get acces to
it (PlatformUI... maybe??). until now i didn't find a way to do so
(IWorkbenchConfigurer provides getData() and setData() but i don't know
how to get access to from any class inside my application).
is there a way to set such global objects? another chance may be with
sessionsingleton, but thats not practicable since i just need global
objects that belongs to only one session.
help pls, this issue just screwed up my whole application because i didn't
know and realised it ://.
thx!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Static Objects [message #73338 is a reply to message #73231] |
Fri, 08 February 2008 23:36  |
Eclipse User |
|
|
|
Originally posted by: m.n.com
Hmmm. Not exactly sure. But there is this -
http://www.ibm.com/developerworks/opensource/library/os-ecli pse-richajax2/
and I looked at Test code downloaded with the RAP demo. It looks like
what you did.
Martin wrote:
> Hi,
>
> where did you find this? I worked this out for myself, is there any
> documentation about this somewhere? I did quite a huge amount of
> research for using the synergies between rap and rcp, and i would like
> to read, if my research brought the correct and efficient results:)
>
|
|
|
Powered by
FUDForum. Page generated in 0.04428 seconds