// Path: src/main/java/songo/SWTUtil.java
// public class SWTUtil {
// 	private final SongoService service;
// 
// 	@Inject
// 	SWTUtil(SongoService service) {
// 		this.service = service;
// 	}
// 
// 	public void exitOnClose(Shell shell) {
// 		shell.addShellListener(new ShellAdapter() {
// 			@Override
// 			public void shellClosed(ShellEvent e) {
// 				service.stop();
// 			}
// 		});
// 	}
// }


import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Inject;
import com.google.inject.servlet.SessionScoped;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ShellAdapter;
import org.eclipse.swt.events.ShellEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import songo.SWTUtil;
import songo.annotation.SessionBus;
package songo.view;


@SessionScoped
public class MainView implements View {
	private final Shell shell;
// Path: src/main/java/songo/SWTUtil.java
// public class SWTUtil {
// 	private final SongoService service;
// 
// 	@Inject
// 	SWTUtil(SongoService service) {
// 		this.service = service;
// 	}
// 
// 	public void exitOnClose(Shell shell) {
// 		shell.addShellListener(new ShellAdapter() {
// 			@Override
// 			public void shellClosed(ShellEvent e) {
// 				service.stop();
// 			}
// 		});
// 	}
// }


// Path: src/main/java/songo/view/MainView.java
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Inject;
import com.google.inject.servlet.SessionScoped;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ShellAdapter;
import org.eclipse.swt.events.ShellEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import songo.SWTUtil;
import songo.annotation.SessionBus;

package songo.view;


@SessionScoped
public class MainView implements View {
	private final Shell shell;
	private final SWTUtil util;