Changeset 29803 in osm for applications/editors/josm/plugins
- Timestamp:
- 2013-08-01T16:51:32+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r29028 r29803 14 14 import org.apache.log4j.PropertyConfigurator; 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.actions.ExtensionFileFilter; 16 17 import org.openstreetmap.josm.actions.JosmAction; 17 18 import org.openstreetmap.josm.plugins.Plugin; … … 91 92 92 93 // add menu entries 93 Main.main.menu.fileMenu.insert(loadFileAction, 8); 94 Main.main.menu.fileMenu.insertSeparator(9); 94 //Main.main.menu.fileMenu.insert(loadFileAction, 8); 95 96 //Main.main.menu.fileMenu.insertSeparator(9); 97 98 ExtensionFileFilter.importers.add(new ImportImageFileImporter()); 95 99 96 100 } catch (Exception e) { -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r28367 r29803 29 29 */ 30 30 public LoadImageAction() { 31 super(tr("Import image"), (String)null, tr("Import georeferenced image"), null, false, "importimage/loadimage", true);31 super(tr("Import image"), (String)null, tr("Import georeferenced image"), null, true, "importimage/loadimage", true); 32 32 } 33 33 -
applications/editors/josm/plugins/imagewaypoint/src/org/insignificant/josm/plugins/imagewaypoint/ImageWayPointPlugin.java
r29799 r29803 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.event.ActionEvent;6 5 import java.io.File; 7 6 import java.io.IOException; … … 11 10 import java.util.List; 12 11 13 import javax.swing.JFileChooser;14 12 import javax.swing.filechooser.FileFilter; 15 13 16 14 import org.openstreetmap.josm.Main; 17 15 import org.openstreetmap.josm.actions.ExtensionFileFilter; 18 import org.openstreetmap.josm.actions.JosmAction;19 import org.openstreetmap.josm.gui.MainMenu;20 16 import org.openstreetmap.josm.gui.MapFrame; 21 17 import org.openstreetmap.josm.gui.layer.Layer; -
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.