Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-01-08 03:04:07 -0500
committerTobias Schwarz2014-01-08 03:04:07 -0500
commitf713485829fb168f43a97dd19225a6111fffea34 (patch)
tree0d4f713da696f993340f924dfe9301c8a6a04370 /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui
parentee4fd08e37dde4387f36c958dacf76f20f9ee739 (diff)
downloadorg.eclipse.tcf-f713485829fb168f43a97dd19225a6111fffea34.tar.gz
org.eclipse.tcf-f713485829fb168f43a97dd19225a6111fffea34.tar.xz
org.eclipse.tcf-f713485829fb168f43a97dd19225a6111fffea34.zip
Target Explorer: add transport name to property access service
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/NewTargetWizard.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/NewTargetWizard.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/NewTargetWizard.java
index f54b7e80b..6fd46f685 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/NewTargetWizard.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/NewTargetWizard.java
@@ -97,10 +97,12 @@ public class NewTargetWizard extends AbstractWizard implements INewWizard {
String peerName = attrs.get(IPropertiesAccessServiceConstants.PROP_NAME);
String peerHost = attrs.get(IPropertiesAccessServiceConstants.PROP_ADDRESS);
String peerPort = attrs.get(IPropertiesAccessServiceConstants.PROP_PORT);
+ String transport = attrs.get(IPropertiesAccessServiceConstants.PROP_TRANSPORT_NAME);
data.setProperty(IPeer.ATTR_NAME, peerName);
data.setProperty(IPeer.ATTR_IP_HOST, peerHost);
data.setProperty(IPeer.ATTR_IP_PORT, peerPort);
+ data.setProperty(IPeer.ATTR_TRANSPORT_NAME, transport);
return data;
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
index ca703c01e..5882c4185 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
@@ -372,6 +372,9 @@ public class NewTargetWizardPage extends AbstractValidatingWizardPage implements
peerNameControl.setEditFieldControlText(data.getStringProperty(IPeer.ATTR_NAME));
}
+ if (data.containsKey(IPeer.ATTR_TRANSPORT_NAME) && transportTypeControl != null) {
+ transportTypeControl.setSelectedTransportType(data.getStringProperty(IPeer.ATTR_TRANSPORT_NAME));
+ }
IWizardConfigurationPanel panel = transportTypePanelControl != null ? transportTypePanelControl.getActiveConfigurationPanel() : null;
if (panel instanceof IDataExchangeNode) {
((IDataExchangeNode)panel).setupData(data);

Back to the top