// Path: src/main/java/songo/ResourceUtil.java
// public class ResourceUtil {
// 	private ResourceUtil() {
// 
// 	}
// 	public static InputStream iconStream(String name) {
// 		return ResourceUtil.class.getResourceAsStream("/songo/icons/dark/" + name + ".png");
// 	}
// }
// 
// Path: src/main/java/songo/ResourceUtil.java
// public static InputStream iconStream(String name) {
// 	return ResourceUtil.class.getResourceAsStream("/songo/icons/dark/" + name + ".png");
// }


import com.google.common.eventbus.EventBus;
import com.google.inject.Inject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MenuDetectEvent;
import org.eclipse.swt.events.MenuDetectListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.*;
import songo.ResourceUtil;
import songo.annotation.SessionBus;
import static songo.ResourceUtil.iconStream;
package songo.view;



public class TrayView {
	private final TrayItem item;
	private final EventBus bus;

	@Inject
	TrayView(Display display, @SessionBus final EventBus bus) {
		this.bus = bus;
		item = new TrayItem(display.getSystemTray(), SWT.NONE);
// Path: src/main/java/songo/ResourceUtil.java
// public class ResourceUtil {
// 	private ResourceUtil() {
// 
// 	}
// 	public static InputStream iconStream(String name) {
// 		return ResourceUtil.class.getResourceAsStream("/songo/icons/dark/" + name + ".png");
// 	}
// }
// 
// Path: src/main/java/songo/ResourceUtil.java
// public static InputStream iconStream(String name) {
// 	return ResourceUtil.class.getResourceAsStream("/songo/icons/dark/" + name + ".png");
// }


// Path: src/main/java/songo/view/TrayView.java
import com.google.common.eventbus.EventBus;
import com.google.inject.Inject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MenuDetectEvent;
import org.eclipse.swt.events.MenuDetectListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.*;
import songo.ResourceUtil;
import songo.annotation.SessionBus;
import static songo.ResourceUtil.iconStream;

package songo.view;



public class TrayView {
	private final TrayItem item;
	private final EventBus bus;

	@Inject
	TrayView(Display display, @SessionBus final EventBus bus) {
		this.bus = bus;
		item = new TrayItem(display.getSystemTray(), SWT.NONE);
		item.setImage(new Image(display, iconStream("tray")));