Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [nb] Open a view inside a view
[nb] Open a view inside a view [message #436761] Sat, 17 September 2005 17:40 Go to next message
Eclipse UserFriend
Originally posted by: neto.t2tecnologia.com.br

Hello,

my application have just a perspective. When app starts, a view (VIEW1)
is added in the perspective.
What I want is when a button is fired inside the VIEW1, the VIEW2 must
be opened and the VIEW1 must be closed.

There is a way to do something like "ViewPart.getLayout().addView..."?

Thanks,

Neto
Re: [nb] Open a view inside a view [message #436764 is a reply to message #436761] Sun, 18 September 2005 00:23 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
use

IWorkbenchPage.showView(...) and
IWorkbenchPage.hideView(...) and

grab page reference with

IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage()

Victor Tortorello Neto wrote:
> Hello,
>
> my application have just a perspective. When app starts, a view (VIEW1)
> is added in the perspective.
> What I want is when a button is fired inside the VIEW1, the VIEW2 must
> be opened and the VIEW1 must be closed.
>
> There is a way to do something like "ViewPart.getLayout().addView..."?
>
> Thanks,
>
> Neto
Re: [nb] Open a view inside a view [message #436765 is a reply to message #436764] Sat, 17 September 2005 22:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neto.t2tecnologia.com.br

snpe wrote:
> use
>
> IWorkbenchPage.showView(...) and
> IWorkbenchPage.hideView(...) and
>
> grab page reference with
>
> IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage()
>
> Victor Tortorello Neto wrote:
>
>>Hello,
>>
>>my application have just a perspective. When app starts, a view (VIEW1)
>>is added in the perspective.
>>What I want is when a button is fired inside the VIEW1, the VIEW2 must
>>be opened and the VIEW1 must be closed.
>>
>>There is a way to do something like "ViewPart.getLayout().addView..."?
>>
>>Thanks,
>>
>>Neto
>
>

Please, how can I set the view standalone using IWorkbenchPage.showView() ?

Thanks again!
Re: [nb] Open a view inside a view [message #436766 is a reply to message #436765] Sun, 18 September 2005 01:07 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
page.showView(VIEW_ID);

or

page.showView(VIEW_ID,secondaryID,IWorkbenchPage.VIEW_ACTIVA TE);

see API for IWorkbenchPage

Victor Tortorello Neto wrote:

> snpe wrote:
>> use
>>
>> IWorkbenchPage.showView(...) and
>> IWorkbenchPage.hideView(...) and
>>
>> grab page reference with
>>
>> IWorkbenchPage page =
>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage()
>>
>> Victor Tortorello Neto wrote:
>>
>>>Hello,
>>>
>>>my application have just a perspective. When app starts, a view (VIEW1)
>>>is added in the perspective.
>>>What I want is when a button is fired inside the VIEW1, the VIEW2 must
>>>be opened and the VIEW1 must be closed.
>>>
>>>There is a way to do something like "ViewPart.getLayout().addView..."?
>>>
>>>Thanks,
>>>
>>>Neto
>>
>>
>
> Please, how can I set the view standalone using IWorkbenchPage.showView()
> ?
>
> Thanks again!
Previous Topic:Extend RCP to restrict third party plugins
Next Topic:Why my RCP application cannot start in Linux?
Goto Forum:
  


Current Time: Mon Dec 09 10:31:05 GMT 2024

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

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

Back to the top