Minimize a view with Eclipse 3.3M2 ? [message #309059] |
Sun, 15 October 2006 18:53  |
Eclipse User |
|
|
|
Originally posted by: nicolas.bihan.free.fr
Hello,
I want to minimize/restore a view programmatically.
I wanted to use the toggleZoom method from WorkbenchPage but it looks
like to have restriction on the required library...
Is there a better way to do this in 3.3M2 ?
Thanks,
Nicolas Bihan
|
|
|
|
|
Re: Minimize a view with Eclipse 3.3M2 ? [message #309152 is a reply to message #309143] |
Tue, 17 October 2006 08:12  |
Eclipse User |
|
|
|
Nicolas Bihan wrote:
> Paul Webster a écrit :
>> Nicolas Bihan wrote:
>>> Hello,
>>>
>>> I want to minimize/restore a view programmatically.
>>>
>>> I wanted to use the toggleZoom method from WorkbenchPage but it looks
>>> like to have restriction on the required library...
>>
>> Since 3.2, isn't toggleZoom(*) on IWorkbenchPage?
>>
>> Later,
>> PW
>>
>
> It's seems to be restricted...
The methods on IWorkbenchPage are not restricted. In 3.2, they're
public API.
> But I used it and It almost worked for me.
> when I toggleZoom(IViewReference) it's maximized !
That's what toggleZoom(*) does, it zooms in (maximizes) the part reference.
To minimize, try IWorkbenchPage#setPartState(IWorkbenchPartReference
ref, int state). This is also public API.
Read the javadocs for these 2 methods.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.19476 seconds