Changeset 24559 in osm for applications/editors/josm/plugins/smed/src
- Timestamp:
- 2010-12-03T16:19:59+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/smed/src/smed
- Files:
-
- 2 edited
-
Smed.java (modified) (1 diff)
-
tabs/SmedTabbedPane.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/smed/Smed.java
r23479 r24559 155 155 smedTab.closeDialog(); 156 156 } 157 158 if(Main.map != null) { 159 // von SmedTabbedPane nach hier verlagert, damit sicher ist Main.map != null 160 SmedPluggable p = SmedTabbedPane.getCurPlugin(); 161 162 if(p != null) p.hasFocus(); 163 } 157 164 } 158 165 -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabbedPane.java
r23445 r24559 34 34 private SmedPluginManager manager = null; 35 35 private int activeIndex = -1; 36 static private SmedPluggable curPlugin = null; 36 37 37 38 public SmedTabbedPane() { … … 64 65 tabbedPane.setMnemonicAt(i, KeyEvent.VK_1 + i); 65 66 if(i == 0) { 66 p.hasFocus();67 curPlugin = p; 67 68 activeIndex = 0; 68 69 } … … 94 95 activeIndex = pane.getSelectedIndex(); 95 96 for(SmedPluggable p : plugins) { 96 if(p.getIndex() == activeIndex) p.hasFocus(); 97 if(p.getIndex() == activeIndex) { 98 p.hasFocus(); 99 curPlugin = p; 100 } 97 101 } 98 102 } … … 108 112 public static List<SmedPluggable> getPlugins() { return plugins; } 109 113 public static JTabbedPane getTabbedPane() { return tabbedPane; } 114 public static SmedPluggable getCurPlugin() { return curPlugin; } 110 115 }
Note:
See TracChangeset
for help on using the changeset viewer.
