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.
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 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 if (prop.equals(PluginElementTypes.PROPERTY_DEPEND)) { return "masterPlugin"; } }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences