numberOfGroups = selectedRawDataFiles.length;
}
if (coloringType.isByParameter()) {
// Group files with same parameter value to same group
MZmineProject project = MZmineCore.getCurrentProject();
Vector<Object> availableParameterValues = new Vector<Object>();
UserParameter selectedParameter = coloringType.getParameter();
for (RawDataFile rawDataFile : selectedRawDataFiles) {
Object paramValue = project.getParameterValue(
selectedParameter, rawDataFile);
if (!availableParameterValues.contains(paramValue))
availableParameterValues.add(paramValue);
}
for (int ind = 0; ind < selectedRawDataFiles.length; ind++) {
Object paramValue = project.getParameterValue(
selectedParameter, selectedRawDataFiles[ind]);
groupsForSelectedRawDataFiles[ind] = availableParameterValues
.indexOf(paramValue);
}
parameterValuesForGroups = availableParameterValues.toArray();