summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-08-21 11:20:54 (EDT)
committerCarsten Drossel2008-08-21 11:20:54 (EDT)
commitc30e0c8491229f08aa90c3c5663a0c5cddfd5022 (patch)
treeb413c39630581eb01eb22f2d0739aaa988c7695f
parent783280829bf6172920cec93128cbdbbba86733b4 (diff)
downloadorg.eclipse.riena-c30e0c8491229f08aa90c3c5663a0c5cddfd5022.zip
org.eclipse.riena-c30e0c8491229f08aa90c3c5663a0c5cddfd5022.tar.gz
org.eclipse.riena-c30e0c8491229f08aa90c3c5663a0c5cddfd5022.tar.bz2
changed parentId in NavigationArgument from String to INavigationNodeId
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/NavigationArgument.java9
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/PresentationProviderService.java2
2 files changed, 6 insertions, 5 deletions
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/NavigationArgument.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/NavigationArgument.java
index d6104bc..2916f27 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/NavigationArgument.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/NavigationArgument.java
@@ -18,7 +18,7 @@ package org.eclipse.riena.navigation;
*/
public class NavigationArgument {
private Object argument;
- private String parentNodeId;
+ private INavigationNodeId parentNodeId;
private INavigationArgumentListener argumentListener;
/**
@@ -26,7 +26,8 @@ public class NavigationArgument {
* @param argumentListener
* @param parentNodeId
*/
- public NavigationArgument(Object argument, INavigationArgumentListener argumentListener, String parentNodeId) {
+ public NavigationArgument(Object argument, INavigationArgumentListener argumentListener,
+ INavigationNodeId parentNodeId) {
super();
this.argument = argument;
this.argumentListener = argumentListener;
@@ -69,7 +70,7 @@ public class NavigationArgument {
/**
* @return the parentNodeId
*/
- public String getParentNodeId() {
+ public INavigationNodeId getParentNodeId() {
return parentNodeId;
}
@@ -77,7 +78,7 @@ public class NavigationArgument {
* @param parentNodeId
* the parentNodeId to set
*/
- public void setParentNode(String parentNodeId) {
+ public void setParentNode(INavigationNodeId parentNodeId) {
this.parentNodeId = parentNodeId;
}
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/PresentationProviderService.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/PresentationProviderService.java
index b41f78c..da6df76 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/PresentationProviderService.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/PresentationProviderService.java
@@ -79,7 +79,7 @@ public class PresentationProviderService implements IPresentationProviderService
targetNode = builder.buildNode(targetId, argument);
INavigationNode parentNode = null;
if (argument != null && argument.getParentNodeId() != null) {
- parentNode = provideNode(sourceNode, new NavigationNodeId(argument.getParentNodeId()), null);
+ parentNode = provideNode(sourceNode, argument.getParentNodeId(), null);
} else {
parentNode = provideNode(sourceNode, new NavigationNodeId(navigationNodeTypeDefiniton
.getParentTypeId()), null);