Change default filename for paths.
This commit is contained in:
parent
97775a9714
commit
80df87ba51
@ -219,7 +219,7 @@ public class PathsPanel extends JPanel implements DrawingChangeListener, GraphCh
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
String filepath = String.format("path_%s_%d_%d.path",
|
String filepath = String.format("path_%s_%d_%d.path",
|
||||||
path.getGraph().getMapId().toLowerCase().replaceAll("[^a-z0-9_]", "_"),
|
path.getGraph().getMapId().toLowerCase().replaceAll("[^a-z0-9_]", ""),
|
||||||
path.getOrigin().getId(), path.getDestination().getId());
|
path.getOrigin().getId(), path.getDestination().getId());
|
||||||
JFileChooser chooser = FileUtils.createFileChooser(FolderType.PathOutput,
|
JFileChooser chooser = FileUtils.createFileChooser(FolderType.PathOutput,
|
||||||
filepath);
|
filepath);
|
||||||
|
Loading…
Reference in New Issue
Block a user