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


Java IPageLayout.addPlaceholder方法代碼示例

本文整理匯總了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 );
}
 
開發者ID:brocade,項目名稱:vTM-eclipse,代碼行數:33,代碼來源:ZXTMPerspective.java

示例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");
   }
 
開發者ID:synergynet,項目名稱:synergyview,代碼行數:12,代碼來源:Perspective.java

示例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;
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:9,代碼來源:BasicPerspectiveFactory.java


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