summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-31 09:33:00 (EDT)
committerEike Stepper2007-07-31 09:33:00 (EDT)
commite9f926b24eb65b918ad165518752ed83a8620a2f (patch)
tree9ebd126feaeecdf3ba3a1c1d2d4340d19481bd9b
parent8ba36a249e4aeb3546eefd056dd040070aff4a2d (diff)
downloadcdo-e9f926b24eb65b918ad165518752ed83a8620a2f.zip
cdo-e9f926b24eb65b918ad165518752ed83a8620a2f.tar.gz
cdo-e9f926b24eb65b918ad165518752ed83a8620a2f.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorDialog.java19
-rw-r--r--plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorLogDialog.java25
2 files changed, 40 insertions, 4 deletions
diff --git a/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorDialog.java b/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorDialog.java
index 04f829f..a2de8f0 100644
--- a/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorDialog.java
+++ b/plugins/org.eclipse.net4j.ui/src/org/eclipse/net4j/ui/widgets/MonitorDialog.java
@@ -54,7 +54,24 @@ public class MonitorDialog extends ProgressMonitorDialog
{
try
{
- log = new MonitorLogDialog(getShell(), getShellStyle(), "Log of " + title, "See the log for details.", settings);
+ log = new MonitorLogDialog(getShell(), getShellStyle(), "Log of " + title, "See the log for details.", settings)
+ {
+ @Override
+ public void handleMessage(String msg, int level)
+ {
+ if (msg.startsWith("Woven class "))
+ {
+ setTextStyle(getRed());
+ append(msg);
+ append("\n");
+ }
+ else
+ {
+ super.handleMessage(msg, level);
+ }
+ }
+ };
+
super.run(fork, cancelable, new IRunnableWithProgress()
{
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
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 28df88e..e766013 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
@@ -11,17 +11,21 @@ import org.eclipse.swt.widgets.Shell;
/**
* @author Eike Stepper
*/
-public final class MonitorLogDialog extends LogDialog implements OMMonitorHandler
+public class MonitorLogDialog extends LogDialog implements OMMonitorHandler
{
private TextStyle normal;
private TextStyle blue;
+ private TextStyle red;
+
public MonitorLogDialog(Shell parentShell, int shellStyle, String title, String message, IDialogSettings settings)
{
super(parentShell, shellStyle, title, message, settings);
- normal = new TextStyle(null, Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY), null);
- blue = new TextStyle(null, Display.getCurrent().getSystemColor(SWT.COLOR_DARK_BLUE), null);
+ Display display = Display.getCurrent();
+ normal = new TextStyle(null, display.getSystemColor(SWT.COLOR_DARK_GRAY), null);
+ blue = new TextStyle(null, display.getSystemColor(SWT.COLOR_DARK_BLUE), null);
+ red = new TextStyle(null, display.getSystemColor(SWT.COLOR_DARK_RED), null);
}
public MonitorLogDialog(Shell parentShell, String title, String message, IDialogSettings settings)
@@ -29,6 +33,21 @@ public final class MonitorLogDialog extends LogDialog implements OMMonitorHandle
this(parentShell, DEFAULT_SHELL_STYLE, title, message, settings);
}
+ public TextStyle getNormal()
+ {
+ return normal;
+ }
+
+ public TextStyle getBlue()
+ {
+ return blue;
+ }
+
+ public TextStyle getRed()
+ {
+ return red;
+ }
+
public void handleTask(String task, int level)
{
setTextStyle(blue);