Changed to MZmineModule : spectra library module for single spectrum
package net.sf.mzmine.modules.visualization.spectra.simplespectra.spectraidentification.spectraldatabase;
-import java.util.Collection;
import javax.annotation.Nonnull;
-import net.sf.mzmine.datamodel.MZmineProject;
import net.sf.mzmine.datamodel.Scan;
import net.sf.mzmine.main.MZmineCore;
-import net.sf.mzmine.modules.MZmineModuleCategory;
-import net.sf.mzmine.modules.MZmineRunnableModule;
+import net.sf.mzmine.modules.MZmineModule;
import net.sf.mzmine.modules.visualization.spectra.simplespectra.SpectraPlot;
import net.sf.mzmine.parameters.ParameterSet;
-import net.sf.mzmine.taskcontrol.Task;
import net.sf.mzmine.util.ExitCode;
/**
@@ -35,7 +31,7 @@ import net.sf.mzmine.util.ExitCode;
*
* @author Ansgar Korf (ansgar.korf@uni-muenster.de)
*/
-public class SpectraIdentificationSpectralDatabaseModule implements MZmineRunnableModule {
+public class SpectraIdentificationSpectralDatabaseModule implements MZmineModule {
public static final String MODULE_NAME = "Local spectral database search for single spectra";
private static final String MODULE_DESCRIPTION =
@@ -46,20 +42,10 @@ public class SpectraIdentificationSpectralDatabaseModule implements MZmineRunnab
return MODULE_NAME;
}
- @Override
public @Nonnull String getDescription() {
return MODULE_DESCRIPTION;
}
- @Override
- @Nonnull
- public ExitCode runModule(@Nonnull MZmineProject project, @Nonnull ParameterSet parameters,
- @Nonnull Collection<Task> tasks) {
-
- return ExitCode.OK;
-
- }
-
/**
* Show dialog for spectral db matching for the selected spectra
*
@@ -80,11 +66,6 @@ public class SpectraIdentificationSpectralDatabaseModule implements MZmineRunnab
}
}
- @Override
- public @Nonnull MZmineModuleCategory getModuleCategory() {
- return MZmineModuleCategory.IDENTIFICATION;
- }
-
@Override
public @Nonnull Class<? extends ParameterSet> getParameterSetClass() {
return SpectraIdentificationSpectralDatabaseParameters.class;
