Changeset 18207 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
- Timestamp:
- 2009-10-18T18:11:09+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r17710 r18207 7 7 import java.awt.event.ActionListener; 8 8 import java.awt.event.KeyEvent; 9 import java.util.LinkedList;10 9 11 10 import javax.swing.JCheckBoxMenuItem; … … 75 74 * 1.3 23-Aug-2009 - improve georeferencing action cancellation 76 75 * - fixed bug of raster image loaded from cache not working on Java1.6 77 * - improve mouse click bounce detection during georeferencing process 76 * - improve mouse click bounce detection during georeferencing process 77 * 1.4 17-Oct-2009 - add support for new Lambert CC 9 Zones projection 78 78 */ 79 79 public class CadastrePlugin extends Plugin { 80 static String VERSION = "1. 3";80 static String VERSION = "1.4"; 81 81 82 82 static JMenu cadastreJMenu; … … 121 121 122 122 refreshConfiguration(); 123 refreshMenu();124 123 125 124 UploadAction.registerUploadHook(new CheckSourceUploadHook()); 126 125 } 127 126 128 public void refreshMenu() throws Exception{127 public static void refreshMenu() { 129 128 MainMenu menu = Main.main.menu; 130 129 … … 207 206 } else 208 207 System.out.println("shortcut F11 already redefined; do not change"); 208 209 refreshMenu(); 209 210 } 210 211 … … 214 215 } 215 216 216 private void setEnabledAll(boolean isEnabled) { 217 private static void setEnabledAll(boolean isEnabled) { 218 boolean isLambertCC9Zones = Main.proj instanceof LambertCC9Zones; 217 219 for (int i = 0; i < cadastreJMenu.getItemCount(); i++) { 218 220 JMenuItem item = cadastreJMenu.getItem(i); 219 221 if (item != null) 220 if (item.getText().equals(MenuActionGrab .name)||221 item.getText().equals(MenuActionGrab PlanImage.name) /*||222 if (item.getText().equals(MenuActionGrabPlanImage.name) /*|| 223 item.getText().equals(MenuActionGrab.name) || 222 224 item.getText().equals(MenuActionBoundaries.name) || 223 225 item.getText().equals(MenuActionBuildings.name)*/) { … … 239 241 setEnabledAll(false); 240 242 Lambert.layoutZone = -1; 243 LambertCC9Zones.layoutZone = -1; 241 244 } 242 245 } … … 248 251 || Main.proj.toString().equals(new UTM_20N_Guadeloupe_Ste_Anne().toString()) 249 252 || Main.proj.toString().equals(new UTM_20N_Martinique_Fort_Desaix().toString()) 250 || Main.proj.toString().equals(new GaussLaborde_Reunion().toString()); 253 || Main.proj.toString().equals(new GaussLaborde_Reunion().toString()) 254 || Main.proj.toString().equals(new LambertCC9Zones().toString()); 251 255 } 252 256
Note:
See TracChangeset
for help on using the changeset viewer.