/*
 * Copyright (C) 2013 Aaron Madlon-Kay <aaron@madlon-kay.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package org.madlonkay.supertmxmerge;

import org.madlonkay.supertmxmerge.util.LocString;

/**
 *
 * @author Aaron Madlon-Kay <aaron@madlon-kay.com>
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
                
        if (args.length == 0) {
            SuperTmxMerge.promptForFiles();
            return;
        }
                
        if (args.length == 2) {
            SuperTmxMerge.diff(args[0], args[1]);
            return;
        } else if (args.length == 3) {
            SuperTmxMerge.merge(args[0], args[1], args[2]);
            return;
        } else if (args.length == 4) {
            SuperTmxMerge.mergeTo(args[0], args[1], args[2], args[3]);
        }
        
        printUsage();
    }
    
    private static void printUsage() {
        System.out.print(LocString.get("usage_directions"));
    }
}

@@ -837,16 +837,167 @@
 rge;%0D%0A%0D%0A
+import java.util.logging.Level;%0D%0Aimport java.util.logging.Logger;%0D%0Aimport javax.swing.UIManager;%0D%0Aimport javax.swing.UnsupportedLookAndFeelException;%0D%0A
 import o
@@ -1040,16 +1040,16 @@
 tring;%0D%0A
-
 %0D%0A/**%0D%0A 
@@ -1129,18 +1129,22 @@
 Main %7B%0D%0A
+    
 %0D%0A
-
     /**%0D
@@ -1200,16 +1200,16 @@
     */%0D%0A
-
     publ
@@ -1242,24 +1242,519 @@
 %5B%5D args) %7B%0D%0A
+        %0D%0A        try %7B%0D%0A            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());%0D%0A        %7D catch (UnsupportedLookAndFeelException ex) %7B%0D%0A            throw new RuntimeException(ex);%0D%0A        %7D catch (ClassNotFoundException ex) %7B%0D%0A            throw new RuntimeException(ex);%0D%0A        %7D catch (InstantiationException ex) %7B%0D%0A            throw new RuntimeException(ex);%0D%0A        %7D catch (IllegalAccessException ex) %7B%0D%0A            throw new RuntimeException(ex);%0D%0A        %7D%0D%0A
             

Use system look & feel