Changeset 9526 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs
- Timestamp:
- 2016-01-18T19:35:32+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r9059 r9526 5 5 6 6 import java.awt.BorderLayout; 7 import java.awt.Component; 7 8 import java.awt.Container; 8 9 import java.awt.Dimension; … … 70 71 /** the unique instance of the cache manager */ 71 72 private static volatile ChangesetCacheManager instance; 73 private JTabbedPane pnlChangesetDetailTabs; 72 74 73 75 /** … … 164 166 protected JPanel buildChangesetDetailPanel() { 165 167 JPanel pnl = new JPanel(new BorderLayout()); 166 JTabbedPane tp = new JTabbedPane(); 168 JTabbedPane tp = new JTabbedPane(); 169 pnlChangesetDetailTabs = tp; 167 170 168 171 // -- add the details panel … … 647 650 648 651 /** 652 * Selects the given component in the detail tabbed panel 653 * @param clazz the class of the component to select 654 */ 655 public void setSelectedComponentInDetailPanel(Class<? extends JComponent> clazz) { 656 for (Component component : pnlChangesetDetailTabs.getComponents()) { 657 if (component.getClass().equals(clazz)) { 658 pnlChangesetDetailTabs.setSelectedComponent(component); 659 break; 660 } 661 } 662 } 663 664 /** 649 665 * Runs the given changeset download task. 650 666 * @param task The changeset download task to run
Note:
See TracChangeset
for help on using the changeset viewer.