public final class CustomActionsSchema extends java.lang.Object implements PersistentStateComponent<Element>
Constructor and Description |
---|
CustomActionsSchema() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(ActionUrl url) |
void |
addIconCustomization(java.lang.String actionId,
java.lang.String iconPath) |
static void |
addSettingsGroup(java.lang.String itemId,
java.lang.String itemName) |
void |
clearFirstLoadState() |
void |
copyFrom(CustomActionsSchema result) |
void |
fillActionGroups(javax.swing.tree.DefaultMutableTreeNode root) |
void |
fillCorrectedActionGroups(javax.swing.tree.DefaultMutableTreeNode root) |
java.util.List<ActionUrl> |
getActions() |
java.util.List<ActionUrl> |
getChildActions(ActionUrl url) |
AnAction |
getCorrectedAction(java.lang.String id) |
java.lang.String |
getIconPath(java.lang.String actionId) |
static CustomActionsSchema |
getInstance() |
int |
getModificationStamp() |
Element |
getState() |
void |
incrementModificationStamp() |
void |
invalidateCustomizedActionGroup(java.lang.String groupId) |
boolean |
isCorrectActionGroup(ActionGroup group,
java.lang.String defaultGroupName) |
boolean |
isModified(CustomActionsSchema schema) |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
removeIconCustomization(java.lang.String actionId) |
static void |
removeSettingsGroup(java.lang.String itemId) |
void |
setActions(java.util.List<ActionUrl> actions) |
static void |
setCustomizationSchemaForCurrentProjects() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static void addSettingsGroup(java.lang.String itemId, java.lang.String itemName)
public static void removeSettingsGroup(java.lang.String itemId)
public static CustomActionsSchema getInstance()
public void addAction(ActionUrl url)
public java.util.List<ActionUrl> getActions()
public void setActions(java.util.List<ActionUrl> actions)
public void copyFrom(CustomActionsSchema result)
public boolean isModified(CustomActionsSchema schema)
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public void clearFirstLoadState()
public static void setCustomizationSchemaForCurrentProjects()
public void incrementModificationStamp()
public int getModificationStamp()
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 AnAction getCorrectedAction(java.lang.String id)
public void invalidateCustomizedActionGroup(java.lang.String groupId)
public void fillCorrectedActionGroups(javax.swing.tree.DefaultMutableTreeNode root)
public void fillActionGroups(javax.swing.tree.DefaultMutableTreeNode root)
public boolean isCorrectActionGroup(ActionGroup group, java.lang.String defaultGroupName)
public void removeIconCustomization(java.lang.String actionId)
public void addIconCustomization(java.lang.String actionId, java.lang.String iconPath)
public java.lang.String getIconPath(java.lang.String actionId)