當前位置: 首頁>>代碼示例>>Java>>正文


Java IFolderLayout.addView方法代碼示例

本文整理匯總了Java中org.eclipse.ui.IFolderLayout.addView方法的典型用法代碼示例。如果您正苦於以下問題:Java IFolderLayout.addView方法的具體用法?Java IFolderLayout.addView怎麽用?Java IFolderLayout.addView使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.IFolderLayout的用法示例。


在下文中一共展示了IFolderLayout.addView方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
@SuppressWarnings ( "deprecation" )
@Override
public void createInitialLayout ( final IPageLayout factory )
{
    final IFolderLayout topLeft = factory.createFolder ( "topLeft", IPageLayout.LEFT, 0.25f, factory.getEditorArea () );
    topLeft.addPlaceholder ( IPageLayout.ID_RES_NAV );
    topLeft.addView ( JavaUI.ID_PACKAGES );
    topLeft.addPlaceholder ( JavaUI.ID_TYPE_HIERARCHY );
    topLeft.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView" ); //$NON-NLS-1$

    final IFolderLayout bottom = factory.createFolder ( "bottomRight", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea () );
    bottom.addView ( "org.eclipse.pde.runtime.LogView" ); //$NON-NLS-1$
    bottom.addView ( IPageLayout.ID_TASK_LIST );
    bottom.addView ( IPageLayout.ID_PROBLEM_VIEW );

    factory.addView ( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, factory.getEditorArea () );

    factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewProjectWizard" ); //$NON-NLS-1$
    factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewFeatureProjectWizard" ); //$NON-NLS-1$
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:21,代碼來源:ScadaPerspectiveFactory.java

示例2: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
 * Creates the initial layout for a page.
 */
@Override
public void createInitialLayout(IPageLayout layout) {

	layout.setEditorAreaVisible(false);
	layout.addView("org.eclipse.scanning.example.xcen.ui.views.XcenDiagram", IPageLayout.LEFT, 0.40f, IPageLayout.ID_EDITOR_AREA);
	layout.addView("org.eclipse.scanning.example.xcen.ui.views.XcenView", IPageLayout.RIGHT, 0.60f, IPageLayout.ID_EDITOR_AREA);

	/*
	    -submit dataacq.xcen.SUBMISSION_QUEUE
	    -topic dataacq.xcen.STATUS_TOPIC
	    -status dataacq.xcen.STATUS_QUEUE
	    -bundle org.eclipse.scanning.example.xcen
	    -consumer org.eclipse.scanning.example.xcen.consumer.XcenConsumer
	 */
	IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.BOTTOM, 0.5f, "org.eclipse.scanning.example.xcen.ui.views.XcenView");
	folderLayout.addView(XcenServices.getQueueViewSecondaryId());
	folderLayout.addView("org.eclipse.scanning.event.ui.consumerView");

}
 
開發者ID:eclipse,項目名稱:scanning,代碼行數:23,代碼來源:XcenPerspective.java

示例3: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
 */
@Override
public void createInitialLayout(IPageLayout layout_p) {
	// Allow editors.
	layout_p.setEditorAreaVisible(true);
	layout_p.createPlaceholderFolder(CENTER_AREA, IPageLayout.LEFT, 0.99f, IPageLayout.ID_EDITOR_AREA);

	IFolderLayout topLeft = layout_p.createFolder(TOPLEFT_AREA, IPageLayout.LEFT,
			(IPageLayout.DEFAULT_VIEW_RATIO / 2), IPageLayout.ID_EDITOR_AREA);
	topLeft.addView(MODEL_EXPLORER_ID);

	IFolderLayout bottomLeft = layout_p.createFolder(BOTTOMLEFT_AREA, IPageLayout.BOTTOM,
			(IPageLayout.DEFAULT_VIEW_RATIO / 0.7f), TOPLEFT_AREA);
	bottomLeft.addView(OUTLINE_ID);

	IFolderLayout bottom = layout_p.createFolder(BOTTOM_AREA, IPageLayout.BOTTOM,
			(IPageLayout.DEFAULT_VIEW_RATIO / 0.7f), IPageLayout.ID_EDITOR_AREA);
	bottom.addView(PROPERTIES_ID);
	bottom.addView(CONTEXTUAL_EXPLORER_ID);
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:23,代碼來源:Time4SysPerspective.java

示例4: defineLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
private void defineLayout(IPageLayout layout) {
	layout.createFolder("left", IPageLayout.LEFT, 0.2f, layout.getEditorArea());
	layout.createFolder("leftTop", IPageLayout.TOP, 0.33f, "left").addView(IPageLayout.ID_PROJECT_EXPLORER);
	layout.createFolder("leftMiddle", IPageLayout.TOP, 0.5f, "left")
			.addView("org.eclipse.papyrus.views.modelexplorer.modelexplorer");
	layout.createFolder("leftBottom", IPageLayout.TOP, 0.5f, "left").addView(IPageLayout.ID_OUTLINE);

	layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
	IFolderLayout bottomTabs = layout.createFolder("bottomTabs", IPageLayout.TOP, 1f, "bottom");
	bottomTabs.addPlaceholder("*");
	bottomTabs.addView(IPageLayout.ID_PROP_SHEET);
	bottomTabs.addView("org.eclipse.ui.console.ConsoleView");
	bottomTabs.addView("org.tigris.subversion.subclipse.ui.repository.RepositoriesView");
	bottomTabs.addView("org.eclipse.egit.ui.RepositoriesView");
	bottomTabs.addView("es.unizar.disco.simulation.ui.views.InvocationsView");
	bottomTabs.addView("DICE-Configuration-IDE-View");
	bottomTabs.addView("org.eclipse.ui.cheatsheets.views.CheatSheetView");
}
 
開發者ID:dice-project,項目名稱:DICE-Platform,代碼行數:19,代碼來源:DicePerspective.java

示例5: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	left.addPlaceholder(IPageLayout.ID_RES_NAV);

	IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
	bottom.addView("org.eclipse.tm.terminal.view.ui.TerminalsView");
	bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
	
	bottom.addPlaceholder(TemplatesView.ID);
	bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
	bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
	bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
	bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
	bottom.addPlaceholder(IPageLayout.ID_TASK_LIST);
	bottom.addPlaceholder(IPageLayout.ID_PROP_SHEET);

	layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);

}
 
開發者ID:angelozerr,項目名稱:angular-eclipse,代碼行數:24,代碼來源:AngularPerspectiveFactory.java

示例6: defineActions

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
private void defineActions(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26,
            editorArea);
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout middleLeft = layout.createFolder("middleLeft", IPageLayout.BOTTOM, (float)
            0.33, "left");
    middleLeft.addView(ReportListView.ID);
    middleLeft.addView(ReportListViewProject.ID);
    
    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.8,
            editorArea);
    right.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    right.addView(IPageLayout.ID_OUTLINE);
    right.addView(IPageLayout.ID_TASK_LIST);

    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.8,
            editorArea);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
}
 
開發者ID:Ericsson,項目名稱:CodeCheckerEclipsePlugin,代碼行數:23,代碼來源:CodeCheckerPerspectiveFactory.java

示例7: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	left.addPlaceholder(IPageLayout.ID_RES_NAV);

	IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
	bottom.addView("org.eclipse.tm.terminal.view.ui.TerminalsView");
	bottom.addView(IPageLayout.ID_PROBLEM_VIEW);

	bottom.addPlaceholder(TemplatesView.ID);
	bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
	bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
	bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
	bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
	bottom.addPlaceholder(IPageLayout.ID_TASK_LIST);
	bottom.addPlaceholder(IPageLayout.ID_PROP_SHEET);

	layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);

}
 
開發者ID:angelozerr,項目名稱:typescript.java,代碼行數:24,代碼來源:TypeScriptPerspectiveFactory.java

示例8: addViews

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
 * add Views
 */
private void addViews() {
    // left
    IFolderLayout left = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__LEFT,
        IPageLayout.LEFT,
        0.20f,
        fLayout.getEditorArea());
    left.addView(UICoreConstant.PROJECT_CONSTANTS__PROJECT_EXPLORER_ID);
    left.addView(JavaUI.ID_PACKAGES);

    // bottom
    IFolderLayout bottom = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__BOTTOM,
        IPageLayout.BOTTOM,
        0.72f,
        fLayout.getEditorArea());
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);

    // right
    IFolderLayout right = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__RIGHT,
        IPageLayout.RIGHT,
        0.80f,
        fLayout.getEditorArea());
    right.addView(IPageLayout.ID_OUTLINE);
}
 
開發者ID:SK-HOLDINGS-CC,項目名稱:NEXCORE-UML-Modeler,代碼行數:28,代碼來源:UMLPerspectiveFactory.java

示例9: defineLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
private static void defineLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    final String bottom = "bottom";
    final String left = "left";

    layout.createFolder(left, IPageLayout.LEFT, (float) 0.23, editorArea);

    IFolderLayout lefttop = layout.createFolder("lefttop", IPageLayout.TOP, (float) 0.35, left);
    lefttop.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout leftbottom = layout.createFolder("leftbottom", IPageLayout.BOTTOM, (float) 0.65, left);
    leftbottom.addView(IPageLayout.ID_OUTLINE);

    layout.createFolder(bottom, IPageLayout.BOTTOM, (float) 0.65, editorArea);

    IFolderLayout bottomleft = layout.createFolder("bottomleft", IPageLayout.LEFT, (float) 0.5, bottom);
    bottomleft.addView(IPageLayout.ID_PROP_SHEET);
    bottomleft.addView("de.cooperateproject.ui.focus.views.FocusView");
    // Exchange with addView once Branch AccessibleDiff is merged to master
    bottomleft.addPlaceholder("de.cooperateproject.ui.diff.views.DiffView");

    IFolderLayout bottomright = layout.createFolder("bottomright", IPageLayout.RIGHT, (float) 0.5, bottom);
    bottomright.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomright.addView("org.eclipse.papyrus.views.validation.ModelValidationView");
}
 
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:26,代碼來源:CooperatePerspective.java

示例10: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);
	layout.addPerspectiveShortcut(ID_PERSPECTIVE);

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float)0.33, layout.getEditorArea());
	left.addView(ModelExplorer.ID);
	IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float)0.90, "left");
	bottomLeft.addView(CurrentUserView.ID);
	
	
	IFolderLayout topRight = layout.createFolder("topRight", IPageLayout.RIGHT, (float)0.55, layout.getEditorArea());
	topRight.addView(WhiteboardChatView.ID);
	IFolderLayout right = layout.createFolder("right", IPageLayout.BOTTOM, (float)0.33, "topRight");
	right.addView(ModelLogView.ID);
	IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, (float)0.60, "right");
	bottomRight.addView(IPageLayout.ID_PROP_SHEET);
			}
 
開發者ID:mondo-project,項目名稱:mondo-demo-wt,代碼行數:24,代碼來源:WTSpec4MEditorAdvisor.java

示例11: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(final IPageLayout layout) {

	layout.setEditorAreaVisible(false);

	//--------------------------------------------------------------------------------

	final IFolderLayout leftFolder = layout.createFolder(FOLDER_ID_LEFT,//
			IPageLayout.LEFT,
			0.4f,
			IPageLayout.ID_EDITOR_AREA);

	leftFolder.addView(RawDataView.ID);

	//--------------------------------------------------------------------------------

	final IFolderLayout topFolder = layout.createFolder(FOLDER_ID_TOP,//
			IPageLayout.TOP,
			0.5f,
			IPageLayout.ID_EDITOR_AREA);

	topFolder.addView(TourChartView.ID);
	topFolder.addPlaceholder(TourLogView.ID);
}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:25,代碼來源:PerspectiveFactoryRawData.java

示例12: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	
	IFolderLayout agentLayout = layout.createFolder(IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION, IPageLayout.LEFT, 0.20f, editorArea);
	agentLayout.addPlaceholder(ObjectNavigationView.ID + ":*");
	agentLayout.addPlaceholder(ObjectDailyListView.ID + ":*");
	agentLayout.addPlaceholder(GroupNavigationView.ID);
	agentLayout.addView(ObjectNavigationView.ID);
	layout.getViewLayout(ObjectNavigationView.ID).setCloseable(false); 
	
	IFolderLayout mainLayout = layout.createFolder("perspective.stack.main", IPageLayout.LEFT, 1.0f, editorArea);
	mainLayout.addView(StackAnalyzerView.ID);
	layout.getViewLayout(StackAnalyzerView.ID).setCloseable(false); 
	
	IFolderLayout explorerFolder = layout.createFolder("perspective.stack.explorer", IPageLayout.BOTTOM, 0.5f, IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION);
	explorerFolder.addView(WorkspaceExplorer.ID);
	
	layout.addPerspectiveShortcut(getId());
}
 
開發者ID:scouter-project,項目名稱:scouter,代碼行數:21,代碼來源:PerspectiveStackAnalyzer.java

示例13: defineLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
 * Defines the initial layout for a page.
 * 
 * @param layout
 *            The layout we are filling
 */
private void defineLayout(IPageLayout layout) {
	// Editors are placed for free.
	String editorArea = layout.getEditorArea();

	// Top left.
	IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea);//$NON-NLS-1$
	topLeft.addView("org.eclipse.jdt.ui.PackageExplorer");
	topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
	topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

	// Bottom left.
	IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
			"topLeft");//$NON-NLS-1$
	bottomLeft.addView(IPageLayout.ID_OUTLINE);
	bottomLeft.addView("org.eclipse.graphiti.ui.internal.editor.thumbnailview");

	// Bottom right.
	IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, (float) 0.66,//$NON-NLS-1$
			editorArea);
	bottomRight.addView(IPageLayout.ID_PROP_SHEET);
	bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
	bottomRight.addView("org.eclipse.ant.ui.views.AntView");
	bottomRight.addView("org.eclipse.pde.runtime.LogView");
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:31,代碼來源:ActivitiPerspective.java

示例14: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
/**
	 * TS默認透視圖。
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	public void createInitialLayout(IPageLayout layout) {

		// layout.createFolder() 默認顯示。
		// layout.createPlaceholderFolder() 默認不顯示。

		String editor = layout.getEditorArea();
		String rightFirst = "RIGHT_TOP";
		String left = "LEFT";
//		String bottom = "RIGHT_BOTTOM";

		IFolderLayout leftFolder = layout.createFolder(left, IPageLayout.LEFT, 0.20F, editor);
		IFolderLayout topFirstFolder = layout.createFolder(rightFirst, IPageLayout.TOP, 0.3F, editor);

		// 顯示術語匹配結果視圖
//		IFolderLayout bottomFolder = layout
//				.createFolder(bottom, IPageLayout.TOP, 0.65F, editor);
//		IPlaceholderFolderLayout pLayout = layout.createPlaceholderFolder(bottom, IPageLayout.RIGHT, 0.65F, editor);

		leftFolder.addView("net.heartsome.cat.common.ui.navigator.view"); // 導航視圖

		topFirstFolder.addView("net.heartsome.cat.ts.ui.translation.view.matchview");
//		bottomFolder.addView("net.heartsome.cat.ts.ui.term.view.termView"); // 術語匹配視圖
//		pLayout.addPlaceholder("net.heartsome.cat.ts.ui.qa.views.QAResultViewPart");
	
	}
 
開發者ID:heartsome,項目名稱:tmxeditor8,代碼行數:30,代碼來源:TSPerspective.java

示例15: createInitialLayout

import org.eclipse.ui.IFolderLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(IPageLayout layout) {
	// 獲取透明視圖的編輯空間標示
	String editerArea = layout.getEditorArea();

	// 編輯器左上部視圖
	IFolderLayout leftTop = layout.createFolder("leftTop", IPageLayout.LEFT, 0.25f, editerArea); // 相對於‘editerArea’編輯器的位置left
	leftTop.addView(ID_FOXBPM_VIEW);//FOXBPM視圖
	leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER); // 工程視圖

	// 編輯器左下角視圖
	IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_PROJECT_EXPLORER); // 相對於上麵‘left’視圖的位置在底部
	leftBottom.addView(IPageLayout.ID_OUTLINE); // OUTLINE視圖

	// 編輯器底部視圖
	IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.65f, editerArea); // 相對於‘editerArea’編輯器的位置底部
	bottom.addView(IPageLayout.ID_PROP_SHEET); // 屬性視圖
	bottom.addView(ID_SERVERS_VIEW);// 服務器視圖
	bottom.addView(IPageLayout.ID_PROBLEM_VIEW); // 問題視圖
	bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);// 控製台視圖
	bottom.addView(ID_SEARCH_VIEW);// 搜索視圖
	bottom.addView(ID_HISTORY_VIEW);// 曆史視圖
}
 
開發者ID:FoxBPM,項目名稱:FoxBPM-Designer,代碼行數:24,代碼來源:FoxBPMPerspective.java


注:本文中的org.eclipse.ui.IFolderLayout.addView方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。