Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Hide/Collapse Palette
Hide/Collapse Palette [message #245859] Tue, 21 October 2008 22:19 Go to next message
Lillo is currently offline LilloFriend
Messages: 12
Registered: July 2009
Junior Member
Is there a way to hide/collapse palette programmatically?Any suggestions?
Thanks a lot in advance.
Re: Hide/Collapse Palette [message #245865 is a reply to message #245859] Wed, 22 October 2008 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

Check out the GraphicalEditorWithFlyoutPalette.. and FlyoutPalleteComposite.
Re: Hide/Collapse Palette [message #245881 is a reply to message #245865] Wed, 22 October 2008 15:08 Go to previous messageGo to next message
Lillo is currently offline LilloFriend
Messages: 12
Registered: July 2009
Junior Member
How can I use FlyoutPaletteComposite to do that?Reading gef code I didn't
find any way to implement palette hiding by means of
FlyoutPaletteComposite. Do you send me Any code sample?
Thank you very much in advance
Re: Hide/Collapse Palette [message #245923 is a reply to message #245881] Fri, 24 October 2008 03:48 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi

Look for the FlyoutPaletteComposite#createFlyoutPreferences() call in
GraphicalEditorWithFlyoutPalette#getPalettePreferences() and override. Not
sure we have any examples, but the code seems ok to follow.

Cheers...
Anthony

"Lillo " <lillero72@yahoo.it> wrote in message
news:2ad575446742dd2a1a7ce84081c500d2$1@www.eclipse.org...
> How can I use FlyoutPaletteComposite to do that?Reading gef code I didn't
> find any way to implement palette hiding by means of
> FlyoutPaletteComposite. Do you send me Any code sample? Thank you very
> much in advance
>
Re: Hide/Collapse Palette [message #245959 is a reply to message #245923] Mon, 27 October 2008 15:36 Go to previous messageGo to next message
Lillo is currently offline LilloFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Anthony,
first of all, thanks a lot for your support; I follow your suggestion
without solving my problem. In detail the scenario is the following:
1) the user opens the editor
2) the editor displays with an expandend palette
3) after some interactions, the user clicks on a button and the palette
automatically collapses
My problem is to implement point 3). Any further suggestions?
Thanks in advance,
Lillo
URGENT:Hide/Collapse Palette [message #246043 is a reply to message #245959] Mon, 03 November 2008 09:18 Go to previous messageGo to next message
Lillo is currently offline LilloFriend
Messages: 12
Registered: July 2009
Junior Member
I've received no response to my previous question; does it mean that there
is no answer? How do I collapse programmatically the palette? If for
example I switch from a perspective to another and I want to
authomatically collapse an expandend palette, I cannot do that?It's very
strange!!! Could you help me please? It is very urgent.

Thank you so much in advance for your fast response.
Re: URGENT:Hide/Collapse Palette [message #246108 is a reply to message #246043] Wed, 05 November 2008 20:46 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Lillo

As I already said,

Look for the FlyoutPaletteComposite#createFlyoutPreferences() call in
GraphicalEditorWithFlyoutPalette#getPalettePreferences() and override. You
are going to have to override with something to set a preference and then
refresh your editor.

There is no API for this because the palette is a user interface and it is
up to the end user to dock and undock the palette.

Just because you switch perspectives, why you do not want to force the
palette to dock for the user? What if the user opens the palette view?

Cheers...
Anthony


"Lillo " <lillero72@yahoo.it> wrote in message
news:22a133102287849d5b8d7abef8365006$1@www.eclipse.org...
> I've received no response to my previous question; does it mean that there
> is no answer? How do I collapse programmatically the palette? If for
> example I switch from a perspective to another and I want to
> authomatically collapse an expandend palette, I cannot do that?It's very
> strange!!! Could you help me please? It is very urgent.
>
> Thank you so much in advance for your fast response.
Previous Topic:[Announce] GEF 3.5.0M3 is available
Next Topic:Zest bi-directional connections
Goto Forum:
  


Current Time: Fri Apr 19 16:27:10 GMT 2024

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

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

Back to the top