Tabnine Logo
SubmittedReportInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
SubmittedReportInfo
in
com.intellij.openapi.diagnostic

Best Java code snippets using com.intellij.openapi.diagnostic.SubmittedReportInfo (Showing top 10 results out of 315)

origin: KronicDeth/intellij-elixir

  @Override
  public void consume(Boolean opened) {
    String url = null;
    String linkText = null;
    //noinspection ConstantConditions
    final SubmittedReportInfo reportInfo = new SubmittedReportInfo(
        url,
        linkText,
        SubmittedReportInfo.SubmissionStatus.NEW_ISSUE
    );
    consumer.consume(reportInfo);
    // pseudo-named-arguments
    NotificationListener notificationListener = null;
    //noinspection ConstantConditions
    ReportMessages.GROUP.createNotification(
        ReportMessages.ERROR_REPORT,
        "Submitted",
        NotificationType.INFORMATION,
        notificationListener
    ).setImportant(false).notify(project);
  }
};
origin: Camelcade/Perl5-IDEA

private static void popupResultInfo(final SubmittedReportInfo reportInfo, final Project project) {
 ApplicationManager.getApplication().invokeLater(() -> {
  StringBuilder text = new StringBuilder("<html>");
  final String url = reportInfo.getStatus() == SubmittedReportInfo.SubmissionStatus.FAILED || reportInfo.getLinkText() == null
            ? null
            : reportInfo.getURL();
  IdeErrorsDialog.appendSubmissionInformation(reportInfo, text);
  text.append(".");
  final SubmittedReportInfo.SubmissionStatus status = reportInfo.getStatus();
  if (status == SubmittedReportInfo.SubmissionStatus.NEW_ISSUE) {
   text.append("<br/>").append(DiagnosticBundle.message("error.report.gratitude"));
origin: halirutan/Mathematica-IntelliJ-Plugin

 @Override
 public void consume(SubmittedReportInfo reportInfo) {
  myOriginalConsumer.consume(reportInfo);
  if (reportInfo.getStatus().equals(SubmissionStatus.FAILED)) {
   ReportMessages.GROUP.createNotification(
     ReportMessages.ERROR_REPORT,
     reportInfo.getLinkText(),
     NotificationType.ERROR,
     null).setImportant(false).notify(myProject);
  } else {
   ReportMessages.GROUP.createNotification(
     ReportMessages.ERROR_REPORT,
     reportInfo.getLinkText(),
     NotificationType.INFORMATION,
     NotificationListener.URL_OPENING_LISTENER).setImportant(false).notify(myProject);
  }
 }
}
origin: BashSupport/BashSupport

  @Override
  public void consume(Throwable throwable) {
    LOGGER.info("Error submission failed", throwable);
    consumer.consume(new SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.FAILED));
  }
}
origin: protostuff/protobuf-jetbrains-plugin

@Override
public boolean submit(@NotNull IdeaLoggingEvent[] events, @Nullable String additionalInfo,
           @NotNull Component parentComponent, @NotNull Consumer<SubmittedReportInfo> consumer) {
  EventBuilder eventBuilder = createEvent(events, additionalInfo);
  sentry.sendEvent(eventBuilder);
  consumer.consume(new SubmittedReportInfo(null, null, NEW_ISSUE));
  Messages.showInfoMessage(parentComponent, DEFAULT_RESPONSE, DEFAULT_RESPONSE_TITLE);
  return true;
}
origin: Camelcade/Perl5-IDEA

 final SubmittedReportInfo reportInfo = new SubmittedReportInfo(SERVER_URL + "issue/" + existing, existing, DUPLICATE);
 popupResultInfo(reportInfo, project);
 return reportInfo;
 return new SubmittedReportInfo(SERVER_ISSUE_URL, "", FAILED);
 return new SubmittedReportInfo(SERVER_ISSUE_URL, "", FAILED);
final SubmittedReportInfo reportInfo = new SubmittedReportInfo(SERVER_URL + "issue/" + ResultString, ResultString, NEW_ISSUE);
origin: cmf/psiviewer

  return new SubmittedReportInfo(SERVER_ISSUE_URL, "", FAILED);
  return new SubmittedReportInfo(SERVER_ISSUE_URL, "", FAILED);
return new SubmittedReportInfo(SERVER_URL + "issue/" + ResultString, ResultString, status);
origin: GoogleCloudPlatform/google-cloud-intellij

 @Override
 public void consume(String token) {
  final SubmittedReportInfo reportInfo =
    new SubmittedReportInfo(
      null, "Issue " + token, SubmittedReportInfo.SubmissionStatus.NEW_ISSUE);
  callback.consume(reportInfo);
  ReportMessages.GROUP
    .createNotification(
      ReportMessages.ERROR_REPORT, "Submitted", NotificationType.INFORMATION, null)
    .setImportant(false)
    .notify(project);
 }
};
origin: BashSupport/BashSupport

  @Override
  public void run(@NotNull ProgressIndicator indicator) {
    indicator.setText("Submitting BashSupport error report...");
    indicator.setIndeterminate(true);
    LoggingEventSubmitter submitter = new TextStreamLoggingEventSubmitter(serverUrl);
    submitter.setPluginId(properties.getProperty(PLUGIN_ID_PROPERTY_KEY));
    submitter.setPluginName(properties.getProperty(PLUGIN_NAME_PROPERTY_KEY));
    submitter.setPluginVersion(properties.getProperty(PLUGIN_VERSION_PROPERTY_KEY));
    submitter.setIdeaBuild(ApplicationInfo.getInstance().getBuild().asString());
    submitter.setEmailTo(splitByBlanks(properties.getProperty(EMAIL_TO_PROPERTY_KEY)));
    submitter.setEmailCc(splitByBlanks(properties.getProperty(EMAIL_CC_PROPERTY_KEY)));
    try {
      submitter.submit(stacktrace, description, user);
      successConsumer.consume(new SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.NEW_ISSUE));
    } catch (LoggingEventSubmitter.SubmitException e) {
      //ignore
    }
  }
};
origin: halirutan/Mathematica-IntelliJ-Plugin

 final String htmlUrl = newGibHubIssue.getHtmlUrl();
 final String message = ErrorReportBundle.message(isNewIssue ? "git.issue.text" : "git.issue.duplicate.text", htmlUrl, id);
 result = new SubmittedReportInfo(htmlUrl, message, isNewIssue ? SubmissionStatus.NEW_ISSUE : SubmissionStatus.DUPLICATE);
 return result;
} catch (Exception e) {
 return new SubmittedReportInfo(null, ErrorReportBundle.message("report.error.connection.failure"), SubmissionStatus.FAILED);
com.intellij.openapi.diagnosticSubmittedReportInfo

Most used methods

  • <init>
  • getLinkText
  • getStatus
  • getURL

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Option (scala)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now