|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pretty.PrettyPrintFile
org.acm.seguin.pretty.PrettyPrintString
org.acm.seguin.pretty.PrettyPrintFromIDE
org.acm.seguin.ide.jdeveloper.JDeveloperPrettyPrinter
public class JDeveloperPrettyPrinter
The PrettyPrinter Extension for Oracle jDeveloper 9i.
Constructor Summary | |
---|---|
JDeveloperPrettyPrinter()
Constructor for the JDeveloperPrettyPrinter object |
Method Summary | |
---|---|
boolean |
canShutdown()
The AddinManager calls this method to see if this Addin is ready to shut down before the IDE terminates. |
void |
checkCommands(Context context,
Controller activeController)
checkCommands() should be called on the controller associated with the active view whenever the Context changes. |
static javax.swing.Icon |
doLoadIcon(java.lang.String gifName)
Loads the icon. |
protected int |
getLineNumber()
Gets the lineNumber attribute of the PrettyPrinterAddin object |
protected java.lang.String |
getStringFromIDE()
Gets the stringFromIDE attribute of the PrettyPrinterAddin object |
boolean |
handleEvent(IdeAction action,
Context context)
We call the PrettyPrinter ... |
float |
ideVersion()
The AddinManager calls this method to request the IDE version number for which this Addin was written and tested against. |
void |
initialize()
The AddinManager calls this method at startup time to allow initialization. |
static boolean |
isMenuAvailable(Context context)
This method is called to see if a Menu should be Enabled or Disabled The code here can be arbitrarily complex to determine the availability. |
static boolean |
NodeIsFileType(Context context,
java.lang.String extension)
Description of the Method |
protected void |
setLineNumber(int iLine)
Sets the lineNumber attribute of the PrettyPrinterAddin object |
protected void |
setStringInIDE(java.lang.String value)
Sets the stringInIDE attribute of the PrettyPrinterAddin object |
void |
shutdown()
The AddinManager calls this method to allow an Addin to release any resources held before the IDE shuts down. |
Controller |
supervisor()
Gets the supervising controller if any associated with this Controller. |
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the specified context. |
float |
version()
The AddinManager calls this method to request the version number of this addin (1.0f) . |
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 |
---|
public JDeveloperPrettyPrinter()
Method Detail |
---|
public static final javax.swing.Icon doLoadIcon(java.lang.String gifName)
gifName
- Description of the Parameter
public static boolean NodeIsFileType(Context context, java.lang.String extension)
context
- Description of the Parameterextension
- Description of the Parameter
public static boolean isMenuAvailable(Context context)
context
- - the Current Context to examine to determine true/false
result
true
if the Action should be enabled, false
otherwisepublic float version()
(1.0f)
. ideVersion
which represents the
version of the JDeveloper IDE for which this Addin was written and
tested against.
(e.g. 1.0f)
. public float ideVersion()
version
method which
represents the version number for this particular Addin.
oracle.ide.Ide.IDE_VERSION
.public boolean canShutdown()
public void shutdown()
public void initialize()
public Controller supervisor()
public boolean handleEvent(IdeAction action, Context context)
action
- action the IdeAction whose command (ID) is to be executed.context
- the current context under which this action has been invoked.
true
if method carried out the specified
command, otherwise return false
.public boolean update(IdeAction action, Context context)
action
- action whose command is to be executed.context
- the current context
public void checkCommands(Context context, Controller activeController)
context
- the current context. Null values are acceptable.activeController
- the controller associated with the active view.
Null values are acceptable.protected void setStringInIDE(java.lang.String value)
setStringInIDE
in class PrettyPrintFromIDE
value
- The new stringInIDE valueprotected java.lang.String getStringFromIDE()
getStringFromIDE
in class PrettyPrintFromIDE
protected int getLineNumber()
getLineNumber
in class PrettyPrintFromIDE
protected void setLineNumber(int iLine)
setLineNumber
in class PrettyPrintFromIDE
iLine
- The new lineNumber value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |