...
 
Commits (4)
package ca.corefacility.bioinformatics.irida.plugin.amrdetection;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.awt.Color;
import java.util.Optional;
import java.util.UUID;
......@@ -14,7 +12,6 @@ import org.pf4j.PluginWrapper;
import ca.corefacility.bioinformatics.irida.model.workflow.analysis.type.AnalysisType;
import ca.corefacility.bioinformatics.irida.pipeline.results.updater.AnalysisSampleUpdater;
import ca.corefacility.bioinformatics.irida.plugins.IridaPlugin;
import ca.corefacility.bioinformatics.irida.plugins.IridaPluginException;
import ca.corefacility.bioinformatics.irida.service.sample.MetadataTemplateService;
import ca.corefacility.bioinformatics.irida.service.sample.SampleService;
......@@ -44,15 +41,6 @@ public class AMRDetectionPlugin extends Plugin {
return Optional.of(new AMRDetectionUpdater(metadataTemplateService, sampleService));
}
@Override
public Path getWorkflowsPath() throws IridaPluginException {
try {
return Paths.get(AMRDetectionPlugin.class.getResource("workflows/").toURI());
} catch (URISyntaxException e) {
throw new IridaPluginException("Error converting path from in jar", e);
}
}
@Override
public AnalysisType getAnalysisType() {
return AMR_DETECTION;
......@@ -64,8 +52,8 @@ public class AMRDetectionPlugin extends Plugin {
}
@Override
public Optional<String> getPipelineStyle() {
return Optional.of("background-color: #66c2a4 !important; color: #222 !important;");
public Optional<Color> getBackgroundColor() {
return Optional.of(Color.decode("#66c2a4"));
}
}
}