JMenu newCurrent = new JMenu(jEdit.getProperty( "current-directory.more.label"));
JMenu newCurrent = new JMenu( jEdit.getProperty( "common.more"));
	public void setPopupMenuVisible(boolean b)	{		if(b)		{			if(getMenuComponentCount() != 0)				removeAll();			File file = view.getBuffer().getFile();			if(file == null)			{				JMenuItem mi = new JMenuItem(jEdit.getProperty(					"current-directory.not-local"));				mi.setEnabled(false);				add(mi);				super.setPopupMenuVisible(b);				return;			}			File dir = new File(file.getParent());			JMenuItem mi = new JMenuItem(dir.getPath());			mi.setEnabled(false);			add(mi);			addSeparator();			JMenu current = this;			int count = 0;			EditAction action = jEdit.getAction("open-path");			String[] list = dir.list();			if(list != null)			{				MiscUtilities.quicksort(list,					new MiscUtilities.StringICaseCompare());				for(int i = 0; i < list.length; i++)				{					String name = list[i];					file = new File(dir,name);					if(file.isDirectory())						continue;					mi = new EnhancedMenuItem(name,action,						file.getPath());					if(count++ > 20)					{						current.addSeparator();						JMenu newCurrent = new JMenu(jEdit.getProperty(							"current-directory.more.label"));						current.add(newCurrent);						current = newCurrent;						count = 0;					}					current.add(mi);				}			}		}		super.setPopupMenuVisible(b);	}