Package org.wiztools.appupdate

Examples of org.wiztools.appupdate.VersionUrl


            }
        }
       
        // Verify version:
        try {
            final VersionUrl data = VersionWSUtil.getLatestVersion(UPDATE_URL);
            Version latestVersion = data.getVersion();
            Version currentVersion = new VersionImpl(RCConstants.VERSION);
           
            // Newer version available:
            if(latestVersion.isGreaterThan(currentVersion)) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        final int opt = JOptionPane.showConfirmDialog(null,
                                "An updated version of RESTClient is available. Do you want to download?",
                                "Download update?",
                                JOptionPane.YES_NO_OPTION);
                        if(opt == JOptionPane.YES_OPTION) {
                            openUrl(data.getDlUrl());
                        }
                    }
                });
            }
           
View Full Code Here

TOP

Related Classes of org.wiztools.appupdate.VersionUrl

Copyright © 2018 www.massapicom. 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.