import org.eclipse.swt.widgets.Display;
import org.simantics.db.Resource;
import org.simantics.g3d.math.MathTools;
import org.eclipse.swt.widgets.Display;
import org.simantics.db.Resource;
import org.simantics.g3d.math.MathTools;
public void run() {
ComponentSelectionDialog dialog = new ComponentSelectionDialog(Display.getCurrent().getActiveShell(), allowed, component, libUri);
public void run() {
ComponentSelectionDialog dialog = new ComponentSelectionDialog(Display.getCurrent().getActiveShell(), allowed, component, libUri);
this.insertPosition = dialog.getInsertPosition();
this.insertAdjustable = dialog.isInsertAdjustable();
this.lengthAdjustable = dialog.isLenghtAdjustable();
this.insertPosition = dialog.getInsertPosition();
this.insertAdjustable = dialog.isInsertAdjustable();
this.lengthAdjustable = dialog.isLenghtAdjustable();