]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/utils/Item.java
Added labels to piping component types
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / utils / Item.java
index 1ce6ed20673bfc7eff67ded0f45c8c7f30d13cc0..2a5b205a3e0da40a16eaf22bd9e4f382eceeaeaf 100644 (file)
@@ -6,6 +6,7 @@ public class Item {
        
        private String uri;
        private String name;
+       private String label;
        
        private Type type;
        private boolean code = false;
@@ -20,7 +21,11 @@ public class Item {
                this.name = name;
        }
        
-       
+       public Item(String type, String name, String label) {
+               this.uri = type;
+               this.name = name;
+               this.label = label;
+       }
        
        public String getUri() {
                return uri;
@@ -91,4 +96,7 @@ public class Item {
                return uri.hashCode();
        }
 
+       public String getLabel() {
+               return label;
+       }
 }