Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java38
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsArtifactAnnotations.java26
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DeadlineManager.java9
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Overview.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAMetrics.java12
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAUtil.java6
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/StateManager.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/AtsWorkPage.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsAddPeerToPeerReviewRule.java2
12 files changed, 52 insertions, 61 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java
index dc1b3b49af..dfa1104229 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java
@@ -114,7 +114,7 @@ public class SMAPrint extends Action {
return rd;
}
- private void getTaskHtml(XResultData rd) throws OseeCoreException {
+ private void getTaskHtml(XResultData rd) {
if (!(sma instanceof AbstractTaskableArtifact)) {
return;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java
index 9dedb79da1..09f79b5a91 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java
@@ -100,7 +100,7 @@ public class SMARelationsHyperlinkComposite extends Composite {
return false;
}
- private String getCompletedCancelledString(Artifact art) throws OseeCoreException {
+ private String getCompletedCancelledString(Artifact art) {
if (art instanceof AbstractWorkflowArtifact) {
if (((AbstractWorkflowArtifact) art).isCancelledOrCompleted()) {
return " " + ((AbstractWorkflowArtifact) art).getStateMgr().getCurrentStateName() + " ";
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
index 73f04a84f1..42c4cf165c 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
@@ -163,7 +163,7 @@ public class SMAWorkFlowSection extends SectionPart {
/**
* Override to apply different algorithm to current section expansion.
*/
- public boolean isCurrentSectionExpanded(String stateName) throws OseeCoreException {
+ public boolean isCurrentSectionExpanded(String stateName) {
return sma.getStateMgr().getCurrentStateName().equals(stateName);
}
@@ -306,7 +306,7 @@ public class SMAWorkFlowSection extends SectionPart {
}
}
- private void createTaskFooter(Composite parent, String forStateName) throws OseeCoreException {
+ private void createTaskFooter(Composite parent, String forStateName) {
if (sma instanceof AbstractTaskableArtifact) {
Composite comp = new Composite(parent, SWT.None);
GridLayout layout = new GridLayout(6, false);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java
index 8d3ece9a21..c26aa62420 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java
@@ -200,25 +200,25 @@ public class ValidateAtsDatabase extends WorldXNavigateItemAction {
artifacts.addAll(artifactsTemp);
}
count += artifacts.size();
- // testArtifactIds(artifacts);
- // testAtsAttributeValues(artifacts);
- // testAtsActionsHaveTeamWorkflow(artifacts);
- // testAtsWorkflowsHaveAction(artifacts);
- // testAtsWorkflowsHaveZeroOrOneVersion(artifacts);
- // testTasksHaveParentWorkflow(artifacts);
- // testReviewsHaveParentWorkflowOrActionableItems(artifacts);
- // testReviewsHaveValidDefectAndRoleXml(artifacts);
- // testTeamWorkflows(artifacts);
- // testAtsBranchManager(artifacts);
- // testTeamDefinitions(artifacts);
- // testVersionArtifacts(artifacts);
- // testStateMachineAssignees(artifacts);
- // testAtsLogs(artifacts);
- // testActionableItemToTeamDefinition(artifacts);
- // testTeamDefinitionHasWorkflow(artifacts);
- // for (IAtsHealthCheck atsHealthCheck : AtsHealthCheck.getAtsHealthCheckItems()) {
- // atsHealthCheck.validateAtsDatabase(artifacts, testNameToResultsMap);
- // }
+ testArtifactIds(artifacts);
+ testAtsAttributeValues(artifacts);
+ testAtsActionsHaveTeamWorkflow(artifacts);
+ testAtsWorkflowsHaveAction(artifacts);
+ testAtsWorkflowsHaveZeroOrOneVersion(artifacts);
+ testTasksHaveParentWorkflow(artifacts);
+ testReviewsHaveParentWorkflowOrActionableItems(artifacts);
+ testReviewsHaveValidDefectAndRoleXml(artifacts);
+ testTeamWorkflows(artifacts);
+ testAtsBranchManager(artifacts);
+ testTeamDefinitions(artifacts);
+ testVersionArtifacts(artifacts);
+ testStateMachineAssignees(artifacts);
+ testAtsLogs(artifacts);
+ testActionableItemToTeamDefinition(artifacts);
+ testTeamDefinitionHasWorkflow(artifacts);
+ for (IAtsHealthCheck atsHealthCheck : AtsHealthCheck.getAtsHealthCheckItems()) {
+ atsHealthCheck.validateAtsDatabase(artifacts, testNameToResultsMap);
+ }
if (monitor != null) {
monitor.worked(1);
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsArtifactAnnotations.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsArtifactAnnotations.java
index 2cb04954cb..915c602cf5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsArtifactAnnotations.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsArtifactAnnotations.java
@@ -11,11 +11,7 @@
package org.eclipse.osee.ats.util;
import java.util.Set;
-import java.util.logging.Level;
import org.eclipse.osee.ats.artifact.AbstractWorkflowArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.skynet.core.artifact.annotation.ArtifactAnnotation;
import org.eclipse.osee.framework.skynet.core.artifact.annotation.IArtifactAnnotation;
@@ -28,20 +24,16 @@ public class AtsArtifactAnnotations implements IArtifactAnnotation {
@Override
public void getAnnotations(Artifact artifact, Set<ArtifactAnnotation> annotations) {
- try {
- if (artifact instanceof AbstractWorkflowArtifact) {
- AbstractWorkflowArtifact sma = (AbstractWorkflowArtifact) artifact;
- Result result = sma.getDeadlineMgr().isDeadlineDateAlerting();
- if (result.isTrue()) {
- annotations.add(ArtifactAnnotation.getWarning("org.eclipse.osee.ats.deadline", result.getText()));
- }
- result = sma.getDeadlineMgr().isEcdDateAlerting();
- if (result.isTrue()) {
- annotations.add(ArtifactAnnotation.getWarning("org.eclipse.osee.ats.ecd", result.getText()));
- }
+ if (artifact instanceof AbstractWorkflowArtifact) {
+ AbstractWorkflowArtifact sma = (AbstractWorkflowArtifact) artifact;
+ Result result = sma.getDeadlineMgr().isDeadlineDateAlerting();
+ if (result.isTrue()) {
+ annotations.add(ArtifactAnnotation.getWarning("org.eclipse.osee.ats.deadline", result.getText()));
+ }
+ result = sma.getDeadlineMgr().isEcdDateAlerting();
+ if (result.isTrue()) {
+ annotations.add(ArtifactAnnotation.getWarning("org.eclipse.osee.ats.ecd", result.getText()));
}
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
}
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DeadlineManager.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DeadlineManager.java
index 608377e739..6103270a1b 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DeadlineManager.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DeadlineManager.java
@@ -15,7 +15,6 @@ import java.util.logging.Level;
import org.eclipse.osee.ats.artifact.AbstractWorkflowArtifact;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.ats.world.IWorldViewArtifact;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.plugin.util.Result;
@@ -56,7 +55,7 @@ public class DeadlineManager {
return getEcdDate() != null;
}
- public Result isDeadlineDateOverdue() throws OseeCoreException {
+ public Result isDeadlineDateOverdue() {
if (sma.isCompleted() || sma.isCancelled()) {
return Result.FalseResult;
}
@@ -66,7 +65,7 @@ public class DeadlineManager {
return Result.FalseResult;
}
- public Result isEcdDateOverdue() throws OseeCoreException {
+ public Result isEcdDateOverdue() {
if (sma.isCompleted() || sma.isCancelled()) {
return Result.FalseResult;
}
@@ -107,7 +106,7 @@ public class DeadlineManager {
return Result.FalseResult;
}
- public Result isDeadlineDateAlerting() throws OseeCoreException {
+ public Result isDeadlineDateAlerting() {
if (!isDeadlineDateSet()) {
return Result.FalseResult;
}
@@ -122,7 +121,7 @@ public class DeadlineManager {
return Result.FalseResult;
}
- public Result isEcdDateAlerting() throws OseeCoreException {
+ public Result isEcdDateAlerting() {
if (!isEcdDateSet()) {
return Result.FalseResult;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Overview.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Overview.java
index c03e16b706..5f8baead18 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Overview.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Overview.java
@@ -236,7 +236,7 @@ public class Overview {
}
}
- public void addTeams(Collection<TeamWorkFlowArtifact> teams) throws OseeCoreException {
+ public void addTeams(Collection<TeamWorkFlowArtifact> teams) {
startBorderTable(TABLE_WIDTH, false, "Team Workflows");
StringBuffer sb = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
sb.append(AHTML.addHeaderRowMultiColumnTable(new String[] {"Type", "State"}, new Integer[] {70, 150}));
@@ -282,7 +282,7 @@ public class Overview {
}
}
- public void startStateBorderTable(AbstractWorkflowArtifact sma, SMAState state) throws OseeCoreException {
+ public void startStateBorderTable(AbstractWorkflowArtifact sma, SMAState state) {
String caption = state.getName();
String assgn = Artifacts.toString("; ", state.getAssignees());
startStateBorderTable(sma.getStateMgr().getCurrentStateName().equals(state.getName()), caption, assgn);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAMetrics.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAMetrics.java
index ab422a1703..5657033b32 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAMetrics.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAMetrics.java
@@ -188,7 +188,7 @@ public class SMAMetrics {
return smas;
}
- public Collection<TeamWorkFlowArtifact> getCompletedTeamWorkflows() throws OseeCoreException {
+ public Collection<TeamWorkFlowArtifact> getCompletedTeamWorkflows() {
Set<TeamWorkFlowArtifact> teams = new HashSet<TeamWorkFlowArtifact>();
for (TeamWorkFlowArtifact team : getTeamArts()) {
if (team.isCancelledOrCompleted()) {
@@ -198,7 +198,7 @@ public class SMAMetrics {
return teams;
}
- public Collection<AbstractWorkflowArtifact> getCompletedWorkflows() throws OseeCoreException {
+ public Collection<AbstractWorkflowArtifact> getCompletedWorkflows() {
Set<AbstractWorkflowArtifact> completed = new HashSet<AbstractWorkflowArtifact>();
for (AbstractWorkflowArtifact sma : smas) {
if (sma.isCancelledOrCompleted()) {
@@ -208,7 +208,7 @@ public class SMAMetrics {
return completed;
}
- public double getPercentCompleteByTeamWorkflow() throws OseeCoreException {
+ public double getPercentCompleteByTeamWorkflow() {
if (getTeamArts().isEmpty()) {
return 0;
}
@@ -219,7 +219,7 @@ public class SMAMetrics {
return completed / getTeamArts().size() * 100;
}
- public double getPercentCompleteByWorkflow() throws OseeCoreException {
+ public double getPercentCompleteByWorkflow() {
if (smas.isEmpty()) {
return 0;
}
@@ -230,7 +230,7 @@ public class SMAMetrics {
return completed / smas.size() * 100;
}
- public Collection<TaskArtifact> getCompletedTaskWorkflows() throws OseeCoreException {
+ public Collection<TaskArtifact> getCompletedTaskWorkflows() {
Set<TaskArtifact> tasks = new HashSet<TaskArtifact>();
for (TaskArtifact team : getTaskArts()) {
if (team.isCancelledOrCompleted()) {
@@ -240,7 +240,7 @@ public class SMAMetrics {
return tasks;
}
- public double getPercentCompleteByTaskWorkflow() throws OseeCoreException {
+ public double getPercentCompleteByTaskWorkflow() {
if (getTaskArts().isEmpty()) {
return 0;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAUtil.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAUtil.java
index 9c07871457..adfbcac6bf 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAUtil.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/SMAUtil.java
@@ -32,7 +32,7 @@ import org.eclipse.osee.framework.ui.skynet.util.ChangeType;
*/
public class SMAUtil {
- public static Collection<AbstractWorkflowArtifact> getCompletedCancelled(Collection<AbstractWorkflowArtifact> smas) throws OseeCoreException {
+ public static Collection<AbstractWorkflowArtifact> getCompletedCancelled(Collection<AbstractWorkflowArtifact> smas) {
List<AbstractWorkflowArtifact> artifactsToReturn = new ArrayList<AbstractWorkflowArtifact>(smas.size());
for (AbstractWorkflowArtifact sma : smas) {
if (sma.isCancelledOrCompleted()) {
@@ -42,7 +42,7 @@ public class SMAUtil {
return artifactsToReturn;
}
- public static Collection<AbstractWorkflowArtifact> getInWork(Collection<AbstractWorkflowArtifact> smas) throws OseeCoreException {
+ public static Collection<AbstractWorkflowArtifact> getInWork(Collection<AbstractWorkflowArtifact> smas) {
List<AbstractWorkflowArtifact> artifactsToReturn = new ArrayList<AbstractWorkflowArtifact>(smas.size());
for (AbstractWorkflowArtifact sma : smas) {
if (!sma.isCancelledOrCompleted()) {
@@ -52,7 +52,7 @@ public class SMAUtil {
return artifactsToReturn;
}
- public static Collection<AbstractWorkflowArtifact> filterOutState(Collection<AbstractWorkflowArtifact> smas, Collection<String> stateNames) throws OseeCoreException {
+ public static Collection<AbstractWorkflowArtifact> filterOutState(Collection<AbstractWorkflowArtifact> smas, Collection<String> stateNames) {
List<AbstractWorkflowArtifact> artifactsToReturn = new ArrayList<AbstractWorkflowArtifact>(smas.size());
for (AbstractWorkflowArtifact sma : smas) {
if (!stateNames.contains(sma.getStateMgr().getCurrentStateName())) {
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/StateManager.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/StateManager.java
index 69c0dd7971..f6a582cb27 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/StateManager.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/StateManager.java
@@ -245,7 +245,7 @@ public class StateManager {
putState(state);
}
- public boolean isStateVisited(String name) throws OseeCoreException {
+ public boolean isStateVisited(String name) {
return getVisitedStateNames().contains(name);
}
@@ -297,7 +297,7 @@ public class StateManager {
}
}
- public Collection<String> getVisitedStateNames() throws OseeCoreException {
+ public Collection<String> getVisitedStateNames() {
Set<String> names = new HashSet<String>();
for (SMAState state : stateDam.getStates()) {
names.add(state.getName());
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/AtsWorkPage.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/AtsWorkPage.java
index 692c972175..c3fdd0b45b 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/AtsWorkPage.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/AtsWorkPage.java
@@ -52,11 +52,11 @@ public class AtsWorkPage extends WorkPage {
this(null, null, null, optionResolver);
}
- public boolean isCurrentState(AbstractWorkflowArtifact sma) throws OseeCoreException {
+ public boolean isCurrentState(AbstractWorkflowArtifact sma) {
return sma.isCurrentState(getName());
}
- public boolean isCurrentNonCompleteCancelledState(AbstractWorkflowArtifact sma) throws OseeCoreException {
+ public boolean isCurrentNonCompleteCancelledState(AbstractWorkflowArtifact sma) {
return sma.isCurrentState(getName()) && !isCompleteCancelledState();
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsAddPeerToPeerReviewRule.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsAddPeerToPeerReviewRule.java
index 17960da848..8ede42661f 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsAddPeerToPeerReviewRule.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsAddPeerToPeerReviewRule.java
@@ -109,7 +109,7 @@ public class AtsAddPeerToPeerReviewRule extends WorkRuleDefinition {
return peerArt;
}
- private static String getValueOrDefault(TeamWorkFlowArtifact teamArt, WorkRuleDefinition workRuleDefinition, PeerToPeerParameter peerToPeerParameter) throws OseeCoreException {
+ private static String getValueOrDefault(TeamWorkFlowArtifact teamArt, WorkRuleDefinition workRuleDefinition, PeerToPeerParameter peerToPeerParameter) {
String value = getPeerToPeerParameterValue(workRuleDefinition, peerToPeerParameter);
if (!Strings.isValid(value)) {
if (peerToPeerParameter == PeerToPeerParameter.title) {

Back to the top