mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 460737 - [visualizer] enable MV to know which (cloned) instance it
is Change-Id: I586dedab6df808f9e68600fa55fa1169b44defaf
This commit is contained in:
parent
3642fbc5cd
commit
2ec6e11b2b
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue