public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addPlaceholder(LeistungenView.ID, SWT.LEFT, 0.3f, editorArea); layout.addView(CodeDetailView.ID, SWT.RIGHT, 0.8f, editorArea); layout.addShowViewShortcut(CodeDetailView.ID); }
/** Creates the initial layout for a page. */ public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); addFastViews(layout); addViewShortcuts(layout); addPerspectiveShortcuts(layout); IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.22f, editorArea); folderLayout.addView("com.safi.eclipse.NavigatorView"); layout.getViewLayout("com.safi.eclipse.NavigatorView").setCloseable(false); folderLayout.addView(PaletteView.ID); layout.getViewLayout(PaletteView.ID).setCloseable(false); // layout.addView("com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView", // IPageLayout.BOTTOM, // 0.68f, editorArea); layout.addPlaceholder( "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView", IPageLayout.BOTTOM, 0.68f, editorArea); IFolderLayout folderLayout_1 = layout.createFolder( "folder0", IPageLayout.LEFT, 0.5f, "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView"); layout .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView") .setCloseable(false); folderLayout_1.addView("com.safi.workshop.sqlexplorer.plugin.views.SQLHistoryView"); folderLayout_1.addView("com.safi.workshop.sqlexplorer.plugin.views.DatabaseStructureView"); layout.addView( "com.safi.workshop.sqlexplorer.plugin.views.DatabaseDetailView", IPageLayout.LEFT, 0.5f, "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView"); layout .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.SQLHistoryView") .setCloseable(false); layout .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DatabaseStructureView") .setCloseable(false); layout .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DatabaseDetailView") .setCloseable(false); }