Package org.aspectj.tools.ajbrowser.ui
Class BrowserMessageHandler
java.lang.Object
org.aspectj.tools.ajbrowser.ui.BrowserMessageHandler
- All Implemented Interfaces:
IBuildMessageHandler,IUIBuildMessageHandler
MessageHandler used by AjBrowser that displays ERROR messages with exceptions and ABORT messages in an error dialog. Other
messages are displayed by the MessageHandlerPanel. By default INFO and WEAVEINFO messages are ignored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddontIgnore(IMessage.Kind kind)Allow fine grained configuration after initialization.booleanhandleMessage(IMessage message)Handle message by reporting and/or throwing an AbortException.voidignore(IMessage.Kind kind)Allow fine grained configuration after initialization.booleanisIgnoring(IMessage.Kind kind)Signal whether this will ignore messages of a given type.voidreset()Reset the state of the message handler
-
Constructor Details
-
BrowserMessageHandler
public BrowserMessageHandler()
-
-
Method Details
-
handleMessage
Description copied from interface:IBuildMessageHandlerHandle message by reporting and/or throwing an AbortException.- Specified by:
handleMessagein interfaceIBuildMessageHandler- Parameters:
message- the IMessage to handle - never null- Returns:
- true if this message was handled by this handler
- Throws:
AbortException- depending on handler logic.
-
dontIgnore
Description copied from interface:IBuildMessageHandlerAllow fine grained configuration after initialization.- Specified by:
dontIgnorein interfaceIBuildMessageHandler
-
isIgnoring
Description copied from interface:IBuildMessageHandlerSignal whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.- Specified by:
isIgnoringin interfaceIBuildMessageHandler- Returns:
- true if this handler is ignoring all messages of this type
-
ignore
Description copied from interface:IBuildMessageHandlerAllow fine grained configuration after initialization.- Specified by:
ignorein interfaceIBuildMessageHandler
-
getMessages
-
reset
public void reset()Description copied from interface:IUIBuildMessageHandlerReset the state of the message handler- Specified by:
resetin interfaceIUIBuildMessageHandler
-