* This initializes our filter editor. We create a filter, serialize in our settings and then use that to create the
* editor. Lastly, we add an observer to the editor so we can save our changes immediately (useful for IDE
* integration where we don't control the settings).
*/
private void initializeFilterEditor() {
BasicProjectAndTaskFilter filter = new BasicProjectAndTaskFilter();
filter.serializeIn(settingsNode);
editor = new BasicFilterEditor(filter);
editor.addFilterEditorObserver(new BasicFilterEditor.FilterEditorObserver() {
public void filterChanged() { //whenever changes are made, save them.
editor.createFilter().serializeOut(settingsNode);