public abstract class NamedScopesHolder extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Class and Description |
---|---|
static interface |
NamedScopesHolder.ScopeListener |
Constructor and Description |
---|
NamedScopesHolder(Project project) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
protected final Project myProject
public NamedScopesHolder(Project project)
public abstract java.lang.String getDisplayName()
public abstract javax.swing.Icon getIcon()
public VirtualFile getProjectBaseDir()
@Deprecated public void addScopeListener(NamedScopesHolder.ScopeListener scopeListener)
addScopeListener(ScopeListener, Disposable)
insteadpublic void addScopeListener(NamedScopesHolder.ScopeListener scopeListener, Disposable parentDisposable)
public void fireScopeListeners()
public NamedScope [] getScopes()
public NamedScope [] getEditableScopes()
public void removeAllSets()
public void setScopes(NamedScope [] scopes)
public void addScope(NamedScope scope)
public static NamedScope getScope(Project project, java.lang.String scopeName)
public static NamedScopesHolder [] getAllNamedScopeHolders(Project project)
public static NamedScopesHolder getHolder(Project project, java.lang.String scopeName, NamedScopesHolder defaultHolder)
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 NamedScope getScope(java.lang.String name)
public java.util.List<NamedScope> getPredefinedScopes()
public NamedScope getPredefinedScope(java.lang.String name)
public Project getProject()
public final NamedScope createScope(java.lang.String name, PackageSet value)