Grote aanpassingen gedaan tbv. selector: een worker kan nu active en deactive zijn. Initialise werkt nu anders.

This commit is contained in:
Bram Veenboer
2011-05-16 20:09:19 +00:00
parent a67478e616
commit 33e69c141a
29 changed files with 194 additions and 112 deletions

View File

@@ -18,7 +18,7 @@ public abstract class CMDApplication extends Application {
this.title = title;
}
public void initialise() {
protected void initialise() {
String key = String.format("%s\\%s", REGISTRY, program);
// Check of naam is gevonden in register
String path = Native.getValue(key);
@@ -32,10 +32,17 @@ public abstract class CMDApplication extends Application {
}
}
public void exit() {
public void activate() {
if (!active) {
initialise();
}
super.activate();
}
public void deactivate() {
if (process != null) {
process.destroy();
}
super.exit();
super.deactivate();
}
}