Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > subclipse commit: r768 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter

subclipse
Discussion topic

Back to topic list

subclipse commit: r768 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter

Author pkorros
Full name Panagiotis Korros
Date 2004-07-22 13:18:32 PDT
Message Author: pkorros
Date: Thu Jul 22 15:18:26 2004
New Revision: 768

Modified:
   trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNNodeKi​nd.java
Log:
* Implemented SVNNodeKind.toString()


Modified: trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNNodeKi​nd.java
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNNodeKi​nd.java?view=diff​&rev=768&p1=tru​nk/svnClientAdapter/​src/main/org/tigris/​subversion/svnclient​adapter/SVNNodeKind.​java&r1=767&​p2=trunk/svnClientAd​apter/src/main/org/t​igris/subversion/svn​clientadapter/SVNNod​eKind.java&r2=76​8
====================​====================​====================​==================
--- trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNNodeKi​nd.java (original)
+++ trunk/svnClientAdapt​er/src/main/org/tigr​is/subversion/svncli​entadapter/SVNNodeKi​nd.java Thu Jul 22 15:18:26 2004
@@ -77,4 +77,20 @@
          this.kind = kind;
     }
 
+ public String toString() {
+ return toString( kind );
+ }
+
+ public static String toString(int kind) {
+ if( kind == 0 )
+ return "NONE";
+ else if( kind == 1 )
+ return "FILE";
+ else if( kind == 2 )
+ return "DIR";
+ else if( kind == 3 )
+ return "UNKNOWN";
+ else
+ return "Unknown kind "+kind;
+ }
 }

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@subc​lipse.tigris.org
For additional commands, e-mail: cvs-help at subclipse dot tigris dot org

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

Messages

Show all messages in topic

subclipse commit: r768 - trunk/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter pkorros Panagiotis Korros 2004-07-22 13:18:32 PDT
Messages per page: