|
@@ -336,7 +336,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
@Override
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
try {
|
|
|
- controller.loadFile(controller.getUndoSave());
|
|
|
+ controller.loadAutoSave(controller.getUndoSave());
|
|
|
canvas.repaint();
|
|
|
ArrayList<HolonElement> tempList = new ArrayList<>();
|
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
@@ -353,7 +353,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
}
|
|
|
}
|
|
|
unitGraph.empty();
|
|
|
- } catch (IOException | ArchiveException eex) {
|
|
|
+ } catch (IOException eex) {
|
|
|
// TODO Auto-generated catch block
|
|
|
eex.printStackTrace();
|
|
|
}
|
|
@@ -369,7 +369,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
@Override
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
try {
|
|
|
- controller.loadFile(controller.getRedoSave());
|
|
|
+ controller.loadAutoSave(controller.getRedoSave());
|
|
|
canvas.repaint();
|
|
|
ArrayList<HolonElement> tempList = new ArrayList<>();
|
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
@@ -386,7 +386,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
}
|
|
|
}
|
|
|
unitGraph.empty();
|
|
|
- } catch (IOException | ArchiveException ex) {
|
|
|
+ } catch (IOException ex) {
|
|
|
// TODO Auto-generated catch block
|
|
|
ex.printStackTrace();
|
|
|
}
|
|
@@ -1648,7 +1648,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
private void menuUndoActionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
try {
|
|
|
- controller.loadFile(controller.getUndoSave());
|
|
|
+ controller.loadAutoSave(controller.getUndoSave());
|
|
|
canvas.repaint();
|
|
|
ArrayList<HolonElement> tempList = new ArrayList<>();
|
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
@@ -1665,7 +1665,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
}
|
|
|
}
|
|
|
unitGraph.empty();
|
|
|
- } catch (IOException | ArchiveException e) {
|
|
|
+ } catch (IOException e) {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -1684,7 +1684,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
private void menuRedoActionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
try {
|
|
|
- controller.loadFile(controller.getRedoSave());
|
|
|
+ controller.loadAutoSave(controller.getRedoSave());
|
|
|
canvas.repaint();
|
|
|
ArrayList<HolonElement> tempList = new ArrayList<>();
|
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
@@ -1701,7 +1701,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
}
|
|
|
}
|
|
|
unitGraph.empty();
|
|
|
- } catch (IOException | ArchiveException e) {
|
|
|
+ } catch (IOException e) {
|
|
|
// TODO Auto-generated catch block
|
|
|
e.printStackTrace();
|
|
|
}
|