package devopsdistilled.operp.client.items.models.impl;

import devopsdistilled.operp.client.abstracts.AbstractPaneModel;
import devopsdistilled.operp.client.items.models.CreateItemPaneModel;
import devopsdistilled.operp.client.items.models.observers.CreateItemPaneModelObserver;

public class CreateItemPaneModelImpl extends
		AbstractPaneModel<CreateItemPaneModelObserver> implements
		CreateItemPaneModel {

	private String title = "Create Item";

	@Override
	public void setTitle(String title) {
		this.title = title;

		for (CreateItemPaneModelObserver observer : observers) {
			observer.updateTitle(this.title);
		}
	}

	@Override
	public String getTitle() {
		return title;
	}

}

@@ -410,110 +410,52 @@
 %0A%0A%09p
-rivate String title = %22
+ublic 
 Create
- 
 Item
-%22;%0A%0A%09@Override%0A%09public void setTitle(String title
+PaneModelImpl(
 ) %7B%0A%09%09
-this.
 title = 
 titl
@@ -454,115 +454,22 @@
 e = 
-title;%0A%0A%09%09for (
+%22
 Create
+ 
 Item
-PaneModelObserver observer : observers) %7B%0A%09%09%09observer.updateTitle(this.title);%0A%09%09%7D
+%22;
 %0A%09%7D%0A

Remove redundant code setTitle()