Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-04-23 19:30:13 +0000
committerPawel Piech2010-04-23 19:30:13 +0000
commitded34fbdbb1196552dc997a6a0b5ac7c0a4398fc (patch)
tree79b78bf30a484f7e5b72923a45de864e89e003c0 /dsf/org.eclipse.cdt.examples.dsf
parentecdf96f548926737fcbe469abe5839d56682dea1 (diff)
downloadorg.eclipse.cdt-ded34fbdbb1196552dc997a6a0b5ac7c0a4398fc.tar.gz
org.eclipse.cdt-ded34fbdbb1196552dc997a6a0b5ac7c0a4398fc.tar.xz
org.eclipse.cdt-ded34fbdbb1196552dc997a6a0b5ac7c0a4398fc.zip
Added a red color for a triggered alarm.
Diffstat (limited to 'dsf/org.eclipse.cdt.examples.dsf')
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TimersVMNode.java5
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggersVMNode.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TimersVMNode.java b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TimersVMNode.java
index 29537e42df..6999e3895e 100644
--- a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TimersVMNode.java
+++ b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TimersVMNode.java
@@ -23,6 +23,7 @@ import org.eclipse.cdt.dsf.ui.viewmodel.properties.IElementPropertiesProvider;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.IPropertiesUpdate;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelAttribute;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelColumnInfo;
+import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelForeground;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelImage;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelText;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.PropertiesBasedLabelProvider;
@@ -33,6 +34,7 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProv
import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
+import org.eclipse.swt.graphics.RGB;
/**
@@ -55,7 +57,8 @@ class TimersVMNode extends AbstractDMVMNode
LabelColumnInfo idCol = new LabelColumnInfo(
new LabelAttribute[] {
- new LabelText("Timer #{0}", new String[] { PROP_TIMER_NUMBER }),
+ new LabelText("Timer #{0}", new String[] { PROP_TIMER_NUMBER }),
+ new LabelForeground(new RGB(0, 0, 255)),
new LabelImage(DsfExamplesPlugin.getDefault().getImageRegistry().
getDescriptor(DsfExamplesPlugin.IMG_TIMER))
});
diff --git a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggersVMNode.java b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggersVMNode.java
index 307877527c..800ddb362d 100644
--- a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggersVMNode.java
+++ b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggersVMNode.java
@@ -23,6 +23,7 @@ import org.eclipse.cdt.dsf.ui.viewmodel.properties.IElementPropertiesProvider;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.IPropertiesUpdate;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelAttribute;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelColumnInfo;
+import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelForeground;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelImage;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.LabelText;
import org.eclipse.cdt.dsf.ui.viewmodel.properties.PropertiesBasedLabelProvider;
@@ -38,6 +39,7 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.jface.viewers.TextCellEditor;
+import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Composite;
@@ -61,6 +63,7 @@ class TriggersVMNode extends AbstractDMVMNode
LabelColumnInfo idCol = new LabelColumnInfo(
new LabelAttribute[] {
new LabelText("Trigger #{0}", new String[] { PROP_TRIGGER_NUMBER }),
+ new LabelForeground(new RGB(255, 0, 0)),
new LabelImage(DsfExamplesPlugin.getDefault().getImageRegistry().
getDescriptor(DsfExamplesPlugin.IMG_ALARM))
});

Back to the top