Package factOrFiction.views

Source Code of factOrFiction.views.Perspective

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);
  }
}
TOP

Related Classes of factOrFiction.views.Perspective

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.