Changeset 384
- Timestamp:
- 07/27/10 00:13:15 (2 years ago)
- Files:
-
- kahina/trunk/src/org/kahina/core/KahinaRunner.java (modified) (1 diff)
- kahina/trunk/src/org/kahina/core/data/tree/KahinaTree.java (modified) (1 diff)
- kahina/trunk/src/org/kahina/core/gui/KahinaGUI.java (modified) (2 diffs)
- kahina/trunk/src/org/kahina/lp/LogicProgrammingState.java (modified) (1 diff)
- kahina/trunk/src/org/kahina/lp/gui/LogicProgrammingGUI.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
kahina/trunk/src/org/kahina/core/KahinaRunner.java
r383 r384 7 7 import org.kahina.core.event.KahinaEvent; 8 8 import org.kahina.core.io.magazine.ObjectMagazine; 9 import org.kahina.lp.LogicProgrammingStep;10 9 11 10 public class KahinaRunner kahina/trunk/src/org/kahina/core/data/tree/KahinaTree.java
r315 r384 8 8 public abstract class KahinaTree extends KahinaObject 9 9 { 10 /** 11 * Public just to be lightweight. Do not be tempted to directly access 12 * this field. 13 */ 14 public LayerDecider decider; 10 protected LayerDecider decider; 15 11 16 /** 17 * Public just to be lightweight. Do not be tempted to directly access 18 * this field. 19 */ 20 public KahinaTree primaryModel; 12 private KahinaTree primaryModel; 21 13 22 /**23 * Only temporary meaning, does not need to be persisted.24 */25 14 private int referenceNode; 26 15 27 /** 28 * Public just to be lightweight. Do not be tempted to directly access 29 * this field. 30 */ 31 public int rootID; 32 33 public KahinaTree() 34 { 35 // need no-arg constructor for lightweight subclasses 36 } 16 private int rootID; 37 17 38 18 public KahinaTree(LayerDecider decider) kahina/trunk/src/org/kahina/core/gui/KahinaGUI.java
r383 r384 38 38 public class KahinaGUI implements KahinaListener 39 39 { 40 private static final boolean verbose = false;40 private static final boolean verbose = true; 41 41 42 42 protected KahinaInstance<?, ?, ?> kahina; … … 223 223 private void processEvent(KahinaSelectionEvent e) 224 224 { 225 displayMainViews(); 225 226 if (e.getPanel() == null || livingViews.contains(e.getPanel().view)) 226 227 { 227 228 //ignore selections that would lead to an empty current node 228 if (e.getSelectedStep() != -1) 229 int stepID = e.getSelectedStep(); 230 if (stepID != -1) 229 231 { 230 int selectedStep = e.getSelectedStep(); 231 displayStepContent(selectedStep); 232 KahinaRunner.processEvent(new KahinaUpdateEvent(selectedStep)); 232 if (verbose) 233 { 234 System.err.println("Updating selection to step " + stepID); 235 } 236 displayStepContent(stepID); 237 KahinaRunner.processEvent(new KahinaUpdateEvent(stepID)); 233 238 KahinaRunner.processEvent(new KahinaRedrawEvent()); 234 239 } kahina/trunk/src/org/kahina/lp/LogicProgrammingState.java
r381 r384 9 9 import java.util.Set; 10 10 11 import org.kahina.core.KahinaInstance;12 11 import org.kahina.core.KahinaRunner; 13 12 import org.kahina.core.KahinaState; kahina/trunk/src/org/kahina/lp/gui/LogicProgrammingGUI.java
r344 r384 51 51 mainTreeView.setStatusColorEncoding(LogicProgrammingStepType.FAIL, new Color(183, 50, 50)); 52 52 mainTreeView.setStatusColorEncoding(LogicProgrammingStepType.REDO, new Color(204, 102, 0)); 53 mainTreeView.setStatusColorEncoding(LogicProgrammingStepType.PSEUDO_UNBLOCKED, Color.LIGHT_GRAY);54 53 } 55 54
