Package com._1c.g5.v8.dt.common.ui
Class StatusManagerHelper
java.lang.Object
com._1c.g5.v8.dt.common.ui.StatusManagerHelper
This class is common place for error handling and message propagation in plug-ins.
It is merely a shortcut-utility: in its methods it constructs an
IStatus
object and feeds it to StatusManager
.
It is intended to be instantiated as follows.
private static final CommonStatusHandler statusHandler = new CommonStatusHandler(PLUGIN_ID);
-
Constructor Summary
ConstructorsConstructorDescriptionStatusManagerHelper
(String pluginID) Constructs aStatusManagerHelper
, which uses the providedpluginID
in each status report. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Constructs anIStatus
object and feeds it toStatusManager.handle(IStatus, int)
.void
void
logWarning
(String message) void
-
Constructor Details
-
StatusManagerHelper
Constructs aStatusManagerHelper
, which uses the providedpluginID
in each status report.- Parameters:
pluginID
-
-
-
Method Details
-
showError
- See Also:
-
StatusManager.handle(IStatus, int)
handle(int, String, Throwable, int)
-
logError
- See Also:
-
logWarning
- Parameters:
showModal
- true if the message and the cause should be shown in a modal dialog; otherwise the they will be only logged- See Also:
-
StatusManager.handle(IStatus, int)
-
handle
Constructs anIStatus
object and feeds it toStatusManager.handle(IStatus, int)
.- Parameters:
severity
- severity of the createdIStatus
message
- the message for the createdIStatus
exception
- the exception for the createdIStatus
style
- the style forStatusManager.handle(IStatus, int)
-