forked from magento/magento2-phpstorm-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerNameIndex.java
35 lines (30 loc) · 893 Bytes
/
ContainerNameIndex.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
package com.magento.idea.magento2plugin.stubs.indexes;
import com.intellij.util.indexing.DataIndexer;
import com.intellij.util.indexing.FileContent;
import com.intellij.util.indexing.ID;
import org.jetbrains.annotations.NotNull;
/**
* Created by dkvashnin on 11/18/15.
*/
public class ContainerNameIndex extends NamedComponentIndex {
public static final ID<String, Void> KEY =
ID.create("com.magento.idea.magento2plugin.stubs.indexes.container_name");
@NotNull
@Override
public ID<String, Void> getName() {
return KEY;
}
@NotNull
@Override
public DataIndexer<String, Void, FileContent> getIndexer() {
return new LayoutDataIndexer("container", "name");
}
@Override
public int getVersion() {
return 1;
}
}