List
of Strings. public 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 if (prop.equals(PluginElementTypes.PROPERTY_DEPEND)) { return "masterPlugin"; } }
public 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 if (prop.equals(PluginElementTypes.PROPERTY_DEPEND)) { List list = Arrays.asList(new String[]{"masterPlugin", "masterPlugin2"}); return list; } }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences