本文整理汇总了Java中org.eclipse.ui.IPageLayout.addView方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.addView方法的具体用法?Java IPageLayout.addView怎么用?Java IPageLayout.addView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.addView方法的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$
}
示例2: 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");
}
示例3: 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);
}
示例4: 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);
}
示例5: layoutSingle
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private String layoutSingle(
final IPageLayout layout,
final SingleViewContainerContext viewContainerContext,
final int relation,
final float ratio,
final String relativeTo) {
final String viewId;
if (viewContainerContext.isRcpView()) {
viewId = viewContainerContext.getViewId();
}
else {
viewId = DynamicView.ID + ":" + viewContainerContext.getViewId();
}
layout.addView(viewId, relation, ratio, relativeTo);
layout.getViewLayout(viewId).setCloseable(viewContainerContext.isCloseable());
layout.getViewLayout(viewId).setMoveable(viewContainerContext.isDetachable());
return viewId;
}
示例6: 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 ( "*" );
}
示例7: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
// set up package explorer
layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT,
PROJECT_EXPOLORER_RATIO, layout.getEditorArea());
// set up bottom folder
IFolderLayout bottomFolder = layout.createFolder(BOTTOM_FOLDER_ID,
IPageLayout.BOTTOM, BOTTOM_FOLDER_RATIO,
layout.getEditorArea());
bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
bottomFolder.addView(IPageLayout.ID_PROP_SHEET);
bottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW);
bottomFolder.addView(CONTROL_VIEW);
}
示例8: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.85f, editorArea);
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.3f, editorArea);
left.addView(JavaUI.ID_PACKAGES);
left.addView(IPageLayout.ID_PROP_SHEET);
}
示例9: 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");
}
示例10: 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);
}
示例11: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
//Navigator view left
layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.25f, editorArea);
//Outline view on the left
IFolderLayout left = layout.createFolder("left", IPageLayout.BOTTOM, 0.50f,
IPageLayout.ID_PROJECT_EXPLORER);
left.addView(IPageLayout.ID_OUTLINE);
left.addView(ID_FULL_OUTLINE);
IFolderLayout bottom =
layout.createFolder(
"bottom",
IPageLayout.BOTTOM,
0.70f,
editorArea);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
bottom.addView(IPageLayout.ID_TASK_LIST);
bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
bottom.addView(ID_TABLE_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(ID_FULL_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
layout.addShowViewShortcut(ID_TABLE_VIEW);
//Add project and Latex file creation wizards to menu
layout.addNewWizardShortcut(ID_PROJECT_WIZARD);
layout.addNewWizardShortcut(ID_LATEX_FILE_WIZARD);
}
示例12: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout myLayout) {
myLayout.addView(IPageLayout.ID_OUTLINE,
IPageLayout.LEFT, 0.30f,
myLayout.getEditorArea());
IFolderLayout bot =
myLayout.createFolder(BOTTOM, IPageLayout.BOTTOM,
0.76f, myLayout.getEditorArea());
bot.addView(VIEW_ID);
}
示例13: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Creates the initial layout for a page.
*/
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
// layout.addView("de.umg.mi.idrt.ioe.EditorStagingInfoView", IPageLayout.BOTTOM, 0.71f, IPageLayout.ID_EDITOR_AREA);
layout.addView("de.umg.mi.idrt.ioe.OntologyEditor", IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
layout.addView("de.umg.mi.idrt.importtool.ServerView", IPageLayout.LEFT, 0.3f, "de.umg.mi.idrt.ioe.OntologyEditor");
// layout.addView("edu.goettingen.i2b2.importtool.view.StatusView", IPageLayout.BOTTOM, 0.65f, "de.umg.mi.idrt.importtool.ServerView");
// layout.addView("de.umg.mi.idrt.ioe.ProgressView", IPageLayout.BOTTOM, 0.5f, "edu.goettingen.i2b2.importtool.view.StatusView");
// layout.addView("de.umg.mi.idrt.ioe.EditorTargetInfoView", IPageLayout.RIGHT, 0.5f, "de.umg.mi.idrt.ioe.EditorStagingInfoView");
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
}
示例14: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Creates the initial layout for a page.
*/
public void createInitialLayout(IPageLayout layout) {
addPerspectiveShortcuts(layout);
layout.setEditorAreaVisible(false);
layout.addView("de.umg.mi.idrt.ioe.EditorStagingInfoView", IPageLayout.BOTTOM, 0.71f, IPageLayout.ID_EDITOR_AREA);
layout.addView("de.umg.mi.idrt.ioe.OntologyEditor", IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
layout.addView("de.umg.mi.idrt.importtool.ServerView", IPageLayout.LEFT, 0.3f, "de.umg.mi.idrt.ioe.OntologyEditor");
layout.addView("edu.goettingen.i2b2.importtool.view.StatusView", IPageLayout.BOTTOM, 0.65f, "de.umg.mi.idrt.importtool.ServerView");
layout.addView("de.umg.mi.idrt.ioe.ProgressView", IPageLayout.BOTTOM, 0.5f, "edu.goettingen.i2b2.importtool.view.StatusView");
layout.addView("de.umg.mi.idrt.ioe.EditorTargetInfoView", IPageLayout.RIGHT, 0.5f, "de.umg.mi.idrt.ioe.EditorStagingInfoView");
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
System.out.println("READY");
}
示例15: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.getViewLayout(ProjectExplorerViewPart.ID).setCloseable(false);
// layout.getViewLayout(AnnotationPropertyViewPart.ID).setCloseable(false);
layout.addView(ProjectExplorerViewPart.ID, IPageLayout.LEFT, 0.25f, editorArea);
layout.addView(CodingExplorerViewPart.ID, IPageLayout.BOTTOM, 0.25f, ProjectExplorerViewPart.ID);
layout.addPlaceholder(AnnotationTableViewPart.ID, IPageLayout.BOTTOM, 0.7f, editorArea);
IPlaceholderFolderLayout folder = layout.createPlaceholderFolder("Annoataions", IPageLayout.BOTTOM, 0.5f, CodingExplorerViewPart.ID);
folder.addPlaceholder(AnnotationPropertyViewPart.ID);
folder.addPlaceholder("org.eclipse.pde.runtime.LogView");
}