/******************************************************************************* * Copyright (c) 2005-2008 Polarion Software. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Alexander Gurov - Initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.ui.repository.model; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.graphics.RGB; import org.eclipse.team.svn.core.resource.IRepositoryResource; import org.eclipse.team.svn.ui.SVNTeamUIPlugin; /** * BRANCH'es node representation * * @author Alexander Gurov */ public class RepositoryBranches extends RepositoryFolder { public RepositoryBranches(RepositoryResource parent, IRepositoryResource resource) { super(parent, resource); } protected ImageDescriptor getImageDescriptorImpl() { return this.isExternals() ? super.getImageDescriptorImpl() : SVNTeamUIPlugin.instance().getImageDescriptor("icons/objects/branches.gif"); //$NON-NLS-1$ } public RGB getForeground(Object element) { return RepositoryResource.STRUCTURE_DEFINED_NODES_FOREGROUND; } public RGB getBackground(Object element) { return RepositoryResource.STRUCTURE_DEFINED_NODES_BACKGROUND; } public FontData getFont(Object element) { return RepositoryResource.STRUCTURE_DEFINED_NODES_FONT.getFontData()[0]; } }