Changeset 34425 in osm
- Timestamp:
- 2018-07-17T19:29:40+02:00 (6 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
r34423 r34425 300 300 actionPanel.showButton.setVisible(false); 301 301 setSize(new Dimension(380, 350)); 302 loadAction(); 302 if (!loadAction()) { 303 cancelAction(); 304 return; 305 } 303 306 } else { 304 307 setSize(new Dimension(450, 600)); 305 // setSize(450, 600); 306 } 308 } 309 setAlwaysOnTop(true); 310 setVisible(true); 307 311 } 308 312 … … 360 364 } 361 365 362 private voidloadAction() {366 private boolean loadAction() { 363 367 /* 364 368 * perform load PDF file to preview … … 368 372 369 373 if (newFileName == null) { 370 if (Preferences.getGuiMode() == Preferences.GuiMode.Simple) { 371 cancelAction(); 372 } else 373 return; 374 return false; 374 375 } 375 376 Logging.debug("PdfImport: Load Preview"); … … 425 426 } 426 427 }); 428 return true; 427 429 } 428 430 -
applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportAction.java
r34398 r34425 37 37 */ 38 38 LoadPdfDialog dialog = new LoadPdfDialog(); 39 dialog.setAlwaysOnTop(true);40 39 dialog.setTitle(tr("Import PDF")); 41 dialog.setVisible(true);42 40 } 43 41 }
Note:
See TracChangeset
for help on using the changeset viewer.