Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java
index 469cbbc9b81..91c029438cf 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java
@@ -16,6 +16,7 @@ import org.eclipse.osee.ats.artifact.GoalArtifact;
import org.eclipse.osee.ats.config.AtsBulkLoad;
import org.eclipse.osee.ats.editor.SMAEditor;
import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.GoalManager;
import org.eclipse.osee.framework.logging.OseeLevel;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.skynet.widgets.dialog.EntryDialog;
@@ -37,10 +38,10 @@ public class NewGoal extends Action {
super.run();
AtsBulkLoad.loadConfig(true);
try {
- EntryDialog ed = new EntryDialog("New Goal", "Enter Title");
- if (ed.open() == 0) {
- String title = ed.getEntry();
- GoalArtifact goalArt = GoalArtifact.createGoal(title);
+ EntryDialog dialog = new EntryDialog("New Goal", "Enter Title");
+ if (dialog.open() == 0) {
+ String title = dialog.getEntry();
+ GoalArtifact goalArt = GoalManager.createGoal(title);
goalArt.persist();
SMAEditor.editArtifact(goalArt);
}

Back to the top