public final class PluginPreference extends DefaultTabPreferenceSetting
Modifier and Type | Class and Description |
---|---|
(package private) class |
PluginPreference.ConfigureSitesAction
The action for configuring the plugin download sites
|
(package private) class |
PluginPreference.DownloadAvailablePluginsAction
The action for downloading the list of available plugins
|
static class |
PluginPreference.Factory
Factory used to create a new
PluginPreference . |
private static class |
PluginPreference.PluginConfigurationSitesPanel |
(package private) class |
PluginPreference.SearchFieldAdapter
Applies the current filter condition in the filter text field to the
model
|
(package private) class |
PluginPreference.UpdateSelectedPluginsAction
The action for updating the list of selected plugins
|
Modifier and Type | Field and Description |
---|---|
private PluginPreferencesModel |
model |
private boolean |
pluginPreferencesActivated
is set to true if this preference pane has been selected
by the user
|
private PluginListPanel |
pnlPluginPreferences |
private PluginUpdatePolicyPanel |
pnlPluginUpdatePolicy |
private javax.swing.JScrollPane |
spPluginPreferences |
private JosmTextField |
tfFilter |
Modifier | Constructor and Description |
---|---|
private |
PluginPreference() |
Modifier and Type | Method and Description |
---|---|
void |
addGui(PreferenceTabbedPane gui)
Add the GUI elements to the dialog.
|
protected javax.swing.JPanel |
buildActionPanel() |
protected javax.swing.JTabbedPane |
buildContentPane() |
static java.lang.String |
buildDownloadSummary(PluginDownloadTask task)
Returns the download summary string to be shown.
|
protected javax.swing.JPanel |
buildPluginListPanel() |
protected javax.swing.JPanel |
buildSearchFieldPanel() |
private void |
configureSites() |
java.util.List<PluginInformation> |
getNewlyActivatedPlugins() |
java.util.Set<PluginInformation> |
getPluginsScheduledForUpdateOrDownload()
Replies the list of plugins waiting for update or download
|
static void |
notifyDownloadResults(java.awt.Component parent,
PluginDownloadTask task,
boolean restartRequired)
Notifies user about result of a finished plugin download task.
|
boolean |
ok()
Called when OK is pressed to save the setting in the preferences file.
|
void |
readLocalPluginInformation()
Reads locally available information about plugins from the local file system.
|
addSubTab, addSubTab, createPreferenceTabWithScrollPane, getDescription, getIconName, getSubTab, getTabPane, getTitle, getTooltip, registerSubTab, selectSubTab
isExpert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExpert
private JosmTextField tfFilter
private PluginListPanel pnlPluginPreferences
private PluginPreferencesModel model
private javax.swing.JScrollPane spPluginPreferences
private PluginUpdatePolicyPanel pnlPluginUpdatePolicy
private boolean pluginPreferencesActivated
private PluginPreference()
public static java.lang.String buildDownloadSummary(PluginDownloadTask task)
task
- The plugin download task that has completedpublic static void notifyDownloadResults(java.awt.Component parent, PluginDownloadTask task, boolean restartRequired)
parent
- The parent componenttask
- The finished plugin download taskrestartRequired
- true if a restart is requiredprotected javax.swing.JPanel buildSearchFieldPanel()
protected javax.swing.JPanel buildActionPanel()
protected javax.swing.JPanel buildPluginListPanel()
protected javax.swing.JTabbedPane buildContentPane()
public void addGui(PreferenceTabbedPane gui)
PreferenceSetting
gui
- the preferences tab paneprivate void configureSites()
public java.util.Set<PluginInformation> getPluginsScheduledForUpdateOrDownload()
public java.util.List<PluginInformation> getNewlyActivatedPlugins()
public boolean ok()
PreferenceSetting
true
if restart is requiredpublic void readLocalPluginInformation()