Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Dumais2015-02-25 12:07:37 +0000
committerGerrit Code Review @ Eclipse.org2015-02-26 20:07:53 +0000
commit2ec6e11b2b13146114bce75b9655e5fc9452b39e (patch)
tree9ea90b6a7a503e427e468759632eb9947662543a /dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui
parent3642fbc5cd318bbb1bcb7c12e1b90390b815c666 (diff)
downloadorg.eclipse.cdt-2ec6e11b2b13146114bce75b9655e5fc9452b39e.tar.gz
org.eclipse.cdt-2ec6e11b2b13146114bce75b9655e5fc9452b39e.tar.xz
org.eclipse.cdt-2ec6e11b2b13146114bce75b9655e5fc9452b39e.zip
Bug 460737 - [visualizer] enable MV to know which (cloned) instance it
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui')
-rwxr-xr-xdsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
index f6a2007482f..d54ecc68503 100755
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
@@ -23,6 +23,7 @@
* Marc Dumais (Ericsson) - Bug 453206
* Marc Dumais (Ericsson) - Bug 458076
* Alvaro Sanchez-Leon (Ericsson) - Bug 459114 - override construction of the data model
+ * Marc Dumais (Ericsson) - Bug 460737
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
@@ -144,6 +145,10 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer implements IPin
/** Debug view selection changed listener, attached to Debug View. */
protected ISelectionChangedListener m_debugViewSelectionChangedListener = null;
+ /** Unique id that differentiates the possible multiple instances of the MV.
+ * It's derived from the secondary view Part id of the view associated to the
+ * current instance of the MV. */
+ protected String m_visualizerInstanceId = null;
// This is used to cache the CPU and core
// contexts, each time the model is recreated. This way
@@ -261,8 +266,14 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer implements IPin
public void initializeVisualizer() {
fEventListener = new MulticoreVisualizerEventListener(this);
m_cpuCoreContextsCache = new ArrayList<IDMContext>();
+ m_visualizerInstanceId = getViewer().getView().getViewSite().getSecondaryId();
+
+ // The first visualizer view will have a null secondary id - override that
+ if (m_visualizerInstanceId == null) {
+ m_visualizerInstanceId = "0"; //$NON-NLS-1$
+ }
}
-
+
/**
* Sets-up the timer associated to load meters refresh
*/

Back to the top