Changeset 18242


Ignore:
Timestamp:
2008-12-17T18:49:45+13:00 (15 years ago)
Author:
cc108
Message:

add new message pane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/admin/gui/WorkingCopy.java

    r18142 r18242  
    22
    33import java.io.File;
    4 
    54
    65import javax.swing.JFrame;
     
    2423    private static SVNClientManager ourClientManager;
    2524    private static ISVNEventHandler myUpdateEventHandler;
    26    
     25    public static boolean suc = true;
    2726    JTextArea messageTextArea;
    2827
     
    9594        return dir.delete();
    9695        }
    97    
    98     /*
    99      * Initializes the library to work with a repository via
    100      * different protocols.
    101      */
     96
    10297    private static void setupLibrary() {
    10398
     
    109104    }
    110105
    111 
    112     /*
    113      * Checks out a working copy from a repository. Like 'svn checkout URL[@REV] PATH (-r..)'
    114      * command; It's done by invoking
    115      *
    116      * SVNUpdateClient.doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision,
    117      * SVNRevision revision, boolean recursive)
    118      *
    119      * which takes the following parameters:
    120      *
    121      * url - a repository location from where a working copy is to be checked out;
    122      *
    123      * dstPath - a local path where the working copy will be fetched into;
    124      *
    125      * pegRevision - an SVNRevision representing a revision to concretize
    126      * url (what exactly URL a user means and is sure of being the URL he needs); in other
    127      * words that is the revision in which the URL is first looked up;
    128      *
    129      * revision - a revision at which a working copy being checked out is to be;
    130      *
    131      * recursive - if true and url corresponds to a directory then doCheckout(..) recursively
    132      * fetches out the entire directory, otherwise - only child entries of the directory;   
    133      */
    134106    private static void checkout(SVNURL url,
    135107            SVNRevision revision, File destPath, boolean isRecursive)
     
    141113
    142114        long x = updateClient.doCheckout(url, destPath, revision, revision, isRecursive);
    143         //System.out.println("X:...."+x);
     115
    144116    }
    145117
    146 
     118    public boolean getStatus(){
     119        return suc;
     120    }
    147121
    148122    private static void error(String message, Exception e){
    149123        System.err.println(message+(e!=null ? ": "+e.getMessage() : ""));
    150         System.exit(1);
     124        JOptionPane.showMessageDialog(new JFrame(),Mat.DownloadErrorMsg);   
     125    suc = false;
    151126    }
    152 
    153127}
Note: See TracChangeset for help on using the changeset viewer.