View Javadoc

1   /*
2    * $HeadURL: $
3    * $Date: $
4    * $Revision: $
5    * $Author: $
6    * 
7    * Copyright (c) 2005 MindTree Consulting Ltd. 
8    * 
9    * This file is part of Insight.
10   * 
11   * Insight is free software: you can redistribute it and/or modify it under the 
12   * terms of the GNU General Public License as published by the Free Software 
13   * Foundation, either version 3 of the License, or (at your option) any later 
14   * version.
15   * 
16   * Insight is distributed in the hope that it will be useful, but 
17   * WITHOUT ANY WARRANTY; without even the implied warranty of 
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
19   * Public License for more details.
20   * 
21   * You should have received a copy of the GNU General Public License along with 
22   * Insight.  If not, see <http://www.gnu.org/licenses/>.
23   */
24  package com.mindtree.techworks.insight.gui.widgets;
25  
26  import javax.swing.JFileChooser;
27  import javax.swing.filechooser.FileSystemView;
28  
29  /**
30  *
31  * The <code>InsightRemoteFileChooser</code> class is a derivative of the
32  * the JFileChooser. This class provides a overriden implementation of
33  * the rescanCurrentDirectory() to do nothing such that an interruptedException
34  * may be avoided in the model. 
35  * 
36  * @see com.mindtree.techworks.insight.Controller
37  * @see javax.swing.JFileChooser
38  * @see javax.swing.JFileChooser#rescanCurrentDirectory()
39  *
40  * @author  Regunath B
41  * @version 1.0, 05/04/12
42  */
43  public class InsightRemoteFileChooser extends JFileChooser {
44  	
45  	/**
46  	 * Used for object serialization
47  	 */
48  	private static final long serialVersionUID = -6852291222384420420L;
49  
50  	/**
51  	 * Overriden super class constructor
52  	 * @param fileSystemView the FileSystemView for this JFileChooser
53  	 */
54  	public InsightRemoteFileChooser(FileSystemView fileSystemView) {
55  		super(fileSystemView);
56  	}
57  	
58  	/**
59  	 * Overriden superclass method. Does nothing
60  	 */
61      public void rescanCurrentDirectory() {
62          //getUI().rescanCurrentDirectory(this);
63      }
64      
65  }