当前位置: 首页>>代码示例>>Java>>正文


Java IPageLayout.getEditorArea方法代码示例

本文整理汇总了Java中org.eclipse.ui.IPageLayout.getEditorArea方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.getEditorArea方法的具体用法?Java IPageLayout.getEditorArea怎么用?Java IPageLayout.getEditorArea使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.IPageLayout的用法示例。


在下文中一共展示了IPageLayout.getEditorArea方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
	
	final String editorArea = layout.getEditorArea();

	// Top left:
	IFolderLayout topLeft = layout.createFolder(ID_FOLDER_TOP_LEFT, IPageLayout.LEFT, 0.25f, editorArea);
	topLeft.addView(IPageLayout.ID_RES_NAV);
	//topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
	
	// Bottom left: Outline view
	IFolderLayout bottomLeft = layout.createFolder(ID_FOLDER_BOTTOM_LEFT, IPageLayout.BOTTOM, 0.50f, ID_FOLDER_TOP_LEFT);
	bottomLeft.addView(IPageLayout.ID_OUTLINE);

	// Bottom: Property Sheet view
	IFolderLayout bottom = layout.createFolder(ID_FOLDER_BOTTOM, IPageLayout.BOTTOM, 0.75f, editorArea);
	bottom.addView(IPageLayout.ID_PROP_SHEET);

	layout.setEditorAreaVisible(true);
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:21,代码来源:TitaniumPerspectiveFactory.java

示例2: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例3: defineActions

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例4: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例5: defineLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private void defineLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
			0.16f, editorArea);
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	// Included to get rid of a warning issued by the workbench
	left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");

	IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
			0.84f, editorArea);
	right.addView(IPageLayout.ID_OUTLINE);

	IFolderLayout bottom = layout.createFolder("bottom",
			IPageLayout.BOTTOM, 0.65f, editorArea);
	bottom.addView(IPageLayout.ID_PROP_SHEET);
	bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
	bottom.addView(IPageLayout.ID_TASK_LIST);
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:20,代码来源:ModelingPerspectiveFactory.java

示例6: defineLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private void defineLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.16f, editorArea);
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	// Included to get rid of a warning issued by the workbench
	left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");

	IFolderLayout bottomleft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.68f, "left");
	bottomleft.addView(IPageLayout.ID_OUTLINE);

	IFolderLayout bottomRight = layout.createFolder("right", IPageLayout.RIGHT, 0.76f, editorArea);
	bottomRight.addView("org.yakindu.sct.simulation.ui.declarationview");
	bottomRight.addView("org.eclipse.debug.ui.BreakpointView");
	bottomRight.addView("org.yakindu.sct.simulation.snapshots.ui.snapshotsview");
	bottomRight.addPlaceholder("org.eclipse.debug.ui.DebugView");
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:18,代码来源:SimulationPerspectiveFactory.java

示例7: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout) {
	final String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);

	layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.05f, editorArea);
	final IFolderLayout folder = layout.createFolder("de.afbb.bibo.ui.category.main", IPageLayout.RIGHT, 0.30f,
			NavigationView.ID);
	folder.addPlaceholder(WelcomeView.ID);
	folder.addPlaceholder(BorrowerView.ID);
	folder.addPlaceholder(LendCopyView.ID);
	folder.addPlaceholder(RegisterCopyView.ID);
	folder.addPlaceholder(ReturnCopyView.ID);
	layout.getViewLayout(NavigationView.ID).setCloseable(false);
	layout.getViewLayout(NavigationView.ID).setMoveable(false);
}
 
开发者ID:FI13,项目名称:afbb-bibo,代码行数:17,代码来源:Perspective.java

示例8: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例9: defineLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例10: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout)
{
	// Get the editor area
	String editorArea = layout.getEditorArea();

	// Left
	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); //$NON-NLS-1$
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	left.addPlaceholder(APP_EXPLORER_ID);
	left.addPlaceholder("com.aptana.ui.io.remoteview"); //$NON-NLS-1$

	// Bottom right: Console. Had to leave this programmatic to get the Console appear in bottom right
	IFolderLayout bottomArea = layout.createFolder("terminalArea", IPageLayout.BOTTOM, 0.75f, //$NON-NLS-1$
			editorArea);
	bottomArea.addView(IConsoleConstants.ID_CONSOLE_VIEW);
	bottomArea.addPlaceholder("com.aptana.terminal.views.terminal:*"); //$NON-NLS-1$

	UIUtils.setCoolBarVisibility(true);
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:20,代码来源:WebPerspectiveFactory.java

示例11: defineLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例12: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
	if (Platform.getOS().equals(Platform.OS_WIN32)){
		final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro();
		PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart);
		IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
		IWorkbenchPage page = window.getActivePage();
		try {
			hideDashboards();
			PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window);
			page.openEditor(new NullEditorInput(), CLASSIC_DASHBOARD_ID);
		} catch (Exception e) {
		}
	}
	else{
		String editorArea = layout.getEditorArea();
		IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea);
		topLeft.addView(ANIMATED_DASHBOARD_ID);
	}
}
 
开发者ID:wso2,项目名称:developer-studio,代码行数:21,代码来源:DeveloperStudioPerspective.java

示例13: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的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

示例14: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout) {
  String editorId = layout.getEditorArea();

  IFolderLayout bottom1 = layout.createFolder("bottom1", IPageLayout.BOTTOM, .75f, editorId);
  bottom1.addView(IPageLayout.ID_PROBLEM_VIEW);
  bottom1.addView(IPageLayout.ID_TASK_LIST);
  bottom1.addView(IConsoleConstants.ID_CONSOLE_VIEW);

  IFolderLayout bottom2 = layout.createFolder("bottom2", IPageLayout.RIGHT, .5f, "bottom1");
  bottom2.addView("com.github.jknack.Antlr4.syntaxDiagram");
  bottom2.addView("antlr4.parseTreeView");

  IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, .22f, editorId);
  folder.addView(IPageLayout.ID_PROJECT_EXPLORER);

  IFolderLayout outline = layout.createFolder("right", IPageLayout.RIGHT, .7f, editorId);
  outline.addView(IPageLayout.ID_OUTLINE);
}
 
开发者ID:antlr4ide,项目名称:antlr4ide,代码行数:20,代码来源:Antlr4Perspective.java

示例15: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout)
{
  final String editorArea = layout.getEditorArea();
  // Create and populate the execution state folder
  final IFolderLayout executionStateFolderLayout = layout.createFolder(
      JivePerspectiveFactory.ID_FOLDER_EXECUTION_STATE, IPageLayout.RIGHT, (float) 0.45,
      editorArea);
  setExecutionStateFolderViews(executionStateFolderLayout);
  // Create and populate the execution history folder
  final IFolderLayout executionHistoryFolderLayout = layout.createFolder(
      JivePerspectiveFactory.ID_FOLDER_EXECUTION_HISTORY, IPageLayout.BOTTOM, (float) 0.50,
      JivePerspectiveFactory.ID_FOLDER_EXECUTION_STATE);
  setExecutionHistoryFolderViews(executionHistoryFolderLayout);
  // Create and populate the launch folder
  final IFolderLayout launchFolderLayout = layout.createFolder(
      JivePerspectiveFactory.ID_FOLDER_LAUNCH, IPageLayout.TOP, (float) 0.30, editorArea);
  setLaunchFolderViews(launchFolderLayout);
  // Create and populate the console folder
  final IFolderLayout consoleFolderLayout = layout.createFolder(
      JivePerspectiveFactory.ID_FOLDER_CONSOLE, IPageLayout.BOTTOM, (float) 0.67, editorArea);
  setConsoleFolderViews(consoleFolderLayout);
  // Populate the "Window -> Open Perspective" and "Window -> Show View" menus
  setPerspectiveShortcuts(layout);
  setViewShortcuts(layout);
}
 
开发者ID:UBPL,项目名称:jive,代码行数:27,代码来源:JivePerspectiveFactory.java


注:本文中的org.eclipse.ui.IPageLayout.getEditorArea方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。