Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java')
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java150
1 files changed, 75 insertions, 75 deletions
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java
index bb7a16a78..c57ad948a 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GenItem.java
@@ -1,76 +1,76 @@
-/*******************************************************************************
- * Copyright (c) 2011 protos software gmbh (http://www.protos.de).
- * 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:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.generator.base;
-
-/**
- * This is the abstract base class for {@link GenFile} and {@link GenDir} which are
- * used to form a hierarchical tree structure of (relative) paths.
- *
- * @author Henrik Rentz-Reichert
- */
-public abstract class GenItem {
-
- /**
- * the path separator
- */
- public static final String PATH_SEP = "/";
-
- private GenDir parent;
- private String name;
-
- /**
- * @param parent the parent directory
- * @param name the name of this item
- */
- public GenItem(GenDir parent, String name) {
- super();
- this.parent = parent;
- this.name = name;
-
- if (parent!=null)
- parent.getContents().add(this);
- }
-
- /**
- * @return the item's name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return the parent directory
- */
- public GenDir getParent() {
- return parent;
- }
-
- /**
- * @return the path of this item with a trailing / ({@link #PATH_SEP})
- */
- public String getPath() {
- if (parent==null)
- return "";
-
- return parent.getPath()+name+PATH_SEP;
- }
-
- /**
- * @return the path of this item
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return getPath();
- }
+/*******************************************************************************
+ * Copyright (c) 2011 protos software gmbh (http://www.protos.de).
+ * 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:
+ * Henrik Rentz-Reichert (initial contribution)
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.generator.base;
+
+/**
+ * This is the abstract base class for {@link GenFile} and {@link GenDir} which are
+ * used to form a hierarchical tree structure of (relative) paths.
+ *
+ * @author Henrik Rentz-Reichert
+ */
+public abstract class GenItem {
+
+ /**
+ * the path separator
+ */
+ public static final String PATH_SEP = "/";
+
+ private GenDir parent;
+ private String name;
+
+ /**
+ * @param parent the parent directory
+ * @param name the name of this item
+ */
+ public GenItem(GenDir parent, String name) {
+ super();
+ this.parent = parent;
+ this.name = name;
+
+ if (parent!=null)
+ parent.getContents().add(this);
+ }
+
+ /**
+ * @return the item's name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @return the parent directory
+ */
+ public GenDir getParent() {
+ return parent;
+ }
+
+ /**
+ * @return the path of this item with a trailing / ({@link #PATH_SEP})
+ */
+ public String getPath() {
+ if (parent==null)
+ return "";
+
+ return parent.getPath()+name+PATH_SEP;
+ }
+
+ /**
+ * @return the path of this item
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ return getPath();
+ }
} \ No newline at end of file

Back to the top