public class PluginPropertyManager extends XMLPropertyManager
Properties and other plugin related stuff.
The class reads the content of iqm-plugin.xml, which is located
right next to the implementing class of IPlugin in the class path.
This class also constructs the enabled/disabled icons for the menu items. They can either be default or customized.
| Constructor and Description |
|---|
PluginPropertyManager() |
| Modifier and Type | Method and Description |
|---|---|
static ImageIcon |
getCustomMenuIcon(IPlugin plugin,
String fileName)
Gets a custom menu item for a plugin.
|
static ImageIcon |
getDefaultDisabledMenuIcon()
Gets the default menu icon for an active plugin menu item.
|
static ImageIcon |
getDefaultEnabledMenuIcon()
Gets the default menu icon for an active plugin menu item.
|
static Properties |
readPluginProperties(IPlugin plugin)
Read the properties from
iqm-plugin.xml. |
main, readXML, writeXMLgetManager, getProperty, getPropFile, read, read, setProperty, setPropFile, write, writepublic static Properties readPluginProperties(IPlugin plugin)
iqm-plugin.xml.plugin - Properties from the pluginpublic static ImageIcon getDefaultEnabledMenuIcon()
The use of a 16x16 PNG image is encouraged.
ImageIcon located in
"/icons/plugin/menu/default-enabled.png"public static ImageIcon getDefaultDisabledMenuIcon()
The use of a 16x16 PNG image is encouraged.
ImageIcon located in
"/icons/plugin/menu/default-disabled.png"Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.