本文整理汇总了Java中org.eclipse.ui.IPageLayout.addPlaceholder方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.addPlaceholder方法的具体用法?Java IPageLayout.addPlaceholder怎么用?Java IPageLayout.addPlaceholder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.addPlaceholder方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Setup the default perspective's view positions.
*/
/* Override */
public void createInitialLayout( IPageLayout layout )
{
layout.addShowViewShortcut( Ids.ZXTM_VIEW );
layout.addShowViewShortcut( IPageLayout.ID_PROBLEM_VIEW );
layout.addShowViewShortcut( IPageLayout.ID_TASK_LIST );
layout.addShowViewShortcut( IPageLayout.ID_RES_NAV );
layout.addNewWizardShortcut( Ids.NEW_ZXTM_WIZARD );
layout.addNewWizardShortcut( Ids.NEW_RULE_WIZARD );
layout.addPerspectiveShortcut( Ids.PERSPECTIVE );
String editorArea = layout.getEditorArea();
IFolderLayout left = layout.createFolder( "left", IPageLayout.LEFT, 0.26f, editorArea );
IFolderLayout bottom = layout.createFolder( "bottom", IPageLayout.BOTTOM, 0.74f, editorArea );
left.addView( Ids.ZXTM_VIEW );
left.addView( IPageLayout.ID_RES_NAV );
layout.addPlaceholder( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.8f, editorArea );
bottom.addView( IPageLayout.ID_PROBLEM_VIEW );
bottom.addView( IPageLayout.ID_TASK_LIST );
bottom.addPlaceholder( IPageLayout.ID_PROGRESS_VIEW );
bottom.addPlaceholder( IPageLayout.ID_BOOKMARKS );
bottom.addPlaceholder( IPageLayout.ID_PROP_SHEET );
}
示例2: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.getViewLayout(ProjectExplorerViewPart.ID).setCloseable(false);
// layout.getViewLayout(AnnotationPropertyViewPart.ID).setCloseable(false);
layout.addView(ProjectExplorerViewPart.ID, IPageLayout.LEFT, 0.25f, editorArea);
layout.addView(CodingExplorerViewPart.ID, IPageLayout.BOTTOM, 0.25f, ProjectExplorerViewPart.ID);
layout.addPlaceholder(AnnotationTableViewPart.ID, IPageLayout.BOTTOM, 0.7f, editorArea);
IPlaceholderFolderLayout folder = layout.createPlaceholderFolder("Annoataions", IPageLayout.BOTTOM, 0.5f, CodingExplorerViewPart.ID);
folder.addPlaceholder(AnnotationPropertyViewPart.ID);
folder.addPlaceholder("org.eclipse.pde.runtime.LogView");
}
示例3: addViewPlaceholderByTarget
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
protected String addViewPlaceholderByTarget(IPageLayout layout, String name, String target, int relationship, float ratio) {
String viewId = getViewIdFromClassName(name);
if (viewId != null) {
layout.addShowViewShortcut(viewId);
layout.addPlaceholder(viewId, relationship, ratio, target);
}
return viewId;
}