super.getTreeCellRendererComponent(tree,value,sel,expanded, leaf,row,focus);
if(sel) { setBackground(treeSelectionBackground); setForeground(treeSelectionForeground); } else { setBackground(treeNoSelectionBackground); setForeground(treeNoSelectionForeground); }
	public Component getTreeCellRendererComponent(JTree tree, Object value,		boolean sel, boolean expanded, boolean leaf, int row,		boolean focus)	{		super.getTreeCellRendererComponent(tree,value,sel,expanded,			leaf,row,focus);		DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;		Object userObject = treeNode.getUserObject();		if(userObject instanceof VFS.DirectoryEntry)		{			VFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;			boolean opened = (jEdit.getBuffer(file.path) != null);			setBorder(opened ? openBorder : closedBorder);			if(showIcons)			{				setIcon(getIconForFile(file));				setText(file.name);			}			else			{				setIcon(null);				setText(file.type == VFS.DirectoryEntry.DIRECTORY					? file.name + "/" : file.name);			}		}		else if(userObject instanceof BrowserView.LoadingPlaceholder)		{			if(showIcons)				setIcon(loadingIcon);			else				setIcon(null);			setText(jEdit.getProperty("vfs.browser.tree.loading"));			setBorder(closedBorder);		}		else if(userObject instanceof String)		{			if(showIcons)			{				setIcon(dirIcon);				setText((String)userObject);			}			else			{				setIcon(null);				setText(userObject + "/");			}			setBorder(closedBorder);		}		else		{			// userObject is null?			setIcon(null);			setText(null);		}		return this;	}