org.openstreetmap.josm.gui.preferences
Class PluginPreference

java.lang.Object
  extended by org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
      extended by org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
          extended by org.openstreetmap.josm.gui.preferences.PluginPreference
All Implemented Interfaces:
PreferenceSetting, TabPreferenceSetting

public class PluginPreference
extends DefaultTabPreferenceSetting


Nested Class Summary
(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
           
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 downloading the list of available plugins
 
Field Summary
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  javax.swing.JTextField tfFilter
           
 
Constructor Summary
private PluginPreference()
           
 
Method Summary
 void addGui(PreferenceTabbedPane gui)
          Add the GUI elements to the dialog.
protected  javax.swing.JPanel buildActionPanel()
           
protected  javax.swing.JPanel buildContentPanel()
           
static java.lang.String buildDownloadSummary(PluginDownloadTask task)
           
protected  javax.swing.JPanel buildPluginListPanel()
           
protected  javax.swing.JPanel buildSearchFieldPanel()
           
private  void configureSites()
           
 java.util.List<PluginInformation> getPluginsScheduledForUpdateOrDownload()
          Replies the list of plugins waiting for update or download
 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.
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting
createPreferenceTabWithScrollPane, getDescription, getIconName, getTitle, getTooltip
 
Methods inherited from class org.openstreetmap.josm.gui.preferences.DefaultPreferenceSetting
isExpert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openstreetmap.josm.gui.preferences.PreferenceSetting
isExpert
 

Field Detail

tfFilter

private javax.swing.JTextField tfFilter

pnlPluginPreferences

private PluginListPanel pnlPluginPreferences

model

private PluginPreferencesModel model

spPluginPreferences

private javax.swing.JScrollPane spPluginPreferences

pnlPluginUpdatePolicy

private PluginUpdatePolicyPanel pnlPluginUpdatePolicy

pluginPreferencesActivated

private boolean pluginPreferencesActivated
is set to true if this preference pane has been selected by the user

Constructor Detail

PluginPreference

private PluginPreference()
Method Detail

buildDownloadSummary

public static java.lang.String buildDownloadSummary(PluginDownloadTask task)

buildSearchFieldPanel

protected javax.swing.JPanel buildSearchFieldPanel()

buildActionPanel

protected javax.swing.JPanel buildActionPanel()

buildPluginListPanel

protected javax.swing.JPanel buildPluginListPanel()

buildContentPanel

protected javax.swing.JPanel buildContentPanel()

addGui

public void addGui(PreferenceTabbedPane gui)
Description copied from interface: PreferenceSetting
Add the GUI elements to the dialog. The elements should be initialized after the current preferences.


configureSites

private void configureSites()

getPluginsScheduledForUpdateOrDownload

public java.util.List<PluginInformation> getPluginsScheduledForUpdateOrDownload()
Replies the list of plugins waiting for update or download

Returns:
the list of plugins waiting for update or download

ok

public boolean ok()
Description copied from interface: PreferenceSetting
Called when OK is pressed to save the setting in the preferences file. Return true when restart is required.


readLocalPluginInformation

public void 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.



JOSM