/******************************************************************************* * 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.team.svn.core.resource.IRepositoryResource; import org.eclipse.ui.PlatformUI; /** * Repository file node representation * * @author Alexander Gurov */ public class RepositoryFile extends RepositoryResource { public RepositoryFile(RepositoryResource parent, IRepositoryResource resource) { super(parent, resource); } public Object []getChildren(Object o) { return null; } protected ImageDescriptor getImageDescriptorImpl() { return PlatformUI.getWorkbench().getEditorRegistry().getImageDescriptor(this.resource.getName()); } }