Package open.dolphin.client

Source Code of open.dolphin.client.Uninstall

package open.dolphin.client;

import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

/**
*
* @author Minagawa,Kazushi
*/
public class Uninstall {
   
    private static final String DOLPHIN_NODE = "/open";
   
    /** Creates a new instance of Uninstall */
    public Uninstall() {
       
        clearPrefernces();
       
        deleteDirectories();
    }
   
    private void clearPrefernces() {
       
        try {
            Preferences prefs = Preferences.userRoot().node(DOLPHIN_NODE);
            prefs.removeNode();
           
        } catch (BackingStoreException e) {
            e.printStackTrace();
        }
    }
   
    private void deleteDirectories() {
    }
   
    public static void main(String[] args) {
        new Uninstall();
        System.exit(0);
    }
}
TOP

Related Classes of open.dolphin.client.Uninstall

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.