From 9eb19b9b37d0c9c547a3ee0dcadb24d326d685d1 Mon Sep 17 00:00:00 2001 From: Lukas Ladenberger <lukas.ladenberger@googlemail.com> Date: Wed, 31 Oct 2012 12:21:13 +0100 Subject: [PATCH] set coordinates and size attributes of the light model to invisible and not editable --- .../src/de/bmotionstudio/gef/editor/model/Light.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Light.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Light.java index 4521b537..e3257455 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Light.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Light.java @@ -8,6 +8,7 @@ package de.bmotionstudio.gef.editor.model; import org.eclipse.draw2d.ColorConstants; import de.bmotionstudio.gef.editor.AttributeConstants; +import de.bmotionstudio.gef.editor.attribute.AbstractAttribute; public class Light extends BControl { @@ -20,6 +21,10 @@ public class Light extends BControl { @Override protected void initAttributes() { + initAttribute(AttributeConstants.ATTRIBUTE_SIZE, null, false, false, + AbstractAttribute.ROOT); + initAttribute(AttributeConstants.ATTRIBUTE_COORDINATES, null, false, + false, AbstractAttribute.ROOT); initAttribute(AttributeConstants.ATTRIBUTE_WIDTH, 12, false, false, AttributeConstants.ATTRIBUTE_SIZE); initAttribute(AttributeConstants.ATTRIBUTE_HEIGHT, 12, false, false, -- GitLab