org.acm.seguin.ide.cafe
Class CafePrettyPrinter

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintFile
      extended by org.acm.seguin.pretty.PrettyPrintString
          extended by org.acm.seguin.pretty.PrettyPrintFromIDE
              extended by org.acm.seguin.ide.cafe.CafePrettyPrinter
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class CafePrettyPrinter
extends PrettyPrintFromIDE
implements java.awt.event.ActionListener

This class runs the pretty printer for Symantec Visual Cafe

Author:
Chris Seguin

Constructor Summary
CafePrettyPrinter()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          This is invoked when the user selects pretty printer
protected  int getLineNumber()
          Returns the initial line number
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
protected  void setLineNumber(int value)
          Sets the line number
protected  void setStringInIDE(java.lang.String value)
          Sets the string in the IDE
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFromIDE
getPrintData, prettyPrintCurrentWindow
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintString
getOutputBuffer, getWriter, resetOutputBuffer, setInputString
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile
apply, apply, getParserFactory, isApplicable, postApply, setAsk, setParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CafePrettyPrinter

public CafePrettyPrinter()
Method Detail

setLineNumber

protected void setLineNumber(int value)
Sets the line number

Specified by:
setLineNumber in class PrettyPrintFromIDE
Parameters:
value - The new lineNumber value

setStringInIDE

protected void setStringInIDE(java.lang.String value)
Sets the string in the IDE

Specified by:
setStringInIDE in class PrettyPrintFromIDE
Parameters:
value - The new file contained in a string

getLineNumber

protected int getLineNumber()
Returns the initial line number

Specified by:
getLineNumber in class PrettyPrintFromIDE
Returns:
The lineNumber value

getStringFromIDE

protected java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Specified by:
getStringFromIDE in class PrettyPrintFromIDE
Returns:
The file in string format

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
This is invoked when the user selects pretty printer

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - The action event