Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-09-13 03:50:11 -0400
committerTobias Schwarz2013-09-13 03:50:11 -0400
commitdbdaaa09a829b4b77a56e13d1391e0c0d28b8164 (patch)
tree0d59f7b3bc76cd7e90f7918f811e7b5ecbe5bb78 /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parentb416bbd0af7a745de3c184f50585db55b03de8ab (diff)
downloadorg.eclipse.tcf-dbdaaa09a829b4b77a56e13d1391e0c0d28b8164.tar.gz
org.eclipse.tcf-dbdaaa09a829b4b77a56e13d1391e0c0d28b8164.tar.xz
org.eclipse.tcf-dbdaaa09a829b4b77a56e13d1391e0c0d28b8164.zip
Target Explorer: fix default selection not set when open peer with
dialog "select existing"
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/actions/AbstractPeerTypeToolbarAction.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/actions/AbstractPeerTypeToolbarAction.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/actions/AbstractPeerTypeToolbarAction.java
index b330c2cd0..297d0842e 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/actions/AbstractPeerTypeToolbarAction.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/actions/AbstractPeerTypeToolbarAction.java
@@ -328,6 +328,15 @@ public abstract class AbstractPeerTypeToolbarAction extends Action implements IA
}
catch (PartInitException e) {
}
+ if (((IStructuredSelection)selection).getFirstElement() instanceof IPeerModel) {
+ IPeerModel peerModel = (IPeerModel)((IStructuredSelection)selection).getFirstElement();
+ HistoryManager.getInstance().add(getPeerTypeId(), peerModel.getPeerId());
+ ISelectionService selService = ServiceManager.getInstance().getService(ISelectionService.class);
+ if (selService != null) {
+ selService.setDefaultSelection(peerModel);
+ }
+
+ }
}
}
}

Back to the top