Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to Maximize/Restore/Minimize Views?
How to Maximize/Restore/Minimize Views? [message #493413] Mon, 26 October 2009 05:10 Go to next message
gachoki is currently offline gachoki
Messages: 10
Registered: October 2009
Junior Member
Hi,

I need to know what API to use in order to Maximize/Restore/Minimize Views/Editors in Eclipse.

So far, I have tried using:

view.menu("Maximize").click()

view.toolbarButtonWithTooltip("Maximize").click()

bot.toolbarButtonWithTooltip("Maximize").click()

etc, but none of them seem to work. If you know the right API to do it, please let me know.

Thanks.
Re: How to Maximize/Restore/Minimize Views? [message #493574 is a reply to message #493413] Tue, 27 October 2009 02:32 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
There's no such API that SWTBot provides at the moment, would you like
to file a bug ?

--
Ketan
studios.thoughtworks.com | twitter.com/ketanpkr
-

If your happiness depends on what somebody else does,
I guess you do have a problem.
-- Richard Bach, "Illusions"


gachoki@us.ibm.com wrote:
> Hi,
>
> I need to know what API to use in order to Maximize/Restore/Minimize
> Views/Editors in Eclipse.
>
> So far, I have tried using:
>
> view.menu("Maximize").click()
>
> view.toolbarButtonWithTooltip("Maximize").click()
>
> bot.toolbarButtonWithTooltip("Maximize").click()
>
> etc, but none of them seem to work. If you know the right API to do it,
> please let me know.
>
> Thanks.
Re: How to Maximize/Restore/Minimize Views? [message #493575 is a reply to message #493574] Tue, 27 October 2009 02:52 Go to previous message
gachoki is currently offline gachoki
Messages: 10
Registered: October 2009
Junior Member
Thanks for the reply. There is a workaround for my the problem by using window menu items i.e.,

bot.menu(IDEWorkbenchMessages.Workbench_window).menu("Maximize Active View or Editor").click();

// restore using same menu item
bot.menu(IDEWorkbenchMessages.Workbench_window).menu("Maximize Active View or Editor").click();


Although an explicit API may be more desirable.
Previous Topic:Support to click tree table cell, proposal
Next Topic:addition to locate arrow buttons
Goto Forum:
  


Current Time: Wed Oct 22 22:31:36 GMT 2014

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

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