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_);
}
Aggregations