// Path: src/cortana/gui/MenuBuilder.java
// public class MenuBuilder {
// 	protected ArmitageApplication armitage;
// 	protected MenuBridge bridge;
// 
// 	public MenuBuilder(ArmitageApplication a) {
// 		armitage = a;
// 		bridge   = new MenuBridge(a);
// 	}
// 
// 	public Loadable getBridge() {
// 		return bridge;
// 	}
// 
// 	public void installMenu(MouseEvent ev, String key, Stack argz) {
// 		if (ev.isPopupTrigger() && bridge.isPopulated(key)) {
// 			JPopupMenu menu = new JPopupMenu();
// 			setupMenu(menu, key, argz);
// 
// 			/* we check, because it may have changed its mind after setupMenu failed */
// 			if (bridge.isPopulated(key)) {
// 				menu.show((JComponent)ev.getSource(), ev.getX(), ev.getY());
// 				ev.consume();
// 			}
// 		}
// 	}
// 
// 	public void setupMenu(JComponent parent, String key, Stack argz) {
// 		if (!bridge.isPopulated(key))
// 			return;
// 
// 		/* setup the menu */
// 		bridge.push(parent, argz);
// 
// 		Iterator i = bridge.getMenus(key).iterator();
// 		while (i.hasNext()) {
// 			SleepClosure f = (SleepClosure)i.next();
// 			if (f.getOwner().isLoaded()) {
// 				SleepUtils.runCode(f, key, null, cortana.core.EventManager.shallowCopy(argz));
// 			}
// 			else {
// 				i.remove();
// 			}
// 		}
// 
// 		bridge.pop();
// 	}
// }


import javax.swing.*;
import javax.swing.event.*;
import java.awt.image.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import cortana.gui.MenuBuilder;
import java.io.*;
import ui.*;
package armitage;






public class ArmitageApplication extends JComponent {
	protected JTabbedPane tabs = null;
	protected JSplitPane split = null;
	protected JMenuBar menus = new JMenuBar();
	protected ScreenshotManager screens = null;
	protected KeyBindings keys = new KeyBindings();
// Path: src/cortana/gui/MenuBuilder.java
// public class MenuBuilder {
// 	protected ArmitageApplication armitage;
// 	protected MenuBridge bridge;
// 
// 	public MenuBuilder(ArmitageApplication a) {
// 		armitage = a;
// 		bridge   = new MenuBridge(a);
// 	}
// 
// 	public Loadable getBridge() {
// 		return bridge;
// 	}
// 
// 	public void installMenu(MouseEvent ev, String key, Stack argz) {
// 		if (ev.isPopupTrigger() && bridge.isPopulated(key)) {
// 			JPopupMenu menu = new JPopupMenu();
// 			setupMenu(menu, key, argz);
// 
// 			/* we check, because it may have changed its mind after setupMenu failed */
// 			if (bridge.isPopulated(key)) {
// 				menu.show((JComponent)ev.getSource(), ev.getX(), ev.getY());
// 				ev.consume();
// 			}
// 		}
// 	}
// 
// 	public void setupMenu(JComponent parent, String key, Stack argz) {
// 		if (!bridge.isPopulated(key))
// 			return;
// 
// 		/* setup the menu */
// 		bridge.push(parent, argz);
// 
// 		Iterator i = bridge.getMenus(key).iterator();
// 		while (i.hasNext()) {
// 			SleepClosure f = (SleepClosure)i.next();
// 			if (f.getOwner().isLoaded()) {
// 				SleepUtils.runCode(f, key, null, cortana.core.EventManager.shallowCopy(argz));
// 			}
// 			else {
// 				i.remove();
// 			}
// 		}
// 
// 		bridge.pop();
// 	}
// }


// Path: src/armitage/ArmitageApplication.java
import javax.swing.*;
import javax.swing.event.*;
import java.awt.image.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import cortana.gui.MenuBuilder;
import java.io.*;
import ui.*;

package armitage;






public class ArmitageApplication extends JComponent {
	protected JTabbedPane tabs = null;
	protected JSplitPane split = null;
	protected JMenuBar menus = new JMenuBar();
	protected ScreenshotManager screens = null;
	protected KeyBindings keys = new KeyBindings();
	protected MenuBuilder builder = null;