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
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
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());
|
||||
JFileChooser chooser = FileUtils.createFileChooser(FolderType.PathOutput,
|
||||
filepath);
|
||||
|
Loading…
Reference in New Issue
Block a user