diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/BMotionAbstractWizard.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/BMotionAbstractWizard.java index 0624b6f94d2250e8078965a8f8d9f0d86ed2990a..b4524f4a38388e7cd806f2b95971b189fe425b33 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/BMotionAbstractWizard.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/BMotionAbstractWizard.java @@ -14,11 +14,19 @@ public abstract class BMotionAbstractWizard extends Wizard { private BControl control; + public BMotionAbstractWizard(BControl control) { + this.control = control; + } + @Override public boolean performFinish() { return prepareToFinish(); } + public BControl getBControl() { + return this.control; + } + public abstract String getName(); protected abstract Boolean prepareToFinish(); diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/observer/ObserverWizard.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/observer/ObserverWizard.java index d480959943c777c965b5d7d2a38b9b62be9a8cfc..252a7b622e5b7a998d97f86097650253eb368c67 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/observer/ObserverWizard.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/observer/ObserverWizard.java @@ -22,20 +22,15 @@ import de.bmotionstudio.gef.editor.model.BControl; */ public abstract class ObserverWizard extends BMotionAbstractWizard { - private BControl control; private Observer observer; protected Boolean observerDelete = false; public ObserverWizard(BControl control, Observer observer) { - this.control = control; + super(control); this.observer = observer; } - public BControl getBControl() { - return this.control; - } - public Observer getObserver() { return this.observer; } diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/scheduler/SchedulerWizard.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/scheduler/SchedulerWizard.java index fd6aa87f28e9051361391029c7bc4cc26b08f8e2..11cdbb4316faab8776c1911c7af9e1b776a2f6ff 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/scheduler/SchedulerWizard.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/scheduler/SchedulerWizard.java @@ -22,20 +22,15 @@ import de.bmotionstudio.gef.editor.model.BControl; */ public abstract class SchedulerWizard extends BMotionAbstractWizard { - private BControl bcontrol; private SchedulerEvent event; protected Boolean eventDelete = false; - public SchedulerWizard(BControl bcontrol, SchedulerEvent scheduler) { - this.bcontrol = bcontrol; + public SchedulerWizard(BControl control, SchedulerEvent scheduler) { + super(control); this.event = scheduler; } - public BControl getBControl() { - return this.bcontrol; - } - public SchedulerEvent getScheduler() { return this.event; }