File tree Expand file tree Collapse file tree
src/main/java/org/scijava/ui/swing/script Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,10 +235,8 @@ public void actionPerformed(final ActionEvent ae) {
235235 public void actionPerformed (ActionEvent e ) {
236236 if (DOWN_ARROW .equals (switchSplit .getText ())) {
237237 TextEditorTab .this .setOrientation (JSplitPane .VERTICAL_SPLIT );
238- switchSplit .setText (RIGHT_ARROW );
239238 } else {
240239 TextEditorTab .this .setOrientation (JSplitPane .HORIZONTAL_SPLIT );
241- switchSplit .setText (DOWN_ARROW );
242240 }
243241 // Keep prompt collapsed if not in use
244242 if (!incremental .isSelected ()) {
@@ -330,7 +328,14 @@ public void actionPerformed(ActionEvent a) {
330328 JSplitPane getScreenAndPromptSplit () {
331329 return screenAndPromptSplit ;
332330 }
333-
331+
332+ @ Override
333+ public void setOrientation (final int orientation ) {
334+ super .setOrientation (orientation );
335+ switchSplit .setText (orientation == JSplitPane .VERTICAL_SPLIT ? //
336+ RIGHT_ARROW : DOWN_ARROW );
337+ }
338+
334339 // Package private
335340 void destroy () {
336341 dropTarget .removeDropTargetListener (dropTargetListener );
You can’t perform that action at this time.
0 commit comments