[nb] Open a view inside a view [message #436761] |
Sat, 17 September 2005 13:40  |
Eclipse User |
|
|
|
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 #436766 is a reply to message #436765] |
Sat, 17 September 2005 21:07  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.10028 seconds