|
Re: How to open new view through [message #97718 is a reply to message #97702] |
Fri, 11 July 2008 10:06 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi,
to open a view programmatically, you would take the first way:
WorkbenchPage#showView(String)
The other methods do not actually open a view but describe an action
that show a list of availabel views (2.) or control the perspective
layout (3. and IFolderLayout#addView). Please also refer to the
JavaDoc for further details.
HTH
Rüdiger
Dahai Cao wrote:
> Hi, I add a DoubleClickEvent to open new views by clicking on the
> treeView. there are several ways to open new views,
> 1. WorkbenchPage#showView("your.view.id") 2.
> ContributionItemFactory.VIEWS_SHORTLIST.create(IWorkbenchWin dow);
> 3. IPageLayout#addShowViewShortcut("your.view.id")
> Can I open a new view using the method:
> IFolderLayout#addView("your.view.id")?
> If can, how can I get the IFolderLayout like in
> Perspective#createInitialLayout?
>
> Dh Cao
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03103 seconds