package devopsdistilled.operp.client.party.panes.controllers.impl;

import javax.inject.Inject;

import devopsdistilled.operp.client.exceptions.EntityValidationException;
import devopsdistilled.operp.client.party.panes.CreateVendorPane;
import devopsdistilled.operp.client.party.panes.controllers.CreateVendorPaneController;
import devopsdistilled.operp.client.party.panes.models.CreateVendorPaneModel;
import devopsdistilled.operp.server.data.entity.party.Vendor;

public class CreateVendorPaneControllerImpl implements
		CreateVendorPaneController {

	@Inject
	private CreateVendorPane view;

	@Inject
	private CreateVendorPaneModel model;

	@Override
	public void validate(Vendor entity) throws EntityValidationException {
		// TODO Auto-generated method stub

	}

	@Override
	public Vendor save(Vendor entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void init() {
		view.init();
		model.registerObserver(view);
	}

}

@@ -89,16 +89,138 @@
 Inject;%0A
+import javax.swing.JPanel;%0A%0Aimport devopsdistilled.operp.client.commons.panes.controllers.CreateContactInfoPaneController;
 %0Aimport 
@@ -758,16 +758,100 @@
 model;%0A%0A
+%09@Inject%0A%09private CreateContactInfoPaneController createContactInfoPaneController;%0A%0A
 %09@Overri
@@ -1104,16 +1104,208 @@
 nit() %7B%0A
+%09%09createContactInfoPaneController.getView().setController(%0A%09%09%09%09createContactInfoPaneController);%0A%09%09view.setContactInfopanel((JPanel) createContactInfoPaneController%0A%09%09%09%09.getView().getPane());%0A
 %09%09view.i

Add ContactInfo pane to create vendor pane