|
@@ -15,6 +15,7 @@ import java.awt.event.MouseListener;
|
|
|
import java.awt.event.MouseMotionListener;
|
|
|
import java.awt.geom.Line2D;
|
|
|
import java.io.File;
|
|
|
+import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Timer;
|
|
|
import java.util.TimerTask;
|
|
@@ -402,6 +403,14 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
|
model.getSelectedCpsObjects().clear();
|
|
|
controller.addSelectedObject(tempCps);
|
|
|
}
|
|
|
+ if(dragged == true){
|
|
|
+ try {
|
|
|
+ controller.autoSave();
|
|
|
+ } catch (IOException e1) {
|
|
|
+ // TODO Auto-generated catch block
|
|
|
+ e1.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
dragged = false;
|
|
|
|
|
|
// Rightclick List
|