Changeset 30529 in osm for applications/editors/josm
- Timestamp:
- 2014-07-13T21:57:10+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/build.xml
r30416 r30529 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="opendata" default="dist" basedir="."> 3 <property name="plugin.main.version" value="7 001"/>3 <property name="plugin.main.version" value="7291"/> 4 4 <property name="plugin.author" value="Don-vip"/> 5 5 <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/> -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java
r30340 r30529 3 3 4 4 import java.awt.Image; 5 import java.awt.Toolkit;6 5 import java.io.File; 7 6 import java.net.URL; … … 58 57 private OdDialog dialog; 59 58 60 public OdPlugin(PluginInformation info) { // NO_UCD59 public OdPlugin(PluginInformation info) { 61 60 super(info); 62 61 if (instance == null) { … … 102 101 103 102 private void buildMenu() { 104 int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;105 103 for (Module module : ModuleHandler.moduleList) { 106 104 Map<DataSetCategory, JMenu> catMenus = new HashMap<DataSetCategory, JMenu>(); … … 141 139 } 142 140 if (item != null) { 143 MenuScroller.setScrollerFor(handlerMenu, (screenHeight / item.getPreferredSize().height)-3); 141 MenuScroller.setScrollerFor(handlerMenu, 142 MenuScroller.computeScrollCount(handlerMenu, item.getPreferredSize().height)); 144 143 handlerItem = endMenu.add(handlerMenu); 145 144 } … … 151 150 } 152 151 if (moduleMenu != null) { 153 //MenuScroller.setScrollerFor(moduleMenu, screenHeight / moduleMenu.getItem(0).getPreferredSize().height);154 152 menu.add(moduleMenu); 155 153 } 156 154 } 157 155 menu.addSeparator(); 158 /*JMenuItem itemIcon =*/ MainMenu.add(menu, new OpenPreferencesActions()); 159 //MenuScroller.setScrollerFor(menu, screenHeight / itemIcon.getPreferredSize().height); 156 MainMenu.add(menu, new OpenPreferencesActions()); 160 157 } 161 158 … … 212 209 return dialog; 213 210 } 214 215 /*216 private static final void fixUcDetectorTest() {217 FilterFactoryImpl n1 = new FilterFactoryImpl();218 DatumAliases n2 = new DatumAliases();219 EPSGCRSAuthorityFactory n3 = new EPSGCRSAuthorityFactory();220 DefaultFunctionFactory n4 = new DefaultFunctionFactory();221 ShapefileDirectoryFactory n5 = new ShapefileDirectoryFactory();222 ReferencingObjectFactory n6 = new ReferencingObjectFactory();223 BufferedCoordinateOperationFactory n7 = new BufferedCoordinateOperationFactory();224 }*/225 211 }
Note:
See TracChangeset
for help on using the changeset viewer.