|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jpop.gui.ProcessConsole
org.jpop.jedit.JeditPoplog
This class is what gets loaded into JEdit.
// The following lot have to be filled in to manage jedit buffers instead of stdin & stdout // panes and use getIOControl to make jedit keep up-to-date. Probably the best way is to create // a new file on disk and write to it whatever we need, then use the methods interfacethe jEdit // class to make JEdit refresh its buffers. Also having the buffers stored here we can set them // as active when needed
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static java.lang.String |
IMG_CLASSPATH
The path to the images |
static java.lang.String |
INIT_CLASSPATH
The path to the images |
static java.lang.String[] |
PROC_FILES
The processes we need to run and related information |
static java.lang.String[] |
PROC_NAMES
The processes we need to run and related information |
static java.lang.String |
PROPERTY_PREFIX
The prefix of every property |
static java.lang.String |
STDERR_FILENAME
Names for the output files |
static java.lang.String |
STDOUT_FILENAME
Names for the output files |
Fields inherited from class org.jpop.gui.ProcessConsole |
STDERR, STDOUT |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JeditPoplog(org.gjt.sp.jedit.View v)
The constructor. |
Method Summary | |
void |
appendToStderr(java.lang.String s)
DISABLED, any attempt at making this work kept messing up the Buffers whithin JEdit and sometimes even killed the process |
void |
appendToStdout(java.lang.String s)
DISABLED, any attempt at making this work kept messing up the Buffers whithin JEdit and sometimes even killed the process |
void |
buttonMouseEntered(javax.swing.JButton jb)
Called when a button has the mouse over it |
void |
buttonMouseExited(javax.swing.JButton jb)
Called when a button has the mouse taken away from over it |
void |
clearScratchPadButtonActionPerformed()
Event manager: When the clear scratchpad button is clicked |
void |
compileClipboardContentsButtonActionPerformed()
Event manager: When the compile clipboard button is clicked |
void |
compileCurrentBufferButtonActionPerformed()
Event manager: When the compile current buffer button is clicked |
void |
compileCurrentFileButtonActionPerformed()
Event manager: When the compile current file button is clicked |
void |
compileCurrentLineButtonActionPerformed()
Event manager: When the compile current line button is clicked |
void |
compileFileButtonActionPerformed()
Event manager: When the compile file button is clicked |
void |
compileScratchPadButtonActionPerformed()
Event manager: When the compile scratchpad button is clicked |
void |
compileSelectedTextButtonActionPerformed()
Event manager: When the compile selected text button is clicked |
void |
debug(java.lang.String s)
Creates a debugging message in the log window and file |
LogWindow |
getLogWindow()
Gets the log window value of the JeditPoplog object |
java.io.BufferedReader |
getStderrReader()
Gets the stderr reader value of the JeditPoplog object |
java.lang.String |
getStderrText()
Gets the stderr text value of the JeditPoplog object |
java.io.BufferedReader |
getStdoutReader()
Gets the stdout reader value of the JeditPoplog object |
java.lang.String |
getStdoutText()
Gets the stdout text value of the JeditPoplog object |
void |
handleMessage(org.gjt.sp.jedit.EBMessage msg)
This method deals with messages passed from JEdit via the EDitBus. |
void |
killProcessButtonActionPerformed()
Event manager: When the kill process button is clicked |
org.gjt.sp.jedit.Buffer |
makeBuffer(java.io.File f,
boolean ro)
Make and display a buffer for a file |
protected void |
makeOutputPanes()
Overriden to stop the program making output panes. |
void |
openDocBrowserButtonActionPerformed()
Event manager: When the doc browser button is clicked |
void |
openHelpButtonActionPerformed()
Event manager: When the help button is clicked |
void |
processKilled()
Called when the process dies or is killed |
void |
processListActionPerformed()
Event manager: When a selection is made from the processes list |
void |
processStarted()
Event fired when the process is started |
void |
reloadProperties()
Reloads the properties for the object |
void |
respawnProcessButtonActionPerformed()
Event manager: When the respawn process button is clicked |
void |
sendClipboardContentsToScratchPadButtonActionPerformed()
Event manager: When the send clipboard to scratchpad button is clicked |
void |
sendCurrentLineToScratchPadButtonActionPerformed()
Event manager: When the send current line to scratchpad button is clicked |
void |
sendSelectedTextToScratchPadButtonActionPerformed()
Event manager: When the send selected text to scratchpad button is clicked |
void |
setProcessName(java.lang.String proc)
Sets the process to run |
void |
setStderrReader(java.io.BufferedReader br)
Sets the stderr reader value of the JeditPoplog object |
void |
setStderrText(java.lang.String s)
Sets the stderr text value of the JeditPoplog object |
void |
setStdoutReader(java.io.BufferedReader br)
Sets the stdout reader value of the JeditPoplog object |
void |
setStdoutText(java.lang.String s)
Sets the stdout text value of the JeditPoplog object |
void |
spawnProcessButtonActionPerformed()
Event manager: When the spawn process button is clicked |
void |
stderrPaneRequestFocus()
When the text of a buffer changes the stderrTextChanged() event calls this |
void |
stderrTextChanged()
Event activated when the text in the stderr file is changed |
void |
stdinTextChanged()
This event is fired when the stdin gets changed |
void |
stdoutPaneRequestFocus()
When the text of a buffer changes the stdoutTextChanged() event calls this |
void |
stdoutTextChanged()
Event activated when the text in the stdout file is changed |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String STDERR_FILENAME
public static final java.lang.String STDOUT_FILENAME
public static final java.lang.String[] PROC_NAMES
public static final java.lang.String[] PROC_FILES
public static final java.lang.String IMG_CLASSPATH
public static final java.lang.String INIT_CLASSPATH
public static java.lang.String PROPERTY_PREFIX
Constructor Detail |
public JeditPoplog(org.gjt.sp.jedit.View v) throws java.io.IOException
v
- The View object passed from JEdit
java.io.IOException
Method Detail |
public void setStderrText(java.lang.String s)
setStderrText
in class ProcessConsole
s
- The new stderrText valuepublic void setStdoutText(java.lang.String s)
setStdoutText
in class ProcessConsole
s
- The new stdoutText valuepublic void appendToStderr(java.lang.String s)
appendToStderr
in class ProcessConsole
s
- The text to appendpublic void appendToStdout(java.lang.String s)
appendToStdout
in class ProcessConsole
s
- The text to appendpublic void setStderrReader(java.io.BufferedReader br)
setStderrReader
in class ProcessConsole
br
- The new stderrReader valuepublic void setStdoutReader(java.io.BufferedReader br)
setStdoutReader
in class ProcessConsole
br
- The new stdoutReader valuepublic void setProcessName(java.lang.String proc)
setProcessName
in class ProcessConsole
proc
- The new processName valuepublic java.io.BufferedReader getStderrReader()
public java.lang.String getStderrText()
getStderrText
in class ProcessConsole
public java.io.BufferedReader getStdoutReader()
public java.lang.String getStdoutText()
getStdoutText
in class ProcessConsole
public LogWindow getLogWindow()
public org.gjt.sp.jedit.Buffer makeBuffer(java.io.File f, boolean ro) throws java.io.IOException
f
- The filero
- true when file should be read only
java.io.IOException
- when something goes wrongpublic void debug(java.lang.String s)
debug
in class ProcessConsole
s
- The message to logpublic void reloadProperties()
public void handleMessage(org.gjt.sp.jedit.EBMessage msg)
handleMessage
in interface org.gjt.sp.jedit.EBComponent
msg
- The message passed from JEditpublic void stdinTextChanged()
stdinTextChanged
in class ProcessConsole
public void processKilled()
processKilled
in class ProcessConsole
public void processStarted()
processStarted
in class ProcessConsole
public void stderrPaneRequestFocus()
stderrPaneRequestFocus
in class ProcessConsole
public void stderrTextChanged()
stderrTextChanged
in class ProcessConsole
public void stdoutPaneRequestFocus()
stdoutPaneRequestFocus
in class ProcessConsole
public void stdoutTextChanged()
stdoutTextChanged
in class ProcessConsole
public void buttonMouseEntered(javax.swing.JButton jb)
jb
- The button in questionpublic void buttonMouseExited(javax.swing.JButton jb)
jb
- The button in questionpublic void processListActionPerformed()
public void spawnProcessButtonActionPerformed()
public void respawnProcessButtonActionPerformed()
public void killProcessButtonActionPerformed()
public void compileScratchPadButtonActionPerformed()
public void compileSelectedTextButtonActionPerformed()
public void compileCurrentLineButtonActionPerformed()
public void compileFileButtonActionPerformed()
public void compileCurrentFileButtonActionPerformed()
public void compileCurrentBufferButtonActionPerformed()
public void compileClipboardContentsButtonActionPerformed()
public void clearScratchPadButtonActionPerformed()
public void openHelpButtonActionPerformed()
public void openDocBrowserButtonActionPerformed()
public void sendSelectedTextToScratchPadButtonActionPerformed()
public void sendCurrentLineToScratchPadButtonActionPerformed()
public void sendClipboardContentsToScratchPadButtonActionPerformed()
protected void makeOutputPanes()
makeOutputPanes
in class ProcessConsole
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |