blob: 43b1e0246a2d05a398a06fd12cdcb10b8057bd44 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*******************************************************************************
* Copyright (c) 2010, 2012 SAP AG and others.
* 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:
* Mathias Kinzler (SAP AG) - initial implementation
*******************************************************************************/
package org.eclipse.egit.ui.internal.repository.tree;
import java.io.File;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jgit.lib.Repository;
/**
* Represents a directory in the working directory tree
*/
public class FolderNode extends RepositoryTreeNode<File> {
/**
* Constructs the node.
*
* @param parent
* the parent node (may be null)
* @param repository
* the {@link Repository}
* @param directory
* the directory
*/
public FolderNode(RepositoryTreeNode parent, Repository repository,
File directory) {
super(parent, RepositoryTreeNodeType.FOLDER, repository, directory);
}
@Override
public IPath getPath() {
return new Path(getObject().getAbsolutePath());
}
}
|