diff --git a/cave/com.raytheon.uf.viz.d2d.ui/plugin.xml b/cave/com.raytheon.uf.viz.d2d.ui/plugin.xml
index 8db642bcaf..9d7e93e06e 100644
--- a/cave/com.raytheon.uf.viz.d2d.ui/plugin.xml
+++ b/cave/com.raytheon.uf.viz.d2d.ui/plugin.xml
@@ -200,10 +200,10 @@
+ label="Full Layout">
+ value="0">
+ label="Full Layout">
+ value="0">
= numViews) ? 1.0f
- : 1.0f / (numViews - i + 1), lastAdded);
- }
- lastAdded = baseView;
- addedViews.add(lastAdded);
- }
+ if (numViews > 0) {
+ for (int i = 0; i < baseViewsToAdd.size(); ++i) {
+ String baseView = baseViewsToAdd.get(i);
+ if (baseViewsToAdd.contains(baseView)) {
+ if (lastAdded == null) {
+ layout.addStandaloneView(
+ baseView,
+ false,
+ IPageLayout.LEFT,
+ ChangeD2DLayoutAction.getViewCount() == 0 ? ZERO_PANE_WIDTH
+ : FIVE_PANE_WIDTH, editorArea);
+ } else {
+ layout.addStandaloneView(baseView, false,
+ IPageLayout.BOTTOM, (i >= numViews) ? 1.0f
+ : 1.0f / (numViews - i + 1), lastAdded);
+ }
+ lastAdded = baseView;
+ addedViews.add(lastAdded);
+ }
+ }
}
addedViews.addAll(baseViewsToAdd);
@@ -131,7 +133,7 @@ public class D2D5Pane implements IPerspectiveFactory {
}
}
}
-
+
if (extraViews.size() > 0) {
IFolderLayout folder = layout.createFolder(
"com.raytheon.uf.viz.d2d.ui.extrasFolder",