org.patterncoder
Class PatternCoder

java.lang.Object
  extended by bluej.extensions.Extension
      extended by org.patterncoder.PatternCoder
All Implemented Interfaces:
bluej.extensions.event.PackageListener

public class PatternCoder
extends bluej.extensions.Extension
implements bluej.extensions.event.PackageListener

Main class of the Design Patterns Extension.

Extends the BlueJ extensions API's Extension class and is loaded by BlueJ at run time.


Field Summary
static java.lang.String DESCRIPTION
           
static java.lang.String EXT_URL
           
static java.lang.String NAME
           
static java.lang.String VERSION
           
 
Fields inherited from class bluej.extensions.Extension
VERSION_MAJOR, VERSION_MINOR
 
Constructor Summary
PatternCoder()
           
 
Method Summary
 java.lang.String getDescription()
          Returns a set description of the extension.
 java.lang.String getName()
          Returns a set name of the Patterns Extension.
 java.net.URL getURL()
          Returns a URL address associated with this extension
 java.lang.String getVersion()
          Returns a string representing the version of the Extension.
 boolean isCompatible()
          Compatible or not.
 void packageClosing(bluej.extensions.event.PackageEvent ev)
          This method is inherited through the PackageListener interface.
 void packageOpened(bluej.extensions.event.PackageEvent ev)
          This method is inherited through the PackageListener interface.
 void startup(bluej.extensions.BlueJ bluej)
          startup is called once when the extension is first initialised
 void terminate()
          Called when the Extension is terminated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

EXT_URL

public static final java.lang.String EXT_URL
See Also:
Constant Field Values
Constructor Detail

PatternCoder

public PatternCoder()
Method Detail

startup

public void startup(bluej.extensions.BlueJ bluej)
startup is called once when the extension is first initialised

Specified by:
startup in class bluej.extensions.Extension
Parameters:
bluej - The BlueJ proxy object.

packageOpened

public void packageOpened(bluej.extensions.event.PackageEvent ev)
This method is inherited through the PackageListener interface. Is called whenever a package opening event occurs.

Specified by:
packageOpened in interface bluej.extensions.event.PackageListener
Parameters:
ev - The PackageEvent which caused this method to be called.

packageClosing

public void packageClosing(bluej.extensions.event.PackageEvent ev)
This method is inherited through the PackageListener interface. Is called whenever a package closing event occurs.

Specified by:
packageClosing in interface bluej.extensions.event.PackageListener
Parameters:
ev - The PackageEvent which caused this method to be called.

isCompatible

public boolean isCompatible()
Compatible or not.

Specified by:
isCompatible in class bluej.extensions.Extension
Returns:
A boolean value, representing whether or not it is compatible.

getVersion

public java.lang.String getVersion()
Returns a string representing the version of the Extension.

Specified by:
getVersion in class bluej.extensions.Extension
Returns:
The version of the extension

getName

public java.lang.String getName()
Returns a set name of the Patterns Extension.

Specified by:
getName in class bluej.extensions.Extension
Returns:
The name of the Extension

terminate

public void terminate()
Called when the Extension is terminated. Allows any extension specific tidying up to be done prior to closing.

Overrides:
terminate in class bluej.extensions.Extension

getDescription

public java.lang.String getDescription()
Returns a set description of the extension.

Overrides:
getDescription in class bluej.extensions.Extension
Returns:
A description of the extension.

getURL

public java.net.URL getURL()
Returns a URL address associated with this extension

Overrides:
getURL in class bluej.extensions.Extension
Returns:
A URL address