summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-07-15 04:39:39 (EDT)
committerCarsten Drossel2008-07-15 04:39:39 (EDT)
commit5ee06b6716a9a5d28434022b7f54edd9dbb694a6 (patch)
treecd95b05bc39951040927fa3428a83fccccd03f94
parent89f4168a2408dccc37c7fe7c57d617f98db96d9f (diff)
downloadorg.eclipse.riena-5ee06b6716a9a5d28434022b7f54edd9dbb694a6.zip
org.eclipse.riena-5ee06b6716a9a5d28434022b7f54edd9dbb694a6.tar.gz
org.eclipse.riena-5ee06b6716a9a5d28434022b7f54edd9dbb694a6.tar.bz2
using work area presentation factory to create and set the view controller in the swing presentation manager
-rw-r--r--org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/NavigationNodeViewController.java8
-rw-r--r--org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleNodeViewController.java17
2 files changed, 21 insertions, 4 deletions
diff --git a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/NavigationNodeViewController.java b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/NavigationNodeViewController.java
index 81bf436..8c42bdf 100644
--- a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/NavigationNodeViewController.java
+++ b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/NavigationNodeViewController.java
@@ -52,7 +52,7 @@ public abstract class NavigationNodeViewController<N extends INavigationNode<?>>
* later.
*/
public NavigationNodeViewController() {
- super();
+ this(null);
}
/**
@@ -65,12 +65,12 @@ public abstract class NavigationNodeViewController<N extends INavigationNode<?>>
*/
public NavigationNodeViewController(N navigationNode) {
- super();
-
ridgets = new HashMap<String, IRidget>();
propertyChangeListener = new PropertyChangeHandler();
- setNavigationNode(navigationNode);
+ if (navigationNode != null) {
+ setNavigationNode(navigationNode);
+ }
}
/**
diff --git a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleNodeViewController.java b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleNodeViewController.java
index eeb3fb5..d74c900 100644
--- a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleNodeViewController.java
+++ b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleNodeViewController.java
@@ -42,6 +42,23 @@ public class SubModuleNodeViewController extends NavigationNodeViewController<IS
registerDispatcherBuilder();
}
+ }
+
+ public SubModuleNodeViewController() {
+ this(null);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.riena.navigation.ui.controllers.NavigationNodeViewController
+ * #setNavigationNode(org.eclipse.riena.navigation.INavigationNode)
+ */
+ @Override
+ public void setNavigationNode(ISubModuleNode navigationNode) {
+ super.setNavigationNode(navigationNode);
+
getNavigationNode().addListener(new SubModuleNodeAdapter() {
/*