This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Databinding, or Ilistener2 or other and Data Retention post application shutdown. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Databinding, or Ilistener2 or other and Data Retention post application shutdown." Watch "Databinding, or Ilistener2 or other and Data Retention post application shutdown." New topic
Author

Databinding, or Ilistener2 or other and Data Retention post application shutdown.

Jason Robinson
Greenhorn

Joined: Jan 07, 2013
Posts: 1
Thanks for reading. I've been stuck on this for quite some time. I'm relatively new and seem to be plateauing in the next step(s) of my application.

The application attempts to model itself after the Eclipse Task List (Right Click - Opens a new Task (as an editor) with a user input SWT text widget to enter a new task.

When the user enters text I have marked the editor as dirty and have implemented the dirtyStateChanged() method. This in turn provides a prompt when I attempt to close the editor without saving! So far so good.

1. The first problem I am having is how to update the task tree that I originally clicked on to build a new task. I've read a number of articles from Vogella's databinding tutorial to many to IListeners etc. One item I learned is that SWT Tree Widget is not supported in data binding(at least I think). What is the best approach here!?!

2. The second problem I'm having is that I have no concept of where to save that data to retain it after the application is closed. Text file? What is standard practice.

Thanks for any advice, links etc!

- Jason
 
wood burning stoves
 
subject: Databinding, or Ilistener2 or other and Data Retention post application shutdown.
 
Similar Threads
Problem w/shutdown hook thread & serialization
Need help on Multiple Column Tree - SWT - Important
Program.launch of Mac OSX TextEdit can cause problems
Problem with serialization via shutdown hook thread
embedding a Processing Applet in SWT (Eclipse RCP), otherwise I'd need a text editor engine