public class PostfixTemplatesSettings extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static Factory<java.util.Set<java.lang.String>> |
SET_FACTORY |
Constructor and Description |
---|
PostfixTemplatesSettings() |
Modifier and Type | Method and Description |
---|---|
void |
disableTemplate(PostfixTemplate template,
PostfixTemplateProvider provider) |
void |
disableTemplate(PostfixTemplate template,
java.lang.String providerId) |
static PostfixTemplatesSettings |
getInstance() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getLangDisabledTemplates()
Deprecated.
use getProviderToDisabledTemplates
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getProviderToDisabledTemplates() |
int |
getShortcut() |
Element |
getState() |
boolean |
isPostfixTemplatesEnabled() |
boolean |
isTemplateEnabled(PostfixTemplate template,
PostfixTemplateProvider provider) |
boolean |
isTemplatesCompletionEnabled() |
void |
loadState(Element settings)
This method is called when new component state is loaded.
|
void |
setLangDisabledTemplates(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> templatesState)
Deprecated.
use setProviderToDisabledTemplates
|
void |
setPostfixTemplatesEnabled(boolean postfixTemplatesEnabled) |
void |
setProviderToDisabledTemplates(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> templatesState) |
void |
setShortcut(int shortcut) |
void |
setTemplatesCompletionEnabled(boolean templatesCompletionEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final Factory<java.util.Set<java.lang.String>> SET_FACTORY
public boolean isTemplateEnabled(PostfixTemplate template, PostfixTemplateProvider provider)
public void disableTemplate(PostfixTemplate template, PostfixTemplateProvider provider)
public void disableTemplate(PostfixTemplate template, java.lang.String providerId)
public boolean isPostfixTemplatesEnabled()
public void setPostfixTemplatesEnabled(boolean postfixTemplatesEnabled)
public boolean isTemplatesCompletionEnabled()
public void setTemplatesCompletionEnabled(boolean templatesCompletionEnabled)
@Deprecated public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLangDisabledTemplates()
@Deprecated public void setLangDisabledTemplates(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> templatesState)
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getProviderToDisabledTemplates()
public void setProviderToDisabledTemplates(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> templatesState)
public int getShortcut()
public void setShortcut(int shortcut)
public static PostfixTemplatesSettings getInstance()
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 void loadState(Element settings)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
settings
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)