package net.sourceforge.texlipse;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.console.IConsoleConstants;

public class TexPerspectiveFactory implements IPerspectiveFactory {
    
    private final static String ID_TABLE_VIEW = "net.sourceforge.texlipse.TableView";
    private final static String ID_FULL_OUTLINE = "net.sourceforge.texlipse.FullOutline";
    private final static String ID_PROJECT_WIZARD = "net.sourceforge.texlipse.TexProjectWizard";
    private final static String ID_LATEX_FILE_WIZARD = "net.sourceforge.texlipse.wizards.TexlipseNewTexFileWizard";

    public void createInitialLayout(IPageLayout layout) {
        String editorArea = layout.getEditorArea();
                
        //Navigator view left
        layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.25f, editorArea);
        
        //Outline view on the left
        IFolderLayout left = layout.createFolder("left", IPageLayout.BOTTOM, 0.50f, 
                IPageLayout.ID_PROJECT_EXPLORER);
        left.addView(IPageLayout.ID_OUTLINE);
        left.addView(ID_FULL_OUTLINE);
        
        // Put the Favorites view on the bottom with 
        // the Tasks view.
        IFolderLayout bottom =
           layout.createFolder(
              "bottom",
              IPageLayout.BOTTOM,
              0.70f,
              editorArea);
        bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
        bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
        bottom.addView(IPageLayout.ID_TASK_LIST);
        bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        bottom.addView(ID_TABLE_VIEW);
        
        layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
        layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
        layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
        layout.addShowViewShortcut(ID_FULL_OUTLINE);
        layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
        layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
        layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
        layout.addShowViewShortcut(ID_TABLE_VIEW);

        layout.addNewWizardShortcut(ID_PROJECT_WIZARD);
        layout.addNewWizardShortcut(ID_LATEX_FILE_WIZARD);
    }

}

@@ -193,16 +193,89 @@
 tants;%0A%0A
+/**%0A * A simple LaTeX perspective%0A * %0A * @author Boris von Loesch%0A *%0A */%0A
 public c
@@ -1257,89 +1257,8 @@
    %0A
-        // Put the Favorites view on the bottom with %0A        // the Tasks view.%0A
     
@@ -2183,16 +2183,78 @@
 VIEW);%0A%0A
+        //Add project and Latex file creation wizards to menu%0A
         

Add a comment