commit
d660397179
@ -164,16 +164,20 @@ abstract public class ImportingParserBase implements ImportingParser {
|
|||||||
|
|
||||||
protected static int addFilenameColumn(Project project) {
|
protected static int addFilenameColumn(Project project) {
|
||||||
String fileNameColumnName = "File";
|
String fileNameColumnName = "File";
|
||||||
assert project.columnModel.getColumnByName(fileNameColumnName) == null;
|
if (project.columnModel.getColumnByName(fileNameColumnName) == null) {
|
||||||
try {
|
try {
|
||||||
project.columnModel.addColumn(
|
project.columnModel.addColumn(
|
||||||
0, new Column(project.columnModel.allocateNewCellIndex(), fileNameColumnName), false);
|
0, new Column(project.columnModel.allocateNewCellIndex(), fileNameColumnName), false);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} catch (ModelException e) {
|
} catch (ModelException e) {
|
||||||
// Shouldn't happen: We already checked for duplicate name.
|
// Shouldn't happen: We already checked for duplicate name.
|
||||||
logger.error("ModelException adding Filename column",e);
|
logger.error("ModelException adding Filename column",e);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user