com.borland.primetime.editor
Class EditorActions.MatchBraceAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.borland.primetime.editor.EditorAction
              |
              +--com.borland.primetime.editor.EditorActions.MatchBraceAction
Enclosing class:
EditorActions

public static class EditorActions.MatchBraceAction
extends EditorAction

Move the caret to the matching brace, bracket, or paren.

The algorithm we use here is this:

  1. Get the character at the caret position. If it is not a brace-type character, return.

See Also:
Serialized Form

Inner classes inherited from class com.borland.primetime.editor.EditorAction
EditorAction.SubKeymapAction
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Constructor Summary
EditorActions.MatchBraceAction(java.lang.String nm)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class com.borland.primetime.editor.EditorAction
getEditorTarget, getFocusedEditor, setFocusedEditor
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorActions.MatchBraceAction

public EditorActions.MatchBraceAction(java.lang.String nm)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Overrides:
actionPerformed in class javax.swing.AbstractAction