Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Static in Xtend(Maintaining data across classes in Xtend)
Static in Xtend [message #1117373] Thu, 26 September 2013 11:20 Go to next message
Arshad Adavani is currently offline Arshad AdavaniFriend
Messages: 163
Registered: July 2013
Location: Bangalore
Senior Member
Hi all,
I have one static object in ClassA:
public static obj=new LinkedList<String>
And I am adding some data to it.

When I try to access this static object from another class "ClassB" the data is lost.
Can anyone tell me how to avoid this?

Thanks in advance Smile

Re: Static in Xtend [message #1117387 is a reply to message #1117373] Thu, 26 September 2013 11:37 Go to previous message
Moritz Eysholdt is currently offline Moritz EysholdtFriend
Messages: 161
Registered: July 2009
Location: Kiel, Germany
Senior Member
You might want to look at the generated Java code to answer this question and/or ask again at the Xtend forum:!forum/xtend-lang
Previous Topic:Declarative scope provider disabling qualified namespace
Next Topic:Old vs new serializer
Goto Forum:

Current Time: Wed Jul 08 05:48:30 GMT 2020

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

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

Back to the top