Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r3773 - trunk/subclipse/org.tigris.subversion.subclipse.ui/src/org/tigris/subversion/subclipse/ui/decorator/SVNLightweightDecorator.java

subclipse
Discussion topic

Back to topic list

svn commit: r3773 - trunk/subclipse/org.tigris.subversion.subclipse.ui/src/org/tigris/subversion/subclipse/ui/decorator/SVNLightweightDecorator.java

Author selsemore
Full name Stephen Elsemore
Date 2008-03-24 06:45:30 PDT
Message Author: selsemore
Date: 2008-03-24 06:45:29-0700
New Revision: 3773

Modified:
   trunk/subclipse/org.​tigris.subversion.su​bclipse.ui/src/org/t​igris/subversion/sub​clipse/ui/decorator/​SVNLightweightDecora​tor.java

Log:
Apply outgoing change font/color preferences to added resources.

Modified: trunk/subclipse/org.​tigris.subversion.su​bclipse.ui/src/org/t​igris/subversion/sub​clipse/ui/decorator/​SVNLightweightDecora​tor.java
Url: http://subclipse.tig​ris.org/source/brows​e/subclipse/trunk/su​bclipse/org.tigris.s​ubversion.subclipse.​ui/src/org/tigris/su​bversion/subclipse/u​i/decorator/SVNLight​weightDecorator.java​?view=diff&rev=3​773&p1=trunk/sub​clipse/org.tigris.su​bversion.subclipse.u​i/src/org/tigris/sub​version/subclipse/ui​/decorator/SVNLightw​eightDecorator.java​&p2=trunk/subclip​se/org.tigris.subver​sion.subclipse.ui/sr​c/org/tigris/subvers​ion/subclipse/ui/dec​orator/SVNLightweigh​tDecorator.java&​r1=3772&r2=3773
====================​====================​====================​==================
--- trunk/subclipse/org.​tigris.subversion.su​bclipse.ui/src/org/t​igris/subversion/sub​clipse/ui/decorator/​SVNLightweightDecora​tor.java (original)
+++ trunk/subclipse/org.​tigris.subversion.su​bclipse.ui/src/org/t​igris/subversion/sub​clipse/ui/decorator/​SVNLightweightDecora​tor.java 2008-03-24 06:45:29-0700
@@ -227,7 +227,7 @@
             if (svnResource.getIRes​ource().getType() == IResource.FILE) {
                 // for files, we want that only modified files to be considered as dirty
                 LocalResourceStatus status = svnResource.getStatus();
- return ((status.isTextModified() || status.isPropModified() || status.isReplaced())
+ return ((status.isTextModified() || status.isPropModified() || status.isReplaced() || status.isAdded())
                             && !status.isIgnored() && !svnResource.isIgnored());
             } else {
                 // a container with an added file, deleted file, conflicted file ... is considered as dirty
@@ -304,7 +304,7 @@
             }
             decorateTextLabel(svnResource, status, decoration, isDirty);
         }
- if (!isUnversioned) computeColorsAndFont​s(isIgnored, isDirty, decoration);
+ computeColorsAndFont​s(isIgnored, isDirty || isUnversioned, decoration);
         if (!isIgnored) {
             ImageDescriptor overlay = getOverlay(svnResource, status, isDirty, svnProvider);
             if(overlay != null) { //actually sending null arg would work but this makes logic clearer

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r3773 - trunk/subclipse/org.tigris.subversion.subclipse.ui/src/org/tigris/subversion/subclipse/ui/decorator/SVNLightweightDecorator.java selsemore Stephen Elsemore 2008-03-24 06:45:30 PDT
Messages per page: