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 providedpluginIDin each status report. -
Method Summary
Modifier and TypeMethodDescriptionvoidConstructs anIStatusobject and feeds it toStatusManager.handle(IStatus, int).voidvoidlogWarning(String message) void
-
Constructor Details
-
StatusManagerHelper
Constructs aStatusManagerHelper, which uses the providedpluginIDin 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 anIStatusobject and feeds it toStatusManager.handle(IStatus, int).- Parameters:
severity- severity of the createdIStatusmessage- the message for the createdIStatusexception- the exception for the createdIStatusstyle- the style forStatusManager.handle(IStatus, int)
-