Weer een debug/optimalisatie ronde gehad....
This commit is contained in:
@@ -5,7 +5,6 @@ import mimis.event.EventRouter;
|
|||||||
import mimis.event.Feedback;
|
import mimis.event.Feedback;
|
||||||
import mimis.event.feedback.TextFeedback;
|
import mimis.event.feedback.TextFeedback;
|
||||||
import mimis.exception.worker.ActivateException;
|
import mimis.exception.worker.ActivateException;
|
||||||
import mimis.exception.worker.DeactivateException;
|
|
||||||
import mimis.sequence.SequenceParser;
|
import mimis.sequence.SequenceParser;
|
||||||
import mimis.util.ArrayCycle;
|
import mimis.util.ArrayCycle;
|
||||||
import mimis.value.Action;
|
import mimis.value.Action;
|
||||||
@@ -72,10 +71,10 @@ public class Mimis extends EventHandler {
|
|||||||
eventRouter.set(applicationCycle.current());
|
eventRouter.set(applicationCycle.current());
|
||||||
add(new TextFeedback("Current application: " + applicationCycle.current().title()));
|
add(new TextFeedback("Current application: " + applicationCycle.current().title()));
|
||||||
}
|
}
|
||||||
super.activate(false);
|
super.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() throws DeactivateException {
|
public void stop() {
|
||||||
super.stop();
|
super.stop();
|
||||||
log.debug("Stop GUI");
|
log.debug("Stop GUI");
|
||||||
gui.stop();
|
gui.stop();
|
||||||
@@ -99,11 +98,7 @@ public class Mimis extends EventHandler {
|
|||||||
add(new TextFeedback("Previous application: " + applicationCycle.current().title()));
|
add(new TextFeedback("Previous application: " + applicationCycle.current().title()));
|
||||||
break;
|
break;
|
||||||
case EXIT:
|
case EXIT:
|
||||||
try {
|
stop();
|
||||||
stop();
|
|
||||||
} catch (DeactivateException e) {
|
|
||||||
log.error(e);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user