org.fopps.ui.log
Class CompileLogModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--javax.swing.DefaultListModel
              |
              +--org.fopps.ui.log.LogListModel
                    |
                    +--org.fopps.ui.log.CompileLogModel
All Implemented Interfaces:
CompilationListener, javax.swing.ListModel, java.io.Serializable

public class CompileLogModel
extends LogListModel
implements CompilationListener

CompileLogModel listenes to compilation events and adds messages to the list

Author:
Oliver Wieland
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.fopps.ui.log.LogListModel
LogListModel.MessageEntry
 
Field Summary
 
Fields inherited from class org.fopps.ui.log.LogListModel
ERROR, INFORMATION, WARNING
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CompileLogModel()
           
 
Method Summary
 void compilationError(CompilationEvent pEvent, java.lang.Throwable pException)
          Called if an error occurred during compilation
 void compilationFinished(CompilationEvent pEvent)
          Called if compilation finished
 void compilationStarted(CompilationEvent pEvent)
          Called if compilation started
 void fileCopied(CompilationEvent pEvent, java.lang.String pSource, java.lang.String pDest)
          Called if a file was copied to the target directory
 void fileGenerated(CompilationEvent pEvent, java.lang.String pDest)
          Called if a file was generated
 void fileSkipped(CompilationEvent pEvent, java.lang.String pSource)
          Called if a file was skipped (e. g. file not found)
 
Methods inherited from class org.fopps.ui.log.LogListModel
addErrorMessage, addInfoMessage, addWarningMessage, clearMessages, getElementAt, getErrors, getSize, getWarnings
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompileLogModel

public CompileLogModel()
Method Detail

fileCopied

public void fileCopied(CompilationEvent pEvent,
                       java.lang.String pSource,
                       java.lang.String pDest)
Called if a file was copied to the target directory

Specified by:
fileCopied in interface CompilationListener
Parameters:
pEvent - The compilation event
pSource - Name of the source file
pDest - Name of the destination file

fileGenerated

public void fileGenerated(CompilationEvent pEvent,
                          java.lang.String pDest)
Called if a file was generated

Specified by:
fileGenerated in interface CompilationListener
Parameters:
pEvent - The compilation event
pDest - Name of the destination file

fileSkipped

public void fileSkipped(CompilationEvent pEvent,
                        java.lang.String pSource)
Called if a file was skipped (e. g. file not found)

Specified by:
fileSkipped in interface CompilationListener
Parameters:
pEvent - The compilation event
pSource - Name of the source file

compilationStarted

public void compilationStarted(CompilationEvent pEvent)
Called if compilation started

Specified by:
compilationStarted in interface CompilationListener
Parameters:
pEvent - The compilation event

compilationFinished

public void compilationFinished(CompilationEvent pEvent)
Called if compilation finished

Specified by:
compilationFinished in interface CompilationListener
Parameters:
pEvent - The compilation event

compilationError

public void compilationError(CompilationEvent pEvent,
                             java.lang.Throwable pException)
Called if an error occurred during compilation

Specified by:
compilationError in interface CompilationListener
Parameters:
pEvent - The compilation event
pException - The raised exception


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.