Changeset 23864 in osm
- Timestamp:
- 2010-10-27T15:38:28+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/pdfimport/src/pdfimport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java
r23862 r23864 422 422 tr("File not found.")); 423 423 return null; 424 } catch (it.stefanochizzolini.clown.tokens.FileFormatException e1) {425 JOptionPane426 .showMessageDialog(427 Main.parent,428 tr("Could not parse file. Not a PDF file?"));429 return null;430 424 } catch (Exception e) { 431 425 JOptionPane -
applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportAction.java
r23702 r23864 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import it.stefanochizzolini.clown.documents.Document;7 import it.stefanochizzolini.clown.documents.Page;8 import it.stefanochizzolini.clown.documents.contents.objects.ContentObject;9 import it.stefanochizzolini.clown.files.File;10 import it.stefanochizzolini.clown.tokens.FileFormatException;11 12 6 import java.awt.event.ActionEvent; 13 7 import java.awt.event.KeyEvent; 14 8 15 import java.io.FileNotFoundException;16 17 import javax.swing.JFileChooser;18 import javax.swing.JOptionPane;19 import javax.swing.SwingUtilities;20 import javax.swing.filechooser.FileFilter;21 22 import org.openstreetmap.josm.Main;23 9 import org.openstreetmap.josm.actions.JosmAction; 24 import org.openstreetmap.josm.command.Command;25 import org.openstreetmap.josm.data.osm.DataSet;26 import org.openstreetmap.josm.gui.layer.OsmDataLayer;27 28 29 10 import org.openstreetmap.josm.tools.Shortcut; 30 11 … … 35 16 public class PdfImportAction extends JosmAction { 36 17 37 38 39 40 41 42 43 18 public PdfImportAction() { 19 super(tr("Import PDF file"), "pdf_import", 20 tr("Import PDF file."), Shortcut.registerShortcut( 21 "tools:pdfimport", tr("Tool: {0}", 22 tr("Import PDF file")), KeyEvent.VK_P, 23 Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 24 } 44 25 45 46 47 48 49 50 51 52 53 54 55 56 57 58 26 /** 27 * The action button has been clicked 28 * 29 * @param e 30 * Action Event 31 */ 32 public void actionPerformed(ActionEvent e) { 33 34 //show dialog asking to select coordinate axes and input coordinates and projection. 35 LoadPdfDialog dialog = new LoadPdfDialog(); 36 dialog.setAlwaysOnTop(true); 37 dialog.setTitle(tr("Import PDF")); 38 dialog.setVisible(true); 39 } 59 40 }
Note:
See TracChangeset
for help on using the changeset viewer.