Changeset 6386 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2008-01-14T12:15:13+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r6374 r6386 88 88 Layer.listeners.remove(this); 89 89 90 // Add/Remove the upload hook 91 try 92 { 93 LinkedList<UploadHook> hooks = ((UploadAction)Main.main.menu.upload).uploadHooks; 94 Iterator<UploadHook> hooksIt = hooks.iterator(); 95 while( hooksIt.hasNext() ) 96 { 97 if( hooksIt.next() instanceof ValidateUploadHook ) 98 { 99 if( newFrame == null ) 100 hooksIt.remove(); 101 break; 102 } 103 } 104 if( newFrame != null ) 105 hooks.add( 0, new ValidateUploadHook() ); 106 } 107 catch(Throwable t) 108 { 109 // JOSM has no upload hooks in older versions 110 } 90 LinkedList<UploadHook> hooks = ((UploadAction)Main.main.menu.upload).uploadHooks; 91 Iterator<UploadHook> hooksIt = hooks.iterator(); 92 while( hooksIt.hasNext() ) 93 { 94 if( hooksIt.next() instanceof ValidateUploadHook ) 95 { 96 if( newFrame == null ) 97 hooksIt.remove(); 98 break; 99 } 100 } 101 if( newFrame != null ) 102 hooks.add( 0, new ValidateUploadHook() ); 111 103 } 112 104
Note:
See TracChangeset
for help on using the changeset viewer.