Changeset 29803 in osm for applications/editors/josm/plugins/pdfimport
- Timestamp:
- 2013-08-01T16:51:32+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/pdfimport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pdfimport/build.xml
r29646 r29803 4 4 <property name="commit.message" value="Initial pdfimport version"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value=" 5236"/>6 <property name="plugin.main.version" value="6088"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java
r29644 r29803 65 65 public class LoadPdfDialog extends JFrame{ 66 66 67 class LoadProgressRenderer implements ProgressRenderer{ 67 class LoadProgressRenderer implements ProgressRenderer{ 68 68 private final JProgressBar pBar; 69 69 private String title = ""; … … 167 167 this.removeLayer(); 168 168 } 169 170 private void addListeners() { 169 170 private void addListeners() { 171 171 172 172 this.projectionCombo.addActionListener(new ActionListener() { -
applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java
r25349 r29803 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import javax.swing.JMenu;6 import javax.swing.JMenuItem;7 8 5 import org.openstreetmap.josm.Main; 6 import org.openstreetmap.josm.gui.MainMenu; 9 7 import org.openstreetmap.josm.plugins.Plugin; 10 8 import org.openstreetmap.josm.plugins.PluginInformation; … … 20 18 super(info); 21 19 name = tr("Import PDf file"); 22 JMenu toolsMenu = null; 23 for (int i = 0; i < Main.main.menu.getMenuCount() && toolsMenu == null; i++) { 24 JMenu menu = Main.main.menu.getMenu(i); 25 String name = menu.getText(); 26 if (name != null && name.equals(tr("Tools"))) { 27 toolsMenu = menu; 28 } 29 } 30 31 if (toolsMenu == null) { 32 toolsMenu = new JMenu(name); 33 toolsMenu.add(new JMenuItem(new PdfImportAction())); 34 Main.main.menu.add(toolsMenu, 2); 35 } else { 36 toolsMenu.addSeparator(); 37 toolsMenu.add(new JMenuItem(new PdfImportAction())); 38 } 20 MainMenu.add(Main.main.menu.dataMenu, new PdfImportAction()); 39 21 } 40 22 }
Note:
See TracChangeset
for help on using the changeset viewer.