From 16931c3a26cf933fc9e0f1c4317a5912ea2e0b84 Mon Sep 17 00:00:00 2001
From: Lukas Ladenberger <lukas.ladenberger@googlemail.com>
Date: Mon, 11 Jun 2012 11:20:13 +0200
Subject: [PATCH] implemented some missing methods

---
 .../bmotionstudio/gef/editor/BMotionAbstractWizard.java  | 8 ++++++++
 .../gef/editor/observer/ObserverWizard.java              | 7 +------
 .../gef/editor/scheduler/SchedulerWizard.java            | 9 ++-------
 3 files changed, 11 insertions(+), 13 deletions(-)

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 0624b6f9..b4524f4a 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 d4809599..252a7b62 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 fd6aa87f..11cdbb43 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;
 	}
-- 
GitLab