Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette group backgound change problem
Palette group backgound change problem [message #248357] Fri, 17 April 2009 04:54 Go to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 34
Registered: July 2009
Member
Hi ,

I saw one question in gmf news group regarding changing the white
background color of each palette group . Could you please tell me if this
is a bug in gef , if not how I can change the background of different
palette group where palette elements reside..

Below is the question in gmf newsgroup and response.

Best Regards,
Vikas

Question is :

Hi ,
My requirement is to chnage the white background colour inside the
palette int o a colour of my choice. For this i have tried to override the
createImage method for each of the following editpart
SliderPaletteEditPart , GroupEditPart, ToolbarEditPart ,DrawerEditPart,
PinnablePaletteStackEditPart in GmapDiagramEditor.java file.

SliderPaletteEditPart - These will change the colour of the palette
outermost cover when all th drawers are closed.

GroupEditPart - These will again change the colour of each of the grouos
of the palette on the outside only

ToolbarEditPart - changes the colour of toolbar on the top of the
palette. DrawerEditPart- changes the colour of drawer bar on the that
appears when the drawer is closed .

PinnablePaletteStackEditPart - changes the colour of pinnable stack
layout that is again near the toolbar onthe top of the palette.

I have not been change the white background for the elements in the
palette under each drawer. This remains white when the when the drawer is
opened.

Could this be a bug in the GMF that it doesn not allow to customize the
colour of only the backgournd inside eacha palette drawer.
How can this be achieved.


Response :
Hello sowmya,


Could this be a bug in the GMF that it doesn not allow to customize

Probably this is GEF-related question. All these cllasses came from GEF.

-----------------
Alex Shatalin
Re: Palette group backgound change problem [message #248362 is a reply to message #248357] Fri, 17 April 2009 05:03 Go to previous messageGo to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 34
Registered: July 2009
Member
one more update about gef version . I am using GEF Version 3.4.0 .
Best Regards,
Vikas
Re: Palette group backgound change problem [message #248386 is a reply to message #248357] Sat, 18 April 2009 01:09 Go to previous message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
Vikas Goyal wrote:
> I have not been change the white background for the elements in the
> palette under each drawer. This remains white when the when the drawer
> is opened.
>
> Could this be a bug in the GMF that it doesn not allow to customize the
> colour of only the backgournd inside eacha palette drawer.
> How can this be achieved.

I'm not intimately familiar with the palette components but are you
making the same request as this bug?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=129783

If so, you can CC yourself on the bug. If you're really interested in it
getting fixed you'll probably have to contribute a patch as it doesn't
seem to be a very popular request.

If that's not the right request, you could always file a new one.

Cheers
Ben
Previous Topic:EMF + GEF
Next Topic:Graphics scaling
Goto Forum:
  


Current Time: Fri Apr 26 13:16:56 GMT 2024

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

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

Back to the top