Example usage for com.intellij.openapi.fileTypes FileTypeManager getIgnoredFilesList

List of usage examples for com.intellij.openapi.fileTypes FileTypeManager getIgnoredFilesList

Introduction

In this page you can find the example usage for com.intellij.openapi.fileTypes FileTypeManager getIgnoredFilesList.

Prototype

@NotNull
public abstract String getIgnoredFilesList();

Source Link

Document

Returns the semicolon-delimited list of patterns for files and folders which are excluded from the project structure though they may be present physically on disk.

Usage

From source file:bazaar4idea.BzrVcs.java

License:Apache License

private static void fixIgnoreList() {
    ApplicationManager.getApplication().runWriteAction(new Runnable() {
        public void run() {
            FileTypeManager fileTypeMgr = FileTypeManager.getInstance();
            if (!fileTypeMgr.isFileIgnored(BzrUtil.DOT_BZR)) {
                String ignoredList = fileTypeMgr.getIgnoredFilesList();
                StringBuffer newList = new StringBuffer(ignoredList);
                if (!ignoredList.endsWith(";"))
                    newList.append(';');
                newList.append(BzrUtil.DOT_BZR);
                fileTypeMgr.setIgnoredFilesList(newList.toString());
            }/*from   w  ww.j a v a 2s  .  c  o  m*/
        }
    });
}

From source file:org.eclipse.xtext.idea.tests.LibraryUtil.java

License:Open Source License

public static void removeLibFromIgnoredFilesList() {
    final FileTypeManager fileTypeManager = FileTypeManager.getInstance();
    String _ignoredFilesList = fileTypeManager.getIgnoredFilesList();
    final String[] ignoredFilesList = _ignoredFilesList.split("\\*\\.lib;");
    int _length = ignoredFilesList.length;
    boolean _greaterThan = (_length > 1);
    if (_greaterThan) {
        final Function2<String, String, String> _function = (String p1, String p2) -> {
            return (p1 + p2);
        };//from   ww w  .  j a v a  2s . c  o  m
        String _reduce = IterableExtensions.<String>reduce(
                ((Iterable<? extends String>) Conversions.doWrapArray(ignoredFilesList)), _function);
        fileTypeManager.setIgnoredFilesList(_reduce);
    }
}