com.intellij.util.io.VoidDataExternalizer Java Examples

The following examples show how to use com.intellij.util.io.VoidDataExternalizer. 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: StubProvidedIndexExtension.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Nullable
public <K> ProvidedIndexExtension<K, Void> findProvidedStubIndex(@Nonnull StubIndexExtension<K, ?> extension) {
  String name = extension.getKey().getName();
  File path = getIndexPath();

  File indexPath = new File(path, StringUtil.toLowerCase(name));
  if (!indexPath.exists()) return null;

  return new ProvidedIndexExtension<K, Void>() {
    @Nonnull
    @Override
    public File getIndexPath() {
      return myIndexFile;
    }

    @Nonnull
    @Override
    public ID<K, Void> getIndexId() {
      return (ID)extension.getKey();
    }

    @Nonnull
    @Override
    public KeyDescriptor<K> createKeyDescriptor() {
      return extension.getKeyDescriptor();
    }

    @Nonnull
    @Override
    public DataExternalizer<Void> createValueExternalizer() {
      return VoidDataExternalizer.INSTANCE;
    }
  };
}
 
Example #2
Source File: VcsLogUserIndex.java    From consulo with Apache License 2.0 5 votes vote down vote up
public VcsLogUserIndex(@Nonnull String logId,
                       @Nonnull VcsUserRegistryImpl userRegistry,
                       @Nonnull FatalErrorHandler consumer,
                       @Nonnull Disposable disposableParent) throws IOException {
  super(logId, USERS, getVersion(), new UserIndexer(userRegistry), VoidDataExternalizer.INSTANCE,
        consumer, disposableParent);
  myUserRegistry = userRegistry;
  ((UserIndexer)myIndexer).setFatalErrorConsumer(e -> consumer.consume(this, e));
}
 
Example #3
Source File: BladeEachStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #4
Source File: VcsLogMessagesTrigramIndex.java    From consulo with Apache License 2.0 4 votes vote down vote up
public VcsLogMessagesTrigramIndex(@Nonnull String logId,
                                  @Nonnull FatalErrorHandler fatalErrorHandler,
                                  @Nonnull Disposable disposableParent) throws IOException {
  super(logId, TRIGRAMS, getVersion(), new TrigramMessageIndexer(), VoidDataExternalizer.INSTANCE,
        fatalErrorHandler, disposableParent);
}
 
Example #5
Source File: ScalarIndexExtension.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public final DataExternalizer<Void> getValueExternalizer() {
  return VoidDataExternalizer.INSTANCE;
}
 
Example #6
Source File: AnnotationStubIndex.java    From idea-php-annotation-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #7
Source File: TwigExtendsStubIndex.java    From idea-php-symfony2-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #8
Source File: TwigIncludeStubIndex.java    From idea-php-symfony2-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #9
Source File: TwigControllerStubIndex.java    From idea-php-symfony2-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #10
Source File: PermissionIndex.java    From idea-php-drupal-symfony2-bridge with MIT License 4 votes vote down vote up
@NotNull
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #11
Source File: MenuIndex.java    From idea-php-drupal-symfony2-bridge with MIT License 4 votes vote down vote up
@NotNull
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #12
Source File: GetTextFileIndex.java    From idea-php-drupal-symfony2-bridge with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #13
Source File: SmartyBlockStubIndex.java    From idea-php-shopware-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #14
Source File: SmartyExtendsStubIndex.java    From idea-php-shopware-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #15
Source File: SmartyIncludeStubIndex.java    From idea-php-shopware-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #16
Source File: EventConfigGoToIndex.java    From idea-php-shopware-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #17
Source File: ModelStubIndex.java    From Thinkphp5-Plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #18
Source File: BladeStackStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #19
Source File: ConfigKeyStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #20
Source File: RouteIndexExtension.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #21
Source File: BladeYieldStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #22
Source File: PhpTemplateUsageStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #23
Source File: BladeExtendsStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #24
Source File: BladeCustomDirectivesStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #25
Source File: BladeIncludeStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #26
Source File: TranslationKeyStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #27
Source File: BladeSectionStubIndex.java    From idea-php-laravel-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #28
Source File: EnvironmentVariablesIndex.java    From idea-php-dotenv-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #29
Source File: RouteValStubIndex.java    From Thinkphp5-Plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}
 
Example #30
Source File: ConfigKeyStubIndex.java    From Thinkphp5-Plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public DataExternalizer<Void> getValueExternalizer() {
    return VoidDataExternalizer.INSTANCE;
}