use of net.sourceforge.processdash.util.PatternList in project processdash by dtuma.
the class AbstractLibraryEditor method openLibrary.
private void openLibrary(Component parent, boolean export) throws UserCancelledException {
WBSLibrary result = null;
while (true) {
File file = selectFile(parent, export);
if (file == null)
throw new UserCancelledException();
result = openLibrary(parent, export, file);
if (result != null)
break;
}
libraryFile = result;
library = result.getWbs();
library.getRoot().setName(resources.getString("Library_Root_Name"));
if (export == false)
library.removeAttributes(new PatternList("^exportSourceID$", "^relaunchSourceID$"));
}
use of net.sourceforge.processdash.util.PatternList in project processdash by dtuma.
the class AbstractWBSModelMerger method ignoreAttributeConflicts.
protected void ignoreAttributeConflicts(String... attributeNames) {
PatternList pattern = new PatternList();
for (String attr : attributeNames) {
if (isRegexp(attr))
pattern.addRegexp(attr);
else
pattern.addLiteralEquals(attr);
}
contentMerger.addHandler(pattern, SILENTLY_PREFER_MAIN);
}
Aggregations