static void runStartupWizard() {
   final List<ApplicationInfoEx.PluginChooserPage> pages =
       ApplicationInfoImpl.getShadowInstance().getPluginChooserPages();
   if (!pages.isEmpty()) {
     final StartupWizard startupWizard = new StartupWizard(pages);
     startupWizard.setCancelText("Skip");
     startupWizard.show();
     PluginManager.invalidatePlugins();
   }
 }
  public static StatisticsService getStatisticsService() {
    String key =
        ((ApplicationInfoImpl) ApplicationInfoImpl.getShadowInstance()).getStatisticsServiceKey();
    StatisticsService service = key == null ? null : COLLECTOR.findSingle(key);
    if (service != null) {
      return service;
    }

    return new RemotelyConfigurableStatisticsService(
        new StatisticsConnectionService(),
        new StatisticsHttpClientSender(),
        new StatisticsUploadAssistant());
  }
Beispiel #3
0
  @Override
  public void removeAssociatedValue(int inputId) {
    if (myInputIdMapping == null) return;
    List<Value> toRemove = null;
    for (final Iterator<Value> valueIterator = getValueIterator(); valueIterator.hasNext(); ) {
      final Value value = valueIterator.next();
      if (getValueAssociationPredicate(value).contains(inputId)) {
        if (toRemove == null) toRemove = new SmartList<Value>();
        else if (ApplicationInfoImpl.getShadowInstance().isEAP()) {
          LOG.error(
              "Expected only one value per-inputId for " + ourDebugIndexInfo.get(),
              String.valueOf(toRemove.get(0)),
              String.valueOf(value));
        }
        toRemove.add(value);
      }
    }

    if (toRemove != null) {
      for (Value value : toRemove) {
        removeValue(inputId, value);
      }
    }
  }
 @Override
 protected boolean logSlowComponents() {
   return super.logSlowComponents() || ApplicationInfoImpl.getShadowInstance().isEAP();
 }