source: osm/applications/editors/josm/plugins/smed/src/smed/plug/SmedPluginApp.java@ 23178

Last change on this file since 23178 was 23178, checked in by postfix, 14 years ago

first framework for Seamap Editor (smed)

File size: 644 bytes
Line 
1package smed.plug;
2
3import java.io.File;
4import java.io.IOException;
5import java.util.List;
6
7import org.openstreetmap.josm.Main;
8
9import smed.plug.ifc.SmedPluggable;
10import smed.plug.util.SmedPluginLoader;
11
12public class SmedPluginApp implements Runnable {
13
14 @Override
15 public void run() {
16 try {
17 runPlugins();
18 } catch (IOException e) {
19 e.printStackTrace();
20 }
21 }
22
23 public static void runPlugins() throws IOException {
24 String pluginDirName = Main.pref.getPluginsDirectory().getAbsolutePath();
25
26 List<SmedPluggable> plugins = SmedPluginLoader.loadPlugins(new File(pluginDirName + "/splug"));
27
28 }
29
30}
Note: See TracBrowser for help on using the repository browser.