package org.eparapher.rcp.perspective; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; import org.eclipse.ui.console.IConsoleConstants; import org.eparapher.rcp.views.ASN1Viewer; import org.eparapher.rcp.views.documents.SecuredDocumentsView; public class MyDocumentsPerspective implements IPerspectiveFactory { public static final String ID = "org.eparapher.rcp.perspective.documents"; private static final String ID_PROGRESSVIEW = "org.eclipse.ui.views.ProgressView"; public void createInitialLayout(IPageLayout layout) { layout.addView(SecuredDocumentsView.ID, IPageLayout.LEFT, 0.35f, IPageLayout.ID_EDITOR_AREA); IFolderLayout folderBottom = layout.createFolder( "bottom", IPageLayout.BOTTOM, 0.74f, IPageLayout.ID_EDITOR_AREA); folderBottom.addPlaceholder("*"); folderBottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); folderBottom.addView(ID_PROGRESSVIEW); folderBottom.addView(ASN1Viewer.ID); layout.getViewLayout(SecuredDocumentsView.ID).setCloseable(false); layout.getViewLayout(SecuredDocumentsView.ID).setMoveable(false); layout.setFixed(true); layout.setEditorAreaVisible(true); layout.addPerspectiveShortcut(CertificateStorePerspective.ID); layout.addPerspectiveShortcut(MyDocumentsPerspective.ID); layout.addShowViewShortcut(SecuredDocumentsView.ID); layout.addShowViewShortcut(ID_PROGRESSVIEW); layout.addShowViewShortcut(ASN1Viewer.ID); layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); } }