com.intellij.openapi.util.SimpleModificationTracker Java Examples

The following examples show how to use com.intellij.openapi.util.SimpleModificationTracker. 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: BlazeSyncModificationTracker.java    From intellij with Apache License 2.0 5 votes vote down vote up
@Override
public void afterSync(
    Project project,
    BlazeContext context,
    SyncMode syncMode,
    SyncResult syncResult,
    ImmutableSet<Integer> buildIds) {
  ((SimpleModificationTracker) getInstance(project)).incModificationCount();
}
 
Example #2
Source File: MockDumbService.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public ModificationTracker getModificationTracker() {
  return new SimpleModificationTracker();
}
 
Example #3
Source File: PsiModificationTrackerImpl.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
public ModificationTracker forLanguage(@Nonnull Language language) {
  SimpleModificationTracker languageTracker = myLanguageTrackers.get(language);
  return () -> languageTracker.getModificationCount() + myAllLanguagesTracker.getModificationCount();
}