Changeset 23479 in osm for applications/editors/josm
- Timestamp:
- 2010-10-05T21:54:45+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/lights/src/lights/Lights.java
r23477 r23479 40 40 @Override 41 41 public boolean stop() { 42 // TODO Auto-generated method stub 42 if(sectors != null) { 43 sectors.setVisible(false); 44 sectors.dispose(); 45 } 43 46 return false; 44 47 } … … 78 81 public boolean hasFocus() { 79 82 manager.showVisualMessage(msg); 83 if(rbFiredN != null) 84 if(rbFiredN.isSelected()) sectors.setVisible(true); 80 85 return true; 81 86 } … … 83 88 @Override 84 89 public boolean lostFocus() { 85 // TODO Auto-generated method stub86 return false;90 if(sectors != null) sectors.setVisible(false); 91 return true; 87 92 } 88 93 -
applications/editors/josm/plugins/smed/src/smed/Smed.java
r23474 r23479 9 9 import java.net.URLClassLoader; 10 10 import java.util.Enumeration; 11 import java.util.List; 11 12 import java.util.ResourceBundle; 12 13 import java.util.jar.JarEntry; … … 22 23 23 24 import smed.io.SmedFile; 25 import smed.plug.ifc.SmedPluggable; 24 26 import smed.plug.util.JARFileFilter; 25 27 import smed.tabs.SmedTabAction; 28 import smed.tabs.SmedTabbedPane; 26 29 27 30 public class Smed extends Plugin{ … … 145 148 } else { 146 149 item.setEnabled(false); 150 List<SmedPluggable> plugins = SmedTabbedPane.getPlugins(); 151 152 if(plugins != null) { 153 for(SmedPluggable p : plugins) p.stop(); 154 } 147 155 smedTab.closeDialog(); 148 156 }
Note:
See TracChangeset
for help on using the changeset viewer.