Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to open new view through
How to open new view through [message #97702] Fri, 11 July 2008 08:49 Go to next message
CAO Dahai is currently offline CAO DahaiFriend
Messages: 16
Registered: July 2009
Junior Member
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
Re: How to open new view through [message #97718 is a reply to message #97702] Fri, 11 July 2008 10:06 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:how to build the window like RAP Workbench Demo online?
Next Topic:Memory leak after session cleanup
Goto Forum:
  


Current Time: Fri Apr 19 22:54:16 GMT 2024

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

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

Back to the top