[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Standalone views in a perspective

Haven't tried this myself, but the following may work:

String editorArea = layout.getEditorArea();
layout.addStandaloneView(NavigatorsView.VIEW_ID,
  false, IPageLayout.LEFT, 0.35f, editorArea);

layout.addStandaloneView("test.connect.ui.views.NetworkStatusView",
  false, IPageLayout.BOTTOM, 0.35f, NavigatorsView.VIEW_ID);


Josh Beard wrote:

I am trying to stack two standalone views down the left hand side of a perspective (the goal is to get rid of the titles and tabs), but since these are not part of an IFolderLayout, this doesn't seem possible. Here's a snip:

<snip>
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea(); layout.addStandaloneView(NavigatorsView.VIEW_ID, false, IPageLayout.LEFT, 0.35f, editorArea);


layout.addStandaloneView("test.connect.ui.views.NetworkStatusView", false, IPageLayout.BOTTOM, 0.35f, editorArea);

</snip>

This produces two views, side by side. Any suggestions? Or, any different approaches to creating views that don't have tabs? Thanks!

-josh