Question

Tried both Programmatic and Declarative way but failed, and I just wanna make the left region lay out like below. Any hints?

perspective

Was it helpful?

Solution 2

Finally I've found a declarative way to handle this (which is inspired by the layout of Eclipse internal CVS Repositories Exploring perspective and decompiled its source code)

plugin.xml

<!-- ************** Perspective Extensions START **************** --> <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="$YOUR_PERSPECTIVE_ID$"> <view closeable="false" id="$BOTTOM_VIEW_ID$" moveable="false" ratio="0.6" relationship="bottom" relative="$TOP_VIEW_ID$" showTitle="true" standalone="true"> </view> </perspectiveExtension> </extension>

OTHER TIPS

Create a folder for the left column and then put two more folders in the column:

IFolderLayout leftOuter = layout.createFolder("left.outer", IPageLayout.LEFT, 0.23f, IPageLayout.ID_EDITOR_AREA);

IFolderLayout leftTop = layout.createFolder("left.top", IPageLayout.TOP, 0.5f, "left.outer");

// TODO add views and placeholders to leftTop

IFolderLayout leftBottom = layout.createFolder("left.bottom", IPageLayout.BOTTOM, 0.5f, "left.outer");

// TODO add views and placeholders to leftBotton
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top