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 07:20 Go to next message
Arshad Adavani is currently offline Arshad Adavani
Messages: 100
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


Arshad
Re: Static in Xtend [message #1117387 is a reply to message #1117373] Thu, 26 September 2013 07:37 Go to previous message
Moritz Eysholdt is currently offline Moritz Eysholdt
Messages: 142
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: https://groups.google.com/forum/#!forum/xtend-lang
Previous Topic:Declarative scope provider disabling qualified namespace
Next Topic:Old vs new serializer
Goto Forum:
  


Current Time: Thu Aug 28 07:29:05 EDT 2014

Powered by FUDForum. Page generated in 0.01613 seconds