Changeset 6623 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
- Timestamp:
- 2014-01-04T06:39:00+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r6603 r6623 13 13 import java.awt.event.ComponentAdapter; 14 14 import java.awt.event.ComponentEvent; 15 import java.lang.reflect.InvocationTargetException; 15 16 import java.util.ArrayList; 16 17 import java.util.Collection; … … 138 139 gc.gridx = 1; 139 140 gc.weightx = 1.0; 140 pnl.add(tfFilter = new JosmTextField(), gc); 141 tfFilter = new JosmTextField(); 142 pnl.add(tfFilter, gc); 141 143 tfFilter.setToolTipText(tr("Enter a search expression")); 142 144 SelectAllOnFocusGainedDecorator.decorate(tfFilter); … … 158 160 pnl.add(buildSearchFieldPanel(), BorderLayout.NORTH); 159 161 model = new PluginPreferencesModel(); 160 spPluginPreferences = new JScrollPane(pnlPluginPreferences = new PluginListPanel(model)); 162 pnlPluginPreferences = new PluginListPanel(model); 163 spPluginPreferences = new JScrollPane(pnlPluginPreferences); 161 164 spPluginPreferences.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); 162 165 spPluginPreferences.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); … … 181 184 protected JTabbedPane buildContentPane() { 182 185 JTabbedPane pane = getTabPane(); 186 pnlPluginUpdatePolicy = new PluginUpdatePolicyPanel(); 183 187 pane.addTab(tr("Plugins"), buildPluginListPanel()); 184 pane.addTab(tr("Plugin update policy"), pnlPluginUpdatePolicy = new PluginUpdatePolicyPanel());188 pane.addTab(tr("Plugin update policy"), pnlPluginUpdatePolicy); 185 189 return pane; 186 190 } … … 363 367 } 364 368 }); 365 } catch (Exception e) { 366 e.printStackTrace(); 369 } catch (InterruptedException e) { 370 Main.error(e); 371 } catch (InvocationTargetException e) { 372 Main.error(e); 367 373 } 368 374 } … … 482 488 private DefaultListModel model; 483 489 484 protected void build() {490 protected final void build() { 485 491 setLayout(new GridBagLayout()); 486 492 add(new JLabel(tr("Add JOSM Plugin description URL.")), GBC.eol());
Note:
See TracChangeset
for help on using the changeset viewer.