package com.example.vaadin_test;

import org.ofbiz.base.util.Debug;

import com.example.vaadin_test.views.EntityDataView;
import com.example.vaadin_test.views.EntityView;
import com.example.vaadin_test.views.ServiceView;
import com.vaadin.navigator.Navigator;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.MenuBar;
import com.vaadin.ui.MenuBar.MenuItem;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;


@SuppressWarnings("serial")
public class VaadinTestUI extends UI {
	
	private Navigator navigator;

	@Override
	protected void init(VaadinRequest request) {
		VerticalLayout mainLayout = new VerticalLayout();
		setContent(mainLayout);
		
		MenuBar mainMenuBar = new MenuBar();
		
		mainMenuBar.addItem("Services", new MenuBar.Command() {
		    public void menuSelected(MenuBar.MenuItem selectedItem) {
		    	navigator.navigateTo("services");
		    }
		});
		
		mainMenuBar.addItem("Entities", new MenuBar.Command() {
		    public void menuSelected(MenuBar.MenuItem selectedItem) {
		    	navigator.navigateTo("entities");
		    }
		});
		
		mainLayout.addComponent(mainMenuBar);
				
		CssLayout content = new CssLayout();
		content.setSizeFull();
		mainLayout.addComponent(content);
		
		navigator = new Navigator(this, content);
		navigator.addView("services", ServiceView.class);
		navigator.addView("entities", EntityView.class);
		navigator.navigateTo("services");
	}
}
@@ -31,96 +31,8 @@
 t;%0A%0A
-import org.ofbiz.base.util.Debug;%0A%0Aimport com.example.vaadin_test.views.EntityDataView;%0A
 impo
@@ -72,24 +72,24 @@
 EntityView;%0A
+
 import com.e
@@ -271,47 +271,8 @@
 ar;%0A
-import com.vaadin.ui.MenuBar.MenuItem;%0A
 impo
@@ -398,18 +398,17 @@
 ds UI %7B%0A
-%09
 %0A
+
 %09private
@@ -565,19 +565,17 @@
 ayout);%0A
-%09%09
 %0A
+
 %09%09MenuBa
@@ -605,19 +605,17 @@
 uBar();%0A
-%09%09
 %0A
+
 %09%09mainMe
@@ -779,27 +779,25 @@
     %7D%0A%09%09%7D);%0A
-%09%09
 %0A
+
 %09%09mainMenuBa
@@ -961,19 +961,17 @@
 %7D%0A%09%09%7D);%0A
-%09%09
 %0A
+
 %09%09mainLa
@@ -1006,13 +1006,9 @@
 r);%0A
-%09%09%09%09
 %0A
+
 %09%09Cs
@@ -1103,18 +1103,16 @@
 ntent);%0A
-%09%09
 %0A%09%09navig

Delete unused import