View Javadoc

1   /*
2    * Created on 20.11.2004
3    *
4    */
5   package hoplugins.conv;
6   
7   
8   import javax.swing.JFileChooser;
9   
10  /***
11   * @author Thorsten Dietz
12   *
13   */
14   final class CFileChooser extends JFileChooser {
15  
16       private static CFileChooser fc = new CFileChooser();
17  	
18       private  CFileChooser(){
19  		super();
20  		setMultiSelectionEnabled(true);
21  		setAcceptAllFileFilterUsed(false);
22  		setFileView(new CFileView());
23  		setDialogTitle(RSC.getProperty("select_source_file"));
24  		addChoosableFileFilter(new CFilter(RSC.TYPE_HTCOACH)); 
25  	    addChoosableFileFilter(new CFilter(RSC.TYPE_HAM));  
26  	    addChoosableFileFilter(new CFilter(RSC.TYPE_HTFOREVER));
27  	    addChoosableFileFilter(new CFilter(RSC.TYPE_BUDDY)); 
28  	}
29  	
30  	protected static CFileChooser getInstance(){
31  	    return fc;
32  	}
33  }