本文整理汇总了Java中com.intellij.openapi.roots.impl.FilePropertyPusher类的典型用法代码示例。如果您正苦于以下问题:Java FilePropertyPusher类的具体用法?Java FilePropertyPusher怎么用?Java FilePropertyPusher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FilePropertyPusher类属于com.intellij.openapi.roots.impl包,在下文中一共展示了FilePropertyPusher类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handleMappingChange
点赞 3
import com.intellij.openapi.roots.impl.FilePropertyPusher; //导入依赖的package包/类
private void handleMappingChange(Collection<VirtualFile> files, Collection<VirtualFile> oldFiles, boolean includeOpenFiles) {
Project project = getProject();
FilePropertyPusher<T> pusher = getFilePropertyPusher();
if (project != null && pusher != null) {
for (VirtualFile oldFile : oldFiles) {
if (oldFile == null) continue; // project
oldFile.putUserData(pusher.getFileDataKey(), null);
}
if (!project.isDefault()) {
PushedFilePropertiesUpdater.getInstance(project).pushAll(pusher);
}
}
if (shouldReparseFiles()) {
Project[] projects = project == null ? ProjectManager.getInstance().getOpenProjects() : new Project[] { project };
for (Project p : projects) {
PsiDocumentManager.getInstance(p).reparseFiles(files, includeOpenFiles);
}
}
}
开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:20,
代码来源:PerFileMappingsBase.java
示例2: handleMappingChange
点赞 3
import com.intellij.openapi.roots.impl.FilePropertyPusher; //导入依赖的package包/类
private void handleMappingChange(final Collection<VirtualFile> files, Collection<VirtualFile> oldFiles, final boolean includeOpenFiles) {
final FilePropertyPusher<T> pusher = getFilePropertyPusher();
if (pusher != null) {
for (VirtualFile oldFile : oldFiles) {
if (oldFile == null) continue; // project
oldFile.putUserData(pusher.getFileDataKey(), null);
}
PushedFilePropertiesUpdater updater = PushedFilePropertiesUpdater.getInstance(myProject);
if (updater == null) {
if (!myProject.isDefault()) {
LOG.error("updater = null. project=" + myProject.getName()+", this="+getClass().getSimpleName());
}
}
else {
updater.pushAll(pusher);
}
}
if (shouldReparseFiles()) {
PsiDocumentManager.getInstance(myProject).reparseFiles(files, includeOpenFiles);
}
}
开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:22,
代码来源:LanguagePerFileMappings.java
示例3: getMapping
点赞 2
import com.intellij.openapi.roots.impl.FilePropertyPusher; //导入依赖的package包/类
@Override
@Nullable
public T getMapping(@Nullable VirtualFile file) {
FilePropertyPusher<T> pusher = getFilePropertyPusher();
T t = getMappingInner(file, myMappings, pusher == null? null : pusher.getFileDataKey());
return t == null? getDefaultMapping(file) : t;
}
开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:8,
代码来源:PerFileMappingsBase.java
示例4: tearDown
点赞 2
import com.intellij.openapi.roots.impl.FilePropertyPusher; //导入依赖的package包/类
@Override
protected void tearDown() throws Exception {
setLanguageLevel(null);
myFixture.tearDown();
myFixture = null;
final PythonLanguageLevelPusher levelPusher = Extensions.findExtension(FilePropertyPusher.EP_NAME, PythonLanguageLevelPusher.class);
levelPusher.flushLanguageLevelCache();
super.tearDown();
clearFields(this);
}
开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:11,
代码来源:PyTestCase.java
示例5: getFilePropertyPusher
点赞 2
import com.intellij.openapi.roots.impl.FilePropertyPusher; //导入依赖的package包/类
@Nullable
protected FilePropertyPusher<T> getFilePropertyPusher() {
return null;
}
开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:PerFileMappingsBase.java