当前位置: 首页>>代码示例>>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;未经允许,请勿转载。