user414967
user414967

Reputation: 5325

placing views in workbench

I wanted to design my views when my RCP application is stared. That means for viewA has to be appeared left side,on below viewB.Then in the editor area space I wanted to add another ViewC and bottom of editor area ViewD and right hand side viewE,below ViewF. How do I design? Not able to attach the image here!! Any link is there placing the views on workbench?

Upvotes: 0

Views: 152

Answers (1)

Tonny Madsen
Tonny Madsen

Reputation: 12718

If you want to this, you must do away with the editor area, as you cannot have a view inside the editor area.

public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(false);

    layout.addView("viewA", IPageLayout.LEFT, 1.0f, layout.getEditorArea());
    layout.addView("viewC", IPageLayout.RIGHT, 0.666f, "viewA");
    layout.addView("viewE", IPageLayout.RIGHT, 0.5f, "viewC");

    layout.addView("viewB", IPageLayout.BOTTOM, 0.5f, "viewA");
    layout.addView("viewD", IPageLayout.BOTTOM, 0.5f, "viewC");
    layout.addView("viewF", IPageLayout.BOTTOM, 0.5f, "viewE");
}

Please note that the sequence of statements matters..

Upvotes: 1

Related Questions