Ignore:
Timestamp:
2015-02-09T08:43:18+01:00 (9 years ago)
Author:
bastiK
Message:

see #11090 - basic support for plugin loading at runtime.

This is still in testing stage. It will be announced on
the mailing list when plugin authors can start to adapt
their code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java

    r7005 r8017  
    2525 */
    2626public class PluginPreferencesModel extends Observable {
     27    // remember the initial list of active plugins
     28    private final Set<String> currentActivePlugins;
    2729    private final List<PluginInformation> availablePlugins = new ArrayList<>();
     30    private String filterExpression;
    2831    private final List<PluginInformation> displayedPlugins = new ArrayList<>();
    2932    private final Map<PluginInformation, Boolean> selectedPluginsMap = new HashMap<>();
     33    // plugins that still require an update/download
    3034    private Set<String> pendingDownloads = new HashSet<>();
    31     private String filterExpression;
    32     private Set<String> currentActivePlugins;
    3335
    3436    /**
     
    197199        PluginInformation pi = getPluginInformation(name);
    198200        if (pi != null) {
    199             selectedPluginsMap.put(pi,selected);
     201            selectedPluginsMap.put(pi, selected);
    200202            if (pi.isUpdateRequired()) {
    201203                pendingDownloads.add(pi.name);
     
    213215     * @param plugins the list of plugins to clear for a pending download
    214216     */
    215     public void clearPendingPlugins(Collection<PluginInformation> plugins){
     217    public void clearPendingPlugins(Collection<PluginInformation> plugins) {
    216218        if (plugins == null || plugins.isEmpty()) return;
    217         for(PluginInformation pi: plugins) {
     219        for (PluginInformation pi: plugins) {
    218220            pendingDownloads.remove(pi.name);
    219221        }
Note: See TracChangeset for help on using the changeset viewer.