Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » place view independent of a perspective
place view independent of a perspective [message #448725] Sun, 30 April 2006 17:29 Go to next message
Heiko Kundlacz is currently offline Heiko KundlaczFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

I have defined a view in the plugin.xml. The following code is from a TreeViewer and opens the view. Unfortunately I don't know how to place the view. Can you tell me how I can use the layout? Or is there another technic to open the view on a fixed location? I want to open the view if a node on the TreeViewer will be doubleclicked.

treeViewer.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
IWorkbenchPage page = ShuttleUIPlugin.getDefault().getWorkbench().getActiveWorkben chWindow().getActivePage();
try {
page.showView(ImportPlayerView.ID);
} catch (PartInitException e) { e.printStackTrace();
}
}
});
Re: place view independent of a perspective [message #448726 is a reply to message #448725] Sun, 30 April 2006 17:57 Go to previous message
Heiko Kundlacz is currently offline Heiko KundlaczFriend
Messages: 17
Registered: July 2009
Junior Member
Sorry for my stupid question. I haven't seen the placeholder method on the layout.

layout.setEditorAreaVisible(false);
IFolderLayout right = layout.createFolder("bottomRight", IPageLayout.RIGHT,
0.5f, IPageLayout.ID_EDITOR_AREA);
right.addPlaceholder(ImportPlayerView.ID);
Previous Topic:RMI and RCP
Next Topic:Popup menus in RCP application
Goto Forum:
  


Current Time: Thu Dec 12 14:24:33 GMT 2024

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

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

Back to the top