public class CachingExternalSystemAutoImportAware extends java.lang.Object implements ExternalSystemAutoImportAware
ExternalSystemAutoImportAware
implementation which caches positive answers, i.e. mappings between file paths and
corresponding root external project path.Constructor and Description |
---|
CachingExternalSystemAutoImportAware(ExternalSystemAutoImportAware delegate) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.io.File> |
getAffectedExternalProjectFiles(java.lang.String projectPath,
Project project) |
java.lang.String |
getAffectedExternalProjectPath(java.lang.String changedFileOrDirPath,
Project project)
This method serves to check if particular file/dir change should trigger external project refresh.
|
public CachingExternalSystemAutoImportAware(ExternalSystemAutoImportAware delegate)
public java.lang.String getAffectedExternalProjectPath(java.lang.String changedFileOrDirPath, Project project)
ExternalSystemAutoImportAware
external project config files
known to the ide as that functionality is built-in. Only auxiliary files should be processed.
Note2: this method is assume to be called rather often, that's why it's very important to return from it quickly.
Caching and simple check algorithms are welcomed.getAffectedExternalProjectPath
in interface ExternalSystemAutoImportAware
changedFileOrDirPath
- changed file/dir pathproject
- current projectnull
if target change should not trigger external project refresh;
path to config file of an external project which should be refreshedpublic java.util.List<java.io.File> getAffectedExternalProjectFiles(java.lang.String projectPath, Project project)
getAffectedExternalProjectFiles
in interface ExternalSystemAutoImportAware