public abstract class ErrorReportSubmitter extends java.lang.Object implements PluginAware
ExtensionPoints.ERROR_HANDLER_EP
if reporting errors that happened in plugin code to vendor is desirable.Constructor and Description |
---|
ErrorReportSubmitter() |
Modifier and Type | Method and Description |
---|---|
void |
changeReporterAccount(java.awt.Component parentComponent)
If
getReporterAccount() returns a non-null value, this method may be called when a user wants to change a reporter account. |
PluginDescriptor |
getPluginDescriptor() |
java.lang.String |
getPrivacyNoticeText() |
abstract java.lang.String |
getReportActionText() |
java.lang.String |
getReporterAccount()
If this reporter allows a user to identify themselves, the method should return either the name of an account that will be used
for submitting reports or an empty string.
|
void |
setPluginDescriptor(PluginDescriptor plugin)
Called by the framework.
|
SubmittedReportInfo |
submit(IdeaLoggingEvent[] events,
java.awt.Component parent)
Deprecated.
do not override; implement
submit(IdeaLoggingEvent[], String, Component, Consumer) instead |
boolean |
submit(IdeaLoggingEvent [] events,
java.lang.String additionalInfo,
java.awt.Component parentComponent,
Consumer<SubmittedReportInfo> consumer)
This method is called whenever an exception in a plugin code had happened and a user decided to report a problem to the plugin vendor.
|
void |
submitAsync(IdeaLoggingEvent[] events,
java.lang.String info,
java.awt.Component parent,
Consumer<SubmittedReportInfo> consumer)
Deprecated.
do not override; implement
submit(IdeaLoggingEvent[], String, Component, Consumer) instead |
boolean |
trySubmitAsync(IdeaLoggingEvent[] events,
java.lang.String info,
java.awt.Component parent,
Consumer<SubmittedReportInfo> consumer)
Deprecated.
do not override; implement
submit(IdeaLoggingEvent[], String, Component, Consumer) instead |
public void setPluginDescriptor(PluginDescriptor plugin)
setPluginDescriptor
in interface PluginAware
plugin
- descriptor of the plugin that provided this particular extension.public PluginDescriptor getPluginDescriptor()
public abstract java.lang.String getReportActionText()
public java.lang.String getPrivacyNoticeText()
public java.lang.String getReporterAccount()
null
.public void changeReporterAccount(java.awt.Component parentComponent)
getReporterAccount()
returns a non-null value, this method may be called when a user wants to change a reporter account.
It is expected to be synchronous - i.e. do not return until a user finished entering their data.public boolean submit(IdeaLoggingEvent [] events, java.lang.String additionalInfo, java.awt.Component parentComponent, Consumer<SubmittedReportInfo> consumer)
events
- a non-empty sequence of error descriptors.additionalInfo
- additional information provided by a user.parentComponent
- UI component to use as a parent in any UI activity from a submitter.consumer
- a callback to be called after sending is finished (or failed).true
if reporting was started, false
if a report can't be sent at the moment.@Deprecated public boolean trySubmitAsync(IdeaLoggingEvent[] events, java.lang.String info, java.awt.Component parent, Consumer<SubmittedReportInfo> consumer)
submit(IdeaLoggingEvent[], String, Component, Consumer)
instead@Deprecated public void submitAsync(IdeaLoggingEvent[] events, java.lang.String info, java.awt.Component parent, Consumer<SubmittedReportInfo> consumer)
submit(IdeaLoggingEvent[], String, Component, Consumer)
instead@Deprecated public SubmittedReportInfo submit(IdeaLoggingEvent[] events, java.awt.Component parent)
submit(IdeaLoggingEvent[], String, Component, Consumer)
instead