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


Java IPageLayout.setFixed方法代码示例

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


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

示例1: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout factory) {
		setupPrefs();
		factory.setEditorAreaVisible(true);
		factory.setFixed(false);
		
//		factory.addStandaloneView("org.eclipse.jdt.ui.PackageExplorer", false, IPageLayout.LEFT, 0.15f, factory.getEditorArea());
		factory.addView("org.eclipse.jdt.ui.PackageExplorer", IPageLayout.LEFT, 0.15f, factory.getEditorArea());
		factory.addView("pt.iscte.pandionj.view", IPageLayout.RIGHT, 0.5f, factory.getEditorArea());
		
//		factory.addStandaloneView(IConsoleConstants.ID_CONSOLE_VIEW, false, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
		factory.addView(IConsoleConstants.ID_CONSOLE_VIEW, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
		factory.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard");
		factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewPackageWizard");
		factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewFileWizard");
	}
 
开发者ID:andre-santos-pt,项目名称:pandionj,代码行数:16,代码来源:PandionJPerspective.java

示例2: defineLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
 * Defines the initial layout for a page.
 *
 * @param layout
 *        The layout we are filling
 */
public void defineLayout(final IPageLayout layout) {
    // Editors are placed for free.
    final String editorArea = layout.getEditorArea();

    final IFolderLayout topRight = layout.createFolder("topRight", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$

    // Add the team explorer.
    topRight.addView(TeamExplorerView.ID);

    // Disable closing of these important windows.
    layout.setFixed(true);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:19,代码来源:TFSPerspective.java

示例3: createInitialLayout

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

	MessageConsole myConsole = new MessageConsole("Console", null); 
	ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[] { myConsole });

	MessageConsoleStream stream = myConsole.newMessageStream();

	PrintStream myS = new PrintStream(stream);
	System.setOut(myS); // link standard output stream to the console
	System.setErr(myS); // link error output stream to the console
}
 
开发者ID:NineWorlds,项目名称:xstreamer,代码行数:15,代码来源:Perspective.java

示例4: createInitialLayout

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

	IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
}
 
开发者ID:NineWorlds,项目名称:xstreamer,代码行数:8,代码来源:PerspectiveFactory.java

示例5: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
    String viewId = "org.yamcs.studio.products.eventviewer.sample";
    layout.setEditorAreaVisible(false);
    layout.setFixed(true);
    layout.addStandaloneView(viewId, false, IPageLayout.TOP, 1, IPageLayout.ID_EDITOR_AREA);
    IViewLayout view = layout.getViewLayout(viewId);
    view.setCloseable(false);
    view.setMoveable(false);
}
 
开发者ID:yamcs,项目名称:yamcs-studio,代码行数:11,代码来源:Perspective.java

示例6: createInitialLayout

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

	lay.setFixed(false);
	lay.setEditorAreaVisible(false);
	final String editor = lay.getEditorArea();

	final IFolderLayout navigAndParam = lay.createFolder("navigAndParam", IPageLayout.LEFT, 0.3f, editor);
	navigAndParam.addView(IGui.PARAMETER_VIEW_ID);
	navigAndParam.addView(IGui.NAVIGATOR_VIEW_ID);
	navigAndParam.addPlaceholder(IGui.ERROR_VIEW_ID);
	navigAndParam.addPlaceholder(IGui.TEST_VIEW_ID);

	final IFolderLayout consoleFolder = lay.createFolder("consoles", IPageLayout.BOTTOM, 0.70f, "navigAndParam");

	consoleFolder.addView(IGui.INTERACTIVE_CONSOLE_VIEW_ID);
	consoleFolder.addView(IGui.CONSOLE_VIEW_ID);

	final IPlaceholderFolderLayout displays =
			lay.createPlaceholderFolder("displays", IPageLayout.TOP, 0.7f, editor);
	displays.addPlaceholder(IGui.LAYER_VIEW_ID + ":*");
	displays.addPlaceholder(IGui.GL_LAYER_VIEW_ID + ":*");

	final IPlaceholderFolderLayout inspect =
			lay.createPlaceholderFolder("inspect", IPageLayout.RIGHT, 0.6f, "displays");
	inspect.addPlaceholder(IGui.AGENT_VIEW_ID);
	inspect.addPlaceholder(IGui.TABLE_VIEW_ID + ":*");

	final IPlaceholderFolderLayout monitor =
			lay.createPlaceholderFolder("monitor", IPageLayout.BOTTOM, 0.50f, "inspect");
	monitor.addPlaceholder(IGui.MONITOR_VIEW_ID);

}
 
开发者ID:gama-platform,项目名称:gama,代码行数:34,代码来源:SimulationPerspective.java

示例7: createInitialLayout

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

       IFolderLayout console = layout.createFolder( "Message Consoles" ,IPageLayout.BOTTOM, 0.8f ,editArea);
       console.addView(IConsoleConstants.ID_CONSOLE_VIEW);
       layout.getViewLayout(IConsoleConstants.ID_CONSOLE_VIEW).setCloseable(false);
}
 
开发者ID:AlexWengh,项目名称:HMM,代码行数:10,代码来源:Perspective.java

示例8: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout) {
	final String perspectiveId = layout.getDescriptor().getId();
	if (perspectiveId.equals(ID)) {
		return;
	}
	final String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	final IViewContainerContext viewContainerContext = PartSupport.getInstance().getViewContainerContext(perspectiveId);
	createLayout(layout, viewContainerContext, editorArea);
}
 
开发者ID:jo-source,项目名称:jo-widgets,代码行数:13,代码来源:DynamicPerspective.java

示例9: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	
	layout.addStandaloneView(View.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
}
 
开发者ID:heartsome,项目名称:translationstudio8,代码行数:8,代码来源:Perspective.java

示例10: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);
	layout.setFixed(false);
	
	//add view to the left:
	layout.addStandaloneView("com.da.editor.cnf.view", true, IPageLayout.LEFT, 0.3f, layout.getEditorArea());
	
	//bottom folder with two views
       IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.70f, layout.getEditorArea());  

       bottom.addView(View.ID);
       bottom.addView("org.eclipse.pde.runtime.LogView");			
       bottom.addView(MyMarkerView.ID);
}
 
开发者ID:andydunkel,项目名称:RCP-Demo-Application,代码行数:15,代码来源:Perspective.java

示例11: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);
	layout.setFixed(false);
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:5,代码来源:Perspective.java

示例12: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	
}
 
开发者ID:tmfev,项目名称:IDRT-Import-and-Mapping-Tool,代码行数:6,代码来源:Perspective.java

示例13: createInitialLayout

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

}
 
开发者ID:tmfev,项目名称:IDRT-Import-and-Mapping-Tool,代码行数:7,代码来源:Perspective.java

示例14: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	
}
 
开发者ID:vogellacompany,项目名称:codeexamples-eclipse,代码行数:7,代码来源:Perspective.java


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