Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2015-03-04 16:48:08 +0000
committerMarc Khouzam2015-03-04 16:48:08 +0000
commit7a245a252038e51f568e236a137fa6b6262eb735 (patch)
tree84ed94cdfa6570bebb07bf968d4e210323a743b8 /dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui
parentf517c704bc0d6df4a718503a25f8e3fec21f1439 (diff)
downloadorg.eclipse.cdt-7a245a252038e51f568e236a137fa6b6262eb735.tar.gz
org.eclipse.cdt-7a245a252038e51f568e236a137fa6b6262eb735.tar.xz
org.eclipse.cdt-7a245a252038e51f568e236a137fa6b6262eb735.zip
Bug 460837 - Provide setter for m_loadMetersEnabled
Change-Id: Ia7e4077146bead882a1dc5d21a04d176e54e07ac Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/actions/EnableLoadMetersAction.java2
-rwxr-xr-xdsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java12
2 files changed, 9 insertions, 5 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/actions/EnableLoadMetersAction.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/actions/EnableLoadMetersAction.java
index 45b1691a385..5716e663ddb 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/actions/EnableLoadMetersAction.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/actions/EnableLoadMetersAction.java
@@ -69,7 +69,7 @@ public class EnableLoadMetersAction extends VisualizerAction {
if (m_visualizer != null) {
// toggle enabled state
m_enabled = !m_enabled;
- m_visualizer.setLoadMetersEnabled(m_enabled);
+ m_visualizer.enableLoadMeters(m_enabled);
m_visualizer.refresh();
setText(getTextToDisplay());
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 3e6d492ecc3..142cf168c2c 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
@@ -372,9 +372,9 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer implements IPin
/**
* enables or disables the load meters
*/
- public void setLoadMetersEnabled(boolean enabled) {
- if (m_loadMetersEnabled.value() == enabled) return;
- m_loadMetersEnabled.set(enabled);
+ public void enableLoadMeters(boolean enabled) {
+ if (getLoadMetersEnabled() == enabled) return;
+ setLoadMetersEnabled(enabled);
// save load meter enablement in model
fDataModel.setLoadMetersEnabled(getLoadMetersEnabled());
disposeLoadMeterTimer();
@@ -385,7 +385,11 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer implements IPin
public boolean getLoadMetersEnabled() {
return m_loadMetersEnabled != null? m_loadMetersEnabled.value() : false;
}
-
+
+ public void setLoadMetersEnabled(boolean enabled) {
+ m_loadMetersEnabled.set(enabled);
+ }
+
// --- canvas management ---
/** Creates and returns visualizer canvas control. */

Back to the top