- Timestamp:
- 2012-12-03T20:11:59+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r5601 r5609 112 112 this.cb = cb; 113 113 } 114 protected void selectRequiredPlugins(PluginInformation info) { 115 if (info != null && info.requires != null) { 116 for (String s : info.getRequiredPlugins()) { 117 if (!model.isSelectedPlugin(s)) { 118 model.setPluginSelected(s, true); 119 selectRequiredPlugins(model.getPluginInformation(s)); 120 } 121 } 122 } 123 } 114 124 public void actionPerformed(ActionEvent e) { 115 125 // Select/unselect corresponding plugin in the model … … 118 128 if (cb.isSelected() && cb.pi.requires != null) { 119 129 // Select required plugins 120 for (String s : cb.pi.getRequiredPlugins()) { 121 model.setPluginSelected(s, true); 122 } 130 selectRequiredPlugins(cb.pi); 123 131 // Alert user if plugin requirements are not met 124 132 PluginHandler.checkRequiredPluginsPreconditions(PluginListPanel.this, model.getAvailablePlugins(), cb.pi, false);
Note:
See TracChangeset
for help on using the changeset viewer.