org.aspectj.tools.ajbrowser.ui
Class BrowserMessageHandler

java.lang.Object
  extended by org.aspectj.tools.ajbrowser.ui.BrowserMessageHandler
All Implemented Interfaces:
IBuildMessageHandler, IUIBuildMessageHandler

public class BrowserMessageHandler
extends java.lang.Object
implements 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
BrowserMessageHandler()
           
 
Method Summary
 void dontIgnore(IMessage.Kind kind)
          Allow fine grained configuration after initialization.
 java.util.List<IMessage> getMessages()
           
 boolean handleMessage(IMessage message)
          Handle message by reporting and/or throwing an AbortException.
 void ignore(IMessage.Kind kind)
          Allow fine grained configuration after initialization.
 boolean isIgnoring(IMessage.Kind kind)
          Signal whether this will ignore messages of a given type.
 void reset()
          Reset the state of the message handler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserMessageHandler

public BrowserMessageHandler()
Method Detail

handleMessage

public boolean handleMessage(IMessage message)
                      throws AbortException
Description copied from interface: IBuildMessageHandler
Handle message by reporting and/or throwing an AbortException.

Specified by:
handleMessage in interface IBuildMessageHandler
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

public void dontIgnore(IMessage.Kind kind)
Description copied from interface: IBuildMessageHandler
Allow fine grained configuration after initialization.

Specified by:
dontIgnore in interface IBuildMessageHandler

isIgnoring

public boolean isIgnoring(IMessage.Kind kind)
Description copied from interface: IBuildMessageHandler
Signal whether this will ignore messages of a given type. Clients may use this to avoid constructing or sending certain messages.

Specified by:
isIgnoring in interface IBuildMessageHandler
Returns:
true if this handler is ignoring all messages of this type

ignore

public void ignore(IMessage.Kind kind)
Description copied from interface: IBuildMessageHandler
Allow fine grained configuration after initialization.

Specified by:
ignore in interface IBuildMessageHandler

getMessages

public java.util.List<IMessage> getMessages()

reset

public void reset()
Description copied from interface: IUIBuildMessageHandler
Reset the state of the message handler

Specified by:
reset in interface IUIBuildMessageHandler