Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View in the top left corner of window
View in the top left corner of window [message #636303] Sat, 30 October 2010 15:48 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: October 2010
Junior Member
I would like to create a view which would always be in the upper left corner of the window, any ideas?
Re: View in the top left corner of window [message #636322 is a reply to message #636303] Sat, 30 October 2010 21:12 Go to previous message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member

use the perspective to achieve this.

define your custom perspective

import org.eclipse.ui.IPageLayout;

public class CustomPerspective implements IPerspectiveFactory {

public static final String ID = "YOUR.CUSTOM.PERSPECTIVE.ID";

public void createInitialLayout(final IPageLayout layout) {
final String editorArea = layout.getEditorArea();
layout.addStandaloneView(YOUR.VIEW.ID, true,
IPageLayout.LEFT, 0.21f, editorArea);

implement the following method in ApplicationWorkbenchAdvisor.

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


Previous Topic:View Refresh Problem
Next Topic:Block drop operation
Goto Forum:

Current Time: Tue May 22 21:44:11 GMT 2018

Powered by FUDForum. Page generated in 0.01720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top