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


Java IPageLayout类代码示例

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


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

示例1: createInitialLayout

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

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
 */
@Override
public void createInitialLayout(IPageLayout layout_p) {
	// Allow editors.
	layout_p.setEditorAreaVisible(true);
	layout_p.createPlaceholderFolder(CENTER_AREA, IPageLayout.LEFT, 0.99f, IPageLayout.ID_EDITOR_AREA);

	IFolderLayout topLeft = layout_p.createFolder(TOPLEFT_AREA, IPageLayout.LEFT,
			(IPageLayout.DEFAULT_VIEW_RATIO / 2), IPageLayout.ID_EDITOR_AREA);
	topLeft.addView(MODEL_EXPLORER_ID);

	IFolderLayout bottomLeft = layout_p.createFolder(BOTTOMLEFT_AREA, IPageLayout.BOTTOM,
			(IPageLayout.DEFAULT_VIEW_RATIO / 0.7f), TOPLEFT_AREA);
	bottomLeft.addView(OUTLINE_ID);

	IFolderLayout bottom = layout_p.createFolder(BOTTOM_AREA, IPageLayout.BOTTOM,
			(IPageLayout.DEFAULT_VIEW_RATIO / 0.7f), IPageLayout.ID_EDITOR_AREA);
	bottom.addView(PROPERTIES_ID);
	bottom.addView(CONTEXTUAL_EXPLORER_ID);
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:23,代码来源:Time4SysPerspective.java

示例3: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * Creates the initial layout for a page.
 */
@Override
public void createInitialLayout(IPageLayout layout) {

	layout.setEditorAreaVisible(false);
	layout.addView("org.eclipse.scanning.example.xcen.ui.views.XcenDiagram", IPageLayout.LEFT, 0.40f, IPageLayout.ID_EDITOR_AREA);
	layout.addView("org.eclipse.scanning.example.xcen.ui.views.XcenView", IPageLayout.RIGHT, 0.60f, IPageLayout.ID_EDITOR_AREA);

	/*
	    -submit dataacq.xcen.SUBMISSION_QUEUE
	    -topic dataacq.xcen.STATUS_TOPIC
	    -status dataacq.xcen.STATUS_QUEUE
	    -bundle org.eclipse.scanning.example.xcen
	    -consumer org.eclipse.scanning.example.xcen.consumer.XcenConsumer
	 */
	IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.BOTTOM, 0.5f, "org.eclipse.scanning.example.xcen.ui.views.XcenView");
	folderLayout.addView(XcenServices.getQueueViewSecondaryId());
	folderLayout.addView("org.eclipse.scanning.event.ui.consumerView");

}
 
开发者ID:eclipse,项目名称:scanning,代码行数:23,代码来源:XcenPerspective.java

示例4: defineActions

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * Defines the initial actions for a page.  
 */

public void defineActions(IPageLayout layout) {

	// Add "new wizards". They will be present in File/New menu
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.project"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); //$NON-NLS-1$

	// Add "show views". They will be present in "show view" menu
	layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
	layout.addShowViewShortcut(ISVNUIConstants.HISTORY_VIEW_ID);
	layout.addShowViewShortcut(RepositoriesView.VIEW_ID);
	layout.addShowViewShortcut(ISynchronizeView.VIEW_ID);
	
	// Add  "perspective short cut"
	layout.addPerspectiveShortcut("org.eclipse.ui.resourcePerspective"); //$NON-NLS-1$
	layout.addPerspectiveShortcut("org.eclipse.team.ui.TeamSynchronizingPerspective"); //$NON-NLS-1$
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:24,代码来源:SVNPerspective.java

示例5: defineActions

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
private void defineActions(IPageLayout layout) {
	// Add File New Item
	layout.addNewWizardShortcut("org.dice.rcp.wizard.project.generic");
	layout.addNewWizardShortcut("org.dice.rcp.wizard.project.qualitytesting");
	layout.addNewWizardShortcut("org.eclipse.papyrus.uml.diagram.wizards.createproject");
	layout.addNewWizardShortcut("org.eclipse.papyrus.uml.diagram.wizards.createmodel");

	// Add "show views".
	layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
	layout.addShowViewShortcut("org.eclipse.papyrus.views.modelexplorer.modelexplorer");
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
	layout.addShowViewShortcut("org.eclipse.ui.console.ConsoleView");
	layout.addShowViewShortcut("org.tigris.subversion.subclipse.ui.repository.RepositoriesView");
	layout.addShowViewShortcut("org.eclipse.egit.ui.RepositoriesView");
	layout.addShowViewShortcut("es.unizar.disco.simulation.ui.views.InvocationsView");
	layout.addShowViewShortcut("DICE-Configuration-IDE-View");
	layout.addShowViewShortcut("org.eclipse.ui.cheatsheets.views.CheatSheetView");

	// Add Perspectives
	layout.addPerspectiveShortcut(ID);
	layout.addPerspectiveShortcut("org.eclipse.papyrus.infra.core.perspective");
	layout.addPerspectiveShortcut("org.eclipse.jdt.ui.JavaPerspective");
}
 
开发者ID:dice-project,项目名称:DICE-Platform,代码行数:25,代码来源:DicePerspective.java

示例6: defineLayout

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

示例7: 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

示例8: createPageContainer

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected Composite createPageContainer(final Composite parent) {
    try {
        final IWorkbenchPage page = getSite().getWorkbenchWindow().getActivePage();

        if (page != null) {
            page.showView(IPageLayout.ID_OUTLINE);
        }

    } catch (final PartInitException e) {
        ERDiagramActivator.showExceptionDialog(e);
    }

    return super.createPageContainer(parent);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:19,代码来源:ERDiagramMultiPageEditor.java

示例9: 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

示例10: createPageContainer

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected Composite createPageContainer(Composite parent) {
	try {
		IWorkbenchPage page = this.getSite().getWorkbenchWindow()
				.getActivePage();

		if (page != null) {
			page.showView(IPageLayout.ID_OUTLINE);
		}

	} catch (PartInitException e) {
		ERDiagramActivator.showExceptionDialog(e);
	}

	return super.createPageContainer(parent);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:20,代码来源:ERDiagramMultiPageEditor.java

示例11: 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

示例12: 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

示例13: addViews

import org.eclipse.ui.IPageLayout; //导入依赖的package包/类
/**
 * add Views
 */
private void addViews() {
    // left
    IFolderLayout left = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__LEFT,
        IPageLayout.LEFT,
        0.20f,
        fLayout.getEditorArea());
    left.addView(UICoreConstant.PROJECT_CONSTANTS__PROJECT_EXPLORER_ID);
    left.addView(JavaUI.ID_PACKAGES);

    // bottom
    IFolderLayout bottom = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__BOTTOM,
        IPageLayout.BOTTOM,
        0.72f,
        fLayout.getEditorArea());
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);

    // right
    IFolderLayout right = fLayout.createFolder(UICoreConstant.PROJECT_CONSTANTS__RIGHT,
        IPageLayout.RIGHT,
        0.80f,
        fLayout.getEditorArea());
    right.addView(IPageLayout.ID_OUTLINE);
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:28,代码来源:UMLPerspectiveFactory.java

示例14: 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

示例15: 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


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