org.acm.seguin.ide.netbeans
Class NetBeansPrettyPrinter

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.netbeans.NetBeansPrettyPrinter

public class NetBeansPrettyPrinter
extends PrettyPrintFromIDE

Description of the Class

Author:
Chris Seguin, Mike Atkinson

Constructor Summary
NetBeansPrettyPrinter(EditorCookie editorCookie)
          Constructor for the NetBeansPrettyPrinter object
 
Method Summary
protected  int getLineNumber()
          Returns the initial line number
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
protected  void setLineNumber(int lineNumber)
          Sets the LineNumber attribute of the NetBeansPrettyPrinter object
protected  void setStringInIDE(java.lang.String text)
          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

NetBeansPrettyPrinter

public NetBeansPrettyPrinter(EditorCookie editorCookie)
Constructor for the NetBeansPrettyPrinter object

Parameters:
editorCookie - Description of Parameter
Method Detail

setLineNumber

protected void setLineNumber(int lineNumber)
Sets the LineNumber attribute of the NetBeansPrettyPrinter object

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

setStringInIDE

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

Specified by:
setStringInIDE in class PrettyPrintFromIDE
Parameters:
text - The new StringInIDE value

getLineNumber

protected int getLineNumber()
Description copied from class: PrettyPrintFromIDE
Returns the initial line number

Specified by:
getLineNumber in class PrettyPrintFromIDE
Returns:
the initial line number, -1 if failed

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