|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rtext.plugins.macros.MacroManager
Manages all of the macros in an RText session.
| Field Summary | |
static java.lang.String |
PROPERTY_MACROS
Event fired when a macro is added or removed. |
| Method Summary | |
void |
addMacro(Macro macro)
Adds a macro. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener l)
Adds a property change listener to this macro manager. |
java.util.SortedSet |
clearMacros()
Removes all macros from this manager. |
boolean |
containsMacroNamed(java.lang.String name)
Returns whether a macro is defined with the specified name. |
static MacroManager |
get()
Returns the singleton instance of the macro manager. |
int |
getMacroCount()
returns the number of macros. |
java.util.Iterator |
getMacroIterator()
Returns an iterator over the macros. |
void |
loadMacros(java.io.File dir)
Loads all macros from a directory. |
void |
removeMacro(Macro macro)
Removes a macro. |
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener l)
Removes a property change listener from this macro manager. |
void |
saveMacros(java.io.File dir)
Saves all macros known to this macro manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PROPERTY_MACROS
| Method Detail |
public void addMacro(Macro macro)
PROPERTY_MACROS.
macro - The macro to add.removeMacro(Macro)
public void addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener l)
property - The property to listen for.l - The listener.removePropertyChangeListener(String, PropertyChangeListener)public java.util.SortedSet clearMacros()
PROPERTY_MACROS.
null.public boolean containsMacroNamed(java.lang.String name)
name - The name to check for.
public static MacroManager get()
public int getMacroCount()
public java.util.Iterator getMacroIterator()
public void loadMacros(java.io.File dir)
throws java.io.IOException
dir - The directory to load macros from.
java.io.IOException - If an IO error occurs reading the macros.saveMacros(File)
public void removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener l)
property - The property listened for.l - The listener to remove.addPropertyChangeListener(String, PropertyChangeListener)public void removeMacro(Macro macro)
PROPERTY_MACROS.
macro - The macro to remove.addMacro(Macro)
public void saveMacros(java.io.File dir)
throws java.io.IOException
dir - The directory to save the macro definitions to. The old
contents of this directory are deleted.
java.io.IOException - If an IO error occurs writing the files.loadMacros(File)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||