From the perspective class which defines the layout for the Perspective, the viewpart can be set uncloseable.
public void createInitialLayout(final IPageLayout layout)
{
final String editorArea = layout.getEditorArea();
layout.addView(View.ID, IPageLayout.LEFT, 0.5f, editorArea);
layout.getViewLayout(View.ID).setCloseable(false);
}
No comments:
Post a Comment