Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/model/internal/PathEntry.java')
-rw-r--r--archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/model/internal/PathEntry.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/model/internal/PathEntry.java b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/model/internal/PathEntry.java
new file mode 100644
index 000000000..89c4cf46c
--- /dev/null
+++ b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/model/internal/PathEntry.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+* Copyright (c) 2007 IBM Corporation.
+* 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:
+* Robert Fuhrer (rfuhrer@watson.ibm.com) - initial API and implementation
+
+*******************************************************************************/
+
+/*
+ * Created on Mar 13, 2007
+ */
+package org.eclipse.imp.model.internal;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.imp.model.IPathEntry;
+
+public class PathEntry implements IPathEntry {
+ private final IPath fPath;
+ private final PathEntryType fType;
+
+ public PathEntry(PathEntryType type, IPath path) {
+ fType= type;
+ fPath= path;
+ }
+
+ public PathEntryType getEntryType() {
+ return fType;
+ }
+
+ public IPath getPath() {
+ return fPath;
+ }
+
+ public String toString() {
+ return "<" + fType + ": " + fPath.toPortableString() + ">";
+ }
+}

Back to the top