synchronized(errorLock)
VFSManager.error = true;  runInAWTThread(new Runnable()
	public static void error(Component comp,		final String path,		String messageProp,		Object[] args)	{		final Frame frame = JOptionPane.getFrameForComponent(comp);		synchronized(errorLock)		{			error = true;			errors.addElement(new ErrorListDialog.ErrorEntry(				path,messageProp,args));			if(errors.size() == 1)			{								VFSManager.runInAWTThread(new Runnable()				{					public void run()					{						String caption = jEdit.getProperty(							"ioerror.caption" + (errors.size() == 1							? "-1" : ""),new Integer[] {							new Integer(errors.size()) });						new ErrorListDialog(							frame.isShowing()							? frame							: jEdit.getFirstView(),							jEdit.getProperty("ioerror.title"),							caption,errors,false);						errors.removeAllElements();						error = false;					}				});			}		}	} //}}}