Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Minimize a view with Eclipse 3.3M2 ?
Minimize a view with Eclipse 3.3M2 ? [message #309059] Sun, 15 October 2006 18:53 Go to next message
Eclipse UserFriend
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 #309070 is a reply to message #309059] Sun, 15 October 2006 20:20 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Minimize a view with Eclipse 3.3M2 ? [message #309143 is a reply to message #309070] Tue, 17 October 2006 03:54 Go to previous messageGo to next message
Eclipse UserFriend
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...
But I used it and It almost worked for me.
when I toggleZoom(IViewReference) it's maximized !

Is there a specific thing to minize ?

thx

Nicolas Bihan
Re: Minimize a view with Eclipse 3.3M2 ? [message #309152 is a reply to message #309143] Tue, 17 October 2006 08:12 Go to previous message
Eclipse UserFriend
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
Previous Topic:Refresh and compile code programaticaly
Next Topic:problem with registering of plugin
Goto Forum:
  


Current Time: Sun Jun 08 10:32:29 EDT 2025

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

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

Back to the top