Package org.pentaho.versionchecker

Examples of org.pentaho.versionchecker.BasicVersionCheckerProvider


    return dialog.performEdit();
  }

  public static void checkVersion(final Component parent, final boolean forcePrompt, final boolean exitOnLaunch)
  {
    final BasicVersionCheckerProvider dataProvider = new BasicVersionCheckerProvider(VersionCheckerUtility.class);
    final boolean gaOnly = !WorkspaceSettings.getInstance().isNotifyForAllBuilds();
    if (gaOnly)
    {
      dataProvider.setVersionRequestFlags(BasicVersionCheckerProvider.DEPTH_GA_MASK);
    }
    else
    {
      dataProvider.setVersionRequestFlags(BasicVersionCheckerProvider.DEPTH_ALL_MASK);
    }
    final VersionChecker vc = new VersionChecker();
    vc.setDataProvider(dataProvider);
    vc.addResultHandler(new InternalResultHandler(parent, forcePrompt, exitOnLaunch));
    vc.addErrorHandler(new NoPromptErrorHandler());
View Full Code Here


    return dialog.performEdit();
  }

  public static void checkVersion(final Component parent, final boolean forcePrompt, final boolean exitOnLaunch)
  {
    final BasicVersionCheckerProvider dataProvider = new BasicVersionCheckerProvider(VersionCheckerUtility.class);
    final boolean gaOnly = !WorkspaceSettings.getInstance().isNotifyForAllBuilds();
    if (gaOnly)
    {
      dataProvider.setVersionRequestFlags(BasicVersionCheckerProvider.DEPTH_GA_MASK);
    }
    else
    {
      dataProvider.setVersionRequestFlags(BasicVersionCheckerProvider.DEPTH_ALL_MASK);
    }
    final VersionChecker vc = new VersionChecker();
    vc.setDataProvider(dataProvider);
    vc.addResultHandler(new InternalResultHandler(parent, forcePrompt, exitOnLaunch));
    vc.addErrorHandler(new NoPromptErrorHandler());
View Full Code Here

TOP

Related Classes of org.pentaho.versionchecker.BasicVersionCheckerProvider

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.