Changeset 1:d025bdb4e681

Show
Ignore:
Timestamp:
09/21/08 13:42:44 (4 years ago)
Author:
ws@…
Branch:
default
Message:

fixed locale problem for parsing dates.

Files:
2 removed
4 modified

Legend:

Unmodified
Added
Removed
  • .hgignore

    r0 r1  
    33^com.goldenhammers.merclipse.update.site/features/* 
    44^images/* 
     5\.orig$ 
  • com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/team/actions/MercurialAction.java

    r0 r1  
    5151                if (selection instanceof StructuredSelection) { 
    5252                        StructuredSelection ss = (StructuredSelection) selection; 
    53                         Iterator i = ss.iterator(); 
     53                        Iterator<?> i = ss.iterator(); 
    5454                         
    5555                        List<IResource> resources = new LinkedList<IResource>(); 
  • com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/utils/MercurialConstants.java

    r0 r1  
    1313import java.text.DateFormat; 
    1414import java.text.SimpleDateFormat; 
     15import java.util.Locale; 
    1516 
    1617 
     
    9091        public static final String PREFIX_FILES = "files:"; 
    9192         
    92         public static final DateFormat LOG_DATE_FORMAT = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy Z"); 
     93        public static final DateFormat LOG_DATE_FORMAT = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy Z", Locale.ENGLISH); 
    9394                 
    9495} 
  • com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/utils/MercurialUtils.java

    r0 r1  
    6464        // TODO REVIEW USAGE: 
    6565        public static void debug(String text) { 
    66                 System.out.println(text); 
     66//              System.out.println(text); 
    6767//              MercurialPlugin.getDefault().getLog().log(new Status(Status.INFO,  
    6868//                              MercurialPlugin.PLUGIN_ID, text)); 
     
    7474         
    7575        public static void debug(Throwable e) { 
    76                 e.printStackTrace(System.out); 
     76//              e.printStackTrace(System.out); 
    7777                MercurialPlugin.getDefault().getLog().log(new Status(Status.WARNING,  
    7878                                MercurialPlugin.PLUGIN_ID, e.getLocalizedMessage(), e)); 
     
    8080         
    8181        public static void log(String text) { 
    82                 System.err.println(text); 
     82//              System.err.println(text); 
    8383                MercurialPlugin.getDefault().getLog().log(new Status(Status.ERROR,  
    8484                                MercurialPlugin.PLUGIN_ID, text));