package pipe.actions.file;

import pipe.gui.ApplicationSettings;
import pipe.views.PipeApplicationView;

import java.awt.event.ActionEvent;

public class CreateAction extends FileAction {

    public CreateAction() {
        super("New", "Create a new Petri net", "ctrl N");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        PipeApplicationView view = ApplicationSettings.getApplicationView();
        ApplicationSettings.getApplicationController().createNewTabFromFile(
                null, false);
    }
}

@@ -21,16 +21,67 @@
 .file;%0A%0A
+import pipe.controllers.PipeApplicationController;%0A
 import p
@@ -416,17 +416,29 @@
 tion
-View view
+Controller controller
  = A
@@ -470,20 +470,26 @@
 lication
-View
+Controller
 ();%0A    
@@ -496,43 +496,9 @@
     
-ApplicationSettings.getApplicationC
+c
 ontr
@@ -506,60 +506,29 @@
 ller
-()
 .create
-NewTabFromFile(%0A                null, false
+EmptyPetriNet(
 );%0A 

Fix bug when pressing new