From 7952236598ea23cd0a2988e70895d54a110d3272 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Mon, 9 Apr 2018 09:08:05 +0200 Subject: [PATCH] Improve FS UI --- .../org/argeo/eclipse/ui/fs/ParentDir.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/fs/ParentDir.java diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/fs/ParentDir.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/fs/ParentDir.java new file mode 100644 index 000000000..6f09c2905 --- /dev/null +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/fs/ParentDir.java @@ -0,0 +1,28 @@ +package org.argeo.eclipse.ui.fs; + +import java.nio.file.Path; + +/** A parent directory (..) reference. */ +public class ParentDir { + Path path; + + public ParentDir(Path path) { + super(); + this.path = path; + } + + public Path getPath() { + return path; + } + + @Override + public int hashCode() { + return path.hashCode(); + } + + @Override + public String toString() { + return "Parent dir " + path; + } + +} -- 2.30.2