diff --git a/AlgebraicDataflowArchitectureModel/src/application/actions/NewResourceAction.java b/AlgebraicDataflowArchitectureModel/src/application/actions/NewResourceAction.java index b01fc46..bd9aad2 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/actions/NewResourceAction.java +++ b/AlgebraicDataflowArchitectureModel/src/application/actions/NewResourceAction.java @@ -1,28 +1,24 @@ package application.actions; -import java.awt.event.ActionEvent; - -import javax.swing.JOptionPane; - import application.editor.Editor; -import models.dataConstraintModel.ResourcePath; + +import javax.swing.*; +import java.awt.event.ActionEvent; public class NewResourceAction extends AbstractEditorAction { - /** - * - */ - private static final long serialVersionUID = -4439207504700741286L; + private static final long serialVersionUID = -4439207504700741286L; - public NewResourceAction(Editor editor) { - super("Resource...", editor); - } + public NewResourceAction(Editor editor) { + super("Resource...", editor); + } - @Override - public void actionPerformed(ActionEvent e) { - String resName = JOptionPane.showInputDialog("Resourece Name:"); - if (resName == null) return; - editor.addResourcePath(null, resName); - } - + @Override + public void actionPerformed(ActionEvent e) { + String resName = JOptionPane.showInputDialog("Resource Name:"); + if (resName == null) { + return; + } + editor.addResourcePath(null, resName); + } }