public class DetectionExcludesConfigurationImpl extends DetectionExcludesConfiguration implements PersistentStateComponent<ExcludesConfigurationState>, Disposable
Disposable.Parent
Constructor and Description |
---|
DetectionExcludesConfigurationImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedFile(VirtualFile file,
FrameworkType type)
Suppress detection of framework
type in the specified file or directory |
void |
addExcludedFramework(FrameworkType type)
Suppress detection of framework
type everywhere in the project |
void |
addExcludedUrl(java.lang.String url,
FrameworkType type)
Suppress detection of framework
type in the file or directory specified by url |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
ExcludesConfigurationState |
getActualState() |
ExcludesConfigurationState |
getState() |
boolean |
isExcludedFromDetection(FrameworkType frameworkType) |
boolean |
isExcludedFromDetection(VirtualFile file,
FrameworkType frameworkType) |
void |
loadState(ExcludesConfigurationState state)
This method is called when new component state is loaded.
|
void |
removeExcluded(java.util.Collection<VirtualFile> files,
FrameworkType frameworkType) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public DetectionExcludesConfigurationImpl(Project project)
public void addExcludedFramework(FrameworkType type)
DetectionExcludesConfiguration
type
everywhere in the projectaddExcludedFramework
in class DetectionExcludesConfiguration
public void addExcludedFile(VirtualFile file, FrameworkType type)
DetectionExcludesConfiguration
type
in the specified file or directoryaddExcludedFile
in class DetectionExcludesConfiguration
public void addExcludedUrl(java.lang.String url, FrameworkType type)
DetectionExcludesConfiguration
type
in the file or directory specified by url
addExcludedUrl
in class DetectionExcludesConfiguration
public boolean isExcludedFromDetection(VirtualFile file, FrameworkType frameworkType)
isExcludedFromDetection
in class DetectionExcludesConfiguration
public boolean isExcludedFromDetection(FrameworkType frameworkType)
isExcludedFromDetection
in class DetectionExcludesConfiguration
public void removeExcluded(java.util.Collection<VirtualFile> files, FrameworkType frameworkType)
public ExcludesConfigurationState getActualState()
public ExcludesConfigurationState getState()
getState
in interface PersistentStateComponent<ExcludesConfigurationState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(ExcludesConfigurationState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<ExcludesConfigurationState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public void dispose()
Disposable
dispose
in interface Disposable