[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello,
I'm trying to create a new perspective that will show the standard PDE
ErrorLog view.
My question is - how do I add the ErrorLog view programmatically to my
perspective class?
My Perspective Class looks like :
public class MyPerspective implements IPerspectiveFactory {
public MyPerspective () {
super();
}
public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
0.25f,
editorArea);
topLeft.addView(IPageLayout.ID_RES_NAV);
topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
// Bottom left: Property Sheet view
IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
IPageLayout.BOTTOM, 0.74f,
"topLeft");
bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
// Bottom right: Task List view
layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.74f,
editorArea);
}