reloadDirectory(false); }
			public void actionPerformed(ActionEvent evt)			{				String actionCommand = evt.getActionCommand();				if(actionCommand.equals("list"))				{					setBrowserView(new BrowserListView(VFSBrowser.this));					reloadDirectory(false);				}				else if(actionCommand.equals("tree"))				{					setBrowserView(new BrowserTreeView(VFSBrowser.this));					reloadDirectory(false);				}				else if(actionCommand.equals("showHiddenFiles"))				{					showHiddenFiles = !showHiddenFiles;					reloadDirectory(false);				}				else if(actionCommand.equals("newDirectory"))					mkdir();				else if(actionCommand.equals("addToFavorites"))				{					// if any directories are selected, add					// them, otherwise add current directory					Vector toAdd = new Vector();					VFS.DirectoryEntry[] selected = getSelectedFiles();					for(int i = 0; i < selected.length; i++)					{						VFS.DirectoryEntry file = selected[i];						if(file.type == VFS.DirectoryEntry.FILE)						{							GUIUtilities.error(VFSBrowser.this,								"vfs.browser.files-favorites",null);							return;						}						else							toAdd.addElement(file.path);					}						if(toAdd.size() != 0)					{						for(int i = 0; i < toAdd.size(); i++)						{							FavoritesVFS.addToFavorites((String)toAdd.elementAt(i));						}					}					else						FavoritesVFS.addToFavorites(path);				}				else if(actionCommand.equals("goToFavorites"))					setDirectory(FavoritesVFS.PROTOCOL + ":");				else if(actionCommand.startsWith("vfs."))				{					String vfsName = actionCommand.substring(4);					VFS vfs = VFSManager.getVFSByName(vfsName);					String directory = vfs.showBrowseDialog(						null,VFSBrowser.this);					if(directory != null)						setDirectory(directory);				}			}