if (command.equals("REMOVE_ALL_MASSLISTS")) {
MassList selectedMassLists[] = tree
.getSelectedObjects(MassList.class);
for (MassList massList : selectedMassLists) {
String massListName = massList.getName();
RawDataFile dataFiles[] = MZmineCore.getCurrentProject()
.getDataFiles();
for (RawDataFile dataFile : dataFiles) {
int scanNumbers[] = dataFile.getScanNumbers();
for (int scanNum : scanNumbers) {
Scan scan = dataFile.getScan(scanNum);