how to save data after closing view

124 Views Asked by At

In a view I have a tree viewer. I set data in tree viewer. Now, I close application. Again I run application, Now again I have to set the data from beginning. I want that My data will saved, it will not vanished.

1

There are 1 best solutions below

0
On

You can use preferences.Copy your data in preferences, and while loading the tree view again get your data from preferences again.

refer this http://www.vogella.com/tutorials/EclipsePreferences/article.html