com.intellij.framework.detection.FileContentPattern Java Examples

The following examples show how to use com.intellij.framework.detection.FileContentPattern. 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: MuleFrameworkDetector.java    From mule-intellij-plugins with Apache License 2.0 5 votes vote down vote up
@NotNull
    @Override
    public ElementPattern<FileContent> createSuitableFilePattern()
    {
        return FileContentPattern.fileContent().andOr(
                        FileContentPattern.fileContent().withName("mule-app.properties"),
                        FileContentPattern.fileContent().withName("mule-domain-config.xml"));

        //        new FileContent()
//        return FileContentPattern.fileContent().oneOf(FileContentPattern.fileContent().withName("mule-app.properties")., FileContentPattern.fileContent().withName("mule-domain-config.xml"));

                //.withName("mule-app.properties")..withName("mule-domain-config.xml");
    }
 
Example #2
Source File: QuarkusFrameworkDetector.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
@NotNull
@Override
public ElementPattern<FileContent> createSuitableFilePattern() {
    return FileContentPattern.fileContent().withName("DUMMY_WILL_NEVER_DETECT");
}
 
Example #3
Source File: BsConfigJson.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
private static ElementPattern<FileContent> createFilePattern() {
    return FileContentPattern.fileContent()
            .withName(BsConfigJsonFileType.getDefaultFilename());
}
 
Example #4
Source File: DuneFrameworkDetector.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public ElementPattern<FileContent> createSuitableFilePattern() {
    return FileContentPattern.fileContent().withName("dune-project");
}
 
Example #5
Source File: MindMapFacetDetector.java    From netbeans-mmd-plugin with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public ElementPattern<FileContent> createSuitableFilePattern() {
  return FileContentPattern.fileContent().withName(StandardPatterns.string().endsWith(".mmd"));
}