Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-03-28 03:02:14 -0400
committerUwe Stieber2013-03-28 03:02:14 -0400
commitd725e3b69ab9329268a57eca1efc59d7d790ec51 (patch)
tree3c78034c1fe3e57836c041a800580f2e902f4edb /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parent9f28fd160e04c277307f7807c743031f84f3a681 (diff)
downloadorg.eclipse.tcf-d725e3b69ab9329268a57eca1efc59d7d790ec51.tar.gz
org.eclipse.tcf-d725e3b69ab9329268a57eca1efc59d7d790ec51.tar.xz
org.eclipse.tcf-d725e3b69ab9329268a57eca1efc59d7d790ec51.zip
Target Explorer: Do not auto-close open editors for static peers if the associated remote peer disappears
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/navigator/ModelListener.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ModelListener.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ModelListener.java
index a9b136290..5af6cf57c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ModelListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ModelListener.java
@@ -77,8 +77,9 @@ public class ModelListener extends ModelAdapter {
if (listener != null) {
listener.locatorModelChanged(model, peerModel, added);
}
- // If no -> Default behavior is to close the editor (if any)
- else if (!added) {
+ // If no -> Default behavior for dynamic discovered peers is to close the editor (if any).
+ // For static peers, leave the editor untouched.
+ else if (!added && !peerModel.isStatic()) {
Display display = PlatformUI.getWorkbench().getDisplay();
if (display != null && !display.isDisposed()) {
display.asyncExec(new Runnable() {

Back to the top