[prev in list] [next in list] [prev in thread] [next in thread]
List: jedit-cvs
Subject: [ jEdit-commits ] SF.net SVN: jedit:[15355]
From: daleanson () users ! sourceforge ! net
Date: 2009-05-28 20:48:58
Message-ID: E1M9mX4-0001bJ-7F () 3kljzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 15355
http://jedit.svn.sourceforge.net/jedit/?rev=15355&view=rev
Author: daleanson
Date: 2009-05-28 20:48:57 +0000 (Thu, 28 May 2009)
Log Message:
-----------
Added line highlight to blame UI. Using same color as text area line highlight. \
This makes it easier see which line in the text area lines up with which line in the \
blame UI.
Modified Paths:
--------------
plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/component/BasicBlamePaneUI.java
Modified: plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/component/BasicBlamePaneUI.java
===================================================================
--- plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/component/BasicBlamePaneUI.java 2009-05-28 \
00:36:53 UTC (rev 15354)
+++ plugins/SVNPlugin/trunk/src/ise/plugin/svn/gui/component/BasicBlamePaneUI.java 2009-05-28 \
20:48:57 UTC (rev 15355) @@ -142,10 +142,18 @@
pixelsPerLine = \
model.getTextArea().getPainter().getFontMetrics().getHeight(); int firstLine = \
model.getTextArea().getFirstPhysicalLine(); int lastLine = \
model.getTextArea().getLastPhysicalLine();
- gfx.setColor( jEdit.getColorProperty("view.fgColor", Color.BLACK) );
+ int caretLine = model.getTextArea().getCaretLine();
+ Color foreground = jEdit.getColorProperty( "view.fgColor", Color.BLACK \
); + Color highlight = jEdit.getColorProperty( "view.lineHighlightColor", \
Color.WHITE ); + gfx.setColor( foreground );
java.util.List<String> blame = model.getBlame();
int descent = gfx.getFontMetrics().getDescent();
for ( int i = firstLine; i <= lastLine; i++ ) {
+ if ( i == caretLine ) {
+ gfx.setColor( highlight );
+ gfx.fillRect( 0, ( i - firstLine ) * pixelsPerLine, size.width, \
pixelsPerLine ); + gfx.setColor( foreground );
+ }
if ( i >= 0 && i < blame.size() ) {
gfx.drawString( blame.get( i ), 3, ( ( i - firstLine + 1 ) * \
pixelsPerLine ) - descent ); }
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic