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 | |
---|
1 | package smed.plug;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 | import java.io.IOException;
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.Main;
|
---|
8 |
|
---|
9 | import smed.plug.ifc.SmedPluggable;
|
---|
10 | import smed.plug.util.SmedPluginLoader;
|
---|
11 |
|
---|
12 | public 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.