System.err.println("Invalid file filter: " + i); re.printStackTrace();
Log.log(Log.ERROR,GUIUtilities.class, "Invalid file filter: " + i); Log.log(Log.ERROR,GUIUtilities.class, re);
	private static JFileChooser getFileChooser(View view)	{		if(chooser == null)		{			view.showWaitCursor();			chooser = new JFileChooser();			// Create mode filename filters			Mode[] modes = jEdit.getModes();			for(int i = 0; i < modes.length; i++)			{				Mode mode = modes[i];				String label = (String)mode.getProperty("label");				String glob = (String)mode.getProperty("filenameGlob");				if(label == null || glob == null)					continue;				try				{					chooser.addChoosableFileFilter(						new REFileFilter(label,						MiscUtilities.globToRE(glob)));				}				catch(REException re)				{					System.err.println("Invalid file filter: " + glob);					re.printStackTrace();				}			}			// Load file filters			int i = 0;			String name;			while((name = jEdit.getProperty("filefilter." + i + ".name")) != null				&& name.length() != 0)			{				try				{					chooser.addChoosableFileFilter(new REFileFilter(name,						MiscUtilities.globToRE(jEdit.getProperty(						"filefilter." + i + ".re"))));				}				catch(REException re)				{					System.err.println("Invalid file filter: " + i);					re.printStackTrace();				}				i++;			}			chooser.setFileFilter(chooser.getAcceptAllFileFilter());			view.hideWaitCursor();		}		return chooser;	}