File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/main/java/edu/rpi/legup Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public void executeCommand() {
6363 final TreeViewSelection newSelection = new TreeViewSelection ();
6464
6565 TreeNode node = (TreeNode ) selection .getFirstSelection ().getTreeElement ();
66+ node .markAsCaseRule ();//See TreeNode.java:17
6667 if (caseTrans .isEmpty ()) {
6768 List <Board > cases =
6869 caseRule .getCases (caseBoard .getBaseBoard (), elementView .getPuzzleElement ());
Original file line number Diff line number Diff line change @@ -14,6 +14,19 @@ public class TreeNode extends TreeElement {
1414 private List <TreeTransition > children ;
1515 private boolean isRoot ;
1616
17+ /**
18+ * This group of member variables and functions is here so that the nodes on the tree will have different
19+ * colors depending on what flavor or rule they are supposed to represent, or some other mark on them.
20+ *
21+ * This is intended as a minor UI improvement.
22+ *
23+ * This is a work in progress, the implementation of this functionality is NOT complete.
24+ * */
25+ private boolean isBasicRule ;
26+ private boolean isCaseRule ;
27+ private boolean isContrRule ;
28+ public void markAsCaseRule (){this .isCaseRule =true ;}
29+
1730 /**
1831 * TreeNode Constructor creates a tree node whenever a rule has been made
1932 *
You can’t perform that action at this time.
0 commit comments