[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Colorized decoration update

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-08-31 00:46:01 CEST

"Daniel Mace" <daniel.mace@benefitfocus.com> wrote on 08/30/2006 05:14:49
PM:

> I have made a simple modification to
> org.tigris.subversion.subclipse.ui.decorator.SVNDecoratorConfiguration
> which defines a static "map" (well, a 2D string array, for the purpose
> of speed) between the flags and colorization keys which I defined in the
> plugin.xml. For instance, SVNDecoratorConfiguration.DIRTY_FLAG
> ->svn_dirty_foreground. Following text decoration, I loop through the
> defined color mappings, and determine if the flag for that key is
> contained in the bindings map passed into the decorator methods. If so,
> I look up the user defined color using
> PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getColorRe
> gistry() and apply it to the decorator.
>
> I defined preferences and mappings for dirty, added, and external
> resources to begin with. The colors are configurable under the SVN
> category in Prefs->General->Appearance->Fonts and Colors.
>
> It's working very well for private use. No idea if the approach is
> ideal, but it certainly works. Is there somewhere I can submit the code
> for review?

Attach it to that issue I sent you in the issue tracker. You just have to
create a tigris.org account and then request the Observer role in our
project.

Ideally, you should look at how CVS implemented the feature and copy them.
 For all I know, that is what you did, but if you did, you should say so.

Thanks

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Aug 31 00:48:14 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.