From b501b2c51d0c8a8b3cdfa6effdfc2d22851b94e2 Mon Sep 17 00:00:00 2001 From: pechoux <romain.pechoux@loria.fr> Date: Fri, 17 Jan 2020 14:35:25 +0100 Subject: [PATCH] fileChooser opens directly in the examples subdictory --- .../complexityparser/types/FOTierList.java | 25 ------------------- src/main/java/view/EditorView.java | 3 ++- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/main/java/complexityparser/types/FOTierList.java b/src/main/java/complexityparser/types/FOTierList.java index 15db161..b9b1f0e 100644 --- a/src/main/java/complexityparser/types/FOTierList.java +++ b/src/main/java/complexityparser/types/FOTierList.java @@ -70,31 +70,6 @@ public class FOTierList extends ArrayList<FOTier>{ add(new FOTier(out,env,in)); } - - /** - * Removes the FOTier at index i. - * @param i - the index of the FOTier to remove. - */ -// public void remove(int i) { -// remove(i); -// } - - /** - * @return the number of FOTiers in the FOTierList. - */ -// public int size() { -// return results.size(); -// } - - /** - * - * @param i - the index of the FOTier to get. - * @return the FOTier of index i. - */ -// public FOTier get(int i) { -// return results.get(i); - // } - /** * * @param in - input tiers. diff --git a/src/main/java/view/EditorView.java b/src/main/java/view/EditorView.java index 90aa5ad..851d96b 100644 --- a/src/main/java/view/EditorView.java +++ b/src/main/java/view/EditorView.java @@ -73,7 +73,8 @@ public class EditorView extends JPanel { @Override public void actionPerformed(ActionEvent actionEvent) { JFileChooser fc = new JFileChooser(); - fc.setCurrentDirectory(new File(System.getProperty("user.dir"))); + String s = System.getProperty("user.dir")+System.getProperty("file.separator")+"examples"; + fc.setCurrentDirectory(new File(s)); if(JFileChooser.APPROVE_OPTION == fc.showOpenDialog(parent)) { File f = fc.getSelectedFile(); try { -- GitLab