本文整理匯總了Java中org.eclipse.ui.IPageLayout.getEditorArea方法的典型用法代碼示例。如果您正苦於以下問題:Java IPageLayout.getEditorArea方法的具體用法?Java IPageLayout.getEditorArea怎麽用?Java IPageLayout.getEditorArea使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.getEditorArea方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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);
}
示例2: 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);
}
示例3: defineActions
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
private void defineActions(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26,
editorArea);
left.addView(IPageLayout.ID_PROJECT_EXPLORER);
IFolderLayout middleLeft = layout.createFolder("middleLeft", IPageLayout.BOTTOM, (float)
0.33, "left");
middleLeft.addView(ReportListView.ID);
middleLeft.addView(ReportListViewProject.ID);
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.8,
editorArea);
right.addView(IConsoleConstants.ID_CONSOLE_VIEW);
right.addView(IPageLayout.ID_OUTLINE);
right.addView(IPageLayout.ID_TASK_LIST);
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.8,
editorArea);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
}
示例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: defineLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
private void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
0.16f, editorArea);
left.addView(IPageLayout.ID_PROJECT_EXPLORER);
// Included to get rid of a warning issued by the workbench
left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
0.84f, editorArea);
right.addView(IPageLayout.ID_OUTLINE);
IFolderLayout bottom = layout.createFolder("bottom",
IPageLayout.BOTTOM, 0.65f, editorArea);
bottom.addView(IPageLayout.ID_PROP_SHEET);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IPageLayout.ID_TASK_LIST);
}
示例6: defineLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
private void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.16f, editorArea);
left.addView(IPageLayout.ID_PROJECT_EXPLORER);
// Included to get rid of a warning issued by the workbench
left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");
IFolderLayout bottomleft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.68f, "left");
bottomleft.addView(IPageLayout.ID_OUTLINE);
IFolderLayout bottomRight = layout.createFolder("right", IPageLayout.RIGHT, 0.76f, editorArea);
bottomRight.addView("org.yakindu.sct.simulation.ui.declarationview");
bottomRight.addView("org.eclipse.debug.ui.BreakpointView");
bottomRight.addView("org.yakindu.sct.simulation.snapshots.ui.snapshotsview");
bottomRight.addPlaceholder("org.eclipse.debug.ui.DebugView");
}
示例7: 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);
}
示例8: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
IFolderLayout agentLayout = layout.createFolder(IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION, IPageLayout.LEFT, 0.20f, editorArea);
agentLayout.addPlaceholder(ObjectNavigationView.ID + ":*");
agentLayout.addPlaceholder(ObjectDailyListView.ID + ":*");
agentLayout.addPlaceholder(GroupNavigationView.ID);
agentLayout.addView(ObjectNavigationView.ID);
layout.getViewLayout(ObjectNavigationView.ID).setCloseable(false);
IFolderLayout mainLayout = layout.createFolder("perspective.stack.main", IPageLayout.LEFT, 1.0f, editorArea);
mainLayout.addView(StackAnalyzerView.ID);
layout.getViewLayout(StackAnalyzerView.ID).setCloseable(false);
IFolderLayout explorerFolder = layout.createFolder("perspective.stack.explorer", IPageLayout.BOTTOM, 0.5f, IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION);
explorerFolder.addView(WorkspaceExplorer.ID);
layout.addPerspectiveShortcut(getId());
}
示例9: defineLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
* Defines the initial layout for a page.
*
* @param layout
* The layout we are filling
*/
private void defineLayout(IPageLayout layout) {
// Editors are placed for free.
String editorArea = layout.getEditorArea();
// Top left.
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea);//$NON-NLS-1$
topLeft.addView("org.eclipse.jdt.ui.PackageExplorer");
topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
// Bottom left.
IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
"topLeft");//$NON-NLS-1$
bottomLeft.addView(IPageLayout.ID_OUTLINE);
bottomLeft.addView("org.eclipse.graphiti.ui.internal.editor.thumbnailview");
// Bottom right.
IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, (float) 0.66,//$NON-NLS-1$
editorArea);
bottomRight.addView(IPageLayout.ID_PROP_SHEET);
bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
bottomRight.addView("org.eclipse.ant.ui.views.AntView");
bottomRight.addView("org.eclipse.pde.runtime.LogView");
}
示例10: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
public void createInitialLayout(IPageLayout layout)
{
// Get the editor area
String editorArea = layout.getEditorArea();
// Left
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); //$NON-NLS-1$
left.addView(IPageLayout.ID_PROJECT_EXPLORER);
left.addPlaceholder(APP_EXPLORER_ID);
left.addPlaceholder("com.aptana.ui.io.remoteview"); //$NON-NLS-1$
// Bottom right: Console. Had to leave this programmatic to get the Console appear in bottom right
IFolderLayout bottomArea = layout.createFolder("terminalArea", IPageLayout.BOTTOM, 0.75f, //$NON-NLS-1$
editorArea);
bottomArea.addView(IConsoleConstants.ID_CONSOLE_VIEW);
bottomArea.addPlaceholder("com.aptana.terminal.views.terminal:*"); //$NON-NLS-1$
UIUtils.setCoolBarVisibility(true);
}
示例11: defineLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
private static void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
final String bottom = "bottom";
final String left = "left";
layout.createFolder(left, IPageLayout.LEFT, (float) 0.23, editorArea);
IFolderLayout lefttop = layout.createFolder("lefttop", IPageLayout.TOP, (float) 0.35, left);
lefttop.addView(IPageLayout.ID_PROJECT_EXPLORER);
IFolderLayout leftbottom = layout.createFolder("leftbottom", IPageLayout.BOTTOM, (float) 0.65, left);
leftbottom.addView(IPageLayout.ID_OUTLINE);
layout.createFolder(bottom, IPageLayout.BOTTOM, (float) 0.65, editorArea);
IFolderLayout bottomleft = layout.createFolder("bottomleft", IPageLayout.LEFT, (float) 0.5, bottom);
bottomleft.addView(IPageLayout.ID_PROP_SHEET);
bottomleft.addView("de.cooperateproject.ui.focus.views.FocusView");
// Exchange with addView once Branch AccessibleDiff is merged to master
bottomleft.addPlaceholder("de.cooperateproject.ui.diff.views.DiffView");
IFolderLayout bottomright = layout.createFolder("bottomright", IPageLayout.RIGHT, (float) 0.5, bottom);
bottomright.addView(IPageLayout.ID_PROBLEM_VIEW);
bottomright.addView("org.eclipse.papyrus.views.validation.ModelValidationView");
}
示例12: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(IPageLayout layout) {
if (Platform.getOS().equals(Platform.OS_WIN32)){
final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro();
PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart);
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
try {
hideDashboards();
PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window);
page.openEditor(new NullEditorInput(), CLASSIC_DASHBOARD_ID);
} catch (Exception e) {
}
}
else{
String editorArea = layout.getEditorArea();
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea);
topLeft.addView(ANIMATED_DASHBOARD_ID);
}
}
示例13: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(IPageLayout layout) {
// 獲取透明視圖的編輯空間標示
String editerArea = layout.getEditorArea();
// 編輯器左上部視圖
IFolderLayout leftTop = layout.createFolder("leftTop", IPageLayout.LEFT, 0.25f, editerArea); // 相對於‘editerArea’編輯器的位置left
leftTop.addView(ID_FOXBPM_VIEW);//FOXBPM視圖
leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER); // 工程視圖
// 編輯器左下角視圖
IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_PROJECT_EXPLORER); // 相對於上麵‘left’視圖的位置在底部
leftBottom.addView(IPageLayout.ID_OUTLINE); // OUTLINE視圖
// 編輯器底部視圖
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.65f, editerArea); // 相對於‘editerArea’編輯器的位置底部
bottom.addView(IPageLayout.ID_PROP_SHEET); // 屬性視圖
bottom.addView(ID_SERVERS_VIEW);// 服務器視圖
bottom.addView(IPageLayout.ID_PROBLEM_VIEW); // 問題視圖
bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);// 控製台視圖
bottom.addView(ID_SEARCH_VIEW);// 搜索視圖
bottom.addView(ID_HISTORY_VIEW);// 曆史視圖
}
示例14: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(final IPageLayout layout) {
String editorId = layout.getEditorArea();
IFolderLayout bottom1 = layout.createFolder("bottom1", IPageLayout.BOTTOM, .75f, editorId);
bottom1.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom1.addView(IPageLayout.ID_TASK_LIST);
bottom1.addView(IConsoleConstants.ID_CONSOLE_VIEW);
IFolderLayout bottom2 = layout.createFolder("bottom2", IPageLayout.RIGHT, .5f, "bottom1");
bottom2.addView("com.github.jknack.Antlr4.syntaxDiagram");
bottom2.addView("antlr4.parseTreeView");
IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, .22f, editorId);
folder.addView(IPageLayout.ID_PROJECT_EXPLORER);
IFolderLayout outline = layout.createFolder("right", IPageLayout.RIGHT, .7f, editorId);
outline.addView(IPageLayout.ID_OUTLINE);
}
示例15: createInitialLayout
import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(final IPageLayout layout)
{
final String editorArea = layout.getEditorArea();
// Create and populate the execution state folder
final IFolderLayout executionStateFolderLayout = layout.createFolder(
JivePerspectiveFactory.ID_FOLDER_EXECUTION_STATE, IPageLayout.RIGHT, (float) 0.45,
editorArea);
setExecutionStateFolderViews(executionStateFolderLayout);
// Create and populate the execution history folder
final IFolderLayout executionHistoryFolderLayout = layout.createFolder(
JivePerspectiveFactory.ID_FOLDER_EXECUTION_HISTORY, IPageLayout.BOTTOM, (float) 0.50,
JivePerspectiveFactory.ID_FOLDER_EXECUTION_STATE);
setExecutionHistoryFolderViews(executionHistoryFolderLayout);
// Create and populate the launch folder
final IFolderLayout launchFolderLayout = layout.createFolder(
JivePerspectiveFactory.ID_FOLDER_LAUNCH, IPageLayout.TOP, (float) 0.30, editorArea);
setLaunchFolderViews(launchFolderLayout);
// Create and populate the console folder
final IFolderLayout consoleFolderLayout = layout.createFolder(
JivePerspectiveFactory.ID_FOLDER_CONSOLE, IPageLayout.BOTTOM, (float) 0.67, editorArea);
setConsoleFolderViews(consoleFolderLayout);
// Populate the "Window -> Open Perspective" and "Window -> Show View" menus
setPerspectiveShortcuts(layout);
setViewShortcuts(layout);
}