addPlugInItem(help, "About ImageJ...", "ij.plugin.AboutBox", 0, false);
addPlugInItem(help, "About Image Editor", "ij.plugin.AboutBox", 0, false);
	String addMenuBar() {		error = null;		pluginsTable = new Hashtable();				JMenu file = new JMenu("File");		addItem(file, "Open Local", KeyEvent.VK_O, false);		importMenu = addSubMenu(file, "Import");		file.addSeparator();		//addItem(file, "Save Local",  KeyEvent.VK_S, false);		addItem(file, "Revert", KeyEvent.VK_R,  false);				JMenu edit = new JMenu("Edit");		addItem(edit, "Undo", KeyEvent.VK_Z, false);		edit.addSeparator();		addItem(edit, "Cut", KeyEvent.VK_X, false);		addItem(edit, "Copy", KeyEvent.VK_C, false);		addItem(edit, "Paste", KeyEvent.VK_V, false);		edit.addSeparator();		addPlugInItem(edit, "Clear", "ij.plugin.filter.Filler(\"clear\")", 0, false);		addPlugInItem(edit, "Clear Outside", "ij.plugin.filter.Filler(\"outside\")", 0, false);		addPlugInItem(edit, "Fill", "ij.plugin.filter.Filler(\"fill\")", KeyEvent.VK_F, false);		addPlugInItem(edit, "Draw", "ij.plugin.filter.Filler(\"draw\")", KeyEvent.VK_D, false);		addPlugInItem(edit, "Invert", "ij.plugin.filter.Filters(\"invert\")", KeyEvent.VK_I, true);		edit.addSeparator();		addSubMenu(edit, "Selection");		optionsMenu = addSubMenu(edit, "Options");				JMenu image = new JMenu("Image");		JMenu imageType = new JMenu("Type");			gray8Item = addCheckboxItem(imageType, "8-bit", "ij.plugin.Converter(\"8-bit\")");			gray16Item = addCheckboxItem(imageType, "16-bit", "ij.plugin.Converter(\"16-bit\")");			gray32Item = addCheckboxItem(imageType, "32-bit", "ij.plugin.Converter(\"32-bit\")");			color256Item = addCheckboxItem(imageType, "8-bit Color", "ij.plugin.Converter(\"8-bit Color\")");			colorRGBItem = addCheckboxItem(imageType, "RGB Color", "ij.plugin.Converter(\"RGB Color\")");			imageType.add(new JMenuItem("-"));			image.add(imageType);					image.addSeparator();		addSubMenu(image, "Adjust");		addSubMenu(image, "Color");		image.addSeparator();		addPlugInItem(image, "Crop", "ij.plugin.filter.Resizer(\"crop\")", 0, false);		addPlugInItem(image, "Scale...", "ij.plugin.filter.Scaler", KeyEvent.VK_E, false);		addSubMenu(image, "Rotate");		image.addSeparator();				JMenu process = new JMenu("Process");		addPlugInItem(process, "Smooth", "ij.plugin.filter.Filters(\"smooth\")", KeyEvent.VK_S, true);		addPlugInItem(process, "Sharpen", "ij.plugin.filter.Filters(\"sharpen\")", 0, false);		addPlugInItem(process, "Find Edges", "ij.plugin.filter.Filters(\"edge\")", KeyEvent.VK_F, true);		addPlugInItem(process, "Enhance Contrast", "ij.plugin.ContrastEnhancer", 0, false);		addSubMenu(process, "Noise");		addSubMenu(process, "Shadows");		addSubMenu(process, "Binary");		addSubMenu(process, "Math");		process.addSeparator();		addPlugInItem(process, "Subtract Background...", "ij.plugin.filter.BackgroundSubtracter", 0, false);		addItem(process, "Repeat Command", KeyEvent.VK_R, true);		JMenu help = new JMenu("Help");		addPlugInItem(help, "About ImageJ...", "ij.plugin.AboutBox", 0, false);						mbar = new JMenuBar();		mbar.setBorder(BorderFactory.createMatteBorder(1, 1, 0, 1, Color.BLACK));		mbar.add(file);		mbar.add(edit);		mbar.add(image);		mbar.add(process);		mbar.add(help);		if (ij!=null)			ij.setJMenuBar(mbar);				if (jarError!=null)			error = error!=null?error+="\n"+jarError:jarError;		return error;	}