下面列出了org.eclipse.ui.IPageLayout#setEditorAreaVisible ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
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);
}
@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);
}
/**
* 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");
}
}
@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){
layout.setEditorAreaVisible(false);
layout.setFixed(false);
IFolderLayout oben =
layout.createFolder("oben", IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA);
IFolderLayout details =
layout.createFolder("details", IPageLayout.TOP, 1.0f, IPageLayout.ID_EDITOR_AREA);
oben.addView(KontakteView.ID);
details.addView(KontaktDetailView.ID);
}
/**
* 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);
}
/**
* Creates the initial layout for a page.
*/
public void createInitialLayout(IPageLayout layout){
layout.setEditorAreaVisible(false);
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
layout.addView(BestellView.ID, IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
layout.addView(ArtikelSelektor.ID, IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA);
layout.addView(StockView.ID, IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA);
}
@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);
}
public void createInitialLayout(IPageLayout layout){
layout.setEditorAreaVisible(false);
layout.setFixed(false);
layout.addPlaceholder(LeistungenView.ID, IPageLayout.LEFT, 0.3f,
IPageLayout.ID_EDITOR_AREA);
layout.addView(CodeDetailView.ID, IPageLayout.LEFT, 0.8f, IPageLayout.ID_EDITOR_AREA);
layout.addShowViewShortcut(CodeDetailView.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);
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
addFastViews(layout);
addViewShortcuts(layout);
addPerspectiveShortcuts(layout);
// 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 top right folder
IFolderLayout topRightFolder = layout.createFolder(
"topRightFolder", IPageLayout.TOP, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
topRightFolder.addView(RESOURCES_VIEW_ID);
topRightFolder.addView(CONTROLFLOW_VIEW_ID);
topRightFolder.addView(STATISTICS_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(PROPERTIES_VIEW_ID);
bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
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);
}
public void createInitialLayout(IPageLayout layout){
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
layout.setFixed(true);
layout.addView(BBSView.ID, IPageLayout.RIGHT, 0.9f, editorArea);
}
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addStandaloneView("org.eclipse.nebula.examples.view", false, IPageLayout.LEFT, 1,
layout.getEditorArea());
}
@Override
public void createInitialLayout ( final IPageLayout layout )
{
layout.setEditorAreaVisible ( false );
}
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.addView(NodesNavigator.ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea());
IFolderLayout rightFolderLayout = layout.createFolder(RIGHT_FOLDER_ID, IPageLayout.RIGHT,
0.6f, layout.getEditorArea());
IFolderLayout bottomRightFolderLayout=layout.createFolder(BOTTOM_RIGHT_FOLDER_ID, IPageLayout.BOTTOM, 0.5f, RIGHT_FOLDER_ID);
rightFolderLayout.addView(NodeInfo.ID);
bottomRightFolderLayout.addView(NodesSearcher.ID);
}