- * Notifies all listeners 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
- */
- private void fireLoadingNodesFailed(String directory, Throwable throwable) {
- for (CoreListener coreListener: coreListeners) {
- coreListener.loadingNodesFailed(directory, throwable);
- }
- }
-
- /**
- * Notifies all listeners that the nodes were saved successfully.
- *
- * @param directory
- * The directory the nodes were saved to
- */
- private void fireSavingNodesDone(String directory) {
- for (CoreListener coreListener: coreListeners) {
- coreListener.savingNodesDone(directory);
- }
- }
-
- /**
- * Notifies all listeners 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
- */
- private void fireSavingNodesFailed(String directory, Throwable throwable) {
- for (CoreListener coreListener: coreListeners) {
- coreListener.savingProjectsFailed(directory, throwable);
- }
- }
-
- /**
- * Notifies all core listeners that the core has loaded and is ready to run.
- */
- private void fireCoreLoaded() {
- for (CoreListener coreListener: coreListeners) {
- coreListener.coreLoaded();
- }
- }
-
- /**
- * Notifies all listeners that the core was stopped.
- */
- private void fireCoreStopped() {
- for (CoreListener coreListener: coreListeners) {
- coreListener.coreStopped();
- }
- }
-
- //
- // ACCESSORS
- //
-
- /**
- * Returns the project manager.
- *
- * @return The project manager
- */
- public ProjectManager getProjectManager() {
- return projectManager;
- }
-
- /**
- * Sets the project manager to use.
- *
- * @param projectManager
- * The project manager to use
- */
- public void setProjectManager(ProjectManager projectManager) {
- this.projectManager = projectManager;
- }
-
- /**
- * Returns the node manager.
- *
- * @return The node manager