當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。