public final class DependencyValidationManagerImpl extends DependencyValidationManager
NamedScopesHolder.ScopeListener
myProject
Constructor and Description |
---|
DependencyValidationManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(DependencyRule rule) |
void |
fireScopeListeners() |
DependencyRule [] |
getAllRules() |
DependencyRule [] |
getApplicableRules(PsiFile file) |
java.lang.String |
getDisplayName() |
javax.swing.Icon |
getIcon() |
NamedScope |
getPredefinedScope(java.lang.String name) |
java.util.List<NamedScope> |
getPredefinedScopes() |
NamedScope |
getScope(java.lang.String name) |
java.util.List<Pair<NamedScope,NamedScopesHolder>> |
getScopeBasedHighlightingCachedScopes() |
Element |
getState() |
java.util.Map<java.lang.String,PackageSet> |
getUnnamedScopes() |
DependencyRule |
getViolatorDependencyRule(PsiFile from,
PsiFile to) |
DependencyRule [] |
getViolatorDependencyRules(PsiFile from,
PsiFile to) |
boolean |
hasRules() |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
removeAllRules() |
void |
setScopes(NamedScope [] scopes) |
void |
setSkipImportStatements(boolean skip) |
boolean |
skipImportStatements() |
getInstance
addScope, addScopeListener, addScopeListener, createScope, getAllNamedScopeHolders, getEditableScopes, getHolder, getProject, getProjectBaseDir, getScope, getScopes, removeAllSets
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public DependencyValidationManagerImpl(Project project)
public java.util.List<NamedScope> getPredefinedScopes()
getPredefinedScopes
in class NamedScopesHolder
public NamedScope getPredefinedScope(java.lang.String name)
getPredefinedScope
in class NamedScopesHolder
public boolean hasRules()
hasRules
in class DependencyValidationManager
public DependencyRule getViolatorDependencyRule(PsiFile from, PsiFile to)
getViolatorDependencyRule
in class DependencyValidationManager
public DependencyRule [] getViolatorDependencyRules(PsiFile from, PsiFile to)
getViolatorDependencyRules
in class DependencyValidationManager
public DependencyRule [] getApplicableRules(PsiFile file)
getApplicableRules
in class DependencyValidationManager
public boolean skipImportStatements()
skipImportStatements
in class DependencyValidationManager
public void setSkipImportStatements(boolean skip)
setSkipImportStatements
in class DependencyValidationManager
public java.util.Map<java.lang.String,PackageSet> getUnnamedScopes()
getUnnamedScopes
in class DependencyValidationManager
public DependencyRule [] getAllRules()
getAllRules
in class DependencyValidationManager
public void removeAllRules()
removeAllRules
in class DependencyValidationManager
public void addRule(DependencyRule rule)
addRule
in class DependencyValidationManager
public java.lang.String getDisplayName()
getDisplayName
in class NamedScopesHolder
public javax.swing.Icon getIcon()
getIcon
in class NamedScopesHolder
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
loadState
in class NamedScopesHolder
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
getState
in class NamedScopesHolder
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)
getScope
in class NamedScopesHolder
public java.util.List<Pair<NamedScope,NamedScopesHolder>> getScopeBasedHighlightingCachedScopes()
public void fireScopeListeners()
fireScopeListeners
in class NamedScopesHolder
public void setScopes(NamedScope [] scopes)
setScopes
in class NamedScopesHolder