[JAVA] The orientationMarkerWidget is garbage collected if it is created with attachOrientationAxes from vtkAbstractComponent
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Asume (1) you create a swt view by subclassing vtkSwtComponent, (2) you add the orientationmarker with the provided method from the vtkAbstractComponent (this one: public static void attachOrientationAxes(vtkComponent<?> component)) and (3) you activate the garbage collection via javaGC.SetAutoGarbageCollection(true)
then the orientation marker works for about a second befor it is collected since the static method does not create a reference - this method should not be static and use a field for the orientation marker.