use of gov.sandia.n2a.plugins.extpoints.Import in project n2a by frothga.
the class PanelModel method importFile.
public static void importFile(Path path) {
Import bestImporter = null;
float bestP = 0;
for (ExtensionPoint exp : PluginManager.getExtensionsForPoint(Import.class)) {
float P = ((Import) exp).matches(path);
if (P > bestP) {
bestP = P;
bestImporter = (Import) exp;
}
}
if (bestImporter != null)
bestImporter.process(path);
}
Aggregations