public interface CoreListener {
//
- // configuration stuff
+ // project configuration
//
/**
+ * Notifies a listener that loading the projects finished successfully.
+ *
+ * @param directory
+ * The directory the nodes were loaded from
+ */
+ public void loadingProjectsDone(String directory);
+
+ /**
* Notifies all listeners that loading the projects has failed.
*
* @param directory
public void savingProjectsFailed(String directory, Throwable throwable);
//
+ // node configuration
+ //
+
+ /**
+ * Notifies a listener that the nodes were successfully loaded.
+ *
+ * @param directory
+ * The directory the nodes were loaded from
+ */
+ public void loadingNodesDone(String directory);
+
+ /**
+ * Notifies a listener that loading the nodes has failed.
+ *
+ * @param directory
+ * The directory the nodes were loaded from
+ * @param throwable
+ * The exception that occured while loading the nodes
+ */
+ public void loadingNodesFailed(String directory, Throwable throwable);
+
+ /**
+ * Notifies a listener that the nodes were successfully saved.
+ *
+ * @param directory
+ * The directory the nodes were saved to
+ */
+ public void savingNodesDone(String directory);
+
+ /**
+ * Notifies a listener that saving the nodes has failed.
+ *
+ * @param directory
+ * The directory the nodes were saved to
+ * @param throwable
+ * The exception that occured while saving the nodes
+ */
+ public void savingNodesFailed(String directory, Throwable throwable);
+
+ //
// basic core functionality
//