本文整理汇总了Java中org.eclipse.ui.IPageLayout.setEditorAreaVisible方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.setEditorAreaVisible方法的具体用法?Java IPageLayout.setEditorAreaVisible怎么用?Java IPageLayout.setEditorAreaVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.setEditorAreaVisible方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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");
}
示例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);
}
示例3: 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);
}
示例4: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的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);
}
示例5: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的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);
}
示例6: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的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);
}
示例7: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Creates the initial planning perspective layout.
*/
@Override
public void createInitialLayout(IPageLayout layout) {
super.createInitialLayout(layout);
layout.setEditorAreaVisible(true);
addViewByEditor(layout, DETAIL_VIEW, IPageLayout.RIGHT, 0.75f);
if (showActivityDictionaryView()) {
addViewByEditor(layout, DICTIONARY_VIEW, IPageLayout.BOTTOM, 0.6f);
} else {
addViewPlaceholderByEditor(layout, DICTIONARY_VIEW, IPageLayout.BOTTOM, 0.6f);
}
setViewMovableNotClosable(layout, DICTIONARY_VIEW);
// We register the detail view, because we constructed it as part of this method and
// also in the plugin.xml. It is registered here for layout purposes, and registered
// in the plugin.xml to define the plugin id so that it can be retrieved by ClassIdRegistry. (see DetailView.ID)
ForbiddenWorkbenchUtils.registerExistingParts(Collections.singletonList(DETAIL_VIEW));
// Because the extension mechanism processes extensions in alphabetical order, we use
// our method to register them first, in the order in which the dependencies require
// them to be registered.
ForbiddenWorkbenchUtils.instantiatePerspectiveExtension(layout);
}
示例8: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Creates the initial layout for a page.
*/
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
{
IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA);
folderLayout.addView("org.dawnsci.plotting.examples.xyExample");
folderLayout.addView("org.dawnsci.plotting.examples.xyUpdateExample");
folderLayout.addView("org.dawnsci.plotting.examples.axisExample");
folderLayout.addView("org.dawnsci.plotting.examples.barExample");
folderLayout.addView("org.dawnsci.plotting.examples.imageExample");
folderLayout.addView("org.dawnsci.plotting.examples.sectorExample");
folderLayout.addView("org.dawnsci.plotting.examples.surfaceExample");
folderLayout.addView("org.dawnsci.plotting.examples.vectorExample");
folderLayout.addView("org.dawnsci.plotting.examples.compositeExample");
folderLayout.addView("org.dawnsci.plotting.examples.volumeExample");
folderLayout.addView("org.dawnsci.plotting.examples.plane3DExample");
}
}
示例9: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
// IWorkbenchPage page =
// PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
// IEditorPart editor = page.getActiveEditor();
// http://stackoverflow.com/questions/977528/how-do-i-programmatically-resize-an-eclipse-viewpart
//layout.addView("org.eclipse.jdt.ui.PackageExplorer", IPageLayout.LEFT,(float) 0.3f, layout.getEditorArea());
//layout.addView("org.eclipse.ui.editors", IPageLayout.RIGHT, 0.55f, layout.getEditorArea());
//layout.addView("left", IPageLayout.LEFT, 0.2f, layout.getEditorArea());
//layout.addView("right", IPageLayout.RIGHT, 0.01f, layout.getEditorArea());
//layout.addView("com.dforensic.plugin.manal.views.SuspectListVw", IPageLayout.RIGHT, 0.15f, layout.getEditorArea());
//right.addView(IPageLayout.ID_EDITOR_AREA);
//right.addView("com.dforensic.plugin.manal.views.SuspectListVw");
//layout.getViewLayout("com.dforensic.plugin.manal.views.SuspectListVw").setMoveable(false);
//layout.getViewLayout(IPageLayout.ID_EDITOR_AREA).setMoveable(false);
layout.setEditorAreaVisible(true);
}
示例10: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout ( final IPageLayout layout )
{
layout.setEditorAreaVisible ( false );
layout.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA );
final IFolderLayout folder = layout.createFolder ( "org.eclipse.scada.hmi.app.adminclient", IPageLayout.RIGHT, 0.4f, IPageLayout.ID_EDITOR_AREA ); //$NON-NLS-1$
folder.addPlaceholder ( "*" );
}
示例11: 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");
}
示例12: defineLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Defines the initial layout for a page.
*/
public void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout top =
layout.createFolder("top", IPageLayout.LEFT, 0.40f, editorArea); //$NON-NLS-1$
top.addView(RepositoriesView.VIEW_ID);
layout.addView(ISVNUIConstants.HISTORY_VIEW_ID, IPageLayout.BOTTOM, 0.70f, editorArea);
layout.setEditorAreaVisible(true);
}
示例13: 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
}
示例14: 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();
}
示例15: 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);
}