]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ThreeDimensionalEditorBase.java
New 3d/trunk from branches/dev
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / base / ThreeDimensionalEditorBase.java
index f415c3e309e5d0d360dd531b20a9625d6efac21c..51f47fe95e423cac7b6177e99871ca112ba24fc9 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************\r
- * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * Copyright (c) 2007- VTT Technical Research Centre of Finland.\r
  * All rights reserved. This program and the accompanying materials\r
  * are made available under the terms of the Eclipse Public License v1.0\r
  * which accompanies this distribution, and is available at\r
@@ -137,6 +137,11 @@ public abstract class ThreeDimensionalEditorBase implements  Runnable {
        this.component = component;\r
     }\r
     \r
+    protected void setRenderingComponent(JmeRenderingComponent component) {\r
+       assert(renderingComposite == null); // ensure that this is called before initialization\r
+       this.component = component;\r
+    }\r
+    \r
 //    public void setActionBarContributor(IEditorActionBarContributor contributor) {\r
 //     actionBarContributor = contributor;\r
 //    }\r