Search in sources :

Example 1 with IgnoreList

use of org.rstudio.studio.client.common.vcs.ignore.IgnoreList in project rstudio by rstudio.

the class SVNCommandHandler method onVcsIgnore.

public void onVcsIgnore() {
    // special case for a single directory with property changes
    ArrayList<StatusAndPath> items = display_.getSelectedItems();
    if (items.size() == 1) {
        StatusAndPath item = items.get(0);
        if (item.isDirectory() && item.getStatus().equals("M")) {
            String path = item.getPath();
            if (path.equals("."))
                path = "";
            IgnoreList ignoreList = new IgnoreList(path, new ArrayList<String>());
            pIgnore_.get().showDialog(ignoreList, ignoreStrategy_);
            return;
        }
    }
    // standard case
    ArrayList<String> paths = getPathArray();
    pIgnore_.get().showDialog(paths, ignoreStrategy_);
}
Also used : StatusAndPath(org.rstudio.studio.client.common.vcs.StatusAndPath) IgnoreList(org.rstudio.studio.client.common.vcs.ignore.IgnoreList)

Aggregations

StatusAndPath (org.rstudio.studio.client.common.vcs.StatusAndPath)1 IgnoreList (org.rstudio.studio.client.common.vcs.ignore.IgnoreList)1