toggle 4 and 0 sideViews with 0 as default

This commit is contained in:
AWIPS User 2015-04-18 22:04:08 -06:00
parent cfae73a15e
commit ef72d436ac
3 changed files with 7 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

View file

@ -528,8 +528,8 @@
</separator>
<command
commandId="com.raytheon.uf.viz.d2d.ui.actions.changeD2DLayout"
icon="icons/5-pane.gif"
label="Default Pane Layout">
icon="icons/square.png"
label="Full Layout">
<parameter
name="sideViews"
value="4">
@ -542,8 +542,8 @@
</command>
<command
commandId="com.raytheon.uf.viz.d2d.ui.actions.changeD2DLayout"
icon="icons/3-pane.gif"
label="Full Layout">
icon="icons/5-pane.gif"
label="Default Pane Layout">
<parameter
name="sideViews"
value="0">

View file

@ -93,8 +93,8 @@ public class D2D5Pane implements IPerspectiveFactory {
}
}
int numViews = ChangeD2DLayoutAction.getViewCount() == 0 ? 0
: baseViewsToAdd.size();
int numViews = ChangeD2DLayoutAction.getViewCount() > 0 ? 0
: 4;
String lastAdded = null;
@ -109,8 +109,7 @@ public class D2D5Pane implements IPerspectiveFactory {
baseView,
false,
IPageLayout.LEFT,
ChangeD2DLayoutAction.getViewCount() == 0 ? ZERO_PANE_WIDTH
: FIVE_PANE_WIDTH, editorArea);
FIVE_PANE_WIDTH, editorArea);
} else {
layout.addStandaloneView(baseView, false,
IPageLayout.BOTTOM, (i >= numViews) ? 1.0f