Commit 898dda8a authored by Johannes Eder's avatar Johannes Eder
Browse files

Merge branch '4028' into 'master'

[4028] TreeTables in pattern views allow only one element to be selected at any time

See merge request af3/af3!343
parents 452e9c4e 1d2b5f23
AllocationPatternFXController.java 840bc404f6aefb8bc0e6f9b25f156d9db647178b GREEN
CouplingPatternFXController.java 937034aa2dd680abfcd815c32deb5f322663dc37 GREEN
AllocationPatternFXController.java 13cb6ad773ab746f167ee2f5684987b5be2e1424 GREEN
CouplingPatternFXController.java 4c6df087c82cdd5cee00936e73faf5cdf92f7a24 GREEN
MemoryPatternFXController.java b45b1eb1418d75cc4f4b2983b996b8ef4abab58d GREEN
SafetyPatternFXController.java 4d84c1bd15d1f8d15475849c5e2b9c24f094b76e GREEN
......@@ -28,6 +28,7 @@ import org.fortiss.tooling.common.ui.javafx.control.treetableview.DynamicTreeVie
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.RadioButton;
import javafx.scene.control.SelectionMode;
import javafx.scene.control.ToggleGroup;
import javafx.scene.control.TreeTableView;
import javafx.scene.control.TreeView;
......@@ -184,6 +185,10 @@ public class AllocationPatternFXController extends PatternFXControllerBase {
allocationButton.setToggleGroup(group);
dislocationButton.setToggleGroup(group);
allocationButton.setSelected(true);
// sets the selection mode of the viewer to allow at most one row selected
taskView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
ecuView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
}
/** {@inheritDoc} */
......
......@@ -42,6 +42,7 @@ import org.fortiss.tooling.common.ui.javafx.control.treetableview.DynamicTreeVie
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.RadioButton;
import javafx.scene.control.SelectionMode;
import javafx.scene.control.ToggleGroup;
import javafx.scene.control.TreeTableView;
import javafx.scene.control.TreeView;
......@@ -169,6 +170,9 @@ public class CouplingPatternFXController extends PatternFXControllerBase {
couplingButton.setToggleGroup(group);
decouplingButton.setToggleGroup(group);
couplingButton.setSelected(true);
// sets the selection mode of the viewer to allow multiple rows to be selected
view.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
}
/** {@inheritDoc} */
......
BusBandwidthOptimizationPatternFXController.java 51a11a64e1a94c8ce97e41cb2e9f0d81cdf691b8 GREEN
HardwareOptimizationPatternFXController.java 28d125e40b85e5054e40c046eb4a27e70589ebb4 GREEN
BusBandwidthOptimizationPatternFXController.java a8ca53c3dd130b80454f0272d4a6563465a7e8c2 GREEN
HardwareOptimizationPatternFXController.java d9bcf15caf37c784e80dbd9e5375c133217d8061 GREEN
......@@ -202,7 +202,7 @@ public class BusBandwidthOptimizationPatternFXController extends PatternFXContro
maxButton.setToggleGroup(group);
minButton.setSelected(true);
// sets the selection mode of the viewer to allow at most one row selected
// sets the selection mode of the viewer to allow only one row to be selected
view.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
}
......
......@@ -264,10 +264,12 @@ public class HardwareOptimizationPatternFXController extends PatternFXController
countButton.setToggleGroup(aggrGroup);
sumButton.setSelected(true);
// sets the selection mode of the viewer to allow at most one row selected
// sets the selection mode of the viewer to allow multiple rows to be selected
ecuView.getSelectionModel().selectAll();
propertyView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
taskView.getSelectionModel().selectAll();
ecuView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
propertyView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
taskView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
}
/** {@inheritDoc} */
......
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