Thanks for the response but I am apparently still doing something wrong - I Looked up that ID you mentioned and believe I put the right view ID into the addView function but when I debug and open the perspective it is empty. Here is the code in my IPerspectiveFactory implementation:
public void createInitialLayout(IPageLayout layout) {
// TODO Auto-generated method stub
defineActions(layout);
defineLayout(layout);
}
public void defineActions(IPageLayout layout) {
// Add "new wizards".
layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");
// Add "show views".
layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
}
public void defineLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.addView("org.eclipse.jdt.ui.PackageExplorer.", IPageLayout.LEFT, (float) 0.26, editorArea);
}
I also do not see any of the shortcuts added in the defineActions function either.
[Updated on: Fri, 14 June 2013 14:18]
Report message to a moderator