本文整理汇总了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");
}
示例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);
}
示例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
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例11: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.setFixed(false);
}
示例12: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.setFixed(true);
}
示例13: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.setFixed(true);
}
示例14: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.setFixed(true);
}