1 package org.simantics.plant3d.scenegraph;
3 import java.util.Objects;
5 import org.simantics.g3d.property.annotations.GetPropertyValue;
6 import org.simantics.g3d.property.annotations.SetPropertyValue;
7 import org.simantics.g3d.scenegraph.G3DNode;
8 import org.simantics.layer0.Layer0;
9 import org.simantics.objmap.graph.annotations.RelatedGetValue;
10 import org.simantics.objmap.graph.annotations.RelatedSetValue;
12 public abstract class P3DNode extends G3DNode implements IP3DVisualNode {
16 @RelatedGetValue(Layer0.URIs.HasName)
17 @GetPropertyValue(value = Layer0.URIs.HasName, tabId = "Default", name = "Name")
18 public String getName() {
22 @RelatedSetValue(Layer0.URIs.HasName)
23 @SetPropertyValue(Layer0.URIs.HasName)
24 public void setName(String name) {
25 if (name == null || Objects.equals(this.name, name))
30 firePropertyChanged(Layer0.URIs.HasName);
34 public String toString() {