Natures supposed to be stateless? [message #203754] |
Sun, 29 February 2004 17:15  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
When I make a nature and add it to the project, i dont get the same
nature back. Digging through the code I see that natures are cloned
upon adding. This means that natures must not supposed to maintain any
state!?!
I didn't know that nor read it anywhere.
Would someone verify that a Nature should not maintain any project state
information since the project is not guaranteed to return the same
instance at every request for the nature?
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
|
|
Re: Natures supposed to be stateless? [message #204562 is a reply to message #204418] |
Tue, 02 March 2004 09:53  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Natures by themselves are stateless. If a nature needs state, it needs
to reconstruct the state when it receives the setProject call. Eclipse
calls setProject after it creates the nature. No one else should call
setProject().
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03056 seconds