Changeset 35294 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-01-13T21:45:43+01:00 (5 years ago)
Author:
simon04
Message:

JOSM/comfort0: EditorLauncher

Location:
applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/EditLevel0LAction.java

    r35293 r35294  
    5959        final DataSet dataSet = MainApplication.getLayerManager().getEditDataSet();
    6060        final Path path = writeLevel0(dataSet);
    61         final Process editor = new ProcessBuilder("kate", path.toString()).start();
     61        final Process editor = new EditorLauncher(path).launch();
    6262        Logging.info("Comfort0: Launching editor on file {0}", path);
    6363        new Thread(() -> awaitEditing(dataSet, path, editor), path.getFileName().toString()).start();
     
    7070                .replace("\u200F", "")
    7171                .getBytes(CHARSET);
    72         final Path path = Files.createTempFile("level0", ".txt");
     72        final Path path = Files.createTempFile("josm_level0_", ".txt");
    7373        Files.write(path, level0);
    7474        return path;
Note: See TracChangeset for help on using the changeset viewer.