Class PluginPreference
java.lang.Object
org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
org.openstreetmap.josm.gui.preferences.ExtensibleTabPreferenceSetting
org.openstreetmap.josm.gui.preferences.plugin.PluginPreference
- All Implemented Interfaces:
PreferenceSetting,TabPreferenceSetting
Preference settings for plugins.
- Since:
- 168
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classThe action for configuring the plugin download sites(package private) classThe action for downloading the list of available pluginsstatic classFactory used to create a newPluginPreference.private static class(package private) classThe action for selecting the plugins given by a text file compatible to JOSM bug report.(package private) classThe action for updating the list of selected plugins -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate PluginPreferencesModelprivate booleanis set to true if this preference pane has been selected by the userprivate PluginListPanelprivate PluginUpdatePolicyPanelprivate JScrollPaneprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ComponentvoidAdd the GUI elements to the dialog.private voidaddRadioButton(ButtonGroup bg, JPanel pnl, JRadioButton rb, PluginInstallation value) private JPanelstatic StringReturns the download summary string to be shown.private JPanelprivate JPanelprivate voidReturns the help context for this preferences settings tab.Replies the list of plugins which have been added by the user to the set of activated pluginsReplies the set of plugins waiting for update or downloadstatic voidnotifyDownloadResults(Component parent, PluginDownloadTask task, boolean restartRequired) Notifies user about result of a finished plugin download task.booleanok()Called when OK is pressed to save the setting in the preferences file.voidReads locally available information about plugins from the local file system.Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
addSubTab, addSubTab, canBeHidden, createPreferenceTabWithScrollPane, getDescription, getIconName, getSelectedSubTab, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTabMethods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert, saveBoolean, saveDouble, saveIntMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.preferences.PreferenceSetting
isExpertMethods inherited from interface org.openstreetmap.josm.gui.preferences.TabPreferenceSetting
getIcon
-
Field Details
-
HTML_START
- See Also:
-
HTML_END
- See Also:
-
UPDATE_PLUGINS
-
pnlPluginPreferences
-
model
-
spPluginPreferences
-
pnlPluginUpdatePolicy
-
pluginPreferencesActivated
is set to true if this preference pane has been selected by the user
-
-
Constructor Details
-
PluginPreference
private PluginPreference()
-
-
Method Details
-
buildDownloadSummary
Returns the download summary string to be shown.- Parameters:
task- The plugin download task that has completed- Returns:
- the download summary string to be shown. Contains summary of success/failed plugins.
-
notifyDownloadResults
public static void notifyDownloadResults(Component parent, PluginDownloadTask task, boolean restartRequired) Notifies user about result of a finished plugin download task.- Parameters:
parent- The parent componenttask- The finished plugin download taskrestartRequired- true if a restart is required- Since:
- 6797
-
buildSearchFieldPanel
-
addRadioButton
-
addButton
-
buildActionPanel
-
buildPluginListPanel
-
addGui
Description copied from interface:PreferenceSettingAdd the GUI elements to the dialog. The elements should be initialized after the current preferences.- Specified by:
addGuiin interfacePreferenceSetting- Overrides:
addGuiin classExtensibleTabPreferenceSetting- Parameters:
gui- the preferences tab pane
-
configureSites
-
getPluginsScheduledForUpdateOrDownload
Replies the set of plugins waiting for update or download- Returns:
- the set of plugins waiting for update or download
-
getNewlyActivatedPlugins
Replies the list of plugins which have been added by the user to the set of activated plugins- Returns:
- the list of newly activated plugins
-
ok
Description copied from interface:PreferenceSettingCalled when OK is pressed to save the setting in the preferences file. Return true when restart is required.- Returns:
trueif restart is required
-
readLocalPluginInformation
Reads locally available information about plugins from the local file system. Scans cached plugin lists from plugin download sites and locally available plugin jar files. -
getHelpContext
Description copied from interface:TabPreferenceSettingReturns the help context for this preferences settings tab.- Specified by:
getHelpContextin interfaceTabPreferenceSetting- Overrides:
getHelpContextin classDefaultTabPreferenceSetting- Returns:
- the help context for this preferences settings tab
-