|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
kawigi.cmd.DefaultAction
kawigi.cmd.LocalTestAction
public class LocalTestAction
Action implementation for actions related to local testing. This includes most of the buttons across the bottom of the KawigiEdit panel.
| Field Summary |
|---|
| Fields inherited from class kawigi.cmd.DefaultAction |
|---|
cmdid, COLOR, enableSet, FONT, LARGE_ICON, SELECTED, SPINNER_MODEL, SPINNER_VALUE, TEXT, visible, VISIBLE, visibleSet |
| 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 | |
|---|---|
LocalTestAction(ActID cmdid)
Constructs a new LocalTestAction for the given ActID. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Runs the action! |
boolean |
compileLocal()
Compiles the saved code for this problem. |
boolean |
isEnabled()
Returns true if this action can be executed. |
protected java.lang.String |
removeCutting(java.lang.String text)
Removes from code all between "BEGIN CUT HERE" and "END CUT HERE". |
protected java.lang.String |
restoreTesting(java.lang.String text,
ClassDecl cl,
EditorLanguage lang)
Parses the text between "BEGIN KAWIGIEDIT TESTING" and "END KAWIGIEDIT TESTING" into test cases, inserts this code into TestPane and inserts into the code tag <%:testing-code%>. |
void |
saveLocal()
Saves the current problem to the local test directory. |
| Methods inherited from class kawigi.cmd.DefaultAction |
|---|
equals, getID, isNeedTrackEnabled, isVisible, reportError, setVisible, UIRefresh |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalTestAction(ActID cmdid)
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class DefaultAction
protected java.lang.String restoreTesting(java.lang.String text,
ClassDecl cl,
EditorLanguage lang)
protected java.lang.String removeCutting(java.lang.String text)
public void saveLocal()
public boolean compileLocal()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||