MDIPluginClass
won't be loaded.MDIPluginClass
: the path of the Plugin classMDIPluginClass: <appliID1>:<Plugin class Path>;<appliID2>:<Plugin class Path>...For example:
MDIPluginClass: appli1;the.Plugin1;appli2;the.Plugin2The Plugin class will be chosen depending on the Application ID. The Application ID can be set by the MDIApplication.getApplicationID() method[1]
MDIPluginClass: my.plugin.MyPluginClass MDIPluginType: myType
List
of Strings. If one of the Plugins on which a Plugins depends on is not present or is disabled, the dependent Plugin will be disabled.
MDIPluginClass
path declared in the Plugin Manifest. The retrieval of Plugin characteristic and Registering of the Plugin will allow to declare the Plugin in the frameworkpublic String getPluginName() { return "MyPlugin"; } public Object getPluginProperty(String prop) { if (prop.equals(PluginElementTypes.PROPERTY_DATE)) { return "26/07/2016"; } else if (prop.equals(PluginElementTypes.PROPERTY_DESC)) { return "My Plugin description"; } else if (prop.equals(PluginElementTypes.PROPERTY_VERSION)) { return "1.0"; } else { return null; } }
public class OpenImagePlugin extends AbstractMDIPlugin { public OpenImagePlugin() { } public Configuration getPluginConfiguration() { return MyConfiguration.getInstance(); }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences