⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 securityperspective.java

📁 用java 实现的IE browser适合于学者
💻 JAVA
字号:
/*
 * Created on 2004-9-11
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.hnjchina;

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


/**
 * @author limeiyong
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class SecurityPerspective implements IPerspectiveFactory {
	/* (non-Javadoc)
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	public	SecurityPerspective(){
	}
	public void createInitialLayout(IPageLayout layout) {
/*		
//		定义透视图内所有视图和编辑器的初始布局
		layout.setEditorAreaVisible(false);
		layout.addView(SecurityApplication.SECURITY_TREE_VIEW_ID,IPageLayout.RIGHT,.25f,IPageLayout.ID_EDITOR_AREA);
		layout.addPlaceholder(SecurityApplication.HISTORY_VIEW_ID,IPageLayout.LEFT, .3f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$		
		IViewLayout historyLayout = layout.getViewLayout(SecurityApplication.HISTORY_VIEW_ID);
		historyLayout.setCloseable(false);
		historyLayout = layout.getViewLayout(SecurityApplication.SECURITY_TREE_VIEW_ID);
		historyLayout.setMoveable(false);
		historyLayout.setCloseable(false);
*/
		// Get the editor area.
		 	String editorArea = layout.getEditorArea();
		 
		 		// Top left: Resource Navigator view and Bookmarks view placeholder
		 		IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,editorArea);
//		 		topLeft.addPlaceholder(SecurityApplication.HISTORY_VIEW_ID);
		 		topLeft.addView(SecurityApplication.HISTORY_VIEW_ID);
		 		
		 		// Bottom left: Outline view and Property Sheet view
		 		IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50f,"topLeft");
		 		bottomLeft.addPlaceholder(SecurityApplication.SECURITY_JFACE_VIEW_ID);		 		
//		 		bottomLeft.addView(SecurityApplication.SECURITY_TABLEVIEW_VIEW_ID);
		 		bottomLeft.addView(SecurityApplication.SEARCHVIEW_ID);
		 				 
		 		// Bottom right: Task List view
		 		layout.addView(SecurityApplication.SECURITY_TREE_VIEW_ID, IPageLayout.LEFT, 0.66f,editorArea);
		 		layout.setEditorAreaVisible(false);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -