public abstract class Macro
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Macro.ExecutionCancelledException |
static class |
Macro.Silent |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<Macro> |
EP_NAME |
protected java.lang.String |
myCachedPreview |
Constructor and Description |
---|
Macro() |
Modifier and Type | Method and Description |
---|---|
void |
cachePreview(DataContext dataContext) |
abstract java.lang.String |
expand(DataContext dataContext) |
java.lang.String |
expand(DataContext dataContext,
java.lang.String... args) |
abstract java.lang.String |
getDescription() |
abstract java.lang.String |
getName() |
protected static java.lang.String |
getPath(VirtualFile file) |
protected static VirtualFile |
getVirtualDirOrParent(DataContext dataContext) |
java.lang.String |
preview() |
public static final ExtensionPointName<Macro> EP_NAME
protected java.lang.String myCachedPreview
public abstract java.lang.String getName()
public abstract java.lang.String getDescription()
public abstract java.lang.String expand(DataContext dataContext) throws Macro.ExecutionCancelledException
public java.lang.String expand(DataContext dataContext, java.lang.String... args) throws Macro.ExecutionCancelledException
public void cachePreview(DataContext dataContext)
public final java.lang.String preview()
protected static java.lang.String getPath(VirtualFile file)
protected static VirtualFile getVirtualDirOrParent(DataContext dataContext)