net.sf.latexdraw.instruments
Class ExceptionsManager

java.lang.Object
  extended by org.malai.instrument.Instrument
      extended by net.sf.latexdraw.instruments.ExceptionsManager
All Implemented Interfaces:
BadaboomHandler, ActionHandler, Preferenciable, Modifiable, Reinitialisable, UndoHandler

public class ExceptionsManager
extends Instrument
implements BadaboomHandler

This instrument allows to see exceptions launched during the execution of the program.

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

01/05/11

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
protected  MButton exceptionB
          The button used to shows the panel of exceptions.
protected  BadaboomManager frame
          The frame to show when exceptions occur.
 
Fields inherited from class org.malai.instrument.Instrument
activated, eventables, links, modified
 
Constructor Summary
ExceptionsManager()
          Creates the instrument.
 
Method Summary
 MButton getExceptionB()
           
protected  void initialiseLinks()
          Initialises the links of the instrument.
 void notifyEvent(java.lang.Throwable ex)
          Actions to do when an exception is received by the manager.
 void notifyEvents()
          Actions to do when exceptions are received by the manager.
 void setActivated(boolean activated)
          Activates or deactivates the instrument.
 
Methods inherited from class org.malai.instrument.Instrument
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, interimFeedback, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, reinit, removeLink, save, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionB

protected MButton exceptionB
The button used to shows the panel of exceptions.


frame

protected BadaboomManager frame
The frame to show when exceptions occur.

Constructor Detail

ExceptionsManager

public ExceptionsManager()
Creates the instrument.

Since:
3.0
Method Detail

initialiseLinks

protected void initialiseLinks()
Description copied from class: Instrument
Initialises the links of the instrument.

Specified by:
initialiseLinks in class Instrument

notifyEvent

public void notifyEvent(java.lang.Throwable ex)
Description copied from interface: BadaboomHandler
Actions to do when an exception is received by the manager.

Specified by:
notifyEvent in interface BadaboomHandler
Parameters:
ex - The received exception.

setActivated

public void setActivated(boolean activated)
Description copied from class: Instrument
Activates or deactivates the instrument.

Overrides:
setActivated in class Instrument
Parameters:
activated - True = activation.

getExceptionB

public MButton getExceptionB()
Returns:
The button used to shows the panel of exceptions.
Since:
3.0

notifyEvents

public void notifyEvents()
Description copied from interface: BadaboomHandler
Actions to do when exceptions are received by the manager.

Specified by:
notifyEvents in interface BadaboomHandler