|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kawigi.KawigiEdit
KawigiEdit - an open-source, fully-featured editor plugin for the Top Coder Arena. It was written by me for me, so don't be surprised if the features aren't in line with what you want. If you want something that's not here, talk to me, and either I will add it, or if I don't care, you can.
| Field Summary | |
protected kawigi.editor.NoWrapJTextPane |
currentPopupThing
|
protected kawigi.editor.NoWrapJTextPane |
localCodePane
|
protected javax.swing.JFileChooser |
localFileChooser
|
protected javax.swing.JPanel |
mainPanel
|
protected javax.swing.JPanel |
replacePanel
|
protected javax.swing.JPanel |
snippetPanel
|
protected javax.swing.JTabbedPane |
tabs
|
protected javax.swing.JTextArea |
testingPane
|
protected kawigi.editor.NoWrapJTextPane |
textArea
|
protected javax.swing.JPanel |
varReplacePanel
|
static java.lang.String |
VERSION
The current version of KawigiEdit. |
| Constructor Summary | |
KawigiEdit()
Initializes KawigiEdit and checks to make sure certain settings are available. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles events of all the buttons, menus, and so forth. |
void |
caretUpdate(javax.swing.event.CaretEvent e)
Listens for changes in caret position on the text pane. |
void |
clear()
Empties the text pane. |
protected boolean |
compileLocal()
Compiles the saved file locally. |
void |
configure()
Brings up a configure dialog to set options in the editor plugin. |
javax.swing.JPanel |
getEditorPanel()
Returns the magic KawigiEdit panel. |
java.lang.String |
getSource()
Returns the text in the editor. |
void |
install()
Verifies or sets several properties used by parts of the editor to set up. |
void |
keyPressed(java.awt.event.KeyEvent e)
Listens for Key events on the text pane. |
void |
keyReleased(java.awt.event.KeyEvent e)
Listens for Key events on the text pane. |
void |
keyTyped(java.awt.event.KeyEvent e)
Listens for Key events on the text pane. |
static void |
main(java.lang.String[] args)
Run the plugin as a standalone application. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Required by the MouseListener interface. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Required by the MouseListener interface. |
void |
mouseExited(java.awt.event.MouseEvent e)
Required by the MouseListener interface. |
void |
mousePressed(java.awt.event.MouseEvent e)
Listens to mouse events on the text pane, so it knows when to create the popup menu. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Listens to mouse events on the text pane, so it knows when to create the popup menu. |
protected void |
saveLocal()
Saves the current file to disk in the configured local directory with the appropriate name. |
protected void |
saveSnippets()
Saves the snippet database to disk in a file called "snippets.dat". |
void |
setProblemComponent(com.topcoder.client.contestant.ProblemComponentModel component,
com.topcoder.shared.language.Language lang,
com.topcoder.shared.problem.Renderer renderer)
Notifies the editor of a new problem being opened, or the language being changed, or whatever. |
void |
setSource(java.lang.String source)
Sets the text in the editor. |
void |
setTextEnabled(java.lang.Boolean b)
Enables/disables the text pane. |
void |
startUsing()
Clears the text pane for a new problem or something. |
void |
stopUsing()
Doesn't do anything. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Stores away edits so they can be undone later. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String VERSION
protected kawigi.editor.NoWrapJTextPane textArea
protected kawigi.editor.NoWrapJTextPane localCodePane
protected kawigi.editor.NoWrapJTextPane currentPopupThing
protected javax.swing.JTextArea testingPane
protected javax.swing.JTabbedPane tabs
protected javax.swing.JPanel mainPanel
protected javax.swing.JPanel snippetPanel
protected javax.swing.JPanel replacePanel
protected javax.swing.JPanel varReplacePanel
protected javax.swing.JFileChooser localFileChooser
| Constructor Detail |
public KawigiEdit()
| Method Detail |
protected void saveSnippets()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
protected void saveLocal()
throws java.io.IOException
java.io.IOException
protected boolean compileLocal()
throws java.lang.Exception
java.lang.Exceptionpublic javax.swing.JPanel getEditorPanel()
public java.lang.String getSource()
public void setSource(java.lang.String source)
public void clear()
public void setTextEnabled(java.lang.Boolean b)
public void setProblemComponent(com.topcoder.client.contestant.ProblemComponentModel component,
com.topcoder.shared.language.Language lang,
com.topcoder.shared.problem.Renderer renderer)
public void startUsing()
public void stopUsing()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void caretUpdate(javax.swing.event.CaretEvent e)
caretUpdate in interface javax.swing.event.CaretListenerpublic void configure()
public void install()
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened in interface javax.swing.event.UndoableEditListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||