下面列出了怎么用org.eclipse.ui.IFolderLayout的API类实例代码及写法,或者点击链接到github查看源代码。
public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea);
bottom.addView(PROVENANCE_TRACKER_VIEW_ID);
bottom.addView(SOURCE_VIEW_ID);
bottom.addView(SINK_VIEW_ID);
//bottom.addView(MARKER_VIEW_ID);
bottom.addView(IPageLayout.ID_TASK_LIST);
bottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
// Add the favorites action set
//layout.addActionSet(FAVORITES_ACTION_ID);
layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.85f, editorArea);
}
@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$
}
@Override
public void createInitialLayout(IPageLayout layout) {
//Handling Win32 OS specifically since animated dashboard doesn't support
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) {
MessageDialog.openError(window.getShell(), "Could not create initial layout", e.getMessage());
}
} else {
String editorArea = layout.getEditorArea();
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea);
topLeft.addView(ANIMATED_DASHBOARD_ID);
}
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.addNewWizardShortcut("com.excelsior.xds.ui.project.NewProjectFromScratchWizard"); //$NON-NLS-1$
layout.addNewWizardShortcut("com.excelsior.xds.ui.project.NewProjectFromSourcesWizard"); //$NON-NLS-1$
String editorArea = layout.getEditorArea();
layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.20f, editorArea);
// the Tasks view.
IFolderLayout bottom =
layout.createFolder("bottom", IPageLayout.BOTTOM, 0.80f, editorArea); //$NON-NLS-1$
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.80f, editorArea); //$NON-NLS-1$
right.addView(IPageLayout.ID_OUTLINE);
layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
layout.addActionSet("org.eclipse.debug.ui.profileActionSet"); //Bug: not included in IDebugUIConstants //$NON-NLS-1$
// Put the Outline view on the left.
// layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.01f, editorArea);
}
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);
}
@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);
}
@Override
public void createInitialLayout(IPageLayout layout) {
// Editor area
layout.setEditorAreaVisible(true);
// Create the left folder
IFolderLayout leftFolder = layout.createFolder(
"leftFolder", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder(
"bottomRightFolder", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
bottomRightFolder.addView(IPageLayout.ID_PROP_SHEET);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
// Create the project folder
IFolderLayout projectFolder = layout.createFolder(ProjectFolder, IPageLayout.LEFT, 0.15f, EditorArea);
projectFolder.addView(PROJECT_VIEW_ID);
// Create the console folder
IFolderLayout consoleFolder = layout.createFolder(ConsoleFolder, IPageLayout.BOTTOM, 0.50f, ProjectFolder);
consoleFolder.addView(CONSOLE_VIEW_ID);
// Create the debug folder
IFolderLayout debugFolder = layout.createFolder(DebugFolder, IPageLayout.TOP, 0.50f, EditorArea);
debugFolder.addView(DEBUG_VIEW_ID);
// Create the middle right folder
IFolderLayout traceControlFolder = layout.createFolder(TraceControlFolder, IPageLayout.RIGHT, 0.50f, DebugFolder);
traceControlFolder.addView(TRACE_CONTROL_VIEW_ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder(
"topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(PROJECT_VIEW_ID);
// Create the bottom left folder
IFolderLayout bottomLeftFolder = layout.createFolder(
"bottomLeftFolder", IPageLayout.BOTTOM, 0.70f, "topLeftFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomLeftFolder.addView(CONTROL_VIEW_ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder(
"bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
bottomRightFolder.addView(PROPERTIES_VIEW_ID);
}
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);
}
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");
}
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);
}
/**
* 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");
}
}
/**
* TS默认透视图。
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
*/
public void createInitialLayout(IPageLayout layout) {
// layout.createFolder() 默认显示。
// layout.createPlaceholderFolder() 默认不显示。
String editor = layout.getEditorArea();
String rightFirst = "RIGHT_TOP";
String left = "LEFT";
// String bottom = "RIGHT_BOTTOM";
IFolderLayout leftFolder = layout.createFolder(left, IPageLayout.LEFT, 0.20F, editor);
IFolderLayout topFirstFolder = layout.createFolder(rightFirst, IPageLayout.TOP, 0.3F, editor);
// 显示术语匹配结果视图
// IFolderLayout bottomFolder = layout
// .createFolder(bottom, IPageLayout.TOP, 0.65F, editor);
// IPlaceholderFolderLayout pLayout = layout.createPlaceholderFolder(bottom, IPageLayout.RIGHT, 0.65F, editor);
leftFolder.addView("net.heartsome.cat.common.ui.navigator.view"); // 导航视图
topFirstFolder.addView("net.heartsome.cat.ts.ui.translation.view.matchview");
// bottomFolder.addView("net.heartsome.cat.ts.ui.term.view.termView"); // 术语匹配视图
// pLayout.addPlaceholder("net.heartsome.cat.ts.ui.qa.views.QAResultViewPart");
}
/**
* Defines the initial layout for a page.
*/
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( PaletteView.ID );
topLeft.addView( DataView.ID );
topLeft.addView( LibraryExplorerView.ID );
// Bottom left.
IFolderLayout bottomLeft = layout.createFolder( "bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
"topLeft" );//$NON-NLS-1$
bottomLeft.addView( IPageLayout.ID_OUTLINE );
// Bottom right.
IFolderLayout bootomRight = layout.createFolder( "bootomRight", IPageLayout.BOTTOM, (float) 0.66, editorArea );//$NON-NLS-1$
bootomRight.addView( AttributeView.ID );
}
/**
* @param layout
* @param editorArea
*/
public void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); //$NON-NLS-1$
topLeft.addView("org.python.pydev.navigator.view");
IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
//outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
//Add the outline only if we're not using the minimap.
if (!MinimapOverviewRulerPreferencesPage.getShowMinimapContents()) {
layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);
}
}
protected void addViewStructure(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout leftFolder = layout.createFolder("leftPane", IPageLayout.LEFT, 0.25f, editorArea);
leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
IFolderLayout bottomFolder = layout.createFolder("bottomPane", IPageLayout.BOTTOM, 0.75f, editorArea);
bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
bottomFolder.addView(IPageLayout.ID_TASK_LIST);
bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
bottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW);
bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
// Create outline after bottom pane
layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, editorArea);
}
@Override
public void createInitialLayout(final IPageLayout layout) {
final String editorArea = layout.getEditorArea();
final IFolderLayout leftView = layout.createFolder(
"leftView", IPageLayout.LEFT, getExplorerViewRatio(), editorArea);
leftView.addView("org.bonitasoft.studio.application.project.explorer");
final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); //$NON-NLS-1$
if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) {
bottomfolder.addView("org.eclipse.egit.ui.StagingView");
bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView");
}
bottomfolder.addView("org.eclipse.ui.views.ProblemView");
final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.85f, editorArea); //$NON-NLS-1$
rightFolder.addView(IPageLayout.ID_OUTLINE);
IFolderLayout htmlViewFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.5f, editorArea); //$NON-NLS-1$
htmlViewFolder.addView("code.satyagraha.gfm.viewer.views.GfmView");
}
@Override
public void createInitialLayout(final IPageLayout layout) {
final String editorArea = layout.getEditorArea();
final IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); //$NON-NLS-1$
leftFolder.addView("org.bonitasoft.studio.application.project.explorer");
final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
bottomfolder.addView("org.eclipse.ui.views.ProblemView");
if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) {
bottomfolder.addView("org.eclipse.egit.ui.StagingView");
bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView");
}
final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$
rightFolder.addView(IPageLayout.ID_OUTLINE);
}
public void createInitialLayout(IPageLayout layout){
layout.setEditorAreaVisible(false);
layout.setFixed(false);
IFolderLayout fld = layout.createFolder("AbrechnungsFolder", IPageLayout.LEFT, 0.6f, IPageLayout.ID_EDITOR_AREA);
IFolderLayout frd = layout.createFolder("Detailfolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
fld.addView(PatHeuteView.ID);
fld.addView(KonsZumVerrechnenView.ID);
fld.addView(RechnungsListeView.ID);
frd.addView(RnDetailView.ID);
frd.addView(KonsDetailView.ID);
frd.addPlaceholder(FallDetailView.ID);
frd.addPlaceholder(UiResourceConstants.PatientDetailView2_ID);
layout.addShowViewShortcut(PatHeuteView.ID);
layout.addShowViewShortcut(KonsZumVerrechnenView.ID);
layout.addShowViewShortcut(RnDetailView.ID);
layout.addShowViewShortcut(KonsDetailView.ID);
layout.addShowViewShortcut(RechnungsListeView.ID);
}
public void createInitialLayout(IPageLayout layout){
layout.setEditorAreaVisible(false);
layout.setFixed(false);
IFolderLayout left = layout.createFolder("Links.folder", IPageLayout.LEFT, 0.3f, IPageLayout.ID_EDITOR_AREA);
IFolderLayout main = layout.createFolder("Haupt.Folder", IPageLayout.LEFT, 0.7f, IPageLayout.ID_EDITOR_AREA);
left.addView(BriefAuswahl.ID);
main.addView(TextView.ID);
main.addView(TextTemplateView.ID);
layout.addPerspectiveShortcut(ID);
layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID);
layout.addShowViewShortcut(KonsDetailView.ID);
layout.addShowViewShortcut(BriefAuswahl.ID);
layout.addShowViewShortcut(TextView.ID);
}
@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 ( "*" );
}
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);
}
@Override
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.25, editorArea);
topLeft.addView(FindbugsPlugin.TREE_VIEW_ID);
topLeft.addPlaceholder(JavaUI.ID_PACKAGES);
// Bottom right.
IFolderLayout bottomRightB = layout.createFolder("bottomRightB", IPageLayout.RIGHT, (float) 0.45, editorArea);
bottomRightB.addView(FindbugsPlugin.DETAILS_VIEW_ID);
}
@Override
public void createInitialLayout(@Nullable IPageLayout layout) {
if (layout == null) {
return;
}
// Editor area
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(PROJECT_VIEW_ID);
// Create the middle right folder
IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
middleRightFolder.addView(PROPERTIES_VIEW_ID);
middleRightFolder.addView(HISTOGRAM_VIEW_ID);
middleRightFolder.addView(STATISTICS_VIEW_ID);
middleRightFolder.addView(COLOR_VIEW_ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomRightFolder.addView(FILTER_VIEW_ID);
bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
bottomRightFolder.addView(STREAM_LIST_VIEW_ID);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
if (layout == null) {
return;
}
// Editor area
layout.setEditorAreaVisible(true);
// Editor area
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
// Create the top right folder
IFolderLayout topRightFolder = layout.createFolder("topRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topRightFolder.addView(HistogramView.ID);
// Create the middle right folder
IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.50f, "topRightFolder"); //$NON-NLS-1$
middleRightFolder.addView(TimeGraphViewStub.ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomRightFolder.addView(TimeChartView.ID);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
if (layout == null) {
return;
}
// Editor area
layout.setEditorAreaVisible(true);
// Editor area
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
// Create the middle right folder
IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
middleRightFolder.addView(HistogramView.ID);
middleRightFolder.addView(TimeChartView.ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomRightFolder.addView(TimeGraphViewStub.ID);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
if (layout == null) {
return;
}
// Editor area
layout.setEditorAreaVisible(true);
// Editor area
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
IFolderLayout bottomLeftFolder = layout.createFolder("bottomLeftFolder", IPageLayout.BOTTOM, 0.5f, "topLeftFolder"); //$NON-NLS-1$
bottomLeftFolder.addView(TimeGraphViewStub.ID);
// Create the middle right folder
IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
middleRightFolder.addView(HistogramView.ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomRightFolder.addView(TimeChartView.ID);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
// Editor area
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder(
"topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(PROJECT_VIEW_ID);
// Create the middle right folder
IFolderLayout middleRightFolder = layout.createFolder(
"middleRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
middleRightFolder.addView(STATISTICS_VIEW_ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder(
"bottomRightFolder", IPageLayout.BOTTOM, 0.55f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
bottomRightFolder.addView(PROPERTIES_VIEW_ID);
bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
// Populate menus, etc
layout.addPerspectiveShortcut(ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
// Create the top left folder
IFolderLayout topLeftFolder = layout.createFolder(
"topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topLeftFolder.addView(PROJECT_VIEW_ID);
// Create the top right folder
IFolderLayout topFolders[] = new IFolderLayout[3];
topFolders[0] = layout.createFolder(
"topFolder1", IPageLayout.TOP, 1.0f/5.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topFolders[0].addView(CPU_VIEW_ID);
// Create the top right folder
topFolders[1] = layout.createFolder(
"topFolder2", IPageLayout.TOP, 1.0f/4.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topFolders[1].addView(DISK_VIEW_ID);
// Create the top right folder
topFolders[2] = layout.createFolder(
"topFolders3", IPageLayout.TOP, 1.0f/3.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topFolders[2].addView(MEMORY_VIEW_ID);
// Create the bottom right folder
IFolderLayout bottomRightFolder = layout.createFolder(
"bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}