- * @param directory
- * The directory the projects were saved to
- */
- private void fireSavingProjectsDone(String directory) {
- for (CoreListener coreListener: coreListeners) {
- coreListener.savingProjectsDone(directory);
- }
- }
-
- /**
- * Notifies all listeners that the projects could not be saved.
- *
- * @param directory
- * The directory the projects were to be saved to
- * @param throwable
- * The exception that occured when saving the projects
- */
- private void fireSavingProjectsFailed(String directory, Throwable throwable) {
- for (CoreListener coreListener: coreListeners) {
- coreListener.savingProjectsFailed(directory, throwable);
- }
- }
-
- /**
- * Notifies all listeners that the nodes were successfully loaded.
- *
- * @param directory
- * The directory the nodes were loaded from
+ * @param node
+ * The node to add
+ * @return <code>true</code> if the node was added, <code>false</code> if it
+ * was not added because it was already known
+ * @throws UnknownHostException
+ * if the hostname of the node can not be resolved