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


Java IPageLayout.RIGHT屬性代碼示例

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


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

示例1: layoutRest

private void layoutRest(final IPageLayout layout, final IViewContainerContext viewContainerContext, final String relativeTo) {
	if (viewContainerContext instanceof SplitViewContainerContext) {
		final SplitViewContainerContext splitViewContainerContext = (SplitViewContainerContext) viewContainerContext;
		final ISplitLayout splitViewContainer = splitViewContainerContext.getViewContainer();
		final float innerRatio = (float) splitViewContainer.getWeight();
		final int innerRelation = splitViewContainer.getOrientation().equals(Orientation.VERTICAL)
				? IPageLayout.BOTTOM : IPageLayout.RIGHT;
		final String secondViewId = layoutFirst(
				layout,
				splitViewContainerContext.getSecond(),
				innerRelation,
				innerRatio,
				relativeTo);
		layoutRest(layout, splitViewContainerContext.getFirst(), relativeTo);
		layoutRest(layout, splitViewContainerContext.getSecond(), secondViewId);
	}
}
 
開發者ID:jo-source,項目名稱:jo-widgets,代碼行數:17,代碼來源:DynamicPerspective.java

示例2: createHorizontalLayout

private void createHorizontalLayout(IPageLayout layout) {
	String relativePartId= IPageLayout.ID_EDITOR_AREA;
	int relativePos= IPageLayout.TOP;

	if (shouldShowProjectsView()) {
		layout.addView(JavaUI.ID_PROJECTS_VIEW, IPageLayout.TOP, (float)0.25, IPageLayout.ID_EDITOR_AREA);
		relativePartId= JavaUI.ID_PROJECTS_VIEW;
		relativePos= IPageLayout.RIGHT;
	}
	if (shouldShowPackagesView()) {
		layout.addView(JavaUI.ID_PACKAGES_VIEW, relativePos, (float)0.25, relativePartId);
		relativePartId= JavaUI.ID_PACKAGES_VIEW;
		relativePos= IPageLayout.RIGHT;
	}
	layout.addView(JavaUI.ID_TYPES_VIEW, relativePos, (float)0.33, relativePartId);
	layout.addView(JavaUI.ID_MEMBERS_VIEW, IPageLayout.RIGHT, (float)0.50, JavaUI.ID_TYPES_VIEW);

	IPlaceholderFolderLayout placeHolderLeft= layout.createPlaceholderFolder("left", IPageLayout.LEFT, (float)0.25, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
	placeHolderLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
	placeHolderLeft.addPlaceholder(IPageLayout.ID_OUTLINE);
	placeHolderLeft.addPlaceholder(JavaUI.ID_PACKAGES);
	placeHolderLeft.addPlaceholder(JavaPlugin.ID_RES_NAV);
	placeHolderLeft.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER);


	IPlaceholderFolderLayout placeHolderBottom= layout.createPlaceholderFolder("bottom", IPageLayout.BOTTOM, (float)0.75, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
	placeHolderBottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
	placeHolderBottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
	placeHolderBottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
	placeHolderBottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
	placeHolderBottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
	placeHolderBottom.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
	placeHolderBottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:34,代碼來源:JavaBrowsingPerspectiveFactory.java


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