public final class ActionMacroManager extends java.lang.Object implements PersistentStateComponent<Element>, Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO_NAME_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addMacro(ActionMacro macro) |
boolean |
checkCanCreateMacro(java.lang.String name) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
ActionMacro[] |
getAllMacros() |
static ActionMacroManager |
getInstance() |
Element |
getState() |
boolean |
hasRecentMacro() |
boolean |
isPlaying() |
boolean |
isRecording() |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
playbackLastMacro() |
void |
playMacro(ActionMacro macro) |
void |
registerActions(ActionManager actionManager) |
void |
removeAllMacros() |
void |
startRecording(java.lang.String macroName) |
void |
stopRecording(Project project) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String NO_NAME_NAME
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public static ActionMacroManager getInstance()
public void startRecording(java.lang.String macroName)
public void stopRecording(Project project)
public void playbackLastMacro()
public boolean isRecording()
public void dispose()
Disposable
dispose
in interface Disposable
public ActionMacro[] getAllMacros()
public void removeAllMacros()
public void addMacro(ActionMacro macro)
public void playMacro(ActionMacro macro)
public boolean hasRecentMacro()
public void registerActions(ActionManager actionManager)
public boolean checkCanCreateMacro(java.lang.String name)
public boolean isPlaying()