summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-31 10:12:51 (EDT)
committerEike Stepper2007-07-31 10:12:51 (EDT)
commitc27d9158578538ac786f00a720ce2c4c7feef436 (patch)
treee909b874321e1d607beac5ca04bc00585a583d95
parent17cd61c152db6b255ecb5a38981e23db5322d48a (diff)
downloadcdo-c27d9158578538ac786f00a720ce2c4c7feef436.zip
cdo-c27d9158578538ac786f00a720ce2c4c7feef436.tar.gz
cdo-c27d9158578538ac786f00a720ce2c4c7feef436.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java b/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java
index f7ad6dc..4882315 100644
--- a/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java
+++ b/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java
@@ -15,22 +15,22 @@ public class MonitorLogDialog extends LogDialog implements OMMonitorHandler
{
private String emphasizePrefix;
- private TextStyle normal;
+ private TextStyle taskStyle;
- private TextStyle blue;
+ private TextStyle normalStyle;
- private TextStyle red;
+ private TextStyle emphasizedStyle;
- private TextStyle green;
+ private TextStyle problemStyle;
public MonitorLogDialog(Shell parentShell, int shellStyle, String title, String message, IDialogSettings settings)
{
super(parentShell, shellStyle, title, message, settings);
Display display = Display.getCurrent();
- normal = new TextStyle(null, display.getSystemColor(SWT.COLOR_DARK_GRAY), null);
- blue = new TextStyle(null, display.getSystemColor(SWT.COLOR_BLUE), null);
- red = new TextStyle(null, display.getSystemColor(SWT.COLOR_RED), null);
- green = new TextStyle(null, display.getSystemColor(SWT.COLOR_GREEN), null);
+ taskStyle = new TextStyle(null, display.getSystemColor(SWT.COLOR_BLACK), null);
+ normalStyle = new TextStyle(null, display.getSystemColor(SWT.COLOR_DARK_GRAY), null);
+ emphasizedStyle = new TextStyle(null, display.getSystemColor(SWT.COLOR_BLUE), null);
+ problemStyle = new TextStyle(null, display.getSystemColor(SWT.COLOR_RED), null);
}
public MonitorLogDialog(Shell parentShell, String title, String message, IDialogSettings settings)
@@ -48,29 +48,29 @@ public class MonitorLogDialog extends LogDialog implements OMMonitorHandler
this.emphasizePrefix = emphasizePrefix;
}
- public TextStyle getNormal()
+ public TextStyle getNormalStyle()
{
- return normal;
+ return normalStyle;
}
- public TextStyle getBlue()
+ public TextStyle getTaskStyle()
{
- return blue;
+ return taskStyle;
}
- public TextStyle getRed()
+ public TextStyle getProblemStyle()
{
- return red;
+ return problemStyle;
}
- public TextStyle getGreen()
+ public TextStyle getEmphasizedStyle()
{
- return green;
+ return emphasizedStyle;
}
public void handleTask(String task, int level)
{
- setTextStyle(blue);
+ setTextStyle(taskStyle);
append(task);
append("\n");
}
@@ -79,11 +79,11 @@ public class MonitorLogDialog extends LogDialog implements OMMonitorHandler
{
if (msg.startsWith(emphasizePrefix))
{
- setTextStyle(green);
+ setTextStyle(emphasizedStyle);
}
else
{
- setTextStyle(normal);
+ setTextStyle(normalStyle);
}
append(msg);
@@ -93,7 +93,7 @@ public class MonitorLogDialog extends LogDialog implements OMMonitorHandler
@Override
public void append(Throwable t)
{
- setTextStyle(red);
+ setTextStyle(problemStyle);
super.append(t);
}
} \ No newline at end of file