public class DroolsPerspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
folder.addView(JavaUI.ID_PACKAGES);
folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
folder.addView(IPageLayout.ID_RES_NAV);
IFolderLayout rulesfolder= layout.createFolder("leftbottom", IPageLayout.BOTTOM, (float)0.5, "left"); //$NON-NLS-1$
rulesfolder.addView(IDroolsConstants.RULES_VIEW);
IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
outputfolder.addView(IPageLayout.ID_PROP_SHEET);
outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
// *** Drools-specific extensions ***
outputfolder.addView(IDroolsConstants.AUDIT_VIEW);
layout.addShowViewShortcut(IDroolsConstants.AUDIT_VIEW);
layout.addNewWizardShortcut("org.drools.eclipse.new.file");
layout.addNewWizardShortcut("org.drools.eclipse.new.dsl");
layout.addNewWizardShortcut("org.drools.eclipse.wizards.new.project");
// **********************************