如何将视图放入编辑器。就像是:

public class Perspective implements IPerspectiveFactory {
public static final String ID = "com.example.gui.perspective";
public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    String editorArea = layout.getEditorArea();
    layout.addView(View.ID, IPageLayout.TOP, 0.6f, IPageLayout.ID_EDITOR_AREA);
...
}


但是只有IPageLayout.TOP,IPageLayout.BOTTOM,IPageLayout.LEFT和IPageLayout.RIGHT选项。我想放进去这怎么可能?

最佳答案

是不可能的。 Eclipse清楚地区分了仅包含编辑器的编辑器区域与仅包含视图的所有其他区域。

07-24 13:10