Commit 0f084f84 authored by Joachim P's avatar Joachim P

Fix FindSWT script so SWT library is correctly detected

Also fix a build error in SwtConeRendering example.
parent 296285cc
......@@ -14,7 +14,7 @@ find_path(SWT_ECLIPSE_PLUGINS_DIR
mark_as_advanced(SWT_ECLIPSE_PLUGINS_DIR)
if (EXISTS "${SWT_ECLIPSE_PLUGINS_DIR}")
file(GLOB _swt_files "${ECLIPSE_PLUGINS_DIR}/org.eclipse.swt.*" )
file(GLOB _swt_files "${SWT_ECLIPSE_PLUGINS_DIR}/org.eclipse.swt.*" )
set(SWT_ECLIPSE_LIBRARIES "")
......
......@@ -41,7 +41,7 @@ public class SwtConeRendering {
coneActor.SetMapper(coneMapper);
// VTK rendering part
vtkSwtComponent swtWidget = new vtkSwtComponent(shell);
final vtkSwtComponent swtWidget = new vtkSwtComponent(shell);
swtWidget.getRenderer().AddActor(coneActor);
shell.addControlListener(new ControlListener() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment