add(createMenuItem("new-file"));
	public BrowserPopupMenu(VFSBrowser browser, VFS.DirectoryEntry file)	{		this.browser = browser;		if(file != null)		{			this.file = file;			this.vfs = VFSManager.getVFSForPath(browser.getDirectory());			boolean delete = (vfs.getCapabilities() & VFS.DELETE_CAP) != 0;			boolean rename = (vfs.getCapabilities() & VFS.RENAME_CAP) != 0;			if(jEdit.getBuffer(file.path) != null)			{				add(createMenuItem("open"));				add(createMenuItem("open-view"));				add(createMenuItem("close"));			}			else			{				if(file.type == VFS.DirectoryEntry.DIRECTORY					|| file.type == VFS.DirectoryEntry.FILESYSTEM)				{					add(createMenuItem("goto"));				}				else if(browser.getMode() != VFSBrowser.BROWSER)				{					add(createMenuItem("choose"));				}				// else if in browser mode				else				{					add(createMenuItem("open"));					add(createMenuItem("open-view"));				}					if(rename)					add(createMenuItem("rename"));				if(delete)					add(createMenuItem("delete"));			}			addSeparator();		}		JCheckBoxMenuItem showHiddenFiles = new JCheckBoxMenuItem(			jEdit.getProperty("vfs.browser.menu.show-hidden-files.label"));		showHiddenFiles.setActionCommand("show-hidden-files");		showHiddenFiles.setSelected(browser.getShowHiddenFiles());		showHiddenFiles.addActionListener(new ActionHandler());		add(showHiddenFiles);		addSeparator();		add(createMenuItem("new-directory"));		addSeparator();		add(createMenuItem("add-to-favorites"));		add(createMenuItem("go-to-favorites"));		Enumeration enum = VFSManager.getFilesystems();		boolean addedSeparator = false;		while(enum.hasMoreElements())		{			VFS vfs = (VFS)enum.nextElement();			if((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0)				continue;			if(!addedSeparator)			{				addSeparator();				addedSeparator = true;			}			JMenuItem menuItem = new JMenuItem(jEdit.getProperty(				"vfs." + vfs.getName() + ".label"));			menuItem.setActionCommand("vfs." + vfs.getName());			menuItem.addActionListener(new ActionHandler());			add(menuItem);		}