com.borland.primetime.insight.template
Class TemplateActions
java.lang.Object
|
+--com.borland.primetime.insight.template.TemplateActions
- All Implemented Interfaces:
- java.util.EventListener, java.beans.PropertyChangeListener
- public class TemplateActions
- extends java.lang.Object
- implements java.beans.PropertyChangeListener
These are the editor actions for CodeTemplates.
There is one action that tries to expand a code sequence into
a different code sequence, based on the existing code templates.
This action is triggered by Ctrl-J
Inner Class Summary |
static class |
TemplateActions.ExpandTemplateAction
Action class whose actionPerformed method, triggered by
the Ctrl-J keystroke, will call the TemplateManager
to expand code based on a template. |
Method Summary |
static void |
initOpenTool(byte majorVersion,
byte minorVersion)
Initialize an instance of our class and hook it into the
EditorManager so we can catch keymap changes. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
The EditorManager will call this function anytime it fires
propertyChange events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expandTemplateAction
public static final java.lang.String expandTemplateAction
- The name of the Expand Template action
ACTION_ExpandTemplate
public static EditorAction ACTION_ExpandTemplate
- Static instance of the Expand Template action
TemplateActions
public TemplateActions()
- Constructor for our class. Does nothing.
initOpenTool
public static void initOpenTool(byte majorVersion,
byte minorVersion)
- Initialize an instance of our class and hook it into the
EditorManager so we can catch keymap changes.
Hook Ctrl-J into the existing keymap, if any.
- Parameters:
majorVersion
- The major OpenTools version numberminorVersion
- The minor OpenTools version number
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- The EditorManager will call this function anytime it fires
propertyChange events.
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
- Parameters:
e
- The propertyChangeEvent fired by the EditorManager- See Also:
EditorManager