Java Code Examples for com.intellij.util.FileContentUtil#reparseFiles()
The following examples show how to use
com.intellij.util.FileContentUtil#reparseFiles() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GlobalVariableQuickfix.java From BashSupport with Apache License 2.0 | 5 votes |
private void doRegistryAction(boolean register) { if (register) { BashProjectSettings.storedSettings(project).addGlobalVariable(variableName); } else { BashProjectSettings.storedSettings(project).removeGlobalVariable(variableName); } FileContentUtil.reparseFiles(project, Collections.emptyList(), true); }
Example 2
Source File: LanguageConsoleImpl.java From consulo with Apache License 2.0 | 5 votes |
public void setLanguage(Language language) { if (!(virtualFile instanceof LightVirtualFile)) { throw new UnsupportedOperationException(); } ((LightVirtualFile)virtualFile).setLanguage(language); ((LightVirtualFile)virtualFile).setContent(getDocument(), getDocument().getText(), false); FileContentUtil.reparseFiles(project, Collections.singletonList(virtualFile), false); }
Example 3
Source File: PsiDocumentManagerImpl.java From consulo with Apache License 2.0 | 4 votes |
@Override public void reparseFiles(@Nonnull Collection<? extends VirtualFile> files, boolean includeOpenFiles) { FileContentUtil.reparseFiles(myProject, files, includeOpenFiles); }