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) |
getInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic DetectionExcludesConfigurationImpl(Project project)
public void addExcludedFramework(FrameworkType type)
DetectionExcludesConfigurationtype everywhere in the projectaddExcludedFramework in class DetectionExcludesConfigurationpublic void addExcludedFile(VirtualFile file, FrameworkType type)
DetectionExcludesConfigurationtype in the specified file or directoryaddExcludedFile in class DetectionExcludesConfigurationpublic void addExcludedUrl(java.lang.String url,
FrameworkType type)
DetectionExcludesConfigurationtype in the file or directory specified by urladdExcludedUrl in class DetectionExcludesConfigurationpublic boolean isExcludedFromDetection(VirtualFile file, FrameworkType frameworkType)
isExcludedFromDetection in class DetectionExcludesConfigurationpublic boolean isExcludedFromDetection(FrameworkType frameworkType)
isExcludedFromDetection in class DetectionExcludesConfigurationpublic 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.XmlSerializerpublic void loadState(ExcludesConfigurationState state)
PersistentStateComponentState 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()
Disposabledispose in interface Disposable