diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-31 02:24:26 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-31 02:24:26 +0000 |
| commit | 2b4c9a57ba522cd8dd01dc1f1d2761b66f97e4f2 (patch) | |
| tree | 97350ff115f7a3751e028c4959256b7a3627c1fe /sources/core | |
| parent | 5a41d318c3460beaaeed9d44a1aa3c376956f7b2 (diff) | |
more elegant way to remove not relevantmessages.
Diffstat (limited to 'sources/core')
| -rw-r--r-- | sources/core/VSTask.java | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 85e7dd6..5039612 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -64,12 +64,6 @@ public class VSTask implements Comparable { /** The simulation's default prefs. */ private VSPrefs prefs; - /** The message line, which gets drawn by the simulation canvas. this - * reference is needed here in order to remove the message line from - * the painting area if the message is not relevant - */ - private simulator.VSSimulatorCanvas.VSMessageLine messageLine; - /** The task is programmed. The task will be still in the task manager * after reset. */ @@ -214,28 +208,13 @@ public class VSTask implements Comparable { } /** - * Sets the message line. - * - * @param messageLine the message line - */ - public void setMessageLine(simulator.VSSimulatorCanvas.VSMessageLine - messageLine) { - this.messageLine = messageLine; - } - - /** * Runs the task. */ public void run() { if (event.getProcess() == null) event.init(process); - if (messageLine != null) { - if (!event.onStart()) - process.getSimulatorCanvas().removeMessageLine(messageLine); - } else { - event.onStart(); - } + event.onStart(); } /** |
