Development mode refers to the Eclipse RCP's -dev argument.
gitlab #124
Change-Id: Ie7112586ef4663f080589f293e4b62065bebe584
import java.util.ArrayList;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.core.runtime.Platform;
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
import org.simantics.g3d.vtk.common.VtkView;
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
import org.simantics.g3d.vtk.common.VtkView;
public InteractiveVtkPanel() {
super();
public InteractiveVtkPanel() {
super();
- // This is actually a static method in C++
- new vtkObject().GlobalWarningDisplayOff();
+ if (!Platform.inDevelopmentMode()) {
+ // This is actually a static method in C++
+ new vtkObject().GlobalWarningDisplayOff();
+ }
iren = new vtkGenericRenderWindowInteractor();
iren.SetRenderWindow(rw);
iren = new vtkGenericRenderWindowInteractor();
iren.SetRenderWindow(rw);
import java.util.ArrayList;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.widgets.Composite;
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
import org.eclipse.swt.widgets.Composite;
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
super(parentComposite);
this.parentComposite = parentComposite;
super(parentComposite);
this.parentComposite = parentComposite;
- // This is actually a static method in C++
- new vtkObject().GlobalWarningDisplayOff();
+ if (!Platform.inDevelopmentMode()) {
+ // This is actually a static method in C++
+ new vtkObject().GlobalWarningDisplayOff();
+ }
}
private boolean updating = false;
}
private boolean updating = false;