Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-05-13 06:28:26 -0400
committerUwe Stieber2013-05-13 06:28:26 -0400
commit6a6858d07bbb2eed39cc99cf478e44a2755af4aa (patch)
treec503868a84bb4004495fdc19c901ac1cd6670b54
parent622d55abdddbbb16b5a02aebbe0a4f3ae28c8298 (diff)
downloadorg.eclipse.tcf-6a6858d07bbb2eed39cc99cf478e44a2755af4aa.tar.gz
org.eclipse.tcf-6a6858d07bbb2eed39cc99cf478e44a2755af4aa.tar.xz
org.eclipse.tcf-6a6858d07bbb2eed39cc99cf478e44a2755af4aa.zip
Target Explorer: Abstract event handler can be customized to be used for other common navigator based parts than the system manager
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/events/AbstractEventListener.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/events/AbstractEventListener.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/events/AbstractEventListener.java
index ca5491ad8..b15ff9159 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/events/AbstractEventListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/events/AbstractEventListener.java
@@ -56,7 +56,7 @@ public abstract class AbstractEventListener extends org.eclipse.tcf.te.ui.events
IWorkbenchWindow window = workbench != null ? workbench.getActiveWorkbenchWindow() : null;
IWorkbenchPage page = window != null ? window.getActivePage() : null;
if (page != null) {
- IViewPart part = page.findView(IUIConstants.ID_EXPLORER);
+ IViewPart part = page.findView(getCommonNavigatorPartId());
if (part instanceof CommonNavigator) {
viewer = ((CommonNavigator)part).getCommonViewer();
}
@@ -66,6 +66,15 @@ public abstract class AbstractEventListener extends org.eclipse.tcf.te.ui.events
}
/**
+ * Returns the part id of the common navigator view to refresh.
+ *
+ * @return The part id of the common navigator view to refresh-
+ */
+ protected String getCommonNavigatorPartId() {
+ return IUIConstants.ID_EXPLORER;
+ }
+
+ /**
* Checks the viewers selection if it needs to get re-applied in order to
* trigger a selection changed event.
*

Back to the top