Code Search for Developers
 
 
  

DevelopmentPerspective.java from MASE: Agile Software Engineering at Krugle


Show DevelopmentPerspective.java syntax highlighted

package ca.ucalgary.cpsc.ebe.fitClipse.perspective;

import org.eclipse.ui.IPerspectiveFactory;

import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;


public class DevelopmentPerspective implements IPerspectiveFactory{

	private static final String TEST_RESULT_ID="ca.ucalgary.cpsc.ebe.fitClipse.ui.testResults.TestResultView";
	private static final String TEST_HIERARCHY_ID="ca.ucalgary.cpsc.ebe.fitClipse.ui.testHierarchy.TestHierarchyView";
//	private static final String DEVELOPMENT_PERSPECTIVE_ID="ca.ucalgary.cpsc.ebe.fitClipse.DevelopmentPerspective";
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		//see the changes: delete for instance C:\runtime-workspace\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml
		IFolderLayout leftUp=layout.createFolder("leftUp", IPageLayout.LEFT,0.25f,editorArea);
		leftUp.addView(JavaUI.ID_PACKAGES);
		leftUp.addView(TEST_HIERARCHY_ID);
		
		IFolderLayout leftBonttom=layout.createFolder("leftBottom", IPageLayout.BOTTOM,0.5f,"leftUp");
		leftBonttom.addView(TEST_RESULT_ID);

		IFolderLayout right=layout.createFolder("right", IPageLayout.RIGHT,0.75f,editorArea);
		right.addView(IPageLayout.ID_OUTLINE);
		
		IFolderLayout bottom=layout.createFolder("bottom", IPageLayout.BOTTOM,0.75f,editorArea);
		bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
		bottom.addView("org.eclipse.ui.console.ConsoleView");
        
		layout.addPerspectiveShortcut("org.eclipse.jdt.ui.JavaPerspective");
		layout.addPerspectiveShortcut("org.eclipse.debug.ui.DebugPerspective");
		
		
		layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
		layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
		layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
		layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
		layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);
		layout.addShowViewShortcut(TEST_HIERARCHY_ID);
		layout.addShowViewShortcut(TEST_RESULT_ID);
		layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
        layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
        layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
        layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
        
//      views - standard workbench
		layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
		layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
		layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
				
		// new actions - Java project creation wizard
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard");	 //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
		layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$
	}

}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  DevelopmentPerspective.java