|
Re: View in the top left corner of window [message #636322 is a reply to message #636303] |
Sat, 30 October 2010 17:12  |
Eclipse User |
|
|
|
hello,
use the perspective to achieve this.
step-1
define your custom perspective
import org.eclipse.ui.IPageLayout;
public class CustomPerspective implements IPerspectiveFactory {
public static final String ID = "YOUR.CUSTOM.PERSPECTIVE.ID";
@Override
public void createInitialLayout(final IPageLayout layout) {
final String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(true);
layout.addStandaloneView(YOUR.VIEW.ID, true,
IPageLayout.LEFT, 0.21f, editorArea);
layout.getViewLayout(YOUR.VIEW.ID).setCloseable(
false);
}
}
step-2
implement the following method in ApplicationWorkbenchAdvisor.
@Override
public String getInitialWindowPerspectiveId() {
return CustomPerspective .ID;
}
note, you will have to register this entry in 'org.eclipse.ui.perspectives' extension point with YOUR.CUSTOM.PERSPECTIVE.ID
regards,
sudesh
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds