X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fplugin%2FConfigurable.java;fp=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fplugin%2FConfigurable.java;h=b8ebf6e2c2e75375181cdec7d0ed7bf10c981a2d;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=0000000000000000000000000000000000000000;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/plugin/Configurable.java b/core/src/net/sf/openrocket/plugin/Configurable.java new file mode 100644 index 00000000..b8ebf6e2 --- /dev/null +++ b/core/src/net/sf/openrocket/plugin/Configurable.java @@ -0,0 +1,29 @@ +package net.sf.openrocket.plugin; + +public interface Configurable { + + + /** + * Return the plugin ID. This is a text string uniquely identifying this plugin. + * The recommended format is similar to the fully-qualified class name of the + * plugin, though a shorter format starting with the developer's domain name + * is also possible for future compatibility. + * + * @return the plugin ID + */ + public String getPluginID(); + + /** + * Test whether this plugin provides functionality corresponding to the specified + * plugin ID. This provides backwards compatibility if the plugin ID should change. + * + * @param pluginID the plugin ID to test + * @return whether this plugin provides the requested functionality + */ + public boolean isCompatible(String pluginID); + + public void loadFromXML(Object... objects); + + public void saveToXML(Object... objects); + +}