/******************************************************************************* * 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: * Alexey Mikoyan - Initial implementation *******************************************************************************/ package org.eclipse.team.svn.ui.repository.model; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.PlatformUI; /** * Used to show current working directory * * @author Alexey Mikoyan * */ public class RepositoryFictiveWorkingDirectory extends RepositoryFictiveNode { public static final String WORKING_DIR_LABEL = ".."; //$NON-NLS-1$ protected Object associatedDirectory; public RepositoryFictiveWorkingDirectory(Object associatedDirectory) { this.associatedDirectory = associatedDirectory; } public Object[] getChildren(Object o) { return null; } public ImageDescriptor getImageDescriptor(Object object) { return PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER); } public String getLabel(Object o) { return RepositoryFictiveWorkingDirectory.WORKING_DIR_LABEL; } public Object getAssociatedDirectory() { return this.associatedDirectory; } }