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


Java IFolderLayout.addPlaceholder方法代码示例

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


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

示例1: createInitialLayout

import org.eclipse.ui.IFolderLayout; //导入方法依赖的package包/类
@SuppressWarnings ( "deprecation" )
@Override
public void createInitialLayout ( final IPageLayout factory )
{
    final IFolderLayout topLeft = factory.createFolder ( "topLeft", IPageLayout.LEFT, 0.25f, factory.getEditorArea () );
    topLeft.addPlaceholder ( IPageLayout.ID_RES_NAV );
    topLeft.addView ( JavaUI.ID_PACKAGES );
    topLeft.addPlaceholder ( JavaUI.ID_TYPE_HIERARCHY );
    topLeft.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView" ); //$NON-NLS-1$

    final IFolderLayout bottom = factory.createFolder ( "bottomRight", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea () );
    bottom.addView ( "org.eclipse.pde.runtime.LogView" ); //$NON-NLS-1$
    bottom.addView ( IPageLayout.ID_TASK_LIST );
    bottom.addView ( IPageLayout.ID_PROBLEM_VIEW );

    factory.addView ( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, factory.getEditorArea () );

    factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewProjectWizard" ); //$NON-NLS-1$
    factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewFeatureProjectWizard" ); //$NON-NLS-1$
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:21,代码来源:ScadaPerspectiveFactory.java

示例2: defineLayout

import org.eclipse.ui.IFolderLayout; //导入方法依赖的package包/类
private void defineLayout(IPageLayout layout) {
	layout.createFolder("left", IPageLayout.LEFT, 0.2f, layout.getEditorArea());
	layout.createFolder("leftTop", IPageLayout.TOP, 0.33f, "left").addView(IPageLayout.ID_PROJECT_EXPLORER);
	layout.createFolder("leftMiddle", IPageLayout.TOP, 0.5f, "left")
			.addView("org.eclipse.papyrus.views.modelexplorer.modelexplorer");
	layout.createFolder("leftBottom", IPageLayout.TOP, 0.5f, "left").addView(IPageLayout.ID_OUTLINE);

	layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
	IFolderLayout bottomTabs = layout.createFolder("bottomTabs", IPageLayout.TOP, 1f, "bottom");
	bottomTabs.addPlaceholder("*");
	bottomTabs.addView(IPageLayout.ID_PROP_SHEET);
	bottomTabs.addView("org.eclipse.ui.console.ConsoleView");
	bottomTabs.addView("org.tigris.subversion.subclipse.ui.repository.RepositoriesView");
	bottomTabs.addView("org.eclipse.egit.ui.RepositoriesView");
	bottomTabs.addView("es.unizar.disco.simulation.ui.views.InvocationsView");
	bottomTabs.addView("DICE-Configuration-IDE-View");
	bottomTabs.addView("org.eclipse.ui.cheatsheets.views.CheatSheetView");
}
 
开发者ID:dice-project,项目名称:DICE-Platform,代码行数:19,代码来源:DicePerspective.java

示例3: createInitialLayout

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

示例4: createInitialLayout

import org.eclipse.ui.IFolderLayout; //导入方法依赖的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.IFolderLayout; //导入方法依赖的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.IFolderLayout; //导入方法依赖的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.IFolderLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout) {

	layout.setEditorAreaVisible(false);

	//--------------------------------------------------------------------------------

	final IFolderLayout leftFolder = layout.createFolder(FOLDER_ID_LEFT,//
			IPageLayout.LEFT,
			0.4f,
			IPageLayout.ID_EDITOR_AREA);

	leftFolder.addView(RawDataView.ID);

	//--------------------------------------------------------------------------------

	final IFolderLayout topFolder = layout.createFolder(FOLDER_ID_TOP,//
			IPageLayout.TOP,
			0.5f,
			IPageLayout.ID_EDITOR_AREA);

	topFolder.addView(TourChartView.ID);
	topFolder.addPlaceholder(TourLogView.ID);
}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:25,代码来源:PerspectiveFactoryRawData.java

示例8: createInitialLayout

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

示例9: createInitialLayout

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

示例10: defineLayout

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

示例11: createInitialLayout

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

    layout.setEditorAreaVisible(false);

    IFolderLayout top =
            layout.createFolder("top", IPageLayout.TOP, 1f, editorArea);  //$NON-NLS-1$
    top.addView(DependencyView.ID);
    top.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);

    IFolderLayout bottom_left =
            layout.createFolder("bottom_left", IPageLayout.LEFT, 0.3f, DependencyView.ID);  //$NON-NLS-1$
    bottom_left.addView(MetricsView.ID);

    IFolderLayout left =
            layout.createFolder("left", IPageLayout.TOP, 0.7f, MetricsView.ID);    //$NON-NLS-1$
    left.addView(PackageTreeView.ID);
}
 
开发者ID:iloveeclipse,项目名称:jdepend4eclipse,代码行数:20,代码来源:JDependPerspectiveFactory.java

示例12: createInitialLayout

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

示例13: defineLayout

import org.eclipse.ui.IFolderLayout; //导入方法依赖的package包/类
/**
 * @param layout
 * @param editorArea
 */
public void defineLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); //$NON-NLS-1$
    topLeft.addView("org.python.pydev.navigator.view");

    IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
    //outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

    //Add the outline only if we're not using the minimap.
    if (!MinimapOverviewRulerPreferencesPage.getShowMinimapContents()) {
        layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);
    }
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:22,代码来源:PythonPerspectiveFactory.java

示例14: addViewStructure

import org.eclipse.ui.IFolderLayout; //导入方法依赖的package包/类
protected void addViewStructure(IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	
	IFolderLayout leftFolder = layout.createFolder("leftPane", IPageLayout.LEFT, 0.25f, editorArea);
	leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
	
	IFolderLayout bottomFolder = layout.createFolder("bottomPane", IPageLayout.BOTTOM, 0.75f, editorArea);
	
	bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
	bottomFolder.addView(IPageLayout.ID_TASK_LIST);
	bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
	bottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW);
	bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
	
	// Create outline after bottom pane
	layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, editorArea);
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:18,代码来源:LangPerspective.java

示例15: createInitialLayout

import org.eclipse.ui.IFolderLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	IFolderLayout fld = layout.createFolder("AbrechnungsFolder", IPageLayout.LEFT, 0.6f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout frd = layout.createFolder("Detailfolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	fld.addView(PatHeuteView.ID);
	fld.addView(KonsZumVerrechnenView.ID);
	fld.addView(RechnungsListeView.ID);
	frd.addView(RnDetailView.ID);
	frd.addView(KonsDetailView.ID);
	frd.addPlaceholder(FallDetailView.ID);
	frd.addPlaceholder(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(PatHeuteView.ID);
	layout.addShowViewShortcut(KonsZumVerrechnenView.ID);
	layout.addShowViewShortcut(RnDetailView.ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(RechnungsListeView.ID);
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:19,代码来源:AbrechnungsPerspektive.java


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