50 |
other = fallback.windows[fallback.RIGHT]; |
other = fallback.windows[fallback.RIGHT]; |
51 |
else if(win == fallback.windows[fallback.RIGHT]) |
else if(win == fallback.windows[fallback.RIGHT]) |
52 |
other = fallback.windows[fallback.LEFT]; |
other = fallback.windows[fallback.LEFT]; |
53 |
else if(fallback.binder.directOp == FallbackBinder.REASSIGN_ARROWSET) |
else if(fallback.binder.directOp == DefaultBinder.REASSIGN_ARROWSET) |
54 |
other = null; // REASSIGN_ARROWSET is shown in all windows |
other = null; // REASSIGN_ARROWSET is shown in all windows |
55 |
else |
else |
56 |
return; // command doesn't apply to this window... |
return; // command doesn't apply to this window... |
65 |
|
|
66 |
if(fallback.mode == fallback.NORMAL) { |
if(fallback.mode == fallback.NORMAL) { |
67 |
switch(fallback.binder.directOp) { |
switch(fallback.binder.directOp) { |
68 |
case FallbackBinder.NONE: return; |
case DefaultBinder.NONE: return; |
69 |
case FallbackBinder.CONNECT: |
case DefaultBinder.CONNECT: |
70 |
ch.addBox(text("Connect [where?] to ")); |
ch.addBox(text("Connect [where?] to ")); |
71 |
if(fallback.binder.marks.isEmpty()) |
if(fallback.binder.marks.isEmpty()) |
72 |
ch.addBox(cell(other.cursor, win)); |
ch.addBox(cell(other.cursor, win)); |
78 |
} else |
} else |
79 |
ch.addBox(text("the marked cells")); |
ch.addBox(text("the marked cells")); |
80 |
break; |
break; |
81 |
case FallbackBinder.DISCONNECT: |
case DefaultBinder.DISCONNECT: |
82 |
ch.addBox(text("Break [which connection?]")); break; |
ch.addBox(text("Break [which connection?]")); break; |
83 |
case FallbackBinder.HOP: |
case DefaultBinder.HOP: |
84 |
ch.addBox(text("Hop [in which direction?]")); break; |
ch.addBox(text("Hop [in which direction?]")); break; |
85 |
case FallbackBinder.NEW: |
case DefaultBinder.NEW: |
86 |
ch.addBox(text("Create a new cell [where?]")); break; |
ch.addBox(text("Create a new cell [where?]")); break; |
87 |
case FallbackBinder.CLONE_R: |
case DefaultBinder.CLONE_R: |
88 |
ch.addBox(text("Clone ")); |
ch.addBox(text("Clone ")); |
89 |
ch.addBox(cell(fallback.windows[1].cursor, win)); |
ch.addBox(cell(fallback.windows[1].cursor, win)); |
90 |
ch.addBox(text(" [where?]", 2)); |
ch.addBox(text(" [where?]", 2)); |
91 |
break; |
break; |
92 |
case FallbackBinder.CLONE_L: |
case DefaultBinder.CLONE_L: |
93 |
ch.addBox(text("Clone ")); |
ch.addBox(text("Clone ")); |
94 |
ch.addBox(cell(fallback.windows[0].cursor, win)); |
ch.addBox(cell(fallback.windows[0].cursor, win)); |
95 |
ch.addBox(text(" [where?]", 2)); |
ch.addBox(text(" [where?]", 2)); |
96 |
break; |
break; |
97 |
case FallbackBinder.REASSIGN_ARROWSET: |
case DefaultBinder.REASSIGN_ARROWSET: |
98 |
ch.addBox(text("Move cursor to reassign arrowset")); |
ch.addBox(text("Move cursor to reassign arrowset")); |
99 |
break; |
break; |
100 |
default: |
default: |