Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Custom look-and-feel for ContextButtonPad(Is it possible to provide a custom look and feel for the ContextButtonPad?)
Custom look-and-feel for ContextButtonPad [message #1307730] Mon, 21 April 2014 19:01 Go to next message
Jorge Padilla is currently offline Jorge PadillaFriend
Messages: 6
Registered: August 2013
Junior Member
Is it possible to provide a custom look and feel for the ContextButtonPad?

I'm changing the color of my ContainerShape using a default RenderingStyle. Following the tutorial example, I can choose the "lime-white" style or create my own. The problem is that the ContextButtonPad does not get the new style, so the blue color scheme in the ContextButtonPad does not match my new style.


I'm already overriding the getContextButtonPad() method in my DiaglamToolBehaviorProvider but here I can only change the data, not the look and feel.

I searched the code and found the look-and-feel is controlled from StandardContextButtonPadDeclatarion, but I can't find any way to override this class with my own implementation.

What's the best way to change the colors in the context button pad?

Thanks!
Re: Custom look-and-feel for ContextButtonPad [message #1310812 is a reply to message #1307730] Wed, 23 April 2014 12:13 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Jorge,

I'm afraid that is internal right now. We have a second implementation for
the context pad style (SpecialContextButtonPadDeclaration), but the decision
is hard-coded in the internal method
ContextButtonManagerForPad.showContextButtonsInstantly.

To configure that you will probably have to create you own context button
manager in DiagramBehavior.configureGraphicalViewer. But that will mean
quite a bunch of overhead...

To me this sounds as if it would be worth filing an extension bugzilla to
make it configurable.

Michael
Previous Topic:some Key Bindings not working
Next Topic:Using RenderingStyles with nested ContainerShape
Goto Forum:
  


Current Time: Thu Mar 28 23:00:01 GMT 2024

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

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

Back to the top