else if(actionCommand.equals("addToFavorites")) {   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 + ":");
			public void actionPerformed(ActionEvent evt)			{				String actionCommand = evt.getActionCommand();				if(actionCommand.equals("list"))					setBrowserView(new BrowserListView(VFSBrowser.this));				else if(actionCommand.equals("tree"))					setBrowserView(new BrowserTreeView(VFSBrowser.this));				else if(actionCommand.equals("showHiddenFiles"))				{					showHiddenFiles = !showHiddenFiles;					reloadDirectory(false);				}				else if(actionCommand.equals("newDirectory"))					mkdir();				else if(actionCommand.startsWith("vfs."))				{					String vfsName = actionCommand.substring(4);					VFS vfs = VFSManager.getVFSForName(vfsName);					String directory = vfs.showBrowseDialog(vfsSession,						VFSBrowser.this);					if(directory != null)						setDirectory(directory);				}			}