|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
de.uni_paderborn.fujaba.app.action.CompileAction
Compiles Java Sources.
| Nested Class Summary | |
static interface |
CompileAction.Compiler
No comment provided by developer, please add a comment to improve documentation. |
private static class |
CompileAction.DLRParser
No comment provided by developer, please add a comment to improve documentation. |
| Nested classes inherited from class javax.swing.AbstractAction |
|
| Field Summary | |
private static CompileAction.Compiler |
compiler
No comment provided by developer, please add a comment to improve documentation. |
private java.awt.event.ActionListener |
exitAction
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
FILE_SUFFIX
No comment provided by developer, please add a comment to improve documentation. |
private static org.apache.log4j.Logger |
log
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
MESSAGE_CLASS_COMPILE_ERROR
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
MESSAGE_CLASS_COMPILE_WARNING
No comment provided by developer, please add a comment to improve documentation. |
private ProcessOutputViewer |
myView
No comment provided by developer, please add a comment to improve documentation. |
private java.lang.String |
outPath
No comment provided by developer, please add a comment to improve documentation. |
private boolean |
quietCompile
No comment provided by developer, please add a comment to improve documentation. |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
CompileAction()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
No comment provided by developer, please add a comment to improve documentation. |
private static java.lang.String |
className(java.lang.String filename)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
compile(java.awt.event.ActionEvent e)
Compile all sources |
static javax.swing.Action |
createGotoSourceAction(CompilerMessage compilerMessage)
No comment provided by developer, please add a comment to improve documentation. |
static Message |
createMessage(java.lang.String filename,
boolean warning,
int lineNr,
int colNr,
java.lang.String text,
java.lang.String context)
No comment provided by developer, please add a comment to improve documentation. |
static void |
fillMessage(Message message,
java.lang.String filename,
boolean warning,
int lineNr,
int colNr,
java.lang.String text,
java.lang.String context)
Create a new Message and return it. |
static java.lang.String |
getClassPath()
Get the classPath attribute of the CompileAction class |
static CompileAction.Compiler |
getCompiler()
Get the compiler attribute of the CompileAction class |
static java.lang.String |
getExpPath()
Deprecated. Use GeneralPreferences.get().getExportFolder() instead. |
static java.lang.String |
getIncrementIdForGeneratedCodeLine(java.lang.String file,
int lineNr)
Get the incrementIdForGeneratedCodeLine attribute of the CompileAction class |
ProcessOutputViewer |
getProcessOutputViewer()
gets the ProcessOutputViewer that was used to compile the project |
(package private) static void |
handleCompilerOutput(java.lang.String output,
boolean success)
No comment provided by developer, please add a comment to improve documentation. |
private static java.lang.String |
relativeFileName(java.lang.String filename)
No comment provided by developer, please add a comment to improve documentation. |
static void |
setCompiler(CompileAction.Compiler compiler)
Sets the compiler attribute of the CompileAction class |
void |
setExitAction(java.awt.event.ActionListener act)
Sets the exitAction attribute of the CompileAction object |
void |
setOutputPath(java.lang.String value)
Sets the outputPath attribute of the CompileAction object |
void |
setProcessOutputViewer(ProcessOutputViewer myView)
sets the ProcessOutputViewer to compile a project if no one is set, CompileAction generates a new one |
void |
setQuiet(boolean value)
sets CompileAction to quiet (no ProcessOutputViewer) |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ProcessOutputViewer myView
private boolean quietCompile
private java.lang.String outPath
private java.awt.event.ActionListener exitAction
public static final java.lang.String MESSAGE_CLASS_COMPILE_ERROR
public static final java.lang.String MESSAGE_CLASS_COMPILE_WARNING
public static final java.lang.String FILE_SUFFIX
private static final transient org.apache.log4j.Logger log
private static CompileAction.Compiler compiler
| Constructor Detail |
public CompileAction()
| Method Detail |
public void setProcessOutputViewer(ProcessOutputViewer myView)
myView - The new processOutputViewer valuepublic ProcessOutputViewer getProcessOutputViewer()
public void setQuiet(boolean value)
value - The new quiet valuepublic void setOutputPath(java.lang.String value)
value - The new outputPath valuepublic void setExitAction(java.awt.event.ActionListener act)
act - The new exitAction valuepublic void actionPerformed(java.awt.event.ActionEvent e)
e - No description providedpublic boolean compile(java.awt.event.ActionEvent e)
e - action event
public static javax.swing.Action createGotoSourceAction(CompilerMessage compilerMessage)
compilerMessage - No description provided
public static java.lang.String getClassPath()
public static java.lang.String getExpPath()
static void handleCompilerOutput(java.lang.String output,
boolean success)
output - No description providedsuccess -
public static Message createMessage(java.lang.String filename,
boolean warning,
int lineNr,
int colNr,
java.lang.String text,
java.lang.String context)
filename - No description providedwarning - No description providedlineNr - No description providedcolNr - No description providedtext - No description providedcontext - No description provided
public static void fillMessage(Message message,
java.lang.String filename,
boolean warning,
int lineNr,
int colNr,
java.lang.String text,
java.lang.String context)
filename - No description providedwarning - No description providedlineNr - No description providedcolNr - No description providedtext - No description providedcontext - No description providedmessage - No description providedprivate static java.lang.String relativeFileName(java.lang.String filename)
filename - No description provided
private static java.lang.String className(java.lang.String filename)
filename - No description provided
public static java.lang.String getIncrementIdForGeneratedCodeLine(java.lang.String file,
int lineNr)
file - No description providedlineNr - No description provided
public static CompileAction.Compiler getCompiler()
public static void setCompiler(CompileAction.Compiler compiler)
compiler - The new compiler value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||