Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2012-01-23 21:13:19 +0000
committerRyan D. Brooks2012-01-23 21:13:19 +0000
commit89bfb913fe0c9ae1ad336e247d8694a27d323199 (patch)
treeedf2e39e67c548c58409489c1278d9db6868a0e4 /plugins/org.eclipse.osee.ats
parentc8332f3ea8237bb650f0718311691699bf4dc3e3 (diff)
downloadorg.eclipse.osee-89bfb913fe0c9ae1ad336e247d8694a27d323199.tar.gz
org.eclipse.osee-89bfb913fe0c9ae1ad336e247d8694a27d323199.tar.xz
org.eclipse.osee-89bfb913fe0c9ae1ad336e247d8694a27d323199.zip
bug[ats_U8FF8]: Error when saving tasks marked Complete
Diffstat (limited to 'plugins/org.eclipse.osee.ats')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditStatusAction.java7
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewer.java2
3 files changed, 5 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditStatusAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditStatusAction.java
index c98ac56b6ea..07d09d08ac1 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditStatusAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditStatusAction.java
@@ -29,15 +29,13 @@ public class EditStatusAction extends AbstractAtsAction {
private final ISelectedAtsArtifacts selectedAtsArtifacts;
private final XViewer xViewer;
- private final boolean persist;
private final IDirtiableEditor editor;
- public EditStatusAction(ISelectedAtsArtifacts selectedAtsArtifacts, IDirtiableEditor editor, XViewer xViewer, boolean persist) {
+ public EditStatusAction(ISelectedAtsArtifacts selectedAtsArtifacts, IDirtiableEditor editor, XViewer xViewer) {
super("Edit Status", IAction.AS_PUSH_BUTTON);
this.selectedAtsArtifacts = selectedAtsArtifacts;
this.editor = editor;
this.xViewer = xViewer;
- this.persist = persist;
setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.EDIT));
}
@@ -45,7 +43,7 @@ public class EditStatusAction extends AbstractAtsAction {
public void runWithException() throws OseeCoreException {
Collection<AbstractWorkflowArtifact> smaArts =
Collections.castMatching(AbstractWorkflowArtifact.class, selectedAtsArtifacts.getSelectedSMAArtifacts());
- if (SMAPromptChangeStatus.promptChangeStatus(smaArts, persist)) {
+ if (SMAPromptChangeStatus.promptChangeStatus(smaArts, true)) {
if (xViewer != null) {
xViewer.update(selectedAtsArtifacts.getSelectedSMAArtifacts().toArray(), null);
}
@@ -53,6 +51,7 @@ public class EditStatusAction extends AbstractAtsAction {
editor.onDirtied();
}
}
+
}
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java
index 74003331b73..a604ac080d7 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java
@@ -125,7 +125,7 @@ public class TaskXViewer extends WorldXViewer {
public void createMenuActions() {
super.createMenuActions();
- editStatusAction = new EditStatusAction(this, this, this, false);
+ editStatusAction = new EditStatusAction(this, this, this);
editAssigneeAction = new EditAssigneeAction(this, this);
addNewTaskAction = new Action("New Task", IAction.AS_PUSH_BUTTON) {
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewer.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewer.java
index c81e1caf994..168b2398d4a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewer.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewer.java
@@ -135,7 +135,7 @@ public class WorldXViewer extends XViewer implements ISelectedAtsArtifacts, IPer
subscribedAction = new SubscribedAction(this);
deletePurgeAtsObjectAction = new DeletePurgeAtsArtifactsAction(this, false);
emailAction = new EmailActionAction(this);
- editStatusAction = new EditStatusAction(this, this, this, true);
+ editStatusAction = new EditStatusAction(this, this, this);
editAssigneeAction = new EditAssigneeAction(this, this);
new Action("Edit", IAction.AS_PUSH_BUTTON) {

Back to the top