package factOrFiction.views;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IPlaceholderFolderLayout;
import factOrFiction.wizards.DeckNewWizard;
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(true);
// layout.addStandaloneView(NavigationView.ID, true, IPageLayout.LEFT, 0.25f, editorArea);
// layout.getViewLayout(NavigationView.ID).setCloseable(false);
layout.addShowViewShortcut(CardView.ID);
layout.addShowViewShortcut(NavigationView.ID);
layout.addNewWizardShortcut(DeckNewWizard.ID);
// Top left.
IFolderLayout topLeft = layout.createFolder( "topLeft", IPageLayout.LEFT, 0.33f, editorArea);//$NON-NLS-1$
topLeft.addView(NavigationView.ID);
layout.getViewLayout(NavigationView.ID).setCloseable(false);
// Bottom left.
IPlaceholderFolderLayout bottomLeft = layout.createPlaceholderFolder( "bottomLeft", IPageLayout.BOTTOM, 0.60f, "topLeft"); //$NON-NLS-1$
bottomLeft.addPlaceholder(CardView.ID);
}
}