Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-29 01:02:11 -0400
committerrbrooks2010-08-29 01:02:11 -0400
commit5a4058affbff23e1fad7c559eeb691161ea94b57 (patch)
tree709ca8587ec038ecdd4bfbcaff50bb6379e2fa6a /plugins
parentc850774504ad977892dfece2dc330ab769b234f1 (diff)
downloadorg.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.gz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.xz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.zip
Eclipse source cleanup and format
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDatabaseConfig.java11
-rw-r--r--plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbActionData.java21
-rw-r--r--plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbUtil.java3
-rw-r--r--plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/workflow/DemoSWDesignWorkFlowDefinition.java4
-rw-r--r--plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/AtsTest_Config_Suite.java4
-rw-r--r--plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/editor/SMAPrintTest.java8
-rw-r--r--plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/NavigateTestUtil.java30
-rw-r--r--plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/workflow/SMAPromptChangeStatusTest.java3
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsObjectContextId.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowAction.java98
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowViaWorldEditorAction.java114
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditActionableItemsAction.java88
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ISelectedAtsArtifacts.java54
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSimpleList.java104
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSpreadsheet.java104
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/NewGoal.java102
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorkflowEditor.java140
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorldAction.java134
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorAction.java112
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorSelected.java124
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorAction.java112
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorSelectedAction.java126
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ShowMergeManagerAction.java106
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskAddAction.java80
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskDeleteAction.java80
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/ArtifactSelectWizardPage.java446
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage1.java408
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage2.java270
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSArtifact.java122
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSAttributes.java142
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSLog.java818
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSNote.java411
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java2462
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionableItemArtifact.java246
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/AtsAttributeTypes.java164
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java154
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/GoalArtifact.java552
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/PeerToPeerReviewArtifact.java258
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ReviewSMArtifact.java682
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/StateMachineArtifact.java3826
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/TaskArtifact.java806
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/TaskableStateMachineArtifact.java680
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/TeamDefinitionArtifact.java1016
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/TeamWorkFlowArtifact.java1196
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/TeamWorkflowExtensions.java184
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/VersionArtifact.java394
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/AtsBulkLoad.java120
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/AtsCacheManager.java632
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsTaskEditorRenderer.java136
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsWorldEditorRenderer.java162
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/ISMAOperationsSection.java42
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMADetailsSection.java192
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMADragAndDrop.java82
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditor.java1572
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorArtifactEventManager.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAEditorInput.java96
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAGoalMembersSection.java818
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAHistorySection.java212
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAOperationsSection.java512
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAPrint.java388
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsHyperlinkComposite.java14
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMARelationsSection.java174
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java1790
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowTab.java1338
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkflowMetricsHeader.java192
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/stateItem/AtsDecisionReviewDecisionStateItem.java210
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/stateItem/AtsDecisionReviewPrepareStateItem.java90
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/widget/EstimatedHoursXWidget.java76
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/widget/ReviewInfoXWidget.java622
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/widget/StateHoursSpentXWidget.java212
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/widget/StatePercentCompleteXWidget.java222
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/widget/TaskInfoXWidget.java274
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/export/AtsExportManager.java376
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/export/AtsExportPage.java322
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/export/AtsExportWizard.java176
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalXViewerFactory.java213
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/handlers/AtsEditorHandler.java64
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/handlers/AtsExportHandler.java78
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/handlers/AtsTaskEditorHandler.java78
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/handlers/AtsWorkflowConfigEditorHandler.java64
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/handlers/AtsWorldEditorHandler.java64
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/AtsHealthCheck.java134
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ChangeReportComparer.java112
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/TxImportedValidateChangeReports.java594
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateAtsDatabase.java1778
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateChangeReportByHrid.java172
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/ValidateChangeReports.java762
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/ArtifactChangeReportComparer.java90
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java114
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/DataChangeReportComparer.java58
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/RelationChangeReportComparer.java94
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/ValidateChangeReportParser.java130
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/ActionHyperItem.java254
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/ActionHyperView.java738
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/ActionSkyWalker.java568
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/ArtifactHyperView.java782
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/HyperView.java2334
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/HyperViewItem.java390
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/TasksActionHyperItem.java108
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/hyper/TasksHyperViewArtifact.java150
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsActionReportingServiceImpl.java50
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/AtsPlugin.java182
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/internal/OseeDslProviderUpdateListener.java118
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/ArtifactImpactToActionSearchItem.java364
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateComposite.java138
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java734
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsQuickSearchData.java88
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsQuickSearchOperation.java218
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java573
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/BarChartExample.java336
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/FirstTimeQualityMetricReportItem.java394
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateFullVersionReportItem.java276
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateGuid.java70
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/PurgeUser.java39
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/report/CreateActionArtifactChangeReportJob.java36
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/report/ExtendedStatusReportJob.java3
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskComposite.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskXViewer.java16
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/DoesNotWorkItemAts.java3
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/VersionReportJob.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/defect/XDefectViewer.java25
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/dialog/TaskOptionStatusDialog.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/role/XUserRoleViewer.java14
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/AtsWorkflowConfigEditor.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/WorkPageShape.java67
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/WorkflowDiagram.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/model/commands/ShapeDeleteCommand.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/parts/ConnectionEditPart.java2
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/parts/DiagramEditPart.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/parts/ShapeEditPart.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/editor/wizard/AtsWorkflowConfigCreationWizard.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/item/AtsWorkDefinitions.java17
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/vue/LoadAIsAndTeamsAction.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldXViewerFactory.java89
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/MultipleHridSearchUi.java3
-rw-r--r--plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/CoveragePackageImportTest.java2
-rw-r--r--plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/Coverage_Db_Suite.java14
-rw-r--r--plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/Coverage_Suite.java8
-rw-r--r--plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/test/model/CoverageUnitTest.java2
-rw-r--r--plugins/org.eclipse.osee.coverage/src-gen/org/eclipse/osee/coverage/msgs/CoveragePackageSave.java20
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/ConfigureCoverageMethodsAction.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditorInput.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java2
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MergeImportManager.java2
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MergeType.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/model/CoveragePackageBase.java2
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemRequirementVerificationLevel.java8
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/TestPlanComplianceReport.java2
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/relation/Import/ExtractTestRelations.java2
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/operations/TraceUnitReportProcessor.java7
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/traceability/operations/TraceUnitToArtifactProcessor.java7
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management.test/src/org/eclipse/osee/framework/branch/management/test/commit/CommitTestSuite.java2
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/DatabaseOseeConflictAccessor.java17
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/commit/CommitDbOperation.java8
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/commit/UpdatePreviousTxCurrent.java5
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/ExchangeDb.java13
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/exchange/transform/ExchangeTransformProvider.java7
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/internal/trackers/OseeBranchExchangeServiceRegistrationHandler.java8
-rw-r--r--plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/internal/trackers/OseeBranchServiceRegistrationHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/BranchStoreOperation.java27
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/BranchUpdateEventImpl.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseAttributeTypeAccessor.java25
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseRelationTypeAccessor.java23
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/internal/OseeCachingServiceRegistrationHandler.java8
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AccessContextItemProvider.java185
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AddEnumItemProvider.java132
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/ArtifactInstanceRestrictionItemProvider.java86
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/ArtifactTypeRestrictionItemProvider.java85
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java110
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/HierarchyRestrictionItemProvider.java134
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/ImportItemProvider.java90
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/ObjectRestrictionItemProvider.java89
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OseeDslEditPlugin.java45
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OseeDslItemProvider.java141
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OseeDslItemProviderAdapterFactory.java453
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OseeElementItemProvider.java59
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OseeTypeItemProvider.java108
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/OverrideOptionItemProvider.java57
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/RelationTypeRestrictionItemProvider.java110
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/RemoveEnumItemProvider.java77
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XArtifactRefItemProvider.java114
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XArtifactTypeItemProvider.java126
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XAttributeTypeItemProvider.java306
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XAttributeTypeRefItemProvider.java115
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XBranchRefItemProvider.java114
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XOseeEnumEntryItemProvider.java138
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XOseeEnumOverrideItemProvider.java133
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XOseeEnumTypeItemProvider.java75
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/XRelationTypeItemProvider.java208
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeDslAccessModelTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/AccessModelInterpreterServiceRegHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/ArtifactInstanceRestrictionHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/ArtifactTypeRestrictionHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/AttributeTypeRestrictionHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/util/OseeDslSegmentParser.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslArtifactUpdateOperation.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/AbstractOseeDslUiModule.java212
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/OseeDslExecutableExtensionFactory.java27
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/AbstractOseeDslProposalProvider.java796
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/OseeDslParser.java436
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDslLexer.java6318
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDslParser.java27569
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/internal/OseeDslActivator.java107
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/AbstractOseeDslRuntimeModule.java236
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/OseeDslStandaloneSetupGenerated.java58
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java207
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java393
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java161
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java64
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java64
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java116
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java94
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java60
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java67
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java299
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java432
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java5801
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java110
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java458
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java122
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java61
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java108
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java126
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java510
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java112
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java108
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java160
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java145
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java42
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java446
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java320
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java671
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java488
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java287
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java287
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java419
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java395
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java299
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java300
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java958
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java874
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java2949
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java47
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java412
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java48
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java433
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java285
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java411
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java450
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java1358
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java433
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java411
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java489
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java505
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java262
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java906
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java984
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java1280
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/parseTreeConstruction/OseeDslParsetreeConstructor.java13331
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/parser/antlr/OseeDslAntlrTokenFileProvider.java15
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/parser/antlr/OseeDslParser.java89
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/parser/antlr/internal/InternalOseeDslLexer.java6314
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/parser/antlr/internal/InternalOseeDslParser.java12398
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/services/OseeDslGrammarAccess.java5536
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/validation/AbstractOseeDslJavaValidator.java19
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src/org/eclipse/osee/framework/core/dsl/formatting/OseeDslFormatter.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/BranchChangeArchivedStateRequestTranslatorTest.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.message.test/src/org/eclipse/osee/framework/core/message/test/translation/OseeImportModelRequestTranslatorTest.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java12
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java14
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java17
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java11
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/access/AccessDataQueryTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/access/AccessDataTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/fields/BaseOseeFieldTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/fields/CollectionFieldTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/fields/FieldTestSuite.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/fields/OseeFieldMainTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/type/ArtifactTypeTest.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/type/RelationTypeTest.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/AbstractOseeType.java1
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/Branch.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java1
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/AttributeType.java1
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/type/OseeEnumType.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.server.test/src/org/eclipse/osee/framework/core/server/test/internal/session/SessionTest.java16
-rw-r--r--plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/session/DatabaseSessionAccessor.java20
-rw-r--r--plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/session/SessionManagerTrackingHandler.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/internal/task/CleanJoinTablesServerTask.java9
-rw-r--r--plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/internal/MultiServiceBinderTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/internal/SingletonServiceBinderTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/RelationOrderBaseTypes.java7
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/AbstractTrackingHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateArtifactVersionTxOperation.java14
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/InvalidTxCurrentsAndModTypes.java4
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/JdkCoreTestSuite.java5
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/type/JdkCoreTypeTestSuite.java6
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/util/GUIDTest.java38
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/util/HumanReadableIdTest.java281
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/change/ChangeSet.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/rules/WordMLNewLineMaker.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/text/tool/CompareLists.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/ByteUtil.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/ChecksumUtil.java20
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Collections.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/EnumBase.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/HumanReadableId.java71
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/ReservedCharacters.java4
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Strings.java1
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/benchmark/Benchmark.java7
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/LnkWriter.java3269
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/io/xml/ExcelXmlWriter.java6
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/SimpleNamespaceContext.java4
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Xml.java10
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/XmlOutputTransform.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/JiniClassServer.java2
-rw-r--r--plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/utility/StartJini.java4
-rw-r--r--plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/SystemManagerServlet.java25
-rw-r--r--plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/internal/ServletRegistrationHandler.java14
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteAccessControlEvent1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteAttributeChange1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteBasicGuidArtifact1.java17
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteBasicGuidRelation1.java21
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteBasicGuidRelationReorder1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteBranchEvent1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteBroadcastEvent1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteNetworkSender1.java18
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemotePersistEvent1.java17
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteTransactionChange1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src-gen/org/eclipse/osee/framework/messaging/event/res/msgs/RemoteTransactionEvent1.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/FrameworkRelayMessagingListener.java2
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java9
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/test/msg/ObjectFactory.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.test/src/org/eclipse/osee/framework/messaging/test/msg/TestMessage.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src-gen/org/eclipse/osee/framework/messaging/services/messages/ObjectFactory.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src-gen/org/eclipse/osee/framework/messaging/services/messages/ServiceDescriptionPair.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src-gen/org/eclipse/osee/framework/messaging/services/messages/ServiceHealth.java18
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src-gen/org/eclipse/osee/framework/messaging/services/messages/ServiceHealthRequest.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src-gen/org/eclipse/osee/framework/messaging/services/messages/Synch.java8
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/FailoverConnectionNode.java4
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java4
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management.test/src/org/eclipse/osee/framework/resource/management/test/ResourceManagementTestSuite.java5
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.java3
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.java2
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/tagger/InputStreamTagProcessor.java2
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/utility/TagEncoder.java34
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/utility/WordsUtil.java39
-rw-r--r--plugins/org.eclipse.osee.framework.server.tests/src/org/eclipse/osee/framework/server/tests/AllServerTestsSuite.java8
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/FrameworkCore_Demo_Fast_Suite.java24
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/FrameworkCore_TestDb_Suite.java14
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ConflictTest.java7
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/DuplicateHridTest.java71
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/WordMlLinkHandlerTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/importing/ReqNumberingTest.java6
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/importing/parsers/WordMLExtractorDelegateTableOfContentsTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/importing/parsers/WordMlResolutionGuiTest.java4
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/importing/parsers/WordOutlineTest.java8
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/RelationOrderTestSuite.java8
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/RelationTestSuite.java5
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/RelationTypeSideSorterTest.java5
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/order/RelationOrderDataTest.java5
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/order/RelationOrderParserTest.java5
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/relation/sorters/RelationSorterTest.java27
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java13
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java12
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/HttpCommitDataRequester.java9
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/PurgeArtifacts.java12
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/AttributeExtensionManager.java6
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/BinaryBackedAttribute.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/attribute/CharacterBackedAttribute.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/FrameworkTransactionData.java4
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event2/artifact/AttributeChange.java8
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/importing/RoughArtifact.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/importing/parsers/OutlineResolution.java4
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/importing/parsers/WordOutlineExtractor.java10
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/importing/parsers/WordOutlineExtractorDelegate.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/OseeEventSystemServiceRegHandler.java3
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/linking/OseeLinkBuilder.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/revision/ChangeManager.java12
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/revision/ConflictManagerInternal.java6
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionMonitor.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/validation/OseeValidator.java4
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/word/WordUtil.java13
-rw-r--r--plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphActionBarContributor.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/parts/BranchDataEditPart.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditor.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/input/OseeDataTypeConverter.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/RelationLinkEditPart.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/utility/Base64Converter.java51
-rw-r--r--plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/utility/ImageUtility.java11
-rw-r--r--plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/wizards/launcher/SecureRemoteAccess.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/wizards/launcher/data/EclipseApplicationFormatter.java10
-rw-r--r--plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/wizards/launcher/data/ExecutionCommandFormatter.java8
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/cases/AttributeTypeEditPresenterTest.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/cases/OseeEmailTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/cases/RelationOrderRendererTest.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/access/PolicyDialog.java426
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/access/PolicyLabelProvider.java188
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/access/PolicyTableCellModifier.java144
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/access/PolicyTableColumns.java112
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/access/PolicyTableViewer.java216
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/CollapseAllAction.java112
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/EditTransactionComment.java132
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/browser/BrowserPrintAction.java82
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelationsTxOperation.java8
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java7
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java43
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UnicodeConverter.java113
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/commit/CommitIntoParentCompoundContributionItem.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/ArtifactIdWithoutVersionsCheck.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/BranchStateHealthCheck.java27
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/DuplicateAttributes.java31
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/DuplicateHRID.java12
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/HealthHelper.java23
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/ItemsDeletedWithNoOtherModification.java17
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/MultipleParentRelations.java33
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/RelationIntegrityCheck.java32
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/dbHealth/RepeatEnumerationAttributeValues.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java7
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/ITemplateRenderer.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/results/XResultData.java35
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/results/example/ResultsEditorExample.java12
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/skywalker/RelTypeContentProvider.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/ArtifactClipboard.java10
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/OseeEmail.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/SkynetDragAndDrop.java8
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/WordUiUtil.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/util/filteredTree/OSEEFilteredTreeDialog.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XTextResourceDropDam.java7
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/DateSelectionDialog.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/EntryDialog.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/dialog/EntryDialogWithBranchSelect.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/workflow/DynamicXWidgetLayout.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xmerge/MergeXWidget.java3
-rw-r--r--plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/SearchCCombo.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/SearchCellEditor.java2
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/OteJmsServiceConnector.java2
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/TestSessionException.java5
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/ConnectionRequestResult.java4
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/OseeTestThread.java5
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/TestCase.java4
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/TestPrompt.java2
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/TestScript.java6
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/command/TestEnvironmentCommand.java6
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/jini/EclipseConsolePrintStream.java2
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/testrun/TestRunThread.java4
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/internal/StatusBoardRegistrationHandler.java3
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/log/TestLogger.java4
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/log/record/BaseTestRecord.java6
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/log/record/TestRecord.java5
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelKey.java4
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelManager.java4
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java6
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java7
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java49
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java13
-rw-r--r--plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/MessageEventLogger.java5
-rw-r--r--plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/data/MemoryResource.java2
-rw-r--r--plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/tool/rec/MessageRecordConfig.java2
-rw-r--r--plugins/org.eclipse.osee.ote.messaging.dds/src/org/eclipse/osee/ote/messaging/dds/entity/DataWriter.java2
-rw-r--r--plugins/org.eclipse.osee.ote.runtimeManager/src/org/eclipse/osee/ote/runtimemanager/SafeWorkspaceTracker.java6
-rw-r--r--plugins/org.eclipse.osee.ote.runtimeManager/src/org/eclipse/osee/ote/runtimemanager/container/OteClasspathContainer.java2
-rw-r--r--plugins/org.eclipse.osee.ote.server/src/org/eclipse/osee/ote/server/internal/OteServiceStarterCreationHandler.java8
-rw-r--r--plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/reports/HighLevelSummary.java9
-rw-r--r--plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/reports/html/HtmlActiveTableColumnData.java2
-rw-r--r--plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/viewers/TestRunXViewer.java2
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java1
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditorContributor.java4
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/scriptTable/ScriptTableViewer.java2
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/util/EnvVariableDialogHelper.java3
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java164
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java334
483 files changed, 78224 insertions, 75241 deletions
diff --git a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDatabaseConfig.java b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDatabaseConfig.java
index d58f78be26..47c5363258 100644
--- a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDatabaseConfig.java
+++ b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDatabaseConfig.java
@@ -110,9 +110,14 @@ public class DemoDatabaseConfig extends AtsDbConfig implements IDbInitialization
Artifact programRoot = OseeSystemArtifacts.getDefaultHierarchyRootArtifact(programBranch);
programRoot.addChild(sawProduct);
- for (String name : new String[] {Requirements.SYSTEM_REQUIREMENTS, Requirements.SUBSYSTEM_REQUIREMENTS,
- Requirements.SOFTWARE_REQUIREMENTS, Requirements.HARDWARE_REQUIREMENTS, "Verification Tests",
- "Validation Tests", "Integration Tests"}) {
+ for (String name : new String[] {
+ Requirements.SYSTEM_REQUIREMENTS,
+ Requirements.SUBSYSTEM_REQUIREMENTS,
+ Requirements.SOFTWARE_REQUIREMENTS,
+ Requirements.HARDWARE_REQUIREMENTS,
+ "Verification Tests",
+ "Validation Tests",
+ "Integration Tests"}) {
programRoot.addChild(ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, programBranch, name));
}
diff --git a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbActionData.java b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbActionData.java
index 2c1c4fb28a..808182203c 100644
--- a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbActionData.java
+++ b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbActionData.java
@@ -71,17 +71,22 @@ public class DemoDbActionData {
public static Set<DemoDbActionData> getReqSawActionsData() {
Set<DemoDbActionData> actionDatas = new HashSet<DemoDbActionData>();
actionDatas.add(new DemoDbActionData(new String[] {"SAW (committed) Reqt Changes for"}, "Diagram View",
- PriorityType.Priority_1, new String[] {DemoDbAIs.SAW_Requirements.getAIName(), DemoDbAIs.SAW_Code.getAIName(),
+ PriorityType.Priority_1, new String[] {
+ DemoDbAIs.SAW_Requirements.getAIName(),
+ DemoDbAIs.SAW_Code.getAIName(),
DemoDbAIs.SAW_Test.getAIName()}, new Integer[] {1}, DefaultTeamState.Implement));
actionDatas.add(new DemoDbActionData(new String[] {"SAW (uncommitted) More Reqt Changes for"}, "Diagram View",
- PriorityType.Priority_3, new String[] {DemoDbAIs.SAW_Code.getAIName(), DemoDbAIs.SAW_SW_Design.getAIName(),
- DemoDbAIs.SAW_Requirements.getAIName(), DemoDbAIs.SAW_Test.getAIName()}, new Integer[] {1},
- DefaultTeamState.Implement));
+ PriorityType.Priority_3, new String[] {
+ DemoDbAIs.SAW_Code.getAIName(),
+ DemoDbAIs.SAW_SW_Design.getAIName(),
+ DemoDbAIs.SAW_Requirements.getAIName(),
+ DemoDbAIs.SAW_Test.getAIName()}, new Integer[] {1}, DefaultTeamState.Implement));
actionDatas.add(new DemoDbActionData(new String[] {"SAW (no-branch) Even More Requirement Changes for"},
- "Diagram View", PriorityType.Priority_3,
- new String[] {DemoDbAIs.SAW_Code.getAIName(), DemoDbAIs.SAW_SW_Design.getAIName(),
- DemoDbAIs.SAW_Requirements.getAIName(), DemoDbAIs.SAW_Test.getAIName()}, new Integer[] {1},
- DefaultTeamState.Implement));
+ "Diagram View", PriorityType.Priority_3, new String[] {
+ DemoDbAIs.SAW_Code.getAIName(),
+ DemoDbAIs.SAW_SW_Design.getAIName(),
+ DemoDbAIs.SAW_Requirements.getAIName(),
+ DemoDbAIs.SAW_Test.getAIName()}, new Integer[] {1}, DefaultTeamState.Implement));
actionDatas.add(new DemoDbActionData(new String[] {"SAW (uncommitted-conflicted) More Requirement Changes for"},
"Diagram View", PriorityType.Priority_3, new String[] {DemoDbAIs.SAW_Requirements.getAIName()},
new Integer[] {1}, DefaultTeamState.Implement));
diff --git a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbUtil.java b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbUtil.java
index 2d4cc452e3..f24b7426f0 100644
--- a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbUtil.java
+++ b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/config/DemoDbUtil.java
@@ -42,7 +42,8 @@ public class DemoDbUtil {
public static List<DemoCodeTeamWorkflowArtifact> getSampleCodeWorkflows() throws OseeCoreException {
if (codeArts == null) {
codeArts = new ArrayList<DemoCodeTeamWorkflowArtifact>();
- for (String actionName : new String[] {"SAW (committed) Reqt Changes for Diagram View",
+ for (String actionName : new String[] {
+ "SAW (committed) Reqt Changes for Diagram View",
"SAW (uncommitted) More Reqt Changes for Diagram View"}) {
DemoCodeTeamWorkflowArtifact codeArt = null;
for (Artifact art : ArtifactQuery.getArtifactListFromName(actionName, AtsUtil.getAtsBranch(),
diff --git a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/workflow/DemoSWDesignWorkFlowDefinition.java b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/workflow/DemoSWDesignWorkFlowDefinition.java
index bf0617409c..1faea7d665 100644
--- a/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/workflow/DemoSWDesignWorkFlowDefinition.java
+++ b/plugins/org.eclipse.osee.ats.config.demo/src/org/eclipse/osee/ats/config/demo/workflow/DemoSWDesignWorkFlowDefinition.java
@@ -58,13 +58,13 @@ public class DemoSWDesignWorkFlowDefinition extends TeamWorkflowDefinition {
AtsWorkDefinitions.importWorkItemDefinitionsIntoDb(writeType, xResultData, new DemoSWDesignWorkFlowDefinition());
AtsWorkDefinitions.relatePageToBranchCommitRules(ID + "." + DefaultTeamState.Implement.name());
- // Add Non-blocking createBranch decision review to Implement state
+ // Add Non-blocking createBranch decision review to Implement state
WorkItemDefinitionFactory.relateWorkItemDefinitions(ID + "." + DefaultTeamState.Analyze.name(),
decisionTransitionToRule.getId());
WorkItemDefinitionFactory.relateWorkItemDefinitions(ID + "." + DefaultTeamState.Implement.name(),
decisionCreateBranchRule.getId());
- // Add Non-blocking commitBranch peerToPeer review to Implement state
+ // Add Non-blocking commitBranch peerToPeer review to Implement state
WorkItemDefinitionFactory.relateWorkItemDefinitions(ID + "." + DefaultTeamState.Authorize.name(),
peerTransitionToRule.getId());
WorkItemDefinitionFactory.relateWorkItemDefinitions(ID + "." + DefaultTeamState.Implement.name(),
diff --git a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/AtsTest_Config_Suite.java b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/AtsTest_Config_Suite.java
index 7c7b6f406a..476e1cc2b3 100644
--- a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/AtsTest_Config_Suite.java
+++ b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/AtsTest_Config_Suite.java
@@ -17,7 +17,9 @@ import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
-@Suite.SuiteClasses({AtsWorkItemDefinitionTest.class, AtsActionableItemToTeamDefinitionTest.class,
+@Suite.SuiteClasses({
+ AtsWorkItemDefinitionTest.class,
+ AtsActionableItemToTeamDefinitionTest.class,
AtsTeamDefintionToWorkflowTest.class})
/**
* This test suite contains test that can be run against any production db
diff --git a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/editor/SMAPrintTest.java b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/editor/SMAPrintTest.java
index a8413eaf57..aac4d289fd 100644
--- a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/editor/SMAPrintTest.java
+++ b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/editor/SMAPrintTest.java
@@ -49,14 +49,14 @@ public class SMAPrintTest {
SMAPrint smaPrint = new SMAPrint(teamArt);
XResultData resultData = smaPrint.getResultData();
Assert.assertNotNull(resultData);
- // Make sure it's a reasonable length
+ // Make sure it's a reasonable length
Assert.assertTrue(resultData.getReport("report").getManipulatedHtml().length() > 7000);
PeerToPeerReviewArtifact peerArt = (PeerToPeerReviewArtifact) ReviewManager.getReviews(teamArt).iterator().next();
smaPrint = new SMAPrint(peerArt);
resultData = smaPrint.getResultData();
Assert.assertNotNull(resultData);
- // Make sure it's a reasonable length
+ // Make sure it's a reasonable length
Assert.assertTrue(resultData.getReport("report").getManipulatedHtml().length() > 3500);
TaskArtifact taskArt = null;
@@ -69,7 +69,7 @@ public class SMAPrintTest {
smaPrint = new SMAPrint(taskArt);
resultData = smaPrint.getResultData();
Assert.assertNotNull(resultData);
- // Make sure it's a reasonable length
+ // Make sure it's a reasonable length
Assert.assertTrue(resultData.getReport("report").getManipulatedHtml().length() > 2700);
teamArt =
@@ -80,7 +80,7 @@ public class SMAPrintTest {
smaPrint = new SMAPrint(decArt);
resultData = smaPrint.getResultData();
Assert.assertNotNull(resultData);
- // Make sure it's a reasonable length
+ // Make sure it's a reasonable length
Assert.assertTrue(resultData.getReport("report").getManipulatedHtml().length() > 2900);
TestUtil.severeLoggingEnd(monitorLog);
diff --git a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/NavigateTestUtil.java b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/NavigateTestUtil.java
index a54ace3ee8..dc52f9f6ff 100644
--- a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/NavigateTestUtil.java
+++ b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/NavigateTestUtil.java
@@ -29,14 +29,30 @@ import org.eclipse.swt.widgets.TreeItem;
*/
public class NavigateTestUtil {
private static Map<String, List<XNavigateItem>> nameToNavItem;
- public static String[] expectedErrorCols1 = {"ats.column.type", "ats.column.team", "ats.column.initWf",
+ public static String[] expectedErrorCols1 = {
+ "ats.column.type",
+ "ats.column.team",
+ "ats.column.initWf",
"ats.column.origWf"};
- public static String[] expectedErrorCols2 = {"ats.column.state", "ats.column.assignees", "ats.column.versionTarget",
- "ats.column.annualCostAvoidance", "ats.column.remainingHours", "ats.column.statePercentComplete",
- "ats.column.stateTaskPercentComplete", "ats.column.stateReviewPercentComplete",
- "ats.column.totalPercentComplete", "ats.column.stateHoursSpent", "ats.column.stateTaskHoursSpent",
- "ats.column.stateReviewHoursSpent", "ats.column.stateTotalHoursSpent", "ats.column.totalHoursSpent",
- "ats.column.implementer", "ats.column.completedDate", "ats.column.cancelledDate", "ats.column.manDaysNeeded"};
+ public static String[] expectedErrorCols2 = {
+ "ats.column.state",
+ "ats.column.assignees",
+ "ats.column.versionTarget",
+ "ats.column.annualCostAvoidance",
+ "ats.column.remainingHours",
+ "ats.column.statePercentComplete",
+ "ats.column.stateTaskPercentComplete",
+ "ats.column.stateReviewPercentComplete",
+ "ats.column.totalPercentComplete",
+ "ats.column.stateHoursSpent",
+ "ats.column.stateTaskHoursSpent",
+ "ats.column.stateReviewHoursSpent",
+ "ats.column.stateTotalHoursSpent",
+ "ats.column.totalHoursSpent",
+ "ats.column.implementer",
+ "ats.column.completedDate",
+ "ats.column.cancelledDate",
+ "ats.column.manDaysNeeded"};
public static XNavigateItem getAtsNavigateItem(String itemName) {
if (nameToNavItem == null) {
diff --git a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/workflow/SMAPromptChangeStatusTest.java b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/workflow/SMAPromptChangeStatusTest.java
index 8afffe43d4..a8861933cc 100644
--- a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/workflow/SMAPromptChangeStatusTest.java
+++ b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/workflow/SMAPromptChangeStatusTest.java
@@ -165,8 +165,7 @@ public class SMAPromptChangeStatusTest {
// test that if task not in related-to state of workflows's current status, can't change status
transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Prompt Change Status Test");
- taskArt.setSoleAttributeValue(AtsAttributeTypes.RelatedToState,
- DefaultTeamState.Analyze.name());
+ taskArt.setSoleAttributeValue(AtsAttributeTypes.RelatedToState, DefaultTeamState.Analyze.name());
transaction.execute();
SMAPromptChangeStatus promptChangeStatus = new SMAPromptChangeStatus(tasks);
Result result = promptChangeStatus.isValidToChangeStatus();
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsObjectContextId.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsObjectContextId.java
index 6359ce1a7d..5286ed9b66 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsObjectContextId.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsObjectContextId.java
@@ -27,7 +27,7 @@ public final class AtsObjectContextId {
// @formatter:on
private AtsObjectContextId() {
- //
+ //
}
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowAction.java
index f637067682..f7da1500e7 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowAction.java
@@ -1,49 +1,49 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.Collection;
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.operation.DuplicateWorkflowBlam;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class DuplicateWorkflowAction extends Action {
-
- private final Collection<TeamWorkFlowArtifact> teams;
-
- public DuplicateWorkflowAction(Collection<TeamWorkFlowArtifact> teams) {
- super(
- teams.size() == 1 ? "Duplicate this \"" + teams.iterator().next().getArtifactTypeName() + "\" Workflow" : "Duplicate Workflows");
- this.teams = teams;
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DUPLICATE));
- }
-
- @Override
- public void run() {
- try {
- DuplicateWorkflowBlam blamOperation = new DuplicateWorkflowBlam();
- blamOperation.setDefaultTeamWorkflows(teams);
- BlamEditor.edit(blamOperation);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.Collection;
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.operation.DuplicateWorkflowBlam;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class DuplicateWorkflowAction extends Action {
+
+ private final Collection<TeamWorkFlowArtifact> teams;
+
+ public DuplicateWorkflowAction(Collection<TeamWorkFlowArtifact> teams) {
+ super(
+ teams.size() == 1 ? "Duplicate this \"" + teams.iterator().next().getArtifactTypeName() + "\" Workflow" : "Duplicate Workflows");
+ this.teams = teams;
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DUPLICATE));
+ }
+
+ @Override
+ public void run() {
+ try {
+ DuplicateWorkflowBlam blamOperation = new DuplicateWorkflowBlam();
+ blamOperation.setDefaultTeamWorkflows(teams);
+ BlamEditor.edit(blamOperation);
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowViaWorldEditorAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowViaWorldEditorAction.java
index 9bf9ba67c3..08e14f7baf 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowViaWorldEditorAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DuplicateWorkflowViaWorldEditorAction.java
@@ -1,57 +1,57 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.operation.DuplicateWorkflowBlam;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class DuplicateWorkflowViaWorldEditorAction extends Action {
-
- private final WorldEditor worldEditor;
-
- public DuplicateWorkflowViaWorldEditorAction(WorldEditor worldEditor) {
- this.worldEditor = worldEditor;
- setText("Duplicate Team Workflow");
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(FrameworkImage.DUPLICATE);
- }
-
- @Override
- public void run() {
- if (worldEditor.getWorldComposite().getXViewer().getSelectedTeamWorkflowArtifacts().isEmpty()) {
- AWorkbench.popup("ERROR", "Must select one or more team workflows to duplicate");
- return;
- }
- try {
- DuplicateWorkflowBlam blamOperation = new DuplicateWorkflowBlam();
- blamOperation.setDefaultTeamWorkflows(worldEditor.getWorldComposite().getXViewer().getSelectedTeamWorkflowArtifacts());
- BlamEditor.edit(blamOperation);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.operation.DuplicateWorkflowBlam;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class DuplicateWorkflowViaWorldEditorAction extends Action {
+
+ private final WorldEditor worldEditor;
+
+ public DuplicateWorkflowViaWorldEditorAction(WorldEditor worldEditor) {
+ this.worldEditor = worldEditor;
+ setText("Duplicate Team Workflow");
+ }
+
+ @Override
+ public ImageDescriptor getImageDescriptor() {
+ return ImageManager.getImageDescriptor(FrameworkImage.DUPLICATE);
+ }
+
+ @Override
+ public void run() {
+ if (worldEditor.getWorldComposite().getXViewer().getSelectedTeamWorkflowArtifacts().isEmpty()) {
+ AWorkbench.popup("ERROR", "Must select one or more team workflows to duplicate");
+ return;
+ }
+ try {
+ DuplicateWorkflowBlam blamOperation = new DuplicateWorkflowBlam();
+ blamOperation.setDefaultTeamWorkflows(worldEditor.getWorldComposite().getXViewer().getSelectedTeamWorkflowArtifacts());
+ BlamEditor.edit(blamOperation);
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditActionableItemsAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditActionableItemsAction.java
index de4e52eafc..8a4e9bf712 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditActionableItemsAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/EditActionableItemsAction.java
@@ -1,44 +1,44 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class EditActionableItemsAction extends Action {
-
- private final TeamWorkFlowArtifact teamWf;
-
- public EditActionableItemsAction(TeamWorkFlowArtifact teamWf) {
- super("Add/Update Actionable Items/Workflows");
- this.teamWf = teamWf;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.ACTIONABLE_ITEM));
- }
-
- @Override
- public void run() {
- try {
- AtsUtil.editActionableItems(teamWf.getParentActionArtifact());
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class EditActionableItemsAction extends Action {
+
+ private final TeamWorkFlowArtifact teamWf;
+
+ public EditActionableItemsAction(TeamWorkFlowArtifact teamWf) {
+ super("Add/Update Actionable Items/Workflows");
+ this.teamWf = teamWf;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.ACTIONABLE_ITEM));
+ }
+
+ @Override
+ public void run() {
+ try {
+ AtsUtil.editActionableItems(teamWf.getParentActionArtifact());
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ISelectedAtsArtifacts.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ISelectedAtsArtifacts.java
index 26c1b4fe2f..4f4b6d3384 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ISelectedAtsArtifacts.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ISelectedAtsArtifacts.java
@@ -1,27 +1,27 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.List;
-import java.util.Set;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-
-/**
- * @author Donald G. Dunne
- */
-public interface ISelectedAtsArtifacts {
-
- public Set<? extends Artifact> getSelectedSMAArtifacts() throws OseeCoreException;
-
- public List<Artifact> getSelectedAtsArtifacts() throws OseeCoreException;
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.List;
+import java.util.Set;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+
+/**
+ * @author Donald G. Dunne
+ */
+public interface ISelectedAtsArtifacts {
+
+ public Set<? extends Artifact> getSelectedSMAArtifacts() throws OseeCoreException;
+
+ public List<Artifact> getSelectedAtsArtifacts() throws OseeCoreException;
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSimpleList.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSimpleList.java
index 4679767b17..b355162e34 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSimpleList.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSimpleList.java
@@ -1,52 +1,52 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.operation.ImportTasksFromSimpleList;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Donald G. Dunne
- */
-public class ImportTasksViaSimpleList extends Action {
-
- private final TaskableStateMachineArtifact taskableArt;
- private final Listener listener;
-
- public ImportTasksViaSimpleList(TaskableStateMachineArtifact taskableArt, Listener listener) {
- this.taskableArt = taskableArt;
- this.listener = listener;
- setText("Import Tasks via simple list");
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.IMPORT));
- }
-
- @Override
- public void run() {
- try {
- ImportTasksFromSimpleList blamOperation = new ImportTasksFromSimpleList();
- blamOperation.setTaskableStateMachineArtifact(taskableArt);
- BlamEditor.edit(blamOperation);
- if (listener != null) {
- listener.notify();
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.operation.ImportTasksFromSimpleList;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ImportTasksViaSimpleList extends Action {
+
+ private final TaskableStateMachineArtifact taskableArt;
+ private final Listener listener;
+
+ public ImportTasksViaSimpleList(TaskableStateMachineArtifact taskableArt, Listener listener) {
+ this.taskableArt = taskableArt;
+ this.listener = listener;
+ setText("Import Tasks via simple list");
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.IMPORT));
+ }
+
+ @Override
+ public void run() {
+ try {
+ ImportTasksFromSimpleList blamOperation = new ImportTasksFromSimpleList();
+ blamOperation.setTaskableStateMachineArtifact(taskableArt);
+ BlamEditor.edit(blamOperation);
+ if (listener != null) {
+ listener.notify();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSpreadsheet.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSpreadsheet.java
index c58a5cd1cd..24c2862443 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSpreadsheet.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ImportTasksViaSpreadsheet.java
@@ -1,52 +1,52 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.operation.ImportTasksFromSpreadsheet;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Donald G. Dunne
- */
-public class ImportTasksViaSpreadsheet extends Action {
-
- private final TaskableStateMachineArtifact taskableArt;
- private final Listener listener;
-
- public ImportTasksViaSpreadsheet(TaskableStateMachineArtifact taskableArt, Listener listener) {
- this.taskableArt = taskableArt;
- this.listener = listener;
- setText("Import Tasks via spreadsheet");
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.IMPORT));
- }
-
- @Override
- public void run() {
- try {
- ImportTasksFromSpreadsheet blamOperation = new ImportTasksFromSpreadsheet();
- blamOperation.setTaskableStateMachineArtifact(taskableArt);
- BlamEditor.edit(blamOperation);
- if (listener != null) {
- listener.notify();
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.operation.ImportTasksFromSpreadsheet;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.blam.BlamEditor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ImportTasksViaSpreadsheet extends Action {
+
+ private final TaskableStateMachineArtifact taskableArt;
+ private final Listener listener;
+
+ public ImportTasksViaSpreadsheet(TaskableStateMachineArtifact taskableArt, Listener listener) {
+ this.taskableArt = taskableArt;
+ this.listener = listener;
+ setText("Import Tasks via spreadsheet");
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.IMPORT));
+ }
+
+ @Override
+ public void run() {
+ try {
+ ImportTasksFromSpreadsheet blamOperation = new ImportTasksFromSpreadsheet();
+ blamOperation.setTaskableStateMachineArtifact(taskableArt);
+ BlamEditor.edit(blamOperation);
+ if (listener != null) {
+ listener.notify();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+}
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 4f8e006d33..469cbbc9b8 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
@@ -1,52 +1,52 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.AtsImage;
-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.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.EntryDialog;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class NewGoal extends Action {
-
- public NewGoal() {
- super("Create New Goal");
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GOAL_NEW));
- setToolTipText("Create New Goal");
- }
-
- @Override
- public void run() {
- 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);
- goalArt.persist();
- SMAEditor.editArtifact(goalArt);
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.AtsImage;
+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.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.EntryDialog;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class NewGoal extends Action {
+
+ public NewGoal() {
+ super("Create New Goal");
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GOAL_NEW));
+ setToolTipText("Create New Goal");
+ }
+
+ @Override
+ public void run() {
+ 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);
+ goalArt.persist();
+ SMAEditor.editArtifact(goalArt);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorkflowEditor.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorkflowEditor.java
index d7ada1bd8f..a1527c018a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorkflowEditor.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorkflowEditor.java
@@ -1,70 +1,70 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.osee.ats.AtsOpenOption;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenInAtsWorkflowEditor extends Action {
-
- private final ISelectedAtsArtifacts selectedAtsArtifacts;
-
- public OpenInAtsWorkflowEditor(String name, ISelectedAtsArtifacts selectedAtsArtifacts) {
- this.selectedAtsArtifacts = selectedAtsArtifacts;
- setText(name);
- }
-
- public OpenInAtsWorkflowEditor(ISelectedAtsArtifacts selectedAtsArtifacts) {
- this("Open in ATS Workflow Editor", selectedAtsArtifacts);
- }
-
- public void performOpen() {
- try {
- for (Artifact art : selectedAtsArtifacts.getSelectedSMAArtifacts()) {
- AtsUtil.openATSAction(art, AtsOpenOption.OpenAll);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- public void updateEnablement() {
- try {
- setEnabled(selectedAtsArtifacts.getSelectedSMAArtifacts().size() > 0);
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- setEnabled(false);
- }
- }
-
- @Override
- public void run() {
- performOpen();
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(FrameworkImage.WORKFLOW);
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.osee.ats.AtsOpenOption;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenInAtsWorkflowEditor extends Action {
+
+ private final ISelectedAtsArtifacts selectedAtsArtifacts;
+
+ public OpenInAtsWorkflowEditor(String name, ISelectedAtsArtifacts selectedAtsArtifacts) {
+ this.selectedAtsArtifacts = selectedAtsArtifacts;
+ setText(name);
+ }
+
+ public OpenInAtsWorkflowEditor(ISelectedAtsArtifacts selectedAtsArtifacts) {
+ this("Open in ATS Workflow Editor", selectedAtsArtifacts);
+ }
+
+ public void performOpen() {
+ try {
+ for (Artifact art : selectedAtsArtifacts.getSelectedSMAArtifacts()) {
+ AtsUtil.openATSAction(art, AtsOpenOption.OpenAll);
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ public void updateEnablement() {
+ try {
+ setEnabled(selectedAtsArtifacts.getSelectedSMAArtifacts().size() > 0);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ setEnabled(false);
+ }
+ }
+
+ @Override
+ public void run() {
+ performOpen();
+ }
+
+ @Override
+ public ImageDescriptor getImageDescriptor() {
+ return ImageManager.getImageDescriptor(FrameworkImage.WORKFLOW);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorldAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorldAction.java
index 0583798f23..112c451b2f 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorldAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenInAtsWorldAction.java
@@ -1,67 +1,67 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.Arrays;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.artifact.ActionArtifact;
-import org.eclipse.osee.ats.artifact.StateMachineArtifact;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.ats.world.WorldEditorSimpleProvider;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenInAtsWorldAction extends Action {
-
- private final StateMachineArtifact sma;
-
- public OpenInAtsWorldAction(StateMachineArtifact sma) {
- this.sma = sma;
- setText("Open in ATS World Editor");
- }
-
- public void performOpen() {
- try {
- if (sma.isTeamWorkflow()) {
- ActionArtifact actionArt = ((TeamWorkFlowArtifact) sma).getParentActionArtifact();
- WorldEditor.open(new WorldEditorSimpleProvider("Action " + actionArt.getHumanReadableId(),
- Arrays.asList(actionArt)));
- return;
- } else {
- WorldEditor.open(new WorldEditorSimpleProvider(sma.getArtifactTypeName() + ": " + sma.getHumanReadableId(),
- Arrays.asList(sma)));
- return;
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- @Override
- public void run() {
- performOpen();
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(AtsImage.GLOBE);
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.Arrays;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.artifact.ActionArtifact;
+import org.eclipse.osee.ats.artifact.StateMachineArtifact;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.ats.world.WorldEditorSimpleProvider;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenInAtsWorldAction extends Action {
+
+ private final StateMachineArtifact sma;
+
+ public OpenInAtsWorldAction(StateMachineArtifact sma) {
+ this.sma = sma;
+ setText("Open in ATS World Editor");
+ }
+
+ public void performOpen() {
+ try {
+ if (sma.isTeamWorkflow()) {
+ ActionArtifact actionArt = ((TeamWorkFlowArtifact) sma).getParentActionArtifact();
+ WorldEditor.open(new WorldEditorSimpleProvider("Action " + actionArt.getHumanReadableId(),
+ Arrays.asList(actionArt)));
+ return;
+ } else {
+ WorldEditor.open(new WorldEditorSimpleProvider(sma.getArtifactTypeName() + ": " + sma.getHumanReadableId(),
+ Arrays.asList(sma)));
+ return;
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ @Override
+ public void run() {
+ performOpen();
+ }
+
+ @Override
+ public ImageDescriptor getImageDescriptor() {
+ return ImageManager.getImageDescriptor(AtsImage.GLOBE);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorAction.java
index 7d3c084b66..b1278fe630 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorAction.java
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.task.ITaskEditorProvider;
-import org.eclipse.osee.ats.task.TaskEditor;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenNewAtsTaskEditorAction extends Action {
-
- private final IOpenNewAtsTaskEditorHandler openNewAtsTaskEditorHandler;
-
- public OpenNewAtsTaskEditorAction(IOpenNewAtsTaskEditorHandler openNewAtsTaskEditorHandler) {
- this.openNewAtsTaskEditorHandler = openNewAtsTaskEditorHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.TASK));
- setToolTipText("Open New ATS Task Editor");
- }
-
- public interface IOpenNewAtsTaskEditorHandler {
- public ITaskEditorProvider getTaskEditorProviderCopy() throws OseeCoreException;
-
- public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
- }
-
- @Override
- public void run() {
- try {
- ITaskEditorProvider provider = openNewAtsTaskEditorHandler.getTaskEditorProviderCopy();
- provider.setCustomizeData(openNewAtsTaskEditorHandler.getCustomizeDataCopy());
- provider.setTableLoadOptions(TableLoadOption.NoUI);
- TaskEditor.open(provider);
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.task.ITaskEditorProvider;
+import org.eclipse.osee.ats.task.TaskEditor;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenNewAtsTaskEditorAction extends Action {
+
+ private final IOpenNewAtsTaskEditorHandler openNewAtsTaskEditorHandler;
+
+ public OpenNewAtsTaskEditorAction(IOpenNewAtsTaskEditorHandler openNewAtsTaskEditorHandler) {
+ this.openNewAtsTaskEditorHandler = openNewAtsTaskEditorHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.TASK));
+ setToolTipText("Open New ATS Task Editor");
+ }
+
+ public interface IOpenNewAtsTaskEditorHandler {
+ public ITaskEditorProvider getTaskEditorProviderCopy() throws OseeCoreException;
+
+ public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
+ }
+
+ @Override
+ public void run() {
+ try {
+ ITaskEditorProvider provider = openNewAtsTaskEditorHandler.getTaskEditorProviderCopy();
+ provider.setCustomizeData(openNewAtsTaskEditorHandler.getCustomizeDataCopy());
+ provider.setTableLoadOptions(TableLoadOption.NoUI);
+ TaskEditor.open(provider);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorSelected.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorSelected.java
index a734518306..a760f912ac 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorSelected.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsTaskEditorSelected.java
@@ -1,62 +1,62 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.ArrayList;
-import org.eclipse.jface.action.Action;
-import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.task.TaskEditor;
-import org.eclipse.osee.ats.task.TaskEditorSimpleProvider;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenNewAtsTaskEditorSelected extends Action {
-
- private final IOpenNewAtsTaskEditorSelectedHandler openNewAtsTaskEditorSelectedHandler;
-
- public OpenNewAtsTaskEditorSelected(IOpenNewAtsTaskEditorSelectedHandler openNewAtsTaskEditorSelectedHandler) {
- this.openNewAtsTaskEditorSelectedHandler = openNewAtsTaskEditorSelectedHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.TASK_SELECTED));
- setToolTipText("Open Selected in ATS Task Editor");
- }
-
- public interface IOpenNewAtsTaskEditorSelectedHandler {
- public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
-
- public ArrayList<? extends Artifact> getSelectedArtifacts() throws OseeCoreException;
-
- }
-
- @Override
- public void run() {
- try {
- if (openNewAtsTaskEditorSelectedHandler.getSelectedArtifacts().isEmpty()) {
- AWorkbench.popup("ERROR", "Select items to open");
- return;
- }
- TaskEditor.open(new TaskEditorSimpleProvider("Tasks",
- openNewAtsTaskEditorSelectedHandler.getSelectedArtifacts(),
- openNewAtsTaskEditorSelectedHandler.getCustomizeDataCopy()));
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.ArrayList;
+import org.eclipse.jface.action.Action;
+import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.task.TaskEditor;
+import org.eclipse.osee.ats.task.TaskEditorSimpleProvider;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenNewAtsTaskEditorSelected extends Action {
+
+ private final IOpenNewAtsTaskEditorSelectedHandler openNewAtsTaskEditorSelectedHandler;
+
+ public OpenNewAtsTaskEditorSelected(IOpenNewAtsTaskEditorSelectedHandler openNewAtsTaskEditorSelectedHandler) {
+ this.openNewAtsTaskEditorSelectedHandler = openNewAtsTaskEditorSelectedHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.TASK_SELECTED));
+ setToolTipText("Open Selected in ATS Task Editor");
+ }
+
+ public interface IOpenNewAtsTaskEditorSelectedHandler {
+ public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
+
+ public ArrayList<? extends Artifact> getSelectedArtifacts() throws OseeCoreException;
+
+ }
+
+ @Override
+ public void run() {
+ try {
+ if (openNewAtsTaskEditorSelectedHandler.getSelectedArtifacts().isEmpty()) {
+ AWorkbench.popup("ERROR", "Select items to open");
+ return;
+ }
+ TaskEditor.open(new TaskEditorSimpleProvider("Tasks",
+ openNewAtsTaskEditorSelectedHandler.getSelectedArtifacts(),
+ openNewAtsTaskEditorSelectedHandler.getCustomizeDataCopy()));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorAction.java
index 3c5ddc9920..a396ed99e6 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorAction.java
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.world.IWorldEditorProvider;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenNewAtsWorldEditorAction extends Action {
-
- private final IOpenNewAtsWorldEditorHandler openNewAtsWorldEditorHandler;
-
- public OpenNewAtsWorldEditorAction(IOpenNewAtsWorldEditorHandler openNewAtsWorldEditorHandler) {
- this.openNewAtsWorldEditorHandler = openNewAtsWorldEditorHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GLOBE));
- setToolTipText("Open in ATS World Editor");
- }
-
- public interface IOpenNewAtsWorldEditorHandler {
- public IWorldEditorProvider getWorldEditorProviderCopy() throws OseeCoreException;
-
- public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
- }
-
- @Override
- public void run() {
- try {
- IWorldEditorProvider provider = openNewAtsWorldEditorHandler.getWorldEditorProviderCopy();
- provider.setCustomizeData(openNewAtsWorldEditorHandler.getCustomizeDataCopy());
- provider.setTableLoadOptions(TableLoadOption.NoUI);
- WorldEditor.open(provider);
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.world.IWorldEditorProvider;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenNewAtsWorldEditorAction extends Action {
+
+ private final IOpenNewAtsWorldEditorHandler openNewAtsWorldEditorHandler;
+
+ public OpenNewAtsWorldEditorAction(IOpenNewAtsWorldEditorHandler openNewAtsWorldEditorHandler) {
+ this.openNewAtsWorldEditorHandler = openNewAtsWorldEditorHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GLOBE));
+ setToolTipText("Open in ATS World Editor");
+ }
+
+ public interface IOpenNewAtsWorldEditorHandler {
+ public IWorldEditorProvider getWorldEditorProviderCopy() throws OseeCoreException;
+
+ public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
+ }
+
+ @Override
+ public void run() {
+ try {
+ IWorldEditorProvider provider = openNewAtsWorldEditorHandler.getWorldEditorProviderCopy();
+ provider.setCustomizeData(openNewAtsWorldEditorHandler.getCustomizeDataCopy());
+ provider.setTableLoadOptions(TableLoadOption.NoUI);
+ WorldEditor.open(provider);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorSelectedAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorSelectedAction.java
index af3178133c..3d157c9f25 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorSelectedAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenNewAtsWorldEditorSelectedAction.java
@@ -1,63 +1,63 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.ArrayList;
-import org.eclipse.jface.action.Action;
-import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.ats.world.WorldEditorSimpleProvider;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class OpenNewAtsWorldEditorSelectedAction extends Action {
-
- private final IOpenNewAtsWorldEditorSelectedHandler openNewAtsWorldEditorSelectedHandler;
-
- public OpenNewAtsWorldEditorSelectedAction(IOpenNewAtsWorldEditorSelectedHandler openNewAtsWorldEditorSelectedHandler) {
- this.openNewAtsWorldEditorSelectedHandler = openNewAtsWorldEditorSelectedHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GLOBE_SELECT));
- setToolTipText("Open Selected in ATS World Editor");
- }
-
- public interface IOpenNewAtsWorldEditorSelectedHandler {
- public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
-
- public ArrayList<Artifact> getSelectedArtifacts() throws OseeCoreException;
-
- }
-
- @Override
- public void run() {
- try {
- if (openNewAtsWorldEditorSelectedHandler.getSelectedArtifacts().isEmpty()) {
- AWorkbench.popup("ERROR", "Select items to open");
- return;
- }
- WorldEditor.open(new WorldEditorSimpleProvider("ATS World",
- openNewAtsWorldEditorSelectedHandler.getSelectedArtifacts(),
- openNewAtsWorldEditorSelectedHandler.getCustomizeDataCopy(), (TableLoadOption[]) null));
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.ArrayList;
+import org.eclipse.jface.action.Action;
+import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.ats.world.WorldEditorSimpleProvider;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenNewAtsWorldEditorSelectedAction extends Action {
+
+ private final IOpenNewAtsWorldEditorSelectedHandler openNewAtsWorldEditorSelectedHandler;
+
+ public OpenNewAtsWorldEditorSelectedAction(IOpenNewAtsWorldEditorSelectedHandler openNewAtsWorldEditorSelectedHandler) {
+ this.openNewAtsWorldEditorSelectedHandler = openNewAtsWorldEditorSelectedHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.GLOBE_SELECT));
+ setToolTipText("Open Selected in ATS World Editor");
+ }
+
+ public interface IOpenNewAtsWorldEditorSelectedHandler {
+ public CustomizeData getCustomizeDataCopy() throws OseeCoreException;
+
+ public ArrayList<Artifact> getSelectedArtifacts() throws OseeCoreException;
+
+ }
+
+ @Override
+ public void run() {
+ try {
+ if (openNewAtsWorldEditorSelectedHandler.getSelectedArtifacts().isEmpty()) {
+ AWorkbench.popup("ERROR", "Select items to open");
+ return;
+ }
+ WorldEditor.open(new WorldEditorSimpleProvider("ATS World",
+ openNewAtsWorldEditorSelectedHandler.getSelectedArtifacts(),
+ openNewAtsWorldEditorSelectedHandler.getCustomizeDataCopy(), (TableLoadOption[]) null));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ShowMergeManagerAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ShowMergeManagerAction.java
index 6de1eb025d..517c16efe0 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ShowMergeManagerAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ShowMergeManagerAction.java
@@ -1,53 +1,53 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import java.util.logging.Level;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
-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.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class ShowMergeManagerAction extends Action {
-
- private final TeamWorkFlowArtifact teamArt;
-
- // Since this service is only going to be added for the Implement state, Location.AllState will
- // work
- public ShowMergeManagerAction(TeamWorkFlowArtifact teamArt) {
- this.teamArt = teamArt;
- setText("Show Merge Manager");
- setToolTipText(getText());
- try {
- setEnabled(teamArt.getBranchMgr().isWorkingBranchInWork() || teamArt.getBranchMgr().isCommittedBranchExists());
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void run() {
- teamArt.getBranchMgr().showMergeManager();
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(FrameworkImage.OUTGOING_MERGED);
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import java.util.logging.Level;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
+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.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ShowMergeManagerAction extends Action {
+
+ private final TeamWorkFlowArtifact teamArt;
+
+ // Since this service is only going to be added for the Implement state, Location.AllState will
+ // work
+ public ShowMergeManagerAction(TeamWorkFlowArtifact teamArt) {
+ this.teamArt = teamArt;
+ setText("Show Merge Manager");
+ setToolTipText(getText());
+ try {
+ setEnabled(teamArt.getBranchMgr().isWorkingBranchInWork() || teamArt.getBranchMgr().isCommittedBranchExists());
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void run() {
+ teamArt.getBranchMgr().showMergeManager();
+ }
+
+ @Override
+ public ImageDescriptor getImageDescriptor() {
+ return ImageManager.getImageDescriptor(FrameworkImage.OUTGOING_MERGED);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskAddAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskAddAction.java
index e2057e21ee..de3cbadba5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskAddAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskAddAction.java
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class TaskAddAction extends Action {
-
- private final ITaskAddActionHandler taskAddActionHandler;
-
- public TaskAddAction(ITaskAddActionHandler taskAddActionHandler) {
- super("Create New Task");
- this.taskAddActionHandler = taskAddActionHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.NEW_TASK));
- setToolTipText(getText());
- }
-
- public static interface ITaskAddActionHandler {
- public void taskAddActionHandler();
- }
-
- @Override
- public void run() {
- super.run();
- taskAddActionHandler.taskAddActionHandler();
- }
-
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class TaskAddAction extends Action {
+
+ private final ITaskAddActionHandler taskAddActionHandler;
+
+ public TaskAddAction(ITaskAddActionHandler taskAddActionHandler) {
+ super("Create New Task");
+ this.taskAddActionHandler = taskAddActionHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(AtsImage.NEW_TASK));
+ setToolTipText(getText());
+ }
+
+ public static interface ITaskAddActionHandler {
+ public void taskAddActionHandler();
+ }
+
+ @Override
+ public void run() {
+ super.run();
+ taskAddActionHandler.taskAddActionHandler();
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskDeleteAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskDeleteAction.java
index 7f70519023..336bb6ec14 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskDeleteAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/TaskDeleteAction.java
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class TaskDeleteAction extends Action {
-
- private final ITaskDeleteActionHandler taskDeleteActionHandler;
-
- public TaskDeleteAction(ITaskDeleteActionHandler taskDeleteActionHandler) {
- super("Delete Task");
- this.taskDeleteActionHandler = taskDeleteActionHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.X_RED));
- setToolTipText(getText());
- }
-
- public static interface ITaskDeleteActionHandler {
- public void taskDeleteActionHandler();
- }
-
- @Override
- public void run() {
- super.run();
- taskDeleteActionHandler.taskDeleteActionHandler();
- }
-
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class TaskDeleteAction extends Action {
+
+ private final ITaskDeleteActionHandler taskDeleteActionHandler;
+
+ public TaskDeleteAction(ITaskDeleteActionHandler taskDeleteActionHandler) {
+ super("Delete Task");
+ this.taskDeleteActionHandler = taskDeleteActionHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.X_RED));
+ setToolTipText(getText());
+ }
+
+ public static interface ITaskDeleteActionHandler {
+ public void taskDeleteActionHandler();
+ }
+
+ @Override
+ public void run() {
+ super.run();
+ taskDeleteActionHandler.taskDeleteActionHandler();
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/ArtifactSelectWizardPage.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/ArtifactSelectWizardPage.java
index f2e6120417..e9e3e69f33 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/ArtifactSelectWizardPage.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/ArtifactSelectWizardPage.java
@@ -1,223 +1,223 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.actions.wizard;
-
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ListViewer;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-
-public class ArtifactSelectWizardPage extends WizardPage {
-
- private ListViewer artTypeList;
- private ListViewer artList;
- private Artifact selectedArtifact;
- private boolean showArtData = false;
-
- public ArtifactSelectWizardPage() {
- super("Select an Artifact");
- }
-
- @Override
- public void createControl(Composite parent) {
- setTitle("Select an Artifact");
-
- Composite composite = new Composite(parent, SWT.NONE);
- GridLayout gl = new GridLayout();
- gl.numColumns = 2;
- composite.setLayout(gl);
- GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true);
- composite.setLayoutData(gd);
-
- Composite leftComp = new Composite(composite, SWT.NONE);
-
- leftComp.setLayout(new GridLayout());
- gd = new GridData(GridData.FILL, GridData.FILL, true, true);
- leftComp.setLayoutData(gd);
-
- new Label(leftComp, SWT.NONE).setText("Artifact Type");
-
- try {
- artTypeList = new ListViewer(leftComp, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
- artTypeList.setContentProvider(new ArrayContentProvider());
- artTypeList.setLabelProvider(new ArtTypeLabelProvider());
-
- gd = new GridData(GridData.FILL, GridData.FILL, true, true);
- gd.heightHint = 300;
- gd.widthHint = 200;
- artTypeList.getControl().setLayoutData(gd);
- artTypeList.setInput(ArtifactTypeManager.getValidArtifactTypes(AtsUtil.getAtsBranch()));
- artTypeList.addSelectionChangedListener(new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection) event.getSelection();
- ArtifactType desc = (ArtifactType) selection.getFirstElement();
- try {
- artList.setInput(ArtifactQuery.getArtifactListFromType(desc, AtsUtil.getAtsBranch()));
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- artTypeList.setSorter(new ViewerSorter() {
- @SuppressWarnings("unchecked")
- @Override
- public int compare(Viewer viewer, Object e1, Object e2) {
- return getComparator().compare(((ArtifactType) e1).getName(), ((ArtifactType) e2).getName());
- }
- });
-
- Composite rightComp = new Composite(composite, SWT.NONE);
-
- rightComp.setLayout(new GridLayout());
- gd = new GridData(GridData.FILL, GridData.FILL, true, true);
- rightComp.setLayoutData(gd);
-
- Label lab = new Label(rightComp, SWT.NONE);
- lab.setText("Artifact (click here for artifact data)");
- lab.setForeground(Displays.getSystemColor(SWT.COLOR_BLUE));
- lab.addListener(SWT.MouseUp, new Listener() {
- @Override
- public void handleEvent(Event event) {
- showArtData = !showArtData;
- artList.refresh();
- }
- });
-
- artList = new ListViewer(rightComp, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
- artList.setContentProvider(new ArrayContentProvider());
- artList.setLabelProvider(new ArtifactDescriptiveLabelProvider());
-
- artList.setSorter(new ViewerSorter() {
- @SuppressWarnings("unchecked")
- @Override
- public int compare(Viewer viewer, Object e1, Object e2) {
- return getComparator().compare(((Artifact) e1).getName(), ((Artifact) e2).getName());
- }
- });
- gd = new GridData(GridData.FILL, GridData.FILL, true, true);
- gd.heightHint = 300;
- gd.widthHint = 200;
- artList.getControl().setLayoutData(gd);
- artList.addSelectionChangedListener(new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection) event.getSelection();
- selectedArtifact = (Artifact) selection.getFirstElement();
- }
- });
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
-
- setControl(composite);
- }
-
- public Artifact getSelectedArtifact() {
- return selectedArtifact;
- }
-
- public class ArtifactDescriptiveLabelProvider implements ILabelProvider {
-
- @Override
- public Image getImage(Object arg0) {
- return null;
- }
-
- @Override
- public String getText(Object arg0) {
- Artifact art = (Artifact) arg0;
- if (showArtData) {
- return String.format("%s - (%s %s %s)", art.getName(), art.getArtId(), art.getHumanReadableId(),
- art.getGuid());
- } else {
- return art.getName();
- }
- }
-
- @Override
- public boolean isLabelProperty(Object arg0, String arg1) {
- return false;
- }
-
- @Override
- public void removeListener(ILabelProviderListener arg0) {
- // do nothing
- }
-
- @Override
- public void addListener(ILabelProviderListener listener) {
- // do nothing
- }
-
- @Override
- public void dispose() {
- // do nothing
- }
- }
-
- public static class ArtTypeLabelProvider implements ILabelProvider {
-
- @Override
- public Image getImage(Object arg0) {
- return null;
- }
-
- @Override
- public String getText(Object arg0) {
- return ((ArtifactType) arg0).getName();
- }
-
- @Override
- public void addListener(ILabelProviderListener arg0) {
- // do nothing
- }
-
- @Override
- public void dispose() {
- // do nothing
- }
-
- @Override
- public boolean isLabelProperty(Object arg0, String arg1) {
- return false;
- }
-
- @Override
- public void removeListener(ILabelProviderListener arg0) {
- // do nothing
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions.wizard;
+
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ListViewer;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerSorter;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+
+public class ArtifactSelectWizardPage extends WizardPage {
+
+ private ListViewer artTypeList;
+ private ListViewer artList;
+ private Artifact selectedArtifact;
+ private boolean showArtData = false;
+
+ public ArtifactSelectWizardPage() {
+ super("Select an Artifact");
+ }
+
+ @Override
+ public void createControl(Composite parent) {
+ setTitle("Select an Artifact");
+
+ Composite composite = new Composite(parent, SWT.NONE);
+ GridLayout gl = new GridLayout();
+ gl.numColumns = 2;
+ composite.setLayout(gl);
+ GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true);
+ composite.setLayoutData(gd);
+
+ Composite leftComp = new Composite(composite, SWT.NONE);
+
+ leftComp.setLayout(new GridLayout());
+ gd = new GridData(GridData.FILL, GridData.FILL, true, true);
+ leftComp.setLayoutData(gd);
+
+ new Label(leftComp, SWT.NONE).setText("Artifact Type");
+
+ try {
+ artTypeList = new ListViewer(leftComp, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
+ artTypeList.setContentProvider(new ArrayContentProvider());
+ artTypeList.setLabelProvider(new ArtTypeLabelProvider());
+
+ gd = new GridData(GridData.FILL, GridData.FILL, true, true);
+ gd.heightHint = 300;
+ gd.widthHint = 200;
+ artTypeList.getControl().setLayoutData(gd);
+ artTypeList.setInput(ArtifactTypeManager.getValidArtifactTypes(AtsUtil.getAtsBranch()));
+ artTypeList.addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ IStructuredSelection selection = (IStructuredSelection) event.getSelection();
+ ArtifactType desc = (ArtifactType) selection.getFirstElement();
+ try {
+ artList.setInput(ArtifactQuery.getArtifactListFromType(desc, AtsUtil.getAtsBranch()));
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ artTypeList.setSorter(new ViewerSorter() {
+ @SuppressWarnings("unchecked")
+ @Override
+ public int compare(Viewer viewer, Object e1, Object e2) {
+ return getComparator().compare(((ArtifactType) e1).getName(), ((ArtifactType) e2).getName());
+ }
+ });
+
+ Composite rightComp = new Composite(composite, SWT.NONE);
+
+ rightComp.setLayout(new GridLayout());
+ gd = new GridData(GridData.FILL, GridData.FILL, true, true);
+ rightComp.setLayoutData(gd);
+
+ Label lab = new Label(rightComp, SWT.NONE);
+ lab.setText("Artifact (click here for artifact data)");
+ lab.setForeground(Displays.getSystemColor(SWT.COLOR_BLUE));
+ lab.addListener(SWT.MouseUp, new Listener() {
+ @Override
+ public void handleEvent(Event event) {
+ showArtData = !showArtData;
+ artList.refresh();
+ }
+ });
+
+ artList = new ListViewer(rightComp, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL);
+ artList.setContentProvider(new ArrayContentProvider());
+ artList.setLabelProvider(new ArtifactDescriptiveLabelProvider());
+
+ artList.setSorter(new ViewerSorter() {
+ @SuppressWarnings("unchecked")
+ @Override
+ public int compare(Viewer viewer, Object e1, Object e2) {
+ return getComparator().compare(((Artifact) e1).getName(), ((Artifact) e2).getName());
+ }
+ });
+ gd = new GridData(GridData.FILL, GridData.FILL, true, true);
+ gd.heightHint = 300;
+ gd.widthHint = 200;
+ artList.getControl().setLayoutData(gd);
+ artList.addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ IStructuredSelection selection = (IStructuredSelection) event.getSelection();
+ selectedArtifact = (Artifact) selection.getFirstElement();
+ }
+ });
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+
+ setControl(composite);
+ }
+
+ public Artifact getSelectedArtifact() {
+ return selectedArtifact;
+ }
+
+ public class ArtifactDescriptiveLabelProvider implements ILabelProvider {
+
+ @Override
+ public Image getImage(Object arg0) {
+ return null;
+ }
+
+ @Override
+ public String getText(Object arg0) {
+ Artifact art = (Artifact) arg0;
+ if (showArtData) {
+ return String.format("%s - (%s %s %s)", art.getName(), art.getArtId(), art.getHumanReadableId(),
+ art.getGuid());
+ } else {
+ return art.getName();
+ }
+ }
+
+ @Override
+ public boolean isLabelProperty(Object arg0, String arg1) {
+ return false;
+ }
+
+ @Override
+ public void removeListener(ILabelProviderListener arg0) {
+ // do nothing
+ }
+
+ @Override
+ public void addListener(ILabelProviderListener listener) {
+ // do nothing
+ }
+
+ @Override
+ public void dispose() {
+ // do nothing
+ }
+ }
+
+ public static class ArtTypeLabelProvider implements ILabelProvider {
+
+ @Override
+ public Image getImage(Object arg0) {
+ return null;
+ }
+
+ @Override
+ public String getText(Object arg0) {
+ return ((ArtifactType) arg0).getName();
+ }
+
+ @Override
+ public void addListener(ILabelProviderListener arg0) {
+ // do nothing
+ }
+
+ @Override
+ public void dispose() {
+ // do nothing
+ }
+
+ @Override
+ public boolean isLabelProperty(Object arg0, String arg1) {
+ return false;
+ }
+
+ @Override
+ public void removeListener(ILabelProviderListener arg0) {
+ // do nothing
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage1.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage1.java
index f42ea74e3f..c521a0ae4a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage1.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage1.java
@@ -1,206 +1,206 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.actions.wizard;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.osee.ats.artifact.ActionableItemArtifact;
-import org.eclipse.osee.ats.artifact.AtsAttributeTypes;
-import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.widgets.dialog.AITreeContentProvider;
-import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
-import org.eclipse.osee.framework.core.enums.Active;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider;
-import org.eclipse.osee.framework.ui.skynet.util.ArtifactNameSorter;
-import org.eclipse.osee.framework.ui.skynet.util.filteredTree.OSEECheckedFilteredTree;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XText;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.dialogs.PatternFilter;
-
-/**
- * @author Donald G. Dunne
- */
-public class NewActionPage1 extends WizardPage {
- private final NewActionWizard wizard;
- private WorkPage page;
- private OSEECheckedFilteredTree treeViewer;
- private static PatternFilter patternFilter = new PatternFilter();
- private static Text descriptionLabel;
-
- protected NewActionPage1(NewActionWizard actionWizard) {
- super("Create new ATS Action", "Create ATS Action", null);
- setMessage("Enter title and select impacted items.");
- this.wizard = actionWizard;
- }
-
- private final XModifiedListener xModListener = new XModifiedListener() {
- @Override
- public void widgetModified(XWidget widget) {
- getContainer().updateButtons();
- }
- };
-
- @Override
- public void createControl(Composite parent) {
-
- try {
- String xWidgetXml =
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.actions.wizard;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.osee.ats.artifact.ActionableItemArtifact;
+import org.eclipse.osee.ats.artifact.AtsAttributeTypes;
+import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.widgets.dialog.AITreeContentProvider;
+import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
+import org.eclipse.osee.framework.core.enums.Active;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.util.Conditions;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider;
+import org.eclipse.osee.framework.ui.skynet.util.ArtifactNameSorter;
+import org.eclipse.osee.framework.ui.skynet.util.filteredTree.OSEECheckedFilteredTree;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XText;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.dialogs.PatternFilter;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class NewActionPage1 extends WizardPage {
+ private final NewActionWizard wizard;
+ private WorkPage page;
+ private OSEECheckedFilteredTree treeViewer;
+ private static PatternFilter patternFilter = new PatternFilter();
+ private static Text descriptionLabel;
+
+ protected NewActionPage1(NewActionWizard actionWizard) {
+ super("Create new ATS Action", "Create ATS Action", null);
+ setMessage("Enter title and select impacted items.");
+ this.wizard = actionWizard;
+ }
+
+ private final XModifiedListener xModListener = new XModifiedListener() {
+ @Override
+ public void widgetModified(XWidget widget) {
+ getContainer().updateButtons();
+ }
+ };
+
+ @Override
+ public void createControl(Composite parent) {
+
+ try {
+ String xWidgetXml =
"<WorkPage><XWidget displayName=\"Title\" required=\"true\" xwidgetType=\"XText\" toolTip=\"" + AtsAttributeTypes.Title.getDescription() + "\"/></WorkPage>";
- Composite comp = new Composite(parent, SWT.NONE);
- comp.setLayout(new GridLayout(1, false));
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- page = new WorkPage(xWidgetXml, ATSXWidgetOptionResolver.getInstance());
- page.createBody(null, comp, null, xModListener, true);
-
- Composite aiComp = new Composite(comp, SWT.NONE);
- aiComp.setLayout(new GridLayout(1, false));
- aiComp.setLayoutData(new GridData(GridData.FILL_BOTH));
-
- new Label(aiComp, SWT.NONE).setText("Select Actionable Items:");
- treeViewer =
- new OSEECheckedFilteredTree(aiComp,
- SWT.CHECK | SWT.MULTI | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, patternFilter);
- treeViewer.getViewer().getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- treeViewer.getViewer().setContentProvider(new AITreeContentProvider(Active.Active));
- treeViewer.getViewer().setLabelProvider(new ArtifactLabelProvider());
- try {
- treeViewer.getViewer().setInput(ActionableItemArtifact.getTopLevelActionableItems(Active.Active));
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- treeViewer.getViewer().setSorter(new ArtifactNameSorter());
- treeViewer.getViewer().addSelectionChangedListener(new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- getContainer().updateButtons();
- }
- });
- GridData gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 400;
- treeViewer.setLayoutData(gd);
-
- new Label(aiComp, SWT.NONE).setText("Description of highlighted Actionable Item (if any):");
- descriptionLabel = new Text(aiComp, SWT.BORDER | SWT.WRAP);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 15;
- descriptionLabel.setLayoutData(gd);
- descriptionLabel.setEnabled(false);
-
- treeViewer.getViewer().addSelectionChangedListener(new SelectionChangedListener());
-
- Button deselectAll = new Button(aiComp, SWT.PUSH);
- deselectAll.setText("De-Select All");
- deselectAll.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- treeViewer.clearChecked();
- };
- });
-
- setControl(comp);
- setHelpContexts();
- if (wizard.getInitialAias() != null) {
- treeViewer.setInitalChecked(wizard.getInitialAias());
- }
- ((XText) getXWidget("Title")).setFocus();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private class SelectionChangedListener implements ISelectionChangedListener {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection sel = (IStructuredSelection) treeViewer.getViewer().getSelection();
- if (sel.isEmpty()) {
- return;
- }
- ActionableItemArtifact aia = (ActionableItemArtifact) sel.getFirstElement();
- try {
+ Composite comp = new Composite(parent, SWT.NONE);
+ comp.setLayout(new GridLayout(1, false));
+ comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ page = new WorkPage(xWidgetXml, ATSXWidgetOptionResolver.getInstance());
+ page.createBody(null, comp, null, xModListener, true);
+
+ Composite aiComp = new Composite(comp, SWT.NONE);
+ aiComp.setLayout(new GridLayout(1, false));
+ aiComp.setLayoutData(new GridData(GridData.FILL_BOTH));
+
+ new Label(aiComp, SWT.NONE).setText("Select Actionable Items:");
+ treeViewer =
+ new OSEECheckedFilteredTree(aiComp,
+ SWT.CHECK | SWT.MULTI | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, patternFilter);
+ treeViewer.getViewer().getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ treeViewer.getViewer().setContentProvider(new AITreeContentProvider(Active.Active));
+ treeViewer.getViewer().setLabelProvider(new ArtifactLabelProvider());
+ try {
+ treeViewer.getViewer().setInput(ActionableItemArtifact.getTopLevelActionableItems(Active.Active));
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ treeViewer.getViewer().setSorter(new ArtifactNameSorter());
+ treeViewer.getViewer().addSelectionChangedListener(new ISelectionChangedListener() {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ getContainer().updateButtons();
+ }
+ });
+ GridData gd = new GridData(GridData.FILL_BOTH);
+ gd.heightHint = 400;
+ treeViewer.setLayoutData(gd);
+
+ new Label(aiComp, SWT.NONE).setText("Description of highlighted Actionable Item (if any):");
+ descriptionLabel = new Text(aiComp, SWT.BORDER | SWT.WRAP);
+ gd = new GridData(GridData.FILL_BOTH);
+ gd.heightHint = 15;
+ descriptionLabel.setLayoutData(gd);
+ descriptionLabel.setEnabled(false);
+
+ treeViewer.getViewer().addSelectionChangedListener(new SelectionChangedListener());
+
+ Button deselectAll = new Button(aiComp, SWT.PUSH);
+ deselectAll.setText("De-Select All");
+ deselectAll.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ treeViewer.clearChecked();
+ };
+ });
+
+ setControl(comp);
+ setHelpContexts();
+ if (wizard.getInitialAias() != null) {
+ treeViewer.setInitalChecked(wizard.getInitialAias());
+ }
+ ((XText) getXWidget("Title")).setFocus();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private class SelectionChangedListener implements ISelectionChangedListener {
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ IStructuredSelection sel = (IStructuredSelection) treeViewer.getViewer().getSelection();
+ if (sel.isEmpty()) {
+ return;
+ }
+ ActionableItemArtifact aia = (ActionableItemArtifact) sel.getFirstElement();
+ try {
descriptionLabel.setText(aia.getSoleAttributeValue(AtsAttributeTypes.Description, ""));
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- private void setHelpContexts() {
- AtsPlugin.getInstance().setHelp(this.getControl(), "new_action_wizard_page_1", "org.eclipse.osee.ats.help.ui");
- }
-
- public Set<ActionableItemArtifact> getSelectedActionableItemArtifacts() {
- Set<ActionableItemArtifact> selected = new HashSet<ActionableItemArtifact>();
- for (Object obj : treeViewer.getChecked()) {
- selected.add((ActionableItemArtifact) obj);
- }
- return selected;
- }
-
- public XWidget getXWidget(String attrName) throws OseeCoreException {
- Conditions.checkNotNull(page, "WorkPage");
- return page.getLayoutData(attrName).getXWidget();
- }
-
- @Override
- public boolean isPageComplete() {
- if (treeViewer.getChecked().isEmpty()) {
- return false;
- }
- try {
- for (ActionableItemArtifact aia : getSelectedActionableItemArtifacts()) {
- if (!aia.isActionable()) {
- AWorkbench.popup("ERROR", ActionableItemArtifact.getNotActionableItemError(aia));
- return false;
- }
- }
- Collection<TeamDefinitionArtifact> teamDefs =
- TeamDefinitionArtifact.getImpactedTeamDefs(getSelectedActionableItemArtifacts());
- if (teamDefs.isEmpty()) {
- AWorkbench.popup("ERROR", "No Teams Associated with selected Actionable Items");
- return false;
- }
- } catch (Exception ex) {
- AWorkbench.popup("ERROR", ex.getLocalizedMessage());
- return false;
- }
- if (!page.isPageComplete().isTrue()) {
- return false;
- }
- return true;
- }
-
-}
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ private void setHelpContexts() {
+ AtsPlugin.getInstance().setHelp(this.getControl(), "new_action_wizard_page_1", "org.eclipse.osee.ats.help.ui");
+ }
+
+ public Set<ActionableItemArtifact> getSelectedActionableItemArtifacts() {
+ Set<ActionableItemArtifact> selected = new HashSet<ActionableItemArtifact>();
+ for (Object obj : treeViewer.getChecked()) {
+ selected.add((ActionableItemArtifact) obj);
+ }
+ return selected;
+ }
+
+ public XWidget getXWidget(String attrName) throws OseeCoreException {
+ Conditions.checkNotNull(page, "WorkPage");
+ return page.getLayoutData(attrName).getXWidget();
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ if (treeViewer.getChecked().isEmpty()) {
+ return false;
+ }
+ try {
+ for (ActionableItemArtifact aia : getSelectedActionableItemArtifacts()) {
+ if (!aia.isActionable()) {
+ AWorkbench.popup("ERROR", ActionableItemArtifact.getNotActionableItemError(aia));
+ return false;
+ }
+ }
+ Collection<TeamDefinitionArtifact> teamDefs =
+ TeamDefinitionArtifact.getImpactedTeamDefs(getSelectedActionableItemArtifacts());
+ if (teamDefs.isEmpty()) {
+ AWorkbench.popup("ERROR", "No Teams Associated with selected Actionable Items");
+ return false;
+ }
+ } catch (Exception ex) {
+ AWorkbench.popup("ERROR", ex.getLocalizedMessage());
+ return false;
+ }
+ if (!page.isPageComplete().isTrue()) {
+ return false;
+ }
+ return true;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage2.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage2.java
index e7e0b14440..abc4836a13 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage2.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/wizard/NewActionPage2.java
@@ -1,139 +1,139 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.actions.wizard;
-
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.osee.ats.artifact.AtsAttributeTypes;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XText;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Donald G. Dunne
- */
-public class NewActionPage2 extends WizardPage {
- private WorkPage page;
- private final NewActionWizard wizard;
- private boolean debugPopulated = false;
-
- protected NewActionPage2(NewActionWizard wizard) {
- super("Create new ATS Action", "Create ATS Action", null);
- this.wizard = wizard;
- setMessage("Enter description, priority, change type and select Finish.");
- }
-
- @Override
- public void setVisible(boolean visible) {
- super.setVisible(visible);
- try {
- if (wizard.getInitialDescription() != null && ((XText) getXWidget("Description")).get().equals("")) {
- ((XText) getXWidget("Description")).set(wizard.getInitialDescription());
- }
- if (wizard.isTTAction()) {
- handlePopulateWithDebugInfo();
- }
- wizard.createPage3IfNecessary();
- ((XText) getXWidget("Description")).getStyledText().setFocus();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private final XModifiedListener xModListener = new XModifiedListener() {
- @Override
- public void widgetModified(XWidget widget) {
- getContainer().updateButtons();
- }
- };
-
- @Override
- public void createControl(Composite parent) {
-
- try {
- StringBuffer sb = new StringBuffer("<WorkPage>");
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.actions.wizard;
+
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.osee.ats.artifact.AtsAttributeTypes;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.util.Conditions;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XText;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class NewActionPage2 extends WizardPage {
+ private WorkPage page;
+ private final NewActionWizard wizard;
+ private boolean debugPopulated = false;
+
+ protected NewActionPage2(NewActionWizard wizard) {
+ super("Create new ATS Action", "Create ATS Action", null);
+ this.wizard = wizard;
+ setMessage("Enter description, priority, change type and select Finish.");
+ }
+
+ @Override
+ public void setVisible(boolean visible) {
+ super.setVisible(visible);
+ try {
+ if (wizard.getInitialDescription() != null && ((XText) getXWidget("Description")).get().equals("")) {
+ ((XText) getXWidget("Description")).set(wizard.getInitialDescription());
+ }
+ if (wizard.isTTAction()) {
+ handlePopulateWithDebugInfo();
+ }
+ wizard.createPage3IfNecessary();
+ ((XText) getXWidget("Description")).getStyledText().setFocus();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private final XModifiedListener xModListener = new XModifiedListener() {
+ @Override
+ public void widgetModified(XWidget widget) {
+ getContainer().updateButtons();
+ }
+ };
+
+ @Override
+ public void createControl(Composite parent) {
+
+ try {
+ StringBuffer sb = new StringBuffer("<WorkPage>");
sb.append("<XWidget displayName=\"Description\" height=\"80\" required=\"true\" xwidgetType=\"XText\" fill=\"Vertically\" toolTip=\"" + AtsAttributeTypes.Description.getDescription() + "\"/>");
sb.append("<XWidget displayName=\"Change Type\" storageName=\"ats.Change Type\" xwidgetType=\"XCombo(" + ATSXWidgetOptionResolver.OPTIONS_FROM_ATTRIBUTE_VALIDITY + ")\" required=\"true\" horizontalLabel=\"true\" toolTip=\"" + AtsAttributeTypes.ChangeType.getDescription() + "\"/>");
- sb.append("<XWidget displayName=\"Priority\" storageName=\"ats.Priority\" xwidgetType=\"XCombo(" + ATSXWidgetOptionResolver.OPTIONS_FROM_ATTRIBUTE_VALIDITY + ")\" required=\"true\" horizontalLabel=\"true\"/>");
+ sb.append("<XWidget displayName=\"Priority\" storageName=\"ats.Priority\" xwidgetType=\"XCombo(" + ATSXWidgetOptionResolver.OPTIONS_FROM_ATTRIBUTE_VALIDITY + ")\" required=\"true\" horizontalLabel=\"true\"/>");
sb.append("<XWidget displayName=\"Deadline\" xwidgetType=\"XDate\" horizontalLabel=\"true\" toolTip=\"" + AtsAttributeTypes.NeedBy.getDescription() + "\"/>");
sb.append("<XWidget displayName=\"Validation Required\" xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" toolTip=\"" + AtsAttributeTypes.ValidationRequired.getDescription() + "\"/>");
- sb.append("</WorkPage>");
-
- Composite comp = new Composite(parent, SWT.NONE);
- comp.setLayout(new GridLayout(2, false));
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- page = new WorkPage(sb.toString(), ATSXWidgetOptionResolver.getInstance());
- page.createBody(null, comp, null, xModListener, true);
-
- ((XText) getXWidget("Description")).getLabelWidget().addListener(SWT.MouseUp, new Listener() {
- @Override
- public void handleEvent(Event event) {
- if (event.button == 3) {
- handlePopulateWithDebugInfo();
- }
- }
- });
-
- setControl(comp);
- setHelpContexts();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private void setHelpContexts() {
- AtsPlugin.getInstance().setHelp(this.getControl(), "new_action_wizard_page_2", "org.eclipse.osee.ats.help.ui");
- }
-
- private void handlePopulateWithDebugInfo() {
- if (debugPopulated) {
- return;
- }
- try {
- ((XText) getXWidget("Description")).set("See title");
- // Must use skynet attribute name cause these widget uses the OPTIONS_FROM_ATTRIBUTE_VALIDITY
- ((XCombo) getXWidget("ats.Priority")).set("4");
- ((XCombo) getXWidget("ats.Change Type")).set("Improvement");
- debugPopulated = true;
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- @Override
- public boolean isPageComplete() {
- if (page == null || !page.isPageComplete().isTrue()) {
- return false;
- }
- return true;
- }
-
- protected XWidget getXWidget(String attrName) throws OseeCoreException {
- Conditions.checkNotNull(page, "WorkPage");
- return page.getLayoutData(attrName).getXWidget();
- }
-
-}
+ sb.append("</WorkPage>");
+
+ Composite comp = new Composite(parent, SWT.NONE);
+ comp.setLayout(new GridLayout(2, false));
+ comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ page = new WorkPage(sb.toString(), ATSXWidgetOptionResolver.getInstance());
+ page.createBody(null, comp, null, xModListener, true);
+
+ ((XText) getXWidget("Description")).getLabelWidget().addListener(SWT.MouseUp, new Listener() {
+ @Override
+ public void handleEvent(Event event) {
+ if (event.button == 3) {
+ handlePopulateWithDebugInfo();
+ }
+ }
+ });
+
+ setControl(comp);
+ setHelpContexts();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private void setHelpContexts() {
+ AtsPlugin.getInstance().setHelp(this.getControl(), "new_action_wizard_page_2", "org.eclipse.osee.ats.help.ui");
+ }
+
+ private void handlePopulateWithDebugInfo() {
+ if (debugPopulated) {
+ return;
+ }
+ try {
+ ((XText) getXWidget("Description")).set("See title");
+ // Must use skynet attribute name cause these widget uses the OPTIONS_FROM_ATTRIBUTE_VALIDITY
+ ((XCombo) getXWidget("ats.Priority")).set("4");
+ ((XCombo) getXWidget("ats.Change Type")).set("Improvement");
+ debugPopulated = true;
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ if (page == null || !page.isPageComplete().isTrue()) {
+ return false;
+ }
+ return true;
+ }
+
+ protected XWidget getXWidget(String attrName) throws OseeCoreException {
+ Conditions.checkNotNull(page, "WorkPage");
+ return page.getLayoutData(attrName).getXWidget();
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSArtifact.java
index 684d360543..0db6d955cd 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSArtifact.java
@@ -1,61 +1,61 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import org.eclipse.osee.ats.hyper.IHyperArtifact;
-import org.eclipse.osee.ats.util.Overview;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.IATSArtifact;
-import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
-
-public abstract class ATSArtifact extends Artifact implements IHyperArtifact, IATSArtifact {
-
- public ATSArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- }
-
- public String getHyperlinkHtml() {
- return Overview.getOpenHyperlinkHtml(this);
- }
-
- /**
- * Recursively retrieve artifacts and all its ATS related artifacts such as tasks, notes, subscriptions, etc... for
- * deletion
- */
- public void atsDelete(Set<Artifact> deleteArts, Map<Artifact, Object> allRelated) throws OseeCoreException {
- deleteArts.add(this);
- for (Artifact relative : getBSideArtifacts()) {
- allRelated.put(relative, this);
- }
- }
-
- private List<Artifact> getBSideArtifacts() throws OseeCoreException {
- List<Artifact> sideBArtifacts = new ArrayList<Artifact>();
- List<RelationLink> relatives = getRelationsAll(false);
- for (RelationLink link : relatives) {
- Artifact sideB = link.getArtifactB();
- if (!sideB.equals(this)) {
- sideBArtifacts.add(sideB);
- }
- }
-
- return sideBArtifacts;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import org.eclipse.osee.ats.hyper.IHyperArtifact;
+import org.eclipse.osee.ats.util.Overview;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.IATSArtifact;
+import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
+
+public abstract class ATSArtifact extends Artifact implements IHyperArtifact, IATSArtifact {
+
+ public ATSArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ }
+
+ public String getHyperlinkHtml() {
+ return Overview.getOpenHyperlinkHtml(this);
+ }
+
+ /**
+ * Recursively retrieve artifacts and all its ATS related artifacts such as tasks, notes, subscriptions, etc... for
+ * deletion
+ */
+ public void atsDelete(Set<Artifact> deleteArts, Map<Artifact, Object> allRelated) throws OseeCoreException {
+ deleteArts.add(this);
+ for (Artifact relative : getBSideArtifacts()) {
+ allRelated.put(relative, this);
+ }
+ }
+
+ private List<Artifact> getBSideArtifacts() throws OseeCoreException {
+ List<Artifact> sideBArtifacts = new ArrayList<Artifact>();
+ List<RelationLink> relatives = getRelationsAll(false);
+ for (RelationLink link : relatives) {
+ Artifact sideB = link.getArtifactB();
+ if (!sideB.equals(this)) {
+ sideBArtifacts.add(sideB);
+ }
+ }
+
+ return sideBArtifacts;
+ }
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSAttributes.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSAttributes.java
index d4b0a00b9f..29d061abb3 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSAttributes.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSAttributes.java
@@ -1,77 +1,77 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * @author Donald G. Dunne
- */
-public class ATSAttributes {
- private static final Map<String, ATSAttributes> WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP =
- new HashMap<String, ATSAttributes>();
-
- // @formatter:off
- public static final ATSAttributes WORKING_BRANCH_WIDGET = new ATSAttributes("Working Branch");
- public static final ATSAttributes VALIDATE_REQ_CHANGES_WIDGET = new ATSAttributes("Validate Requirement Changes");
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ATSAttributes {
+ private static final Map<String, ATSAttributes> WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP =
+ new HashMap<String, ATSAttributes>();
+
+ // @formatter:off
+ public static final ATSAttributes WORKING_BRANCH_WIDGET = new ATSAttributes("Working Branch");
+ public static final ATSAttributes VALIDATE_REQ_CHANGES_WIDGET = new ATSAttributes("Validate Requirement Changes");
public static final ATSAttributes CREATE_CODE_TEST_TASKS_OFF_REQUIREMENTS = new ATSAttributes("Create Code/Test Tasks");
- public static final ATSAttributes CHECK_SIGNALS_VIA_CDB_WIDGET = new ATSAttributes("Check Signals Via CDB");
- public static final ATSAttributes SHOW_CDB_DIFF_REPORT_WIDGET = new ATSAttributes("Show CDB Differences Report");
- public static final ATSAttributes ASSIGNEE_ATTRIBUTE = new ATSAttributes("Assignees", "Users currently assigned to do work.");
- public static final ATSAttributes COMMIT_MANAGER_WIDGET = new ATSAttributes("Commit Manager", "Commit branches to parent and parallel branches.");
- // @formatter:on
-
- private final String displayName;
- private final String description;
- private final String workItemId;
-
- protected ATSAttributes(String displayName, String workItemId, String description) {
- this.displayName = displayName;
- this.workItemId = workItemId;
- this.description = description;
- WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP.put(workItemId, this);
- }
-
+ public static final ATSAttributes CHECK_SIGNALS_VIA_CDB_WIDGET = new ATSAttributes("Check Signals Via CDB");
+ public static final ATSAttributes SHOW_CDB_DIFF_REPORT_WIDGET = new ATSAttributes("Show CDB Differences Report");
+ public static final ATSAttributes ASSIGNEE_ATTRIBUTE = new ATSAttributes("Assignees", "Users currently assigned to do work.");
+ public static final ATSAttributes COMMIT_MANAGER_WIDGET = new ATSAttributes("Commit Manager", "Commit branches to parent and parallel branches.");
+ // @formatter:on
+
+ private final String displayName;
+ private final String description;
+ private final String workItemId;
+
+ protected ATSAttributes(String displayName, String workItemId, String description) {
+ this.displayName = displayName;
+ this.workItemId = workItemId;
+ this.description = description;
+ WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP.put(workItemId, this);
+ }
+
private ATSAttributes(String displayName) {
this(displayName, "");
- }
-
+ }
+
private ATSAttributes(String displayName, String description) {
this(displayName, "ats." + displayName, description);
- }
-
- public static ATSAttributes getAtsAttributeByStoreName(String workItemId) {
- return WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP.get(workItemId);
- }
-
- @Override
- public final boolean equals(Object obj) {
- return super.equals(obj);
- }
-
- @Override
- public final int hashCode() {
- return super.hashCode();
- }
-
- public String getDisplayName() {
- return displayName;
- }
-
- public String getWorkItemId() {
- return workItemId;
- }
-
- public String getDescription() {
- return description;
- }
+ }
+
+ public static ATSAttributes getAtsAttributeByStoreName(String workItemId) {
+ return WORK_ITEM_ID_TO_ATS_ATTRIBUTE_MAP.get(workItemId);
+ }
+
+ @Override
+ public final boolean equals(Object obj) {
+ return super.equals(obj);
+ }
+
+ @Override
+ public final int hashCode() {
+ return super.hashCode();
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public String getWorkItemId() {
+ return workItemId;
+ }
+
+ public String getDescription() {
+ return description;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSLog.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSLog.java
index a8a074b665..60062183c7 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSLog.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSLog.java
@@ -1,412 +1,412 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.artifact;
-
-import java.lang.ref.WeakReference;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Date;
-import java.util.List;
-import java.util.logging.Level;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.framework.core.exception.MultipleAttributesExist;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeStateException;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.jdk.core.util.AXml;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * @author Donald G. Dunne
- */
-public class ATSLog {
-
- private final WeakReference<Artifact> artifactRef;
- private boolean enabled = true;
- private static String ATS_LOG_TAG = "AtsLog";
- private static String LOG_ITEM_TAG = "Item";
- private LogItem cancelledLogItem;
- private LogItem completedLogItem;
- public static enum LogType {
- None,
- Originated,
- StateComplete,
- StateCancelled,
- StateEntered,
- Released,
- Error,
- Assign,
- Note,
- Metrics;
-
- public static LogType getType(String type) throws OseeArgumentException {
- for (Enum<LogType> e : LogType.values()) {
- if (e.name().equals(type)) {
- return (LogType) e;
- }
- }
- throw new OseeArgumentException("Unhandled LogType: \"" + type + "\"");
- }
-
- };
-
- public ATSLog(Artifact artifact) {
- this.artifactRef = new WeakReference<Artifact>(artifact);
- }
-
- @Override
- public String toString() {
- try {
- return getLogItems().toString();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return ex.getLocalizedMessage();
- }
- }
-
- public String getHtml() throws OseeCoreException {
- return getHtml(true);
- }
-
- public String getHtml(boolean showLog) throws OseeCoreException {
- if (getLogItems().isEmpty()) {
- return "";
- }
- StringBuffer sb = new StringBuffer();
- if (showLog) {
- sb.append(AHTML.addSpace(1) + AHTML.getLabelStr(
- AHTML.LABEL_FONT,
- "History for \"" + getArtifact().getArtifactTypeName() + "\" - " + getArtifact().getHumanReadableId() + " - titled \"" + getArtifact().getName() + "\""));
- }
- sb.append(getTable());
- return sb.toString();
- }
-
- public Artifact getArtifact() throws OseeStateException {
- if (artifactRef.get() == null) {
- throw new OseeStateException("Artifact has been garbage collected");
- }
- return artifactRef.get();
- }
-
- private static Pattern LOG_ITEM_PATTERN =
- Pattern.compile("<Item date=\"(.*?)\" msg=\"(.*?)\" state=\"(.*?)\" type=\"(.*?)\" userId=\"(.*?)\"/>");
-
- private static Pattern LOG_ITEM_TAG_PATTERN = Pattern.compile("<Item ");
-
- public List<LogItem> getLogItems() throws OseeCoreException {
- // System.out.println("getLogItems " + artifact.getHumanReadableId());
- List<LogItem> logItems = new ArrayList<LogItem>();
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.artifact;
+
+import java.lang.ref.WeakReference;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Date;
+import java.util.List;
+import java.util.logging.Level;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.framework.core.exception.MultipleAttributesExist;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.jdk.core.util.AXml;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ATSLog {
+
+ private final WeakReference<Artifact> artifactRef;
+ private boolean enabled = true;
+ private static String ATS_LOG_TAG = "AtsLog";
+ private static String LOG_ITEM_TAG = "Item";
+ private LogItem cancelledLogItem;
+ private LogItem completedLogItem;
+ public static enum LogType {
+ None,
+ Originated,
+ StateComplete,
+ StateCancelled,
+ StateEntered,
+ Released,
+ Error,
+ Assign,
+ Note,
+ Metrics;
+
+ public static LogType getType(String type) throws OseeArgumentException {
+ for (Enum<LogType> e : LogType.values()) {
+ if (e.name().equals(type)) {
+ return (LogType) e;
+ }
+ }
+ throw new OseeArgumentException("Unhandled LogType: \"" + type + "\"");
+ }
+
+ };
+
+ public ATSLog(Artifact artifact) {
+ this.artifactRef = new WeakReference<Artifact>(artifact);
+ }
+
+ @Override
+ public String toString() {
+ try {
+ return getLogItems().toString();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ return ex.getLocalizedMessage();
+ }
+ }
+
+ public String getHtml() throws OseeCoreException {
+ return getHtml(true);
+ }
+
+ public String getHtml(boolean showLog) throws OseeCoreException {
+ if (getLogItems().isEmpty()) {
+ return "";
+ }
+ StringBuffer sb = new StringBuffer();
+ if (showLog) {
+ sb.append(AHTML.addSpace(1) + AHTML.getLabelStr(
+ AHTML.LABEL_FONT,
+ "History for \"" + getArtifact().getArtifactTypeName() + "\" - " + getArtifact().getHumanReadableId() + " - titled \"" + getArtifact().getName() + "\""));
+ }
+ sb.append(getTable());
+ return sb.toString();
+ }
+
+ public Artifact getArtifact() throws OseeStateException {
+ if (artifactRef.get() == null) {
+ throw new OseeStateException("Artifact has been garbage collected");
+ }
+ return artifactRef.get();
+ }
+
+ private static Pattern LOG_ITEM_PATTERN =
+ Pattern.compile("<Item date=\"(.*?)\" msg=\"(.*?)\" state=\"(.*?)\" type=\"(.*?)\" userId=\"(.*?)\"/>");
+
+ private static Pattern LOG_ITEM_TAG_PATTERN = Pattern.compile("<Item ");
+
+ public List<LogItem> getLogItems() throws OseeCoreException {
+ // System.out.println("getLogItems " + artifact.getHumanReadableId());
+ List<LogItem> logItems = new ArrayList<LogItem>();
String xml = getArtifact().getSoleAttributeValue(AtsAttributeTypes.Log, "");
- if (!xml.equals("")) {
- Matcher m = LOG_ITEM_PATTERN.matcher(xml);
- while (m.find()) {
- LogItem item =
- new LogItem(m.group(4), m.group(1), Strings.intern(m.group(5)), Strings.intern(m.group(3)),
- AXml.xmlToText(m.group(2)), getArtifact().getHumanReadableId());
- logItems.add(item);
- }
-
- Matcher m2 = LOG_ITEM_TAG_PATTERN.matcher(xml);
- int openTagsFound = 0;
- while (m2.find()) {
- openTagsFound++;
- }
- if (logItems.size() != openTagsFound) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, String.format(
- "ATS Log: open tags found %d doesn't match log items parsed %d for %s", openTagsFound, logItems.size(),
- getArtifact().getHumanReadableId()));
- }
- }
- return logItems;
- }
-
- public Date getLastStatusedDate() throws OseeCoreException {
- LogItem logItem = getLastEvent(LogType.Metrics);
- if (logItem == null) {
- return null;
- }
- return logItem.getDate();
- }
-
- public void putLogItems(List<LogItem> items) {
- try {
- Document doc = Jaxp.newDocument();
- Element rootElement = doc.createElement(ATS_LOG_TAG);
- doc.appendChild(rootElement);
- for (LogItem item : items) {
- Element element = doc.createElement(LOG_ITEM_TAG);
- element.setAttribute("type", item.getType().name());
- element.setAttribute("date", item.getDate().getTime() + "");
- element.setAttribute("userId", item.getUser().getUserId());
- element.setAttribute("state", item.getState());
- element.setAttribute("msg", item.getMsg());
- rootElement.appendChild(element);
- }
+ if (!xml.equals("")) {
+ Matcher m = LOG_ITEM_PATTERN.matcher(xml);
+ while (m.find()) {
+ LogItem item =
+ new LogItem(m.group(4), m.group(1), Strings.intern(m.group(5)), Strings.intern(m.group(3)),
+ AXml.xmlToText(m.group(2)), getArtifact().getHumanReadableId());
+ logItems.add(item);
+ }
+
+ Matcher m2 = LOG_ITEM_TAG_PATTERN.matcher(xml);
+ int openTagsFound = 0;
+ while (m2.find()) {
+ openTagsFound++;
+ }
+ if (logItems.size() != openTagsFound) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, String.format(
+ "ATS Log: open tags found %d doesn't match log items parsed %d for %s", openTagsFound, logItems.size(),
+ getArtifact().getHumanReadableId()));
+ }
+ }
+ return logItems;
+ }
+
+ public Date getLastStatusedDate() throws OseeCoreException {
+ LogItem logItem = getLastEvent(LogType.Metrics);
+ if (logItem == null) {
+ return null;
+ }
+ return logItem.getDate();
+ }
+
+ public void putLogItems(List<LogItem> items) {
+ try {
+ Document doc = Jaxp.newDocument();
+ Element rootElement = doc.createElement(ATS_LOG_TAG);
+ doc.appendChild(rootElement);
+ for (LogItem item : items) {
+ Element element = doc.createElement(LOG_ITEM_TAG);
+ element.setAttribute("type", item.getType().name());
+ element.setAttribute("date", item.getDate().getTime() + "");
+ element.setAttribute("userId", item.getUser().getUserId());
+ element.setAttribute("state", item.getState());
+ element.setAttribute("msg", item.getMsg());
+ rootElement.appendChild(element);
+ }
getArtifact().setSoleAttributeValue(AtsAttributeTypes.Log, Jaxp.getDocumentXml(doc));
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't create ats log document", ex);
- }
- }
-
- public List<LogItem> getLogItemsReversed() throws OseeCoreException {
- List<LogItem> logItems = getLogItems();
- Collections.reverse(logItems);
- return logItems;
- }
-
- public void setOriginator(User user) throws OseeCoreException {
- List<LogItem> logItems = getLogItems();
- for (LogItem item : logItems) {
- if (item.getType() == LogType.Originated) {
- item.setUser(user);
- putLogItems(logItems);
- return;
- }
- }
- }
-
- public void setCreationDate(Date date) throws OseeCoreException {
- List<LogItem> logItems = getLogItems();
- for (LogItem item : logItems) {
- if (item.getType() == LogType.Originated) {
- item.setDate(date);
- putLogItems(logItems);
- return;
- }
- }
- }
-
- public String getCancellationReason() throws OseeCoreException {
- LogItem item = getStateEvent(LogType.StateCancelled);
- if (item == null) {
- return "";
- }
- return item.getMsg();
- }
-
- public String getCancelledFromState() throws OseeCoreException {
- LogItem item = getStateEvent(LogType.StateCancelled);
- if (item == null) {
- return "";
- }
- return item.getState();
- }
-
- public String getCompletedFromState() throws OseeCoreException {
- LogItem item = getStateEvent(LogType.StateComplete);
- if (item == null) {
- return "";
- }
- return item.getState();
- }
-
- public void setCancellationReason(String reason) throws OseeCoreException {
- List<LogItem> logItems = getLogItemsReversed();
- for (LogItem item : logItems) {
- if (item.getType() == LogType.StateCancelled) {
- item.setMsg(reason);
- putLogItems(logItems);
- return;
- }
- }
- }
-
- /**
- * Since originator can be changed, return the date of the first originated log item
- */
- public Date getCreationDate() throws OseeCoreException {
- LogItem logItem = getEvent(LogType.Originated);
- if (logItem == null) {
- return null;
- }
- return logItem.getDate();
- }
-
- /**
- * Since originator change be changed, return the last originated event's user
- */
- public User getOriginator() throws OseeCoreException {
- LogItem logItem = getLastEvent(LogType.Originated);
- if (logItem == null) {
- return null;
- }
- return logItem.getUser();
- }
-
- /**
- * Overwrite the first logItem to match type and state with newItem data
- */
- public void overrideStateItemData(LogType matchType, String matchState, LogItem newItem) throws OseeCoreException {
- List<LogItem> logItems = getLogItems();
- for (LogItem item : logItems) {
- if (item.getType() == matchType && item.getState().equals(matchState)) {
- item.setUser(newItem.getUser());
- item.setDate(newItem.getDate());
- item.setMsg(newItem.getMsg());
- putLogItems(logItems);
- return;
- }
- }
- }
-
- /**
- * Overwrite the first logItem to match matchType with newItem data
- */
- public void overrideItemData(LogType matchType, LogItem newItem) throws OseeCoreException {
- List<LogItem> logItems = getLogItems();
- for (LogItem item : logItems) {
- if (item.getType() == matchType) {
- item.setState(newItem.getState());
- item.setUser(newItem.getUser());
- item.setDate(newItem.getDate());
- item.setMsg(newItem.getMsg());
- putLogItems(logItems);
- return;
- }
- }
- }
-
- /**
- * @param state name of state or null
- * @throws OseeArgumentException
- * @throws MultipleAttributesExist
- */
- public void addLog(LogType type, String state, String msg) throws OseeCoreException {
- addLog(type, state, msg, new Date(), UserManager.getUser());
- }
-
- /**
- * @param state name of state or null
- * @throws MultipleAttributesExist
- */
- public void addLog(LogType type, String state, String msg, User user) throws OseeCoreException {
- addLog(type, state, msg, new Date(), user);
- }
-
- public void addLogItem(LogItem item) throws OseeCoreException {
- addLog(item.getType(), item.getState(), item.getMsg(), item.getDate(), item.getUser());
- }
-
- /**
- * @param state name of state or null
- * @throws MultipleAttributesExist
- */
- public void addLog(LogType type, String state, String msg, Date date, User user) throws OseeCoreException {
- if (!enabled) {
- return;
- }
- LogItem logItem = new LogItem(type, date, user, state, msg, artifactRef.get().getHumanReadableId());
- List<LogItem> logItems = getLogItems();
- logItems.add(logItem);
- putLogItems(logItems);
- }
-
- public void clearLog() {
- putLogItems(new ArrayList<LogItem>());
- }
-
- public String getTable() throws OseeCoreException {
- StringBuilder builder = new StringBuilder();
- List<LogItem> logItems = getLogItems();
- builder.append("<TABLE BORDER=\"1\" cellspacing=\"1\" cellpadding=\"3%\" width=\"100%\"><THEAD><TR><TH>Event</TH>" + "<TH>State</TH><TH>Message</TH><TH>User</TH><TH>Date</TH></THEAD></TR>");
- for (LogItem item : logItems) {
- User user = item.getUser();
- if (user != null) {
- builder.append("<TR>");
- builder.append("<TD>" + item.getType() + "</TD>");
- builder.append("<TD>" + (item.getState().equals("") ? "." : item.getState()) + "</TD>");
- builder.append("<TD>" + (item.getMsg().equals("") ? "." : item.getMsg()) + "</TD>");
- if (user.equals(UserManager.getUser())) {
- builder.append("<TD bgcolor=\"#CCCCCC\">" + user.getName() + "</TD>");
- } else {
- builder.append("<TD>" + user.getName() + "</TD>");
- }
- builder.append("<TD>" + item.getDate(XDate.MMDDYYHHMM) + "</TD>");
- builder.append("</TR>");
- }
- }
- builder.append("</TABLE>");
- return builder.toString();
- }
-
- public boolean isEnabled() {
- return enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- public LogItem getEvent(LogType type) throws OseeCoreException {
- for (LogItem item : getLogItems()) {
- if (item.getType() == type) {
- return item;
- }
- }
- return null;
- }
-
- public LogItem getLastEvent(LogType type) throws OseeCoreException {
- for (LogItem item : getLogItemsReversed()) {
- if (item.getType() == type) {
- return item;
- }
- }
- return null;
- }
-
- public LogItem getStateEvent(LogType type, String stateName) throws OseeCoreException {
- for (LogItem item : getLogItemsReversed()) {
- if (item.getType() == type && item.getState().equals(stateName)) {
- return item;
- }
- }
- return null;
- }
-
- public LogItem getStateEvent(LogType type) throws OseeCoreException {
- for (LogItem item : getLogItemsReversed()) {
- if (item.getType() == type) {
- return item;
- }
- }
- return null;
- }
-
- public LogItem getCancelledLogItem() throws OseeCoreException {
- if (cancelledLogItem == null) {
- cancelledLogItem = getStateEvent(LogType.StateEntered, DefaultTeamState.Cancelled.name());
- }
- return cancelledLogItem;
- }
-
- public LogItem getCompletedLogItem() throws OseeCoreException {
- if (completedLogItem == null) {
- completedLogItem = getStateEvent(LogType.StateEntered, DefaultTeamState.Completed.name());
- }
- return completedLogItem;
- }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't create ats log document", ex);
+ }
+ }
+
+ public List<LogItem> getLogItemsReversed() throws OseeCoreException {
+ List<LogItem> logItems = getLogItems();
+ Collections.reverse(logItems);
+ return logItems;
+ }
+
+ public void setOriginator(User user) throws OseeCoreException {
+ List<LogItem> logItems = getLogItems();
+ for (LogItem item : logItems) {
+ if (item.getType() == LogType.Originated) {
+ item.setUser(user);
+ putLogItems(logItems);
+ return;
+ }
+ }
+ }
+
+ public void setCreationDate(Date date) throws OseeCoreException {
+ List<LogItem> logItems = getLogItems();
+ for (LogItem item : logItems) {
+ if (item.getType() == LogType.Originated) {
+ item.setDate(date);
+ putLogItems(logItems);
+ return;
+ }
+ }
+ }
+
+ public String getCancellationReason() throws OseeCoreException {
+ LogItem item = getStateEvent(LogType.StateCancelled);
+ if (item == null) {
+ return "";
+ }
+ return item.getMsg();
+ }
+
+ public String getCancelledFromState() throws OseeCoreException {
+ LogItem item = getStateEvent(LogType.StateCancelled);
+ if (item == null) {
+ return "";
+ }
+ return item.getState();
+ }
+
+ public String getCompletedFromState() throws OseeCoreException {
+ LogItem item = getStateEvent(LogType.StateComplete);
+ if (item == null) {
+ return "";
+ }
+ return item.getState();
+ }
+
+ public void setCancellationReason(String reason) throws OseeCoreException {
+ List<LogItem> logItems = getLogItemsReversed();
+ for (LogItem item : logItems) {
+ if (item.getType() == LogType.StateCancelled) {
+ item.setMsg(reason);
+ putLogItems(logItems);
+ return;
+ }
+ }
+ }
+
+ /**
+ * Since originator can be changed, return the date of the first originated log item
+ */
+ public Date getCreationDate() throws OseeCoreException {
+ LogItem logItem = getEvent(LogType.Originated);
+ if (logItem == null) {
+ return null;
+ }
+ return logItem.getDate();
+ }
+
+ /**
+ * Since originator change be changed, return the last originated event's user
+ */
+ public User getOriginator() throws OseeCoreException {
+ LogItem logItem = getLastEvent(LogType.Originated);
+ if (logItem == null) {
+ return null;
+ }
+ return logItem.getUser();
+ }
+
+ /**
+ * Overwrite the first logItem to match type and state with newItem data
+ */
+ public void overrideStateItemData(LogType matchType, String matchState, LogItem newItem) throws OseeCoreException {
+ List<LogItem> logItems = getLogItems();
+ for (LogItem item : logItems) {
+ if (item.getType() == matchType && item.getState().equals(matchState)) {
+ item.setUser(newItem.getUser());
+ item.setDate(newItem.getDate());
+ item.setMsg(newItem.getMsg());
+ putLogItems(logItems);
+ return;
+ }
+ }
+ }
+
+ /**
+ * Overwrite the first logItem to match matchType with newItem data
+ */
+ public void overrideItemData(LogType matchType, LogItem newItem) throws OseeCoreException {
+ List<LogItem> logItems = getLogItems();
+ for (LogItem item : logItems) {
+ if (item.getType() == matchType) {
+ item.setState(newItem.getState());
+ item.setUser(newItem.getUser());
+ item.setDate(newItem.getDate());
+ item.setMsg(newItem.getMsg());
+ putLogItems(logItems);
+ return;
+ }
+ }
+ }
+
+ /**
+ * @param state name of state or null
+ * @throws OseeArgumentException
+ * @throws MultipleAttributesExist
+ */
+ public void addLog(LogType type, String state, String msg) throws OseeCoreException {
+ addLog(type, state, msg, new Date(), UserManager.getUser());
+ }
+
+ /**
+ * @param state name of state or null
+ * @throws MultipleAttributesExist
+ */
+ public void addLog(LogType type, String state, String msg, User user) throws OseeCoreException {
+ addLog(type, state, msg, new Date(), user);
+ }
+
+ public void addLogItem(LogItem item) throws OseeCoreException {
+ addLog(item.getType(), item.getState(), item.getMsg(), item.getDate(), item.getUser());
+ }
+
+ /**
+ * @param state name of state or null
+ * @throws MultipleAttributesExist
+ */
+ public void addLog(LogType type, String state, String msg, Date date, User user) throws OseeCoreException {
+ if (!enabled) {
+ return;
+ }
+ LogItem logItem = new LogItem(type, date, user, state, msg, artifactRef.get().getHumanReadableId());
+ List<LogItem> logItems = getLogItems();
+ logItems.add(logItem);
+ putLogItems(logItems);
+ }
+
+ public void clearLog() {
+ putLogItems(new ArrayList<LogItem>());
+ }
+
+ public String getTable() throws OseeCoreException {
+ StringBuilder builder = new StringBuilder();
+ List<LogItem> logItems = getLogItems();
+ builder.append("<TABLE BORDER=\"1\" cellspacing=\"1\" cellpadding=\"3%\" width=\"100%\"><THEAD><TR><TH>Event</TH>" + "<TH>State</TH><TH>Message</TH><TH>User</TH><TH>Date</TH></THEAD></TR>");
+ for (LogItem item : logItems) {
+ User user = item.getUser();
+ if (user != null) {
+ builder.append("<TR>");
+ builder.append("<TD>" + item.getType() + "</TD>");
+ builder.append("<TD>" + (item.getState().equals("") ? "." : item.getState()) + "</TD>");
+ builder.append("<TD>" + (item.getMsg().equals("") ? "." : item.getMsg()) + "</TD>");
+ if (user.equals(UserManager.getUser())) {
+ builder.append("<TD bgcolor=\"#CCCCCC\">" + user.getName() + "</TD>");
+ } else {
+ builder.append("<TD>" + user.getName() + "</TD>");
+ }
+ builder.append("<TD>" + item.getDate(XDate.MMDDYYHHMM) + "</TD>");
+ builder.append("</TR>");
+ }
+ }
+ builder.append("</TABLE>");
+ return builder.toString();
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public LogItem getEvent(LogType type) throws OseeCoreException {
+ for (LogItem item : getLogItems()) {
+ if (item.getType() == type) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ public LogItem getLastEvent(LogType type) throws OseeCoreException {
+ for (LogItem item : getLogItemsReversed()) {
+ if (item.getType() == type) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ public LogItem getStateEvent(LogType type, String stateName) throws OseeCoreException {
+ for (LogItem item : getLogItemsReversed()) {
+ if (item.getType() == type && item.getState().equals(stateName)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ public LogItem getStateEvent(LogType type) throws OseeCoreException {
+ for (LogItem item : getLogItemsReversed()) {
+ if (item.getType() == type) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ public LogItem getCancelledLogItem() throws OseeCoreException {
+ if (cancelledLogItem == null) {
+ cancelledLogItem = getStateEvent(LogType.StateEntered, DefaultTeamState.Cancelled.name());
+ }
+ return cancelledLogItem;
+ }
+
+ public LogItem getCompletedLogItem() throws OseeCoreException {
+ if (completedLogItem == null) {
+ completedLogItem = getStateEvent(LogType.StateEntered, DefaultTeamState.Completed.name());
+ }
+ return completedLogItem;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSNote.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSNote.java
index 6aa14dd819..23dc48ec50 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSNote.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ATSNote.java
@@ -1,209 +1,208 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.lang.ref.WeakReference;
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Date;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.osee.ats.NoteType;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.framework.core.data.SystemUser;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeStateException;
-import org.eclipse.osee.framework.core.exception.UserNotInDatabase;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-/**
- * @author Donald G. Dunne
- */
-public class ATSNote {
- private final WeakReference<Artifact> artifactRef;
- private boolean enabled = true;
- private static String ATS_NOTE_TAG = "AtsNote";
- private static String LOG_ITEM_TAG = "Item";
-
- public ATSNote(Artifact artifact) {
- this.artifactRef = new WeakReference<Artifact>(artifact);
- }
-
- public Artifact getArtifact() throws OseeStateException {
- if (artifactRef.get() == null) {
- throw new OseeStateException("Artifact has been garbage collected");
- }
- return artifactRef.get();
- }
-
- public void addNote(NoteType type, String state, String msg, User user) {
- addNote(type, state, msg, new Date(), user);
- }
-
- public void addNoteItem(NoteItem noteItem) {
- addNote(noteItem.getType(), noteItem.getState(), noteItem.getMsg(), noteItem.getDate(), noteItem.getUser());
- }
-
- public void addNote(NoteType type, String state, String msg, Date date, User user) {
- if (!enabled) {
- return;
- }
- NoteItem logItem = new NoteItem(type, state, date.getTime() + "", user, msg);
- List<NoteItem> logItems = getNoteItems();
- if (logItems.isEmpty()) {
- logItems = Arrays.asList(logItem);
- } else {
- logItems.add(logItem);
- }
- saveNoteItems(logItems);
- }
-
- public static List<NoteItem> getNoteItems(String str, String hrid) {
- List<NoteItem> logItems = new ArrayList<NoteItem>();
- try {
- if (Strings.isValid(str)) {
- NodeList nodes = Jaxp.readXmlDocument(str).getElementsByTagName(LOG_ITEM_TAG);
- for (int i = 0; i < nodes.getLength(); i++) {
- Element element = (Element) nodes.item(i);
- try {
- User user = UserManager.getUserByUserId(element.getAttribute("userId"));
- NoteItem item =
- new NoteItem(element.getAttribute("type"), element.getAttribute("state"),
- element.getAttribute("date"), user, element.getAttribute("msg"));
- logItems.add(item);
- } catch (UserNotInDatabase ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, String.format("Error parsing notes for [%s]", hrid), ex);
- NoteItem item =
- new NoteItem(element.getAttribute("type"), element.getAttribute("state"),
- element.getAttribute("date"), UserManager.getUser(SystemUser.Guest),
- element.getAttribute("msg"));
- logItems.add(item);
- }
- }
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- return logItems;
- }
-
- public List<NoteItem> getNoteItems() {
- try {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.lang.ref.WeakReference;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Date;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.osee.ats.NoteType;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.framework.core.data.SystemUser;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
+import org.eclipse.osee.framework.core.exception.UserNotInDatabase;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ATSNote {
+ private final WeakReference<Artifact> artifactRef;
+ private boolean enabled = true;
+ private static String ATS_NOTE_TAG = "AtsNote";
+ private static String LOG_ITEM_TAG = "Item";
+
+ public ATSNote(Artifact artifact) {
+ this.artifactRef = new WeakReference<Artifact>(artifact);
+ }
+
+ public Artifact getArtifact() throws OseeStateException {
+ if (artifactRef.get() == null) {
+ throw new OseeStateException("Artifact has been garbage collected");
+ }
+ return artifactRef.get();
+ }
+
+ public void addNote(NoteType type, String state, String msg, User user) {
+ addNote(type, state, msg, new Date(), user);
+ }
+
+ public void addNoteItem(NoteItem noteItem) {
+ addNote(noteItem.getType(), noteItem.getState(), noteItem.getMsg(), noteItem.getDate(), noteItem.getUser());
+ }
+
+ public void addNote(NoteType type, String state, String msg, Date date, User user) {
+ if (!enabled) {
+ return;
+ }
+ NoteItem logItem = new NoteItem(type, state, date.getTime() + "", user, msg);
+ List<NoteItem> logItems = getNoteItems();
+ if (logItems.isEmpty()) {
+ logItems = Arrays.asList(logItem);
+ } else {
+ logItems.add(logItem);
+ }
+ saveNoteItems(logItems);
+ }
+
+ public static List<NoteItem> getNoteItems(String str, String hrid) {
+ List<NoteItem> logItems = new ArrayList<NoteItem>();
+ try {
+ if (Strings.isValid(str)) {
+ NodeList nodes = Jaxp.readXmlDocument(str).getElementsByTagName(LOG_ITEM_TAG);
+ for (int i = 0; i < nodes.getLength(); i++) {
+ Element element = (Element) nodes.item(i);
+ try {
+ User user = UserManager.getUserByUserId(element.getAttribute("userId"));
+ NoteItem item =
+ new NoteItem(element.getAttribute("type"), element.getAttribute("state"),
+ element.getAttribute("date"), user, element.getAttribute("msg"));
+ logItems.add(item);
+ } catch (UserNotInDatabase ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, String.format("Error parsing notes for [%s]", hrid), ex);
+ NoteItem item =
+ new NoteItem(element.getAttribute("type"), element.getAttribute("state"),
+ element.getAttribute("date"), UserManager.getUser(SystemUser.Guest),
+ element.getAttribute("msg"));
+ logItems.add(item);
+ }
+ }
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ return logItems;
+ }
+
+ public List<NoteItem> getNoteItems() {
+ try {
String xml = getArtifact().getSoleAttributeValue(AtsAttributeTypes.StateNotes, "");
- if (Strings.isValid(xml)) {
- return getNoteItems(xml, getArtifact().getHumanReadableId());
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- return Collections.emptyList();
- }
-
- public void saveNoteItems(List<NoteItem> items) {
- try {
- Document doc = Jaxp.newDocument();
- Element rootElement = doc.createElement(ATS_NOTE_TAG);
- doc.appendChild(rootElement);
- for (NoteItem item : items) {
- Element element = doc.createElement(LOG_ITEM_TAG);
- element.setAttribute("type", item.getType().name());
- element.setAttribute("state", item.getState());
- element.setAttribute("date", item.getDate().getTime() + "");
- element.setAttribute("userId", item.getUser().getUserId());
- element.setAttribute("msg", item.getMsg());
- rootElement.appendChild(element);
- }
- getArtifact().setSoleAttributeValue(AtsAttributeTypes.StateNotes,
- Jaxp.getDocumentXml(doc));
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't create ats note document", ex);
- }
- }
-
- /**
- * Display Note Table; If state == null, only display non-state notes Otherwise, show only notes associated with
- * state
- *
- * @param state
- */
- public String getTable(String state) {
- ArrayList<NoteItem> showNotes = new ArrayList<NoteItem>();
- List<NoteItem> noteItems = getNoteItems();
- try {
+ if (Strings.isValid(xml)) {
+ return getNoteItems(xml, getArtifact().getHumanReadableId());
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ return Collections.emptyList();
+ }
+
+ public void saveNoteItems(List<NoteItem> items) {
+ try {
+ Document doc = Jaxp.newDocument();
+ Element rootElement = doc.createElement(ATS_NOTE_TAG);
+ doc.appendChild(rootElement);
+ for (NoteItem item : items) {
+ Element element = doc.createElement(LOG_ITEM_TAG);
+ element.setAttribute("type", item.getType().name());
+ element.setAttribute("state", item.getState());
+ element.setAttribute("date", item.getDate().getTime() + "");
+ element.setAttribute("userId", item.getUser().getUserId());
+ element.setAttribute("msg", item.getMsg());
+ rootElement.appendChild(element);
+ }
+ getArtifact().setSoleAttributeValue(AtsAttributeTypes.StateNotes, Jaxp.getDocumentXml(doc));
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't create ats note document", ex);
+ }
+ }
+
+ /**
+ * Display Note Table; If state == null, only display non-state notes Otherwise, show only notes associated with
+ * state
+ *
+ * @param state
+ */
+ public String getTable(String state) {
+ ArrayList<NoteItem> showNotes = new ArrayList<NoteItem>();
+ List<NoteItem> noteItems = getNoteItems();
+ try {
if (!getArtifact().isAttributeTypeValid(AtsAttributeTypes.StateNotes)) {
- return "";
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return "";
- }
-
- for (NoteItem li : noteItems) {
- if (state == null) {
- if (li.getState().equals("")) {
- showNotes.add(li);
- }
- } else if (state.equals("ALL") || li.getState().equals(state)) {
- showNotes.add(li);
- }
- }
- if (showNotes.isEmpty()) {
- return "";
- }
- StringBuilder builder = new StringBuilder();
- builder.append("<TABLE BORDER=\"1\" cellspacing=\"1\" cellpadding=\"3%\" width=\"100%\"><THEAD><TR><TH>Type</TH><TH>State</TH>" + "<TH>Message</TH><TH>User</TH><TH>Date</TH></THEAD></TR>");
- for (NoteItem note : showNotes) {
- User user = note.getUser();
- String name = "";
- if (user != null) {
- name = user.getName();
- if (!Strings.isValid(name)) {
- name = user.getName();
- }
- }
- builder.append("<TR>");
- builder.append("<TD>" + note.getType() + "</TD>");
- builder.append("<TD>" + (note.getState().equals("") ? "," : note.getState()) + "</TD>");
- builder.append("<TD>" + (note.getMsg().equals("") ? "," : note.getMsg()) + "</TD>");
-
- if (user != null && user.isMe()) {
- builder.append("<TD bgcolor=\"#CCCCCC\">" + name + "</TD>");
- } else {
- builder.append("<TD>" + name + "</TD>");
- }
-
- builder.append("<TD>" + new SimpleDateFormat("MM/dd/yyyy h:mm a").format(note.getDate()) + "</TD>");
- builder.append("</TR>");
- }
- builder.append("</TABLE>");
- return builder.toString();
- }
-
- public boolean isEnabled() {
- return enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
+ return "";
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ return "";
+ }
+
+ for (NoteItem li : noteItems) {
+ if (state == null) {
+ if (li.getState().equals("")) {
+ showNotes.add(li);
+ }
+ } else if (state.equals("ALL") || li.getState().equals(state)) {
+ showNotes.add(li);
+ }
+ }
+ if (showNotes.isEmpty()) {
+ return "";
+ }
+ StringBuilder builder = new StringBuilder();
+ builder.append("<TABLE BORDER=\"1\" cellspacing=\"1\" cellpadding=\"3%\" width=\"100%\"><THEAD><TR><TH>Type</TH><TH>State</TH>" + "<TH>Message</TH><TH>User</TH><TH>Date</TH></THEAD></TR>");
+ for (NoteItem note : showNotes) {
+ User user = note.getUser();
+ String name = "";
+ if (user != null) {
+ name = user.getName();
+ if (!Strings.isValid(name)) {
+ name = user.getName();
+ }
+ }
+ builder.append("<TR>");
+ builder.append("<TD>" + note.getType() + "</TD>");
+ builder.append("<TD>" + (note.getState().equals("") ? "," : note.getState()) + "</TD>");
+ builder.append("<TD>" + (note.getMsg().equals("") ? "," : note.getMsg()) + "</TD>");
+
+ if (user != null && user.isMe()) {
+ builder.append("<TD bgcolor=\"#CCCCCC\">" + name + "</TD>");
+ } else {
+ builder.append("<TD>" + name + "</TD>");
+ }
+
+ builder.append("<TD>" + new SimpleDateFormat("MM/dd/yyyy h:mm a").format(note.getDate()) + "</TD>");
+ builder.append("</TR>");
+ }
+ builder.append("</TABLE>");
+ return builder.toString();
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
index cac9fe4450..9631c3d8e5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionArtifact.java
@@ -1,1261 +1,1261 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.artifact;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.logging.Level;
-import org.eclipse.nebula.widgets.xviewer.XViewerCells;
-import org.eclipse.osee.ats.actions.wizard.IAtsTeamWorkflow;
-import org.eclipse.osee.ats.artifact.ATSLog.LogType;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsArtifactTypes;
-import org.eclipse.osee.ats.util.AtsPriority.PriorityType;
-import org.eclipse.osee.ats.util.AtsRelationTypes;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.ats.util.widgets.dialog.AICheckTreeDialog;
-import org.eclipse.osee.ats.world.IWorldViewArtifact;
-import org.eclipse.osee.framework.core.data.IArtifactType;
-import org.eclipse.osee.framework.core.enums.Active;
-import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.jdk.core.util.Collections;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.plugin.util.Result;
-import org.eclipse.osee.framework.ui.skynet.util.ChangeType;
-import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Donald G. Dunne
- */
-public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
-
- public static enum CreateTeamOption {
- Duplicate_If_Exists; // If option exists, then duplication of workflow of same team definition is allowed
- };
-
- public ActionArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- }
-
- public void resetAttributesOffChildren(SkynetTransaction transaction) throws OseeCoreException {
- resetChangeTypeOffChildren();
- resetPriorityOffChildren();
- resetUserCommunityOffChildren();
- resetTitleOffChildren();
- resetValidationOffChildren();
- resetDescriptionOffChildren();
- persist(transaction);
- }
-
- public boolean hasAtsWorldChildren() {
- return true;
- }
-
- public Set<ActionableItemArtifact> getActionableItems() throws OseeCoreException {
- Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- aias.addAll(team.getActionableItemsDam().getActionableItems());
- }
- return aias;
- }
-
- /**
- * Reset Action title only if all children are titled the same
- */
- private void resetTitleOffChildren() throws OseeCoreException {
- String title = "";
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (title.equals("")) {
- title = team.getName();
- } else if (!title.equals(team.getName())) {
- return;
- }
- }
- if (!title.equals(getName())) {
- setName(title);
- }
- }
-
- // Set validation to true if any require validation
- private void resetValidationOffChildren() throws OseeCoreException {
- boolean validationRequired = false;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.artifact;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.logging.Level;
+import org.eclipse.nebula.widgets.xviewer.XViewerCells;
+import org.eclipse.osee.ats.actions.wizard.IAtsTeamWorkflow;
+import org.eclipse.osee.ats.artifact.ATSLog.LogType;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsArtifactTypes;
+import org.eclipse.osee.ats.util.AtsPriority.PriorityType;
+import org.eclipse.osee.ats.util.AtsRelationTypes;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.ats.util.widgets.dialog.AICheckTreeDialog;
+import org.eclipse.osee.ats.world.IWorldViewArtifact;
+import org.eclipse.osee.framework.core.data.IArtifactType;
+import org.eclipse.osee.framework.core.enums.Active;
+import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.jdk.core.util.Collections;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.plugin.util.Result;
+import org.eclipse.osee.framework.ui.skynet.util.ChangeType;
+import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ActionArtifact extends ATSArtifact implements IWorldViewArtifact {
+
+ public static enum CreateTeamOption {
+ Duplicate_If_Exists; // If option exists, then duplication of workflow of same team definition is allowed
+ };
+
+ public ActionArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ }
+
+ public void resetAttributesOffChildren(SkynetTransaction transaction) throws OseeCoreException {
+ resetChangeTypeOffChildren();
+ resetPriorityOffChildren();
+ resetUserCommunityOffChildren();
+ resetTitleOffChildren();
+ resetValidationOffChildren();
+ resetDescriptionOffChildren();
+ persist(transaction);
+ }
+
+ public boolean hasAtsWorldChildren() {
+ return true;
+ }
+
+ public Set<ActionableItemArtifact> getActionableItems() throws OseeCoreException {
+ Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ aias.addAll(team.getActionableItemsDam().getActionableItems());
+ }
+ return aias;
+ }
+
+ /**
+ * Reset Action title only if all children are titled the same
+ */
+ private void resetTitleOffChildren() throws OseeCoreException {
+ String title = "";
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (title.equals("")) {
+ title = team.getName();
+ } else if (!title.equals(team.getName())) {
+ return;
+ }
+ }
+ if (!title.equals(getName())) {
+ setName(title);
+ }
+ }
+
+ // Set validation to true if any require validation
+ private void resetValidationOffChildren() throws OseeCoreException {
+ boolean validationRequired = false;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
if (team.getSoleAttributeValue(AtsAttributeTypes.ValidationRequired, false)) {
- validationRequired = true;
- }
- }
+ validationRequired = true;
+ }
+ }
if (validationRequired != getSoleAttributeValue(AtsAttributeTypes.ValidationRequired, false)) {
setSoleAttributeValue(AtsAttributeTypes.ValidationRequired, validationRequired);
- }
- }
-
- /**
- * Reset Action title only if all children are titled the same
- */
- private void resetDescriptionOffChildren() throws OseeCoreException {
- String desc = "";
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (desc.equals("")) {
+ }
+ }
+
+ /**
+ * Reset Action title only if all children are titled the same
+ */
+ private void resetDescriptionOffChildren() throws OseeCoreException {
+ String desc = "";
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (desc.equals("")) {
desc = team.getSoleAttributeValue(AtsAttributeTypes.Description, "");
} else if (!desc.equals(team.getSoleAttributeValue(AtsAttributeTypes.Description, ""))) {
- return;
- }
- }
+ return;
+ }
+ }
if (!desc.equals(getSoleAttributeValue(AtsAttributeTypes.Description, ""))) {
setSoleAttributeValue(AtsAttributeTypes.Description, desc);
- }
- if (desc.equals("")) {
+ }
+ if (desc.equals("")) {
deleteSoleAttribute(AtsAttributeTypes.Description);
- }
- }
-
- private void resetChangeTypeOffChildren() throws OseeCoreException {
- ChangeType changeType = null;
- Collection<TeamWorkFlowArtifact> teamArts = getTeamWorkFlowArtifacts();
- if (teamArts.size() == 1) {
- changeType = teamArts.iterator().next().getChangeType();
- } else {
- for (TeamWorkFlowArtifact team : teamArts) {
- if (!team.isCancelled()) {
- if (changeType == null) {
- changeType = team.getChangeType();
- } else if (changeType != team.getChangeType()) {
- return;
- }
- }
- }
- }
- if (changeType != null && getChangeType() != changeType) {
- setChangeType(changeType);
- }
- return;
- }
-
- private void resetPriorityOffChildren() throws OseeCoreException {
- PriorityType priorityType = null;
- Collection<TeamWorkFlowArtifact> teamArts = getTeamWorkFlowArtifacts();
- if (teamArts.size() == 1) {
- priorityType = teamArts.iterator().next().getPriority();
- } else {
- for (TeamWorkFlowArtifact team : teamArts) {
- if (!team.isCancelled()) {
- if (priorityType == null) {
- priorityType = team.getPriority();
- } else if (priorityType != team.getPriority()) {
- return;
- }
- }
- }
- }
- if (priorityType != null && getPriority() != priorityType) {
- setPriority(priorityType);
- }
- return;
- }
-
- private void resetUserCommunityOffChildren() throws OseeCoreException {
- Set<String> userComs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
+ }
+ }
+
+ private void resetChangeTypeOffChildren() throws OseeCoreException {
+ ChangeType changeType = null;
+ Collection<TeamWorkFlowArtifact> teamArts = getTeamWorkFlowArtifacts();
+ if (teamArts.size() == 1) {
+ changeType = teamArts.iterator().next().getChangeType();
+ } else {
+ for (TeamWorkFlowArtifact team : teamArts) {
+ if (!team.isCancelled()) {
+ if (changeType == null) {
+ changeType = team.getChangeType();
+ } else if (changeType != team.getChangeType()) {
+ return;
+ }
+ }
+ }
+ }
+ if (changeType != null && getChangeType() != changeType) {
+ setChangeType(changeType);
+ }
+ return;
+ }
+
+ private void resetPriorityOffChildren() throws OseeCoreException {
+ PriorityType priorityType = null;
+ Collection<TeamWorkFlowArtifact> teamArts = getTeamWorkFlowArtifacts();
+ if (teamArts.size() == 1) {
+ priorityType = teamArts.iterator().next().getPriority();
+ } else {
+ for (TeamWorkFlowArtifact team : teamArts) {
+ if (!team.isCancelled()) {
+ if (priorityType == null) {
+ priorityType = team.getPriority();
+ } else if (priorityType != team.getPriority()) {
+ return;
+ }
+ }
+ }
+ }
+ if (priorityType != null && getPriority() != priorityType) {
+ setPriority(priorityType);
+ }
+ return;
+ }
+
+ private void resetUserCommunityOffChildren() throws OseeCoreException {
+ Set<String> userComs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
userComs.addAll(team.getAttributesToStringList(AtsAttributeTypes.UserCommunity));
- }
- }
+ }
+ }
setAttributeValues(AtsAttributeTypes.UserCommunity, userComs);
- }
-
- public void setChangeType(ChangeType type) throws OseeCoreException {
+ }
+
+ public void setChangeType(ChangeType type) throws OseeCoreException {
setSoleAttributeValue(AtsAttributeTypes.ChangeType, type.name());
- }
-
- public ChangeType getChangeType() throws OseeCoreException {
+ }
+
+ public ChangeType getChangeType() throws OseeCoreException {
return ChangeType.getChangeType(getSoleAttributeValue(AtsAttributeTypes.ChangeType, ""));
- }
-
- public PriorityType getPriority() throws OseeCoreException {
+ }
+
+ public PriorityType getPriority() throws OseeCoreException {
return PriorityType.getPriority(getSoleAttributeValue(AtsAttributeTypes.PriorityType, ""));
- }
-
- public void setPriority(PriorityType type) throws OseeCoreException {
+ }
+
+ public void setPriority(PriorityType type) throws OseeCoreException {
setSoleAttributeValue(AtsAttributeTypes.PriorityType, type.getShortName());
- }
-
- public Collection<TeamWorkFlowArtifact> getTeamWorkFlowArtifacts() throws OseeCoreException {
- return getRelatedArtifactsUnSorted(AtsRelationTypes.ActionToWorkflow_WorkFlow, TeamWorkFlowArtifact.class);
- }
-
- @Override
- public String getWorldViewType() {
- return AtsArtifactTypes.Action.getName();
- }
-
- @Override
- public String getWorldViewTitle() {
- return getName();
- }
-
- @Override
- public ChangeType getWorldViewChangeType() throws OseeCoreException {
+ }
+
+ public Collection<TeamWorkFlowArtifact> getTeamWorkFlowArtifacts() throws OseeCoreException {
+ return getRelatedArtifactsUnSorted(AtsRelationTypes.ActionToWorkflow_WorkFlow, TeamWorkFlowArtifact.class);
+ }
+
+ @Override
+ public String getWorldViewType() {
+ return AtsArtifactTypes.Action.getName();
+ }
+
+ @Override
+ public String getWorldViewTitle() {
+ return getName();
+ }
+
+ @Override
+ public ChangeType getWorldViewChangeType() throws OseeCoreException {
return ChangeType.getChangeType(getSoleAttributeValue(AtsAttributeTypes.ChangeType, ""));
- }
-
- @Override
- public String getWorldViewBranchStatus() throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.getWorldViewBranchStatus().equals("")) {
- sb.append(team.getWorldViewBranchStatus() + ", ");
- }
- }
- return sb.toString().replaceFirst(", $", "");
- }
-
- @Override
- public String getWorldViewPoint() throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.getWorldViewPoint().equals("")) {
- sb.append(team.getWorldViewPoint() + ", ");
- }
- }
- return sb.toString().replaceFirst(", $", "");
- }
-
- @Override
- public String getWorldViewNumberOfTasks() throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.getWorldViewNumberOfTasks().equals("")) {
- sb.append(team.getWorldViewNumberOfTasks() + ", ");
- }
- }
- return sb.toString().replaceFirst(", $", "");
- }
-
- @Override
- public String getWorldViewNumberOfTasksRemaining() throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.getWorldViewNumberOfTasksRemaining().equals("")) {
- sb.append(team.getWorldViewNumberOfTasksRemaining() + ", ");
- }
- }
- return sb.toString().replaceFirst(", $", "");
- }
-
- @Override
- public String getWorldViewState() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewState());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewDaysInCurrentState() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewDaysInCurrentState());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewActivePoc() throws OseeCoreException {
- Set<User> pocs = new HashSet<User>();
- Set<User> implementers = new HashSet<User>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (team.isCancelledOrCompleted()) {
- implementers.addAll(team.getImplementers());
- } else {
- pocs.addAll(team.getStateMgr().getAssignees());
- }
- }
- return Artifacts.toString("; ", pocs) + (implementers.size() > 0 ? "(" + Artifacts.toString("; ", implementers) + ")" : "");
- }
-
- @Override
- public String getWorldViewCreatedDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- Date date = team.getWorldViewCreatedDate();
- if (date == null) {
- strs.add("");
- } else {
- strs.add(XDate.getDateStr(team.getWorldViewCreatedDate(), XDate.MMDDYYHHMM));
- }
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewCreatedDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCreatedDate();
- }
-
- @Override
- public String getWorldViewID() {
- return getHumanReadableId();
- }
-
- @Override
- public String getWorldViewPriority() throws OseeCoreException {
+ }
+
+ @Override
+ public String getWorldViewBranchStatus() throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.getWorldViewBranchStatus().equals("")) {
+ sb.append(team.getWorldViewBranchStatus() + ", ");
+ }
+ }
+ return sb.toString().replaceFirst(", $", "");
+ }
+
+ @Override
+ public String getWorldViewPoint() throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.getWorldViewPoint().equals("")) {
+ sb.append(team.getWorldViewPoint() + ", ");
+ }
+ }
+ return sb.toString().replaceFirst(", $", "");
+ }
+
+ @Override
+ public String getWorldViewNumberOfTasks() throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.getWorldViewNumberOfTasks().equals("")) {
+ sb.append(team.getWorldViewNumberOfTasks() + ", ");
+ }
+ }
+ return sb.toString().replaceFirst(", $", "");
+ }
+
+ @Override
+ public String getWorldViewNumberOfTasksRemaining() throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.getWorldViewNumberOfTasksRemaining().equals("")) {
+ sb.append(team.getWorldViewNumberOfTasksRemaining() + ", ");
+ }
+ }
+ return sb.toString().replaceFirst(", $", "");
+ }
+
+ @Override
+ public String getWorldViewState() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewState());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewDaysInCurrentState() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewDaysInCurrentState());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewActivePoc() throws OseeCoreException {
+ Set<User> pocs = new HashSet<User>();
+ Set<User> implementers = new HashSet<User>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (team.isCancelledOrCompleted()) {
+ implementers.addAll(team.getImplementers());
+ } else {
+ pocs.addAll(team.getStateMgr().getAssignees());
+ }
+ }
+ return Artifacts.toString("; ", pocs) + (implementers.size() > 0 ? "(" + Artifacts.toString("; ", implementers) + ")" : "");
+ }
+
+ @Override
+ public String getWorldViewCreatedDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ Date date = team.getWorldViewCreatedDate();
+ if (date == null) {
+ strs.add("");
+ } else {
+ strs.add(XDate.getDateStr(team.getWorldViewCreatedDate(), XDate.MMDDYYHHMM));
+ }
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewCreatedDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCreatedDate();
+ }
+
+ @Override
+ public String getWorldViewID() {
+ return getHumanReadableId();
+ }
+
+ @Override
+ public String getWorldViewPriority() throws OseeCoreException {
return PriorityType.getPriority(getSoleAttributeValue(AtsAttributeTypes.PriorityType, "")).getShortName();
- }
-
- @Override
- public Image getAssigneeImage() throws OseeCoreException {
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- Image image = team.getAssigneeImage();
- if (image != null) {
- return image;
- }
- }
- return null;
- }
-
- @Override
- public String getWorldViewUserCommunity() throws OseeCoreException {
+ }
+
+ @Override
+ public Image getAssigneeImage() throws OseeCoreException {
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ Image image = team.getAssigneeImage();
+ if (image != null) {
+ return image;
+ }
+ }
+ return null;
+ }
+
+ @Override
+ public String getWorldViewUserCommunity() throws OseeCoreException {
return getAttributesToString(AtsAttributeTypes.UserCommunity);
- }
-
- @Override
- public String getWorldViewActionableItems() throws OseeCoreException {
- Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
- // Roll up if same for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- aias.addAll(team.getActionableItemsDam().getActionableItems());
- }
- return Artifacts.commaArts(aias);
- }
-
- @Override
- public void atsDelete(Set<Artifact> deleteArts, Map<Artifact, Object> allRelated) throws OseeCoreException {
- super.atsDelete(deleteArts, allRelated);
- // Delete all products
- for (TeamWorkFlowArtifact art : getRelatedArtifacts(AtsRelationTypes.ActionToWorkflow_WorkFlow,
- TeamWorkFlowArtifact.class)) {
- art.atsDelete(deleteArts, allRelated);
- }
- }
-
- @Override
- public String getWorldViewTeam() throws OseeCoreException {
- Set<TeamDefinitionArtifact> teams = new HashSet<TeamDefinitionArtifact>();
- // Roll up if same for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- teams.add(team.getTeamDefinition());
- }
- return Artifacts.commaArts(teams);
- }
-
- @Override
- public String getWorldViewOriginator() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewOriginator());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewCompletedDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewCompletedDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewCompletedDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCompletedDate();
- }
-
- @Override
- public String getWorldViewCancelledDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewCancelledDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewCancelledDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCancelledDate();
- }
-
- @Override
- public String getWorldViewResolution() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewResolution());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public double getWorldViewRemainHours() throws OseeCoreException {
- double hours = 0;
- // Add up hours for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- hours += team.getWorldViewRemainHours();
- }
- return hours;
- }
-
- @Override
- public double getWorldViewManDaysNeeded() throws OseeCoreException {
- double hours = 0;
- // Add up hours for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- hours += team.getWorldViewManDaysNeeded();
- }
- return hours;
- }
-
- @Override
- public double getWorldViewEstimatedHours() throws OseeCoreException {
- double hours = 0;
- // Add up hours for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- hours += team.getWorldViewEstimatedHours();
- }
- return hours;
- }
-
- public int getWorldViewStatePercentComplete() throws OseeCoreException {
- if (getTeamWorkFlowArtifacts().size() == 1) {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewStatePercentComplete();
- } else {
- double percent = 0;
- int items = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- percent += team.getWorldViewStatePercentComplete();
- items++;
- }
- }
- if (items > 0) {
- Double rollPercent = percent / items;
- return rollPercent.intValue();
- }
- }
- return 0;
- }
-
- @Override
- public String getWorldViewRelatedToState() {
- return "";
- }
-
- @Override
- public String getWorldViewNotes() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewNotes());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewGroups() throws OseeCoreException {
- Set<Artifact> groups = new HashSet<Artifact>();
- groups.addAll(getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
- // Roll up if same for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- groups.addAll(team.getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
- }
- return Artifacts.toString("; ", groups);
- }
-
- @Override
- public String getWorldViewGoals() throws OseeCoreException {
- return Artifacts.toString("; ", getRelatedArtifacts(AtsRelationTypes.Goal_Goal));
- }
-
- @Override
- public String getWorldViewNumeric1() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewNumeric1());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewNumeric2() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewNumeric2());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewCategory() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewCategory());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewGoalOrderVote() throws OseeCoreException {
+ }
+
+ @Override
+ public String getWorldViewActionableItems() throws OseeCoreException {
+ Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
+ // Roll up if same for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ aias.addAll(team.getActionableItemsDam().getActionableItems());
+ }
+ return Artifacts.commaArts(aias);
+ }
+
+ @Override
+ public void atsDelete(Set<Artifact> deleteArts, Map<Artifact, Object> allRelated) throws OseeCoreException {
+ super.atsDelete(deleteArts, allRelated);
+ // Delete all products
+ for (TeamWorkFlowArtifact art : getRelatedArtifacts(AtsRelationTypes.ActionToWorkflow_WorkFlow,
+ TeamWorkFlowArtifact.class)) {
+ art.atsDelete(deleteArts, allRelated);
+ }
+ }
+
+ @Override
+ public String getWorldViewTeam() throws OseeCoreException {
+ Set<TeamDefinitionArtifact> teams = new HashSet<TeamDefinitionArtifact>();
+ // Roll up if same for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ teams.add(team.getTeamDefinition());
+ }
+ return Artifacts.commaArts(teams);
+ }
+
+ @Override
+ public String getWorldViewOriginator() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewOriginator());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewCompletedDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewCompletedDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewCompletedDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCompletedDate();
+ }
+
+ @Override
+ public String getWorldViewCancelledDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewCancelledDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewCancelledDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewCancelledDate();
+ }
+
+ @Override
+ public String getWorldViewResolution() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewResolution());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public double getWorldViewRemainHours() throws OseeCoreException {
+ double hours = 0;
+ // Add up hours for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ hours += team.getWorldViewRemainHours();
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewManDaysNeeded() throws OseeCoreException {
+ double hours = 0;
+ // Add up hours for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ hours += team.getWorldViewManDaysNeeded();
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewEstimatedHours() throws OseeCoreException {
+ double hours = 0;
+ // Add up hours for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ hours += team.getWorldViewEstimatedHours();
+ }
+ return hours;
+ }
+
+ public int getWorldViewStatePercentComplete() throws OseeCoreException {
+ if (getTeamWorkFlowArtifacts().size() == 1) {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewStatePercentComplete();
+ } else {
+ double percent = 0;
+ int items = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ percent += team.getWorldViewStatePercentComplete();
+ items++;
+ }
+ }
+ if (items > 0) {
+ Double rollPercent = percent / items;
+ return rollPercent.intValue();
+ }
+ }
+ return 0;
+ }
+
+ @Override
+ public String getWorldViewRelatedToState() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewNotes() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewNotes());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewGroups() throws OseeCoreException {
+ Set<Artifact> groups = new HashSet<Artifact>();
+ groups.addAll(getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
+ // Roll up if same for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ groups.addAll(team.getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
+ }
+ return Artifacts.toString("; ", groups);
+ }
+
+ @Override
+ public String getWorldViewGoals() throws OseeCoreException {
+ return Artifacts.toString("; ", getRelatedArtifacts(AtsRelationTypes.Goal_Goal));
+ }
+
+ @Override
+ public String getWorldViewNumeric1() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewNumeric1());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewNumeric2() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewNumeric2());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewCategory() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewCategory());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewGoalOrderVote() throws OseeCoreException {
return getSoleAttributeValue(AtsAttributeTypes.GoalOrderVote, "");
- }
-
- @Override
- public String getWorldViewWorkPackage() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewWorkPackage());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewCategory2() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewCategory2());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewCategory3() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewCategory3());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewTargetedVersionStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewTargetedVersionStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getHyperName() {
- return getName();
- }
-
- @Override
- public String getHyperType() {
- try {
- return getArtifactTypeName();
- } catch (Exception ex) {
- return ex.getLocalizedMessage();
- }
- }
-
- @Override
- public String getHyperState() {
- try {
- if (getTeamWorkFlowArtifacts().size() == 1) {
- return getTeamWorkFlowArtifacts().iterator().next().getHyperState();
- }
- } catch (Exception ex) {
- return XViewerCells.getCellExceptionString(ex);
- }
- return "";
- }
-
- @Override
- public String getHyperTargetVersion() {
- return null;
- }
-
- @Override
- public String getHyperAssignee() {
- try {
- if (getTeamWorkFlowArtifacts().size() == 1) {
- return getTeamWorkFlowArtifacts().iterator().next().getHyperAssignee();
- }
- } catch (Exception ex) {
- return XViewerCells.getCellExceptionString(ex);
- }
- return "";
- }
-
- @Override
- public Image getHyperAssigneeImage() throws OseeCoreException {
- if (getTeamWorkFlowArtifacts().size() == 1) {
- return getTeamWorkFlowArtifacts().iterator().next().getHyperAssigneeImage();
- }
- return null;
- }
-
- @Override
- public Artifact getHyperArtifact() {
- return this;
- }
-
- public Result editActionableItems() throws OseeCoreException {
- final AICheckTreeDialog diag =
- new AICheckTreeDialog(
- "Add Impacted Actionable Items",
- "Select New Impacted Actionable Items\n\n" + "Note: Un-selecting existing items will NOT remove the impact.\n" + "Team Workflow with no impact should be transitioned to Cancelled.",
- Active.Active);
-
- diag.setInitialAias(getActionableItems());
- if (diag.open() != 0) {
- return Result.FalseResult;
- }
-
- // ensure that at least one actionable item exists for each team after aias added/removed
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- Set<ActionableItemArtifact> currentAias = team.getActionableItemsDam().getActionableItems();
- Collection<ActionableItemArtifact> checkedAias = diag.getChecked();
- for (ActionableItemArtifact aia : new CopyOnWriteArrayList<ActionableItemArtifact>(currentAias)) {
- if (!checkedAias.contains(aia)) {
- currentAias.remove(aia);
- }
- }
- if (currentAias.isEmpty()) {
- return new Result("Can not remove all actionable items for a team.\n\nActionable Items will go to 0 for [" +
- //
- team.getTeamName() + "][" + team.getHumanReadableId() + "]\n\nCancel team workflow instead.");
- }
- }
-
- final StringBuffer sb = new StringBuffer();
- SkynetTransaction transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Edit Actionable Items");
-
- // Add new aias
- for (ActionableItemArtifact aia : diag.getChecked()) {
- Result result = addActionableItemToTeamsOrAddTeams(aia, UserManager.getUser(), transaction);
- sb.append(result.getText());
- }
- // Remove unchecked aias
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- for (ActionableItemArtifact aia : team.getActionableItemsDam().getActionableItems()) {
- if (!diag.getChecked().contains(aia)) {
- team.getActionableItemsDam().removeActionableItem(aia);
- }
- }
- team.persist(transaction);
- }
-
- transaction.execute();
- return new Result(true, sb.toString());
- }
-
- public Result addActionableItemToTeamsOrAddTeams(ActionableItemArtifact aia, User originator, SkynetTransaction transaction) throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (TeamDefinitionArtifact tda : TeamDefinitionArtifact.getImpactedTeamDefs(Arrays.asList(aia))) {
- boolean teamExists = false;
- // Look for team workflow that is associated with this tda
- for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
- // If found
- if (teamArt.getTeamDefinition().equals(tda)) {
- // And workflow doesn't already have this actionable item,
- // ADD it
- if (!teamArt.getActionableItemsDam().getActionableItems().contains(aia)) {
- teamArt.getActionableItemsDam().addActionableItem(aia);
- teamArt.saveSMA(transaction);
- sb.append(aia.getName() + " => added to existing team workflow \"" + tda.getName() + "\"\n");
- teamExists = true;
- } else {
- sb.append(aia.getName() + " => already exists in team workflow \"" + tda.getName() + "\"\n");
- teamExists = true;
- }
- }
- }
- if (!teamExists) {
- TeamWorkFlowArtifact teamArt = createTeamWorkflow(tda, Arrays.asList(aia), tda.getLeads(), transaction);
- if (originator != null) {
- teamArt.getLog().setOriginator(originator);
- }
- teamArt.persist(transaction);
- sb.append(aia.getName() + " => added team workflow \"" + tda.getName() + "\"\n");
- }
- }
- return new Result(true, sb.toString());
- }
-
- public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
- String teamWorkflowArtifactName = AtsArtifactTypes.TeamWorkflow.getName();
- IAtsTeamWorkflow teamExt = null;
-
- // Check if any plugins want to create the team workflow themselves
- for (IAtsTeamWorkflow teamExtension : TeamWorkflowExtensions.getInstance().getAtsTeamWorkflowExtensions()) {
- boolean isResponsible = false;
- try {
- isResponsible = teamExtension.isResponsibleForTeamWorkflowCreation(teamDef, actionableItems);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.WARNING, ex);
- }
- if (isResponsible) {
- teamWorkflowArtifactName = teamExtension.getTeamWorkflowArtifactName(teamDef, actionableItems);
- teamExt = teamExtension;
- }
- }
-
- // NOTE: The persist of the workflow will auto-email the assignees
- TeamWorkFlowArtifact teamArt =
- createTeamWorkflow(teamDef, actionableItems, assignees, ArtifactTypeManager.getType(teamWorkflowArtifactName),
- transaction, createTeamOption);
- // Notify extension that workflow was created
- if (teamExt != null) {
- teamExt.teamWorkflowCreated(teamArt);
- }
- return teamArt;
- }
-
- public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, IArtifactType artifactType, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
- return createTeamWorkflow(teamDef, actionableItems, assignees, null, null, artifactType, transaction,
- createTeamOption);
- }
-
- public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, String guid, String hrid, IArtifactType artifactType, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
-
- if (!Collections.getAggregate(createTeamOption).contains(CreateTeamOption.Duplicate_If_Exists)) {
- // Make sure team doesn't already exist
- for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
- if (teamArt.getTeamDefinition().equals(teamDef)) {
- AWorkbench.popup("ERROR", "Team already exist");
- throw new OseeArgumentException(
- "Team \"" + teamDef + "\" already exists for Action " + getHumanReadableId());
- }
- }
- }
-
- TeamWorkFlowArtifact teamArt = null;
- if (guid == null) {
- teamArt = (TeamWorkFlowArtifact) ArtifactTypeManager.addArtifact(artifactType, AtsUtil.getAtsBranch());
- } else {
- teamArt =
- (TeamWorkFlowArtifact) ArtifactTypeManager.addArtifact(artifactType, AtsUtil.getAtsBranch(), guid, hrid);
- }
- setArtifactIdentifyData(this, teamArt);
-
- teamArt.getLog().addLog(LogType.Originated, "", "");
-
- // Relate Workflow to ActionableItems (by guid) if team is responsible
- // for that AI
- for (ActionableItemArtifact aia : actionableItems) {
- if (aia.getImpactedTeamDefs().contains(teamDef)) {
- teamArt.getActionableItemsDam().addActionableItem(aia);
- }
- }
-
- // Relate WorkFlow to Team Definition (by guid due to relation loading
- // issues)
- teamArt.setTeamDefinition(teamDef);
-
- // Initialize state machine
- String startState = teamArt.getWorkFlowDefinition().getStartPage().getPageName();
- teamArt.getStateMgr().initializeStateMachine(startState, assignees);
- teamArt.getLog().addLog(LogType.StateEntered, startState, "");
-
- // Relate Action to WorkFlow
- addRelation(AtsRelationTypes.ActionToWorkflow_WorkFlow, teamArt);
-
- teamArt.persist(transaction);
-
- return teamArt;
- }
-
- /**
- * Set Team Workflow attributes off given action artifact
- */
- public static void setArtifactIdentifyData(ActionArtifact fromAction, TeamWorkFlowArtifact toTeam) throws OseeCoreException {
+ }
+
+ @Override
+ public String getWorldViewWorkPackage() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewWorkPackage());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewCategory2() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewCategory2());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewCategory3() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewCategory3());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewTargetedVersionStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewTargetedVersionStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getHyperName() {
+ return getName();
+ }
+
+ @Override
+ public String getHyperType() {
+ try {
+ return getArtifactTypeName();
+ } catch (Exception ex) {
+ return ex.getLocalizedMessage();
+ }
+ }
+
+ @Override
+ public String getHyperState() {
+ try {
+ if (getTeamWorkFlowArtifacts().size() == 1) {
+ return getTeamWorkFlowArtifacts().iterator().next().getHyperState();
+ }
+ } catch (Exception ex) {
+ return XViewerCells.getCellExceptionString(ex);
+ }
+ return "";
+ }
+
+ @Override
+ public String getHyperTargetVersion() {
+ return null;
+ }
+
+ @Override
+ public String getHyperAssignee() {
+ try {
+ if (getTeamWorkFlowArtifacts().size() == 1) {
+ return getTeamWorkFlowArtifacts().iterator().next().getHyperAssignee();
+ }
+ } catch (Exception ex) {
+ return XViewerCells.getCellExceptionString(ex);
+ }
+ return "";
+ }
+
+ @Override
+ public Image getHyperAssigneeImage() throws OseeCoreException {
+ if (getTeamWorkFlowArtifacts().size() == 1) {
+ return getTeamWorkFlowArtifacts().iterator().next().getHyperAssigneeImage();
+ }
+ return null;
+ }
+
+ @Override
+ public Artifact getHyperArtifact() {
+ return this;
+ }
+
+ public Result editActionableItems() throws OseeCoreException {
+ final AICheckTreeDialog diag =
+ new AICheckTreeDialog(
+ "Add Impacted Actionable Items",
+ "Select New Impacted Actionable Items\n\n" + "Note: Un-selecting existing items will NOT remove the impact.\n" + "Team Workflow with no impact should be transitioned to Cancelled.",
+ Active.Active);
+
+ diag.setInitialAias(getActionableItems());
+ if (diag.open() != 0) {
+ return Result.FalseResult;
+ }
+
+ // ensure that at least one actionable item exists for each team after aias added/removed
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ Set<ActionableItemArtifact> currentAias = team.getActionableItemsDam().getActionableItems();
+ Collection<ActionableItemArtifact> checkedAias = diag.getChecked();
+ for (ActionableItemArtifact aia : new CopyOnWriteArrayList<ActionableItemArtifact>(currentAias)) {
+ if (!checkedAias.contains(aia)) {
+ currentAias.remove(aia);
+ }
+ }
+ if (currentAias.isEmpty()) {
+ return new Result("Can not remove all actionable items for a team.\n\nActionable Items will go to 0 for [" +
+ //
+ team.getTeamName() + "][" + team.getHumanReadableId() + "]\n\nCancel team workflow instead.");
+ }
+ }
+
+ final StringBuffer sb = new StringBuffer();
+ SkynetTransaction transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Edit Actionable Items");
+
+ // Add new aias
+ for (ActionableItemArtifact aia : diag.getChecked()) {
+ Result result = addActionableItemToTeamsOrAddTeams(aia, UserManager.getUser(), transaction);
+ sb.append(result.getText());
+ }
+ // Remove unchecked aias
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ for (ActionableItemArtifact aia : team.getActionableItemsDam().getActionableItems()) {
+ if (!diag.getChecked().contains(aia)) {
+ team.getActionableItemsDam().removeActionableItem(aia);
+ }
+ }
+ team.persist(transaction);
+ }
+
+ transaction.execute();
+ return new Result(true, sb.toString());
+ }
+
+ public Result addActionableItemToTeamsOrAddTeams(ActionableItemArtifact aia, User originator, SkynetTransaction transaction) throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ for (TeamDefinitionArtifact tda : TeamDefinitionArtifact.getImpactedTeamDefs(Arrays.asList(aia))) {
+ boolean teamExists = false;
+ // Look for team workflow that is associated with this tda
+ for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
+ // If found
+ if (teamArt.getTeamDefinition().equals(tda)) {
+ // And workflow doesn't already have this actionable item,
+ // ADD it
+ if (!teamArt.getActionableItemsDam().getActionableItems().contains(aia)) {
+ teamArt.getActionableItemsDam().addActionableItem(aia);
+ teamArt.saveSMA(transaction);
+ sb.append(aia.getName() + " => added to existing team workflow \"" + tda.getName() + "\"\n");
+ teamExists = true;
+ } else {
+ sb.append(aia.getName() + " => already exists in team workflow \"" + tda.getName() + "\"\n");
+ teamExists = true;
+ }
+ }
+ }
+ if (!teamExists) {
+ TeamWorkFlowArtifact teamArt = createTeamWorkflow(tda, Arrays.asList(aia), tda.getLeads(), transaction);
+ if (originator != null) {
+ teamArt.getLog().setOriginator(originator);
+ }
+ teamArt.persist(transaction);
+ sb.append(aia.getName() + " => added team workflow \"" + tda.getName() + "\"\n");
+ }
+ }
+ return new Result(true, sb.toString());
+ }
+
+ public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
+ String teamWorkflowArtifactName = AtsArtifactTypes.TeamWorkflow.getName();
+ IAtsTeamWorkflow teamExt = null;
+
+ // Check if any plugins want to create the team workflow themselves
+ for (IAtsTeamWorkflow teamExtension : TeamWorkflowExtensions.getInstance().getAtsTeamWorkflowExtensions()) {
+ boolean isResponsible = false;
+ try {
+ isResponsible = teamExtension.isResponsibleForTeamWorkflowCreation(teamDef, actionableItems);
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.WARNING, ex);
+ }
+ if (isResponsible) {
+ teamWorkflowArtifactName = teamExtension.getTeamWorkflowArtifactName(teamDef, actionableItems);
+ teamExt = teamExtension;
+ }
+ }
+
+ // NOTE: The persist of the workflow will auto-email the assignees
+ TeamWorkFlowArtifact teamArt =
+ createTeamWorkflow(teamDef, actionableItems, assignees, ArtifactTypeManager.getType(teamWorkflowArtifactName),
+ transaction, createTeamOption);
+ // Notify extension that workflow was created
+ if (teamExt != null) {
+ teamExt.teamWorkflowCreated(teamArt);
+ }
+ return teamArt;
+ }
+
+ public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, IArtifactType artifactType, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
+ return createTeamWorkflow(teamDef, actionableItems, assignees, null, null, artifactType, transaction,
+ createTeamOption);
+ }
+
+ public TeamWorkFlowArtifact createTeamWorkflow(TeamDefinitionArtifact teamDef, Collection<ActionableItemArtifact> actionableItems, Collection<User> assignees, String guid, String hrid, IArtifactType artifactType, SkynetTransaction transaction, CreateTeamOption... createTeamOption) throws OseeCoreException {
+
+ if (!Collections.getAggregate(createTeamOption).contains(CreateTeamOption.Duplicate_If_Exists)) {
+ // Make sure team doesn't already exist
+ for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
+ if (teamArt.getTeamDefinition().equals(teamDef)) {
+ AWorkbench.popup("ERROR", "Team already exist");
+ throw new OseeArgumentException(
+ "Team \"" + teamDef + "\" already exists for Action " + getHumanReadableId());
+ }
+ }
+ }
+
+ TeamWorkFlowArtifact teamArt = null;
+ if (guid == null) {
+ teamArt = (TeamWorkFlowArtifact) ArtifactTypeManager.addArtifact(artifactType, AtsUtil.getAtsBranch());
+ } else {
+ teamArt =
+ (TeamWorkFlowArtifact) ArtifactTypeManager.addArtifact(artifactType, AtsUtil.getAtsBranch(), guid, hrid);
+ }
+ setArtifactIdentifyData(this, teamArt);
+
+ teamArt.getLog().addLog(LogType.Originated, "", "");
+
+ // Relate Workflow to ActionableItems (by guid) if team is responsible
+ // for that AI
+ for (ActionableItemArtifact aia : actionableItems) {
+ if (aia.getImpactedTeamDefs().contains(teamDef)) {
+ teamArt.getActionableItemsDam().addActionableItem(aia);
+ }
+ }
+
+ // Relate WorkFlow to Team Definition (by guid due to relation loading
+ // issues)
+ teamArt.setTeamDefinition(teamDef);
+
+ // Initialize state machine
+ String startState = teamArt.getWorkFlowDefinition().getStartPage().getPageName();
+ teamArt.getStateMgr().initializeStateMachine(startState, assignees);
+ teamArt.getLog().addLog(LogType.StateEntered, startState, "");
+
+ // Relate Action to WorkFlow
+ addRelation(AtsRelationTypes.ActionToWorkflow_WorkFlow, teamArt);
+
+ teamArt.persist(transaction);
+
+ return teamArt;
+ }
+
+ /**
+ * Set Team Workflow attributes off given action artifact
+ */
+ public static void setArtifactIdentifyData(ActionArtifact fromAction, TeamWorkFlowArtifact toTeam) throws OseeCoreException {
String priorityStr = fromAction.getSoleAttributeValue(AtsAttributeTypes.PriorityType, "");
- PriorityType priType = null;
- if (Strings.isValid(priorityStr)) {
- priType = PriorityType.getPriority(priorityStr);
- } else {
- throw new OseeArgumentException("Invalid priority => " + priorityStr);
- }
- setArtifactIdentifyData(toTeam, fromAction.getName(),
+ PriorityType priType = null;
+ if (Strings.isValid(priorityStr)) {
+ priType = PriorityType.getPriority(priorityStr);
+ } else {
+ throw new OseeArgumentException("Invalid priority => " + priorityStr);
+ }
+ setArtifactIdentifyData(toTeam, fromAction.getName(),
fromAction.getSoleAttributeValue(AtsAttributeTypes.Description, ""),
ChangeType.getChangeType(fromAction.getSoleAttributeValue(AtsAttributeTypes.ChangeType, "")), priType,
- // fromAction.getAttributesToStringList(AtsAttributeTypes.ATS_USER_COMMUNITY),
+ // fromAction.getAttributesToStringList(AtsAttributeTypes.ATS_USER_COMMUNITY),
fromAction.getSoleAttributeValue(AtsAttributeTypes.ValidationRequired, false),
fromAction.getSoleAttributeValue(AtsAttributeTypes.NeedBy, (Date) null));
- }
-
- /**
- * Since there is no shared attribute yet, action and workflow arts are all populate with identify data
- */
- public static void setArtifactIdentifyData(Artifact art, String title, String desc, ChangeType changeType, PriorityType priority, Boolean validationRequired, Date needByDate) throws OseeCoreException {
- art.setName(title);
- if (!desc.equals("")) {
+ }
+
+ /**
+ * Since there is no shared attribute yet, action and workflow arts are all populate with identify data
+ */
+ public static void setArtifactIdentifyData(Artifact art, String title, String desc, ChangeType changeType, PriorityType priority, Boolean validationRequired, Date needByDate) throws OseeCoreException {
+ art.setName(title);
+ if (!desc.equals("")) {
art.setSoleAttributeValue(AtsAttributeTypes.Description, desc);
- }
+ }
art.setSoleAttributeValue(AtsAttributeTypes.ChangeType, changeType.name());
- // art.setAttributeValues(ATSAttributes.USER_COMMUNITY_ATTRIBUTE.getStoreName(), userComms);
- if (priority != null) {
+ // art.setAttributeValues(ATSAttributes.USER_COMMUNITY_ATTRIBUTE.getStoreName(), userComms);
+ if (priority != null) {
art.setSoleAttributeValue(AtsAttributeTypes.PriorityType, priority.getShortName());
- }
- if (needByDate != null) {
+ }
+ if (needByDate != null) {
art.setSoleAttributeValue(AtsAttributeTypes.NeedBy, needByDate);
- }
- if (validationRequired) {
+ }
+ if (validationRequired) {
art.setSoleAttributeValue(AtsAttributeTypes.ValidationRequired, true);
- }
- }
-
- @Override
- public String getWorldViewDecision() {
- return "";
- }
-
- @Override
- public Artifact getParentAtsArtifact() {
- return null;
- }
-
- @Override
- public String getWorldViewDescription() {
- try {
+ }
+ }
+
+ @Override
+ public String getWorldViewDecision() {
+ return "";
+ }
+
+ @Override
+ public Artifact getParentAtsArtifact() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewDescription() {
+ try {
return getSoleAttributeValue(AtsAttributeTypes.Description, "");
- } catch (Exception ex) {
- return XViewerCells.getCellExceptionString(ex);
- }
- }
-
- @Override
- public String getWorldViewValidationRequiredStr() {
- try {
+ } catch (Exception ex) {
+ return XViewerCells.getCellExceptionString(ex);
+ }
+ }
+
+ @Override
+ public String getWorldViewValidationRequiredStr() {
+ try {
return String.valueOf(getSoleAttributeValue(AtsAttributeTypes.ValidationRequired, false));
- } catch (Exception ex) {
- return XViewerCells.getCellExceptionString(ex);
- }
- }
-
- @Override
- public Date getWorldViewEstimatedReleaseDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewEstimatedReleaseDate();
- }
-
- @Override
- public String getWorldViewEstimatedCompletionDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewEstimatedCompletionDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewEstimatedCompletionDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewEstimatedCompletionDate();
- }
-
- @Override
- public String getWorldViewReleaseDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewReleaseDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewReleaseDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewReleaseDate();
- }
-
- @Override
- public String getWorldViewEstimatedReleaseDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewEstimatedReleaseDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Result isWorldViewRemainHoursValid() throws OseeCoreException {
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (team.isWorldViewRemainHoursValid().isFalse()) {
- return team.isWorldViewRemainHoursValid();
- }
- }
- return Result.TrueResult;
- }
-
- @Override
- public Result isWorldViewManDaysNeededValid() {
- try {
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (team.isWorldViewManDaysNeededValid().isFalse()) {
- return team.isWorldViewManDaysNeededValid();
- }
- }
- } catch (OseeCoreException ex) {
- // Do nothing
- }
- return Result.TrueResult;
- }
-
- @Override
- public String getWorldViewChangeTypeStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewChangeTypeStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewImplementer() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewImplementer());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Date getWorldViewDeadlineDate() throws OseeCoreException {
- return getTeamWorkFlowArtifacts().iterator().next().getWorldViewDeadlineDate();
- }
-
- @Override
- public String getWorldViewDeadlineDateStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewDeadlineDateStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public double getWorldViewWeeklyBenefit() throws OseeCoreException {
- double hours = 0;
- // Add up hours for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCompleted() && !team.isCancelled()) {
- hours += team.getWorldViewWeeklyBenefit();
- }
- }
- return hours;
- }
-
- @Override
- public double getWorldViewAnnualCostAvoidance() throws OseeCoreException {
- double hours = 0;
- // Add up hours for all children
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCompleted() && !team.isCancelled()) {
- hours += team.getWorldViewAnnualCostAvoidance();
- }
- }
- return hours;
- }
-
- @Override
- public Result isWorldViewAnnualCostAvoidanceValid() throws OseeCoreException {
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- Result result = team.isWorldViewAnnualCostAvoidanceValid();
- if (result.isFalse()) {
- return result;
- }
- }
- return Result.TrueResult;
- }
-
- @Override
- public Result isWorldViewDeadlineAlerting() throws OseeCoreException {
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- Result result = team.isWorldViewDeadlineAlerting();
- if (result.isTrue()) {
- return result;
- }
- }
- return Result.FalseResult;
- }
-
- @Override
- public String getWorldViewLegacyPCR() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewLegacyPCR());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public String getWorldViewPercentReworkStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- strs.add(team.getWorldViewPercentReworkStr());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public int getWorldViewPercentRework() {
- return 0;
- }
-
- @Override
- public String getWorldViewReviewAuthor() {
- return "";
- }
-
- @Override
- public String getWorldViewReviewDecider() {
- return "";
- }
-
- @Override
- public String getWorldViewReviewModerator() {
- return "";
- }
-
- @Override
- public String getWorldViewReviewReviewer() {
- return "";
- }
-
- @Override
- public double getWorldViewHoursSpentState() throws OseeCoreException {
- double hours = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- hours += team.getWorldViewHoursSpentState();
- }
- }
- return hours;
- }
-
- @Override
- public double getWorldViewHoursSpentStateReview() throws OseeCoreException {
- double hours = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- hours += team.getWorldViewHoursSpentStateReview();
- }
- }
- return hours;
- }
-
- @Override
- public double getWorldViewHoursSpentStateTask() throws OseeCoreException {
- double hours = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- hours += team.getWorldViewHoursSpentStateTask();
- }
- }
- return hours;
- }
-
- @Override
- public double getWorldViewHoursSpentStateTotal() throws OseeCoreException {
- double hours = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- hours += team.getWorldViewHoursSpentStateTotal();
- }
- }
- return hours;
- }
-
- @Override
- public double getWorldViewHoursSpentTotal() throws OseeCoreException {
- double hours = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- hours += team.getWorldViewHoursSpentTotal();
- }
- }
- return hours;
- }
-
- @Override
- public int getWorldViewPercentCompleteState() throws OseeCoreException {
- double percent = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- percent += team.getWorldViewPercentCompleteState();
- }
- }
- if (percent == 0) {
- return 0;
- }
- Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
- return rollPercent.intValue();
- }
-
- @Override
- public int getWorldViewPercentCompleteStateReview() throws OseeCoreException {
- double percent = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- percent += team.getWorldViewPercentCompleteStateReview();
- }
- }
- if (percent == 0) {
- return 0;
- }
- Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
- return rollPercent.intValue();
- }
-
- @Override
- public int getWorldViewPercentCompleteStateTask() throws OseeCoreException {
- double percent = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- percent += team.getWorldViewPercentCompleteStateTask();
- }
- }
- if (percent == 0) {
- return 0;
- }
- Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
- return rollPercent.intValue();
- }
-
- @Override
- public int getWorldViewPercentCompleteTotal() throws OseeCoreException {
- double percent = 0;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (!team.isCancelled()) {
- percent += team.getWorldViewPercentCompleteTotal();
- }
- }
- if (percent == 0) {
- return 0;
- }
- Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
- return rollPercent.intValue();
- }
-
- public String getWorldViewLastUpdated() throws OseeCoreException {
- return XDate.getDateStr(getLastModified(), XDate.MMDDYYHHMM);
- }
-
- @Override
- public String getWorldViewLastStatused() {
- return "(see children)";
- }
-
- @Override
- public VersionArtifact getWorldViewTargetedVersion() {
- return null;
- }
-
- @Override
- public String getWorldViewNumberOfReviewIssueDefects() {
- return "";
- }
-
- @Override
- public String getWorldViewNumberOfReviewMajorDefects() {
- return "";
- }
-
- @Override
- public String getWorldViewNumberOfReviewMinorDefects() {
- return "";
- }
-
- @Override
- public String getWorldViewActionsIntiatingWorkflow() throws OseeCoreException {
- Date earliestDate = null;
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (earliestDate == null || team.getLog().getCreationDate().before(earliestDate)) {
- earliestDate = team.getLog().getCreationDate();
- }
- }
- List<String> teamNames = new ArrayList<String>();
- for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
- if (team.getLog().getCreationDate().equals(earliestDate)) {
- teamNames.add(team.getTeamName());
- }
- }
- return Collections.toString("; ", teamNames);
- }
-
- @Override
- public String getWorldViewParentID() {
- return "";
- }
-
- @Override
- public String getWorldViewParentState() {
- return null;
- }
-
- @Override
- public String getWorldViewOriginatingWorkflowStr() throws OseeCoreException {
- Set<String> strs = new HashSet<String>();
- for (TeamWorkFlowArtifact team : getWorldViewOriginatingWorkflows()) {
- strs.add(team.getWorldViewTeam());
- }
- return Collections.toString(";", strs);
- }
-
- @Override
- public Collection<TeamWorkFlowArtifact> getWorldViewOriginatingWorkflows() throws OseeCoreException {
- if (getTeamWorkFlowArtifacts().size() == 1) {
- return getTeamWorkFlowArtifacts();
- }
- Collection<TeamWorkFlowArtifact> results = new ArrayList<TeamWorkFlowArtifact>();
- Date origDate = null;
- for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
- if (teamArt.isCancelled()) {
- continue;
- }
- if (origDate == null || teamArt.getWorldViewCreatedDate().before(origDate)) {
- results.clear();
- origDate = teamArt.getWorldViewCreatedDate();
- results.add(teamArt);
- } else if (origDate.equals(teamArt.getWorldViewCreatedDate())) {
- results.add(teamArt);
- }
- }
- return results;
- }
-
- @Override
- public String getWorldViewGoalOrder() throws OseeCoreException {
- return GoalArtifact.getGoalOrder(this);
- }
-
-}
+ } catch (Exception ex) {
+ return XViewerCells.getCellExceptionString(ex);
+ }
+ }
+
+ @Override
+ public Date getWorldViewEstimatedReleaseDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewEstimatedReleaseDate();
+ }
+
+ @Override
+ public String getWorldViewEstimatedCompletionDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewEstimatedCompletionDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewEstimatedCompletionDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewEstimatedCompletionDate();
+ }
+
+ @Override
+ public String getWorldViewReleaseDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewReleaseDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewReleaseDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewReleaseDate();
+ }
+
+ @Override
+ public String getWorldViewEstimatedReleaseDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewEstimatedReleaseDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Result isWorldViewRemainHoursValid() throws OseeCoreException {
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (team.isWorldViewRemainHoursValid().isFalse()) {
+ return team.isWorldViewRemainHoursValid();
+ }
+ }
+ return Result.TrueResult;
+ }
+
+ @Override
+ public Result isWorldViewManDaysNeededValid() {
+ try {
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (team.isWorldViewManDaysNeededValid().isFalse()) {
+ return team.isWorldViewManDaysNeededValid();
+ }
+ }
+ } catch (OseeCoreException ex) {
+ // Do nothing
+ }
+ return Result.TrueResult;
+ }
+
+ @Override
+ public String getWorldViewChangeTypeStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewChangeTypeStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewImplementer() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewImplementer());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Date getWorldViewDeadlineDate() throws OseeCoreException {
+ return getTeamWorkFlowArtifacts().iterator().next().getWorldViewDeadlineDate();
+ }
+
+ @Override
+ public String getWorldViewDeadlineDateStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewDeadlineDateStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public double getWorldViewWeeklyBenefit() throws OseeCoreException {
+ double hours = 0;
+ // Add up hours for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCompleted() && !team.isCancelled()) {
+ hours += team.getWorldViewWeeklyBenefit();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewAnnualCostAvoidance() throws OseeCoreException {
+ double hours = 0;
+ // Add up hours for all children
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCompleted() && !team.isCancelled()) {
+ hours += team.getWorldViewAnnualCostAvoidance();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public Result isWorldViewAnnualCostAvoidanceValid() throws OseeCoreException {
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ Result result = team.isWorldViewAnnualCostAvoidanceValid();
+ if (result.isFalse()) {
+ return result;
+ }
+ }
+ return Result.TrueResult;
+ }
+
+ @Override
+ public Result isWorldViewDeadlineAlerting() throws OseeCoreException {
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ Result result = team.isWorldViewDeadlineAlerting();
+ if (result.isTrue()) {
+ return result;
+ }
+ }
+ return Result.FalseResult;
+ }
+
+ @Override
+ public String getWorldViewLegacyPCR() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewLegacyPCR());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public String getWorldViewPercentReworkStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ strs.add(team.getWorldViewPercentReworkStr());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public int getWorldViewPercentRework() {
+ return 0;
+ }
+
+ @Override
+ public String getWorldViewReviewAuthor() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewReviewDecider() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewReviewModerator() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewReviewReviewer() {
+ return "";
+ }
+
+ @Override
+ public double getWorldViewHoursSpentState() throws OseeCoreException {
+ double hours = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ hours += team.getWorldViewHoursSpentState();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewHoursSpentStateReview() throws OseeCoreException {
+ double hours = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ hours += team.getWorldViewHoursSpentStateReview();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewHoursSpentStateTask() throws OseeCoreException {
+ double hours = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ hours += team.getWorldViewHoursSpentStateTask();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewHoursSpentStateTotal() throws OseeCoreException {
+ double hours = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ hours += team.getWorldViewHoursSpentStateTotal();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public double getWorldViewHoursSpentTotal() throws OseeCoreException {
+ double hours = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ hours += team.getWorldViewHoursSpentTotal();
+ }
+ }
+ return hours;
+ }
+
+ @Override
+ public int getWorldViewPercentCompleteState() throws OseeCoreException {
+ double percent = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ percent += team.getWorldViewPercentCompleteState();
+ }
+ }
+ if (percent == 0) {
+ return 0;
+ }
+ Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
+ return rollPercent.intValue();
+ }
+
+ @Override
+ public int getWorldViewPercentCompleteStateReview() throws OseeCoreException {
+ double percent = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ percent += team.getWorldViewPercentCompleteStateReview();
+ }
+ }
+ if (percent == 0) {
+ return 0;
+ }
+ Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
+ return rollPercent.intValue();
+ }
+
+ @Override
+ public int getWorldViewPercentCompleteStateTask() throws OseeCoreException {
+ double percent = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ percent += team.getWorldViewPercentCompleteStateTask();
+ }
+ }
+ if (percent == 0) {
+ return 0;
+ }
+ Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
+ return rollPercent.intValue();
+ }
+
+ @Override
+ public int getWorldViewPercentCompleteTotal() throws OseeCoreException {
+ double percent = 0;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (!team.isCancelled()) {
+ percent += team.getWorldViewPercentCompleteTotal();
+ }
+ }
+ if (percent == 0) {
+ return 0;
+ }
+ Double rollPercent = percent / getTeamWorkFlowArtifacts().size();
+ return rollPercent.intValue();
+ }
+
+ public String getWorldViewLastUpdated() throws OseeCoreException {
+ return XDate.getDateStr(getLastModified(), XDate.MMDDYYHHMM);
+ }
+
+ @Override
+ public String getWorldViewLastStatused() {
+ return "(see children)";
+ }
+
+ @Override
+ public VersionArtifact getWorldViewTargetedVersion() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewIssueDefects() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewMajorDefects() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewMinorDefects() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewActionsIntiatingWorkflow() throws OseeCoreException {
+ Date earliestDate = null;
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (earliestDate == null || team.getLog().getCreationDate().before(earliestDate)) {
+ earliestDate = team.getLog().getCreationDate();
+ }
+ }
+ List<String> teamNames = new ArrayList<String>();
+ for (TeamWorkFlowArtifact team : getTeamWorkFlowArtifacts()) {
+ if (team.getLog().getCreationDate().equals(earliestDate)) {
+ teamNames.add(team.getTeamName());
+ }
+ }
+ return Collections.toString("; ", teamNames);
+ }
+
+ @Override
+ public String getWorldViewParentID() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewParentState() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewOriginatingWorkflowStr() throws OseeCoreException {
+ Set<String> strs = new HashSet<String>();
+ for (TeamWorkFlowArtifact team : getWorldViewOriginatingWorkflows()) {
+ strs.add(team.getWorldViewTeam());
+ }
+ return Collections.toString(";", strs);
+ }
+
+ @Override
+ public Collection<TeamWorkFlowArtifact> getWorldViewOriginatingWorkflows() throws OseeCoreException {
+ if (getTeamWorkFlowArtifacts().size() == 1) {
+ return getTeamWorkFlowArtifacts();
+ }
+ Collection<TeamWorkFlowArtifact> results = new ArrayList<TeamWorkFlowArtifact>();
+ Date origDate = null;
+ for (TeamWorkFlowArtifact teamArt : getTeamWorkFlowArtifacts()) {
+ if (teamArt.isCancelled()) {
+ continue;
+ }
+ if (origDate == null || teamArt.getWorldViewCreatedDate().before(origDate)) {
+ results.clear();
+ origDate = teamArt.getWorldViewCreatedDate();
+ results.add(teamArt);
+ } else if (origDate.equals(teamArt.getWorldViewCreatedDate())) {
+ results.add(teamArt);
+ }
+ }
+ return results;
+ }
+
+ @Override
+ public String getWorldViewGoalOrder() throws OseeCoreException {
+ return GoalArtifact.getGoalOrder(this);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionableItemArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionableItemArtifact.java
index 1dcb1eca4e..1d1c9403cc 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionableItemArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ActionableItemArtifact.java
@@ -1,124 +1,124 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.ats.artifact;
-
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import org.eclipse.osee.ats.config.AtsCacheManager;
-import org.eclipse.osee.ats.util.AtsArtifactTypes;
-import org.eclipse.osee.ats.util.AtsFolderUtil;
-import org.eclipse.osee.ats.util.AtsFolderUtil.AtsFolder;
-import org.eclipse.osee.ats.util.AtsRelationTypes;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.framework.core.enums.Active;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.jdk.core.util.Collections;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-
-/**
- * @author Donald G. Dunne
- */
-public class ActionableItemArtifact extends Artifact {
-
- public ActionableItemArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- }
-
- public static List<ActionableItemArtifact> getActionableItems(Active active) throws OseeCoreException {
- return Collections.castAll(AtsCacheManager.getArtifactsByActive(
- ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), active));
- }
-
- public static String getNotActionableItemError(Artifact aia) {
- return "Action can not be written against " + aia.getArtifactTypeName() + " \"" + aia + "\" (" + aia.getHumanReadableId() + ").\n\nChoose another item.";
- }
-
- public static List<ActionableItemArtifact> getTopLevelActionableItems(Active active) throws OseeCoreException {
- ActionableItemArtifact topAi = getTopActionableItem();
- if (topAi == null) {
- return java.util.Collections.emptyList();
- }
- return Collections.castAll(AtsUtil.getActive(
- Artifacts.getChildrenOfTypeSet(topAi, ActionableItemArtifact.class, false), active,
- ActionableItemArtifact.class));
- }
-
- public Collection<User> getLeads() throws OseeCoreException {
- return getRelatedArtifacts(AtsRelationTypes.TeamLead_Lead, User.class);
- }
-
- public static ActionableItemArtifact getTopActionableItem() throws OseeCoreException {
- return (ActionableItemArtifact) AtsFolderUtil.getFolder(AtsFolder.ActionableItem);
- }
-
- public static List<ActionableItemArtifact> getActionableItems() throws OseeCoreException {
- return Collections.castAll(AtsCacheManager.getArtifactsByActive(
- ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), Active.Both));
- }
-
- public boolean isActionable() throws OseeCoreException {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.osee.ats.artifact;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.eclipse.osee.ats.config.AtsCacheManager;
+import org.eclipse.osee.ats.util.AtsArtifactTypes;
+import org.eclipse.osee.ats.util.AtsFolderUtil;
+import org.eclipse.osee.ats.util.AtsFolderUtil.AtsFolder;
+import org.eclipse.osee.ats.util.AtsRelationTypes;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.framework.core.enums.Active;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.jdk.core.util.Collections;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ActionableItemArtifact extends Artifact {
+
+ public ActionableItemArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ }
+
+ public static List<ActionableItemArtifact> getActionableItems(Active active) throws OseeCoreException {
+ return Collections.castAll(AtsCacheManager.getArtifactsByActive(
+ ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), active));
+ }
+
+ public static String getNotActionableItemError(Artifact aia) {
+ return "Action can not be written against " + aia.getArtifactTypeName() + " \"" + aia + "\" (" + aia.getHumanReadableId() + ").\n\nChoose another item.";
+ }
+
+ public static List<ActionableItemArtifact> getTopLevelActionableItems(Active active) throws OseeCoreException {
+ ActionableItemArtifact topAi = getTopActionableItem();
+ if (topAi == null) {
+ return java.util.Collections.emptyList();
+ }
+ return Collections.castAll(AtsUtil.getActive(
+ Artifacts.getChildrenOfTypeSet(topAi, ActionableItemArtifact.class, false), active,
+ ActionableItemArtifact.class));
+ }
+
+ public Collection<User> getLeads() throws OseeCoreException {
+ return getRelatedArtifacts(AtsRelationTypes.TeamLead_Lead, User.class);
+ }
+
+ public static ActionableItemArtifact getTopActionableItem() throws OseeCoreException {
+ return (ActionableItemArtifact) AtsFolderUtil.getFolder(AtsFolder.ActionableItem);
+ }
+
+ public static List<ActionableItemArtifact> getActionableItems() throws OseeCoreException {
+ return Collections.castAll(AtsCacheManager.getArtifactsByActive(
+ ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), Active.Both));
+ }
+
+ public boolean isActionable() throws OseeCoreException {
return getSoleAttributeValue(AtsAttributeTypes.Actionable, false);
- }
-
- public static Set<ActionableItemArtifact> getActionableItems(Collection<String> actionableItemNames) throws OseeCoreException {
- Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
- for (String actionableItemName : actionableItemNames) {
- for (Artifact artifact : AtsCacheManager.getArtifactsByName(
- ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), actionableItemName)) {
- aias.add((ActionableItemArtifact) artifact);
- }
- }
- return aias;
- }
-
- public static Collection<TeamDefinitionArtifact> getImpactedTeamDefs(Collection<ActionableItemArtifact> aias) throws OseeCoreException {
- return TeamDefinitionArtifact.getImpactedTeamDefs(aias);
- }
-
- public Collection<TeamDefinitionArtifact> getImpactedTeamDefs() throws OseeCoreException {
- return TeamDefinitionArtifact.getImpactedTeamDefs(Arrays.asList(this));
- }
-
- public static Set<TeamDefinitionArtifact> getTeamsFromItemAndChildren(ActionableItemArtifact aia) throws OseeCoreException {
- return TeamDefinitionArtifact.getTeamsFromItemAndChildren(aia);
- }
-
- public static Set<ActionableItemArtifact> getActionableItemsFromItemAndChildren(ActionableItemArtifact aia) throws OseeCoreException {
- Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
- getActionableItemsFromItemAndChildren(aia, aias);
- return aias;
- }
-
- public static void getActionableItemsFromItemAndChildren(ActionableItemArtifact aia, Set<ActionableItemArtifact> aiaTeams) throws OseeCoreException {
- for (Artifact art : aia.getChildren()) {
- if (art instanceof ActionableItemArtifact) {
- aiaTeams.add((ActionableItemArtifact) art);
- for (Artifact childArt : aia.getChildren()) {
- if (childArt instanceof ActionableItemArtifact) {
- getActionableItemsFromItemAndChildren((ActionableItemArtifact) childArt, aiaTeams);
- }
- }
- }
- }
- }
-
-}
+ }
+
+ public static Set<ActionableItemArtifact> getActionableItems(Collection<String> actionableItemNames) throws OseeCoreException {
+ Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
+ for (String actionableItemName : actionableItemNames) {
+ for (Artifact artifact : AtsCacheManager.getArtifactsByName(
+ ArtifactTypeManager.getType(AtsArtifactTypes.ActionableItem), actionableItemName)) {
+ aias.add((ActionableItemArtifact) artifact);
+ }
+ }
+ return aias;
+ }
+
+ public static Collection<TeamDefinitionArtifact> getImpactedTeamDefs(Collection<ActionableItemArtifact> aias) throws OseeCoreException {
+ return TeamDefinitionArtifact.getImpactedTeamDefs(aias);
+ }
+
+ public Collection<TeamDefinitionArtifact> getImpactedTeamDefs() throws OseeCoreException {
+ return TeamDefinitionArtifact.getImpactedTeamDefs(Arrays.asList(this));
+ }
+
+ public static Set<TeamDefinitionArtifact> getTeamsFromItemAndChildren(ActionableItemArtifact aia) throws OseeCoreException {
+ return TeamDefinitionArtifact.getTeamsFromItemAndChildren(aia);
+ }
+
+ public static Set<ActionableItemArtifact> getActionableItemsFromItemAndChildren(ActionableItemArtifact aia) throws OseeCoreException {
+ Set<ActionableItemArtifact> aias = new HashSet<ActionableItemArtifact>();
+ getActionableItemsFromItemAndChildren(aia, aias);
+ return aias;
+ }
+
+ public static void getActionableItemsFromItemAndChildren(ActionableItemArtifact aia, Set<ActionableItemArtifact> aiaTeams) throws OseeCoreException {
+ for (Artifact art : aia.getChildren()) {
+ if (art instanceof ActionableItemArtifact) {
+ aiaTeams.add((ActionableItemArtifact) art);
+ for (Artifact childArt : aia.getChildren()) {
+ if (childArt instanceof ActionableItemArtifact) {
+ getActionableItemsFromItemAndChildren((ActionableItemArtifact) childArt, aiaTeams);
+ }
+ }
+ }
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/AtsAttributeTypes.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/AtsAttributeTypes.java
index 50af600e11..497cefe24d 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/AtsAttributeTypes.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/AtsAttributeTypes.java
@@ -1,83 +1,83 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import org.eclipse.osee.framework.core.data.IAttributeType;
-import org.eclipse.osee.framework.core.data.NamedIdentity;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-
-/**
- * @author Ryan D. Brooks
- */
-public final class AtsAttributeTypes extends NamedIdentity implements IAttributeType {
-
- // @formatter:off
- public static final IAttributeType Actionable = new AtsAttributeTypes("AAMFEcvDtBiaJ3TMatAA", "Actionable", "True if item can have Action written against or assigned to.");
- public static final IAttributeType ActionableItem = new AtsAttributeTypes("AAMFEdbcR2zpGzFOLOQA", "Actionable Item", "Actionable Items that are impacted by this change.");
- public static final IAttributeType Active = new AtsAttributeTypes("AAMFEclQOVmzkIvzyWwA", "Active", "Active ATS configuration object.");
- public static final IAttributeType AllowCommitBranch = new AtsAttributeTypes("AAMFEbCZCkwgj73BsQgA", "Allow Commit Branch");
- public static final IAttributeType AllowCreateBranch = new AtsAttributeTypes("AAMFEbARuQEvi6rtY5gA", "Allow Create Branch");
- public static final IAttributeType BaselineBranchGuid = new AtsAttributeTypes("AAMFEdIjJ2za2fblEVgA", "Baseline Branch Guid", "Basline branch associated with ATS object.");
- public static final IAttributeType BlockingReview = new AtsAttributeTypes("AAMFEctKkjMRrIy1C7gA", "Blocking Review");
- public static final IAttributeType Category1 = new AtsAttributeTypes("AAMFEdrYniOQYrYUKKQA", "Category", "Open field for user to be able to enter text to use for categorizing/sorting.");
- public static final IAttributeType Category2 = new AtsAttributeTypes("AAMFEdthBkolbJKLXuAA", "Category2", Category1.getDescription());
- public static final IAttributeType Category3 = new AtsAttributeTypes("AAMFEd06oxr8LMzZxdgA", "Category3", Category1.getDescription());
- public static final IAttributeType ChangeType = new AtsAttributeTypes("AAMFEc+MwGHnPCv7HlgA", "Change Type", "Type of change.");
- public static final IAttributeType CurrentState = new AtsAttributeTypes("AAMFEdOWL3u6hmX2VbwA", "Current State", "Current state of workflow state machine.");
- public static final IAttributeType Decision = new AtsAttributeTypes("AAMFEd7uDXcmqq_FrCQA", "Decision", "Option selected during decision review.");
- public static final IAttributeType DecisionReviewOptions = new AtsAttributeTypes("AAMFEd5hRy1+SRJRqfwA", "Decision Review Options", "Options available for selection in review. Each line is a separate option. Format: <option name>;<state to transition to>;<assignee>");
- public static final IAttributeType Description = new AtsAttributeTypes("AAMFEdWJ_ChxX6+YKbwA", "Description", "Detailed explanation.");
- public static final IAttributeType EstimatedCompletionDate = new AtsAttributeTypes("AAMFEc18k3Gh+GP7zqAA", "Estimated Completion Date", "Date the changes will be completed.");
- public static final IAttributeType EstimatedHours = new AtsAttributeTypes("AAMFEdCSqBh+cPyadiwA", "Estimated Hours", "Hours estimated to implement the changes associated with this Action.\nIncludes estimated hours for workflows, tasks and reviews.");
- public static final IAttributeType EstimatedReleaseDate = new AtsAttributeTypes("AAMFEcy6VB7Ble5SP1QA", "Estimated Release Date", "Date the changes will be made available to the users.");
- public static final IAttributeType FullName = new AtsAttributeTypes("AAMFEdZI9XLT34cTonAA", "Full Name", "Expanded and descriptive name.");
- public static final IAttributeType GoalOrderVote = new AtsAttributeTypes("Aiecsz9pP1CRoQdaYRAA", "Goal Order Vote", "Vote for order item belongs to within goal.");
- public static final IAttributeType HoursPerWorkDay = new AtsAttributeTypes("AAMFEdGlqFsZp22RMdAA", "Hours Per Work Day");
- public static final IAttributeType LegacyPcrId = new AtsAttributeTypes("AAMFEd3TakphMtQX1zgA", "Legacy PCR Id", "Field to register problem change report id from legacy items imported into ATS.");
- public static final IAttributeType Location = new AtsAttributeTypes("AAMFEeAW4QBlesdfacwA", "Location", "Enter location of materials to review.");
- public static final IAttributeType Log = new AtsAttributeTypes("AAMFEdgB1DX3eJSZb0wA", "Log");
- public static final IAttributeType NeedBy = new AtsAttributeTypes("AAMFEcxAGzHAKfDNAIwA", "Need By", "Hard schedule date that workflow must be completed.");
- public static final IAttributeType NextVersion = new AtsAttributeTypes("AAMFEcpH8Xb72hsF5AwA", "Next Version", "True if version artifact is \"Next\" version to be released.");
- public static final IAttributeType Numeric1 = new AtsAttributeTypes("AABY2xxQsDm811kCViwA", "Numeric1", "Open field for user to be able to enter numbers for sorting.");
- public static final IAttributeType Numeric2 = new AtsAttributeTypes("AABiRtvZsAEkU4BS9qwA", "Numeric2", Numeric1.getDescription());
- public static final IAttributeType PercentRework = new AtsAttributeTypes("AAMFEdKfjl2TII9+tuwA", "Percent Rework");
- public static final IAttributeType Points = new AtsAttributeTypes("AY2EeqhzcDEGtXtREkAA", "Points", "Abstract value that describes risk, complexity, and size of Actions.");
- public static final IAttributeType PriorityType = new AtsAttributeTypes("AAMFEc8JzH1U6XGD59QA", "Priority", "1 = High; 5 = Low");
- public static final IAttributeType Problem = new AtsAttributeTypes("AAMFEdQUxRyevvTu+bwA", "Problem", "Problem found during analysis.");
- public static final IAttributeType ProposedResolution = new AtsAttributeTypes("AAMFEdSSRDGgBQ5tctAA", "Proposed Resolution", "Recommended resolution.");
- public static final IAttributeType RelatedToState = new AtsAttributeTypes("AAMFEdkwHULOmHbMbGgA", "Related To State", "State of parent workflow this object is related to.");
- public static final IAttributeType ReleaseDate = new AtsAttributeTypes("AAMFEc3+cGcMDOCdmdAA", "Release Date", "Date the changes were made available to the users.");
- public static final IAttributeType Released = new AtsAttributeTypes("AAMFEcnMoUZMLA2zB1AA", "Released", "True if object is in a released state.");
- public static final IAttributeType Resolution = new AtsAttributeTypes("AAMFEdUMfV1KdbQNaKwA", "Resolution", "Implementation details.");
- public static final IAttributeType ReviewBlocks = new AtsAttributeTypes("AAMFEc6G2A8jmRWJgagA", "Review Blocks", "Review Completion will block it's parent workflow in this manner.");
- public static final IAttributeType ReviewDefect = new AtsAttributeTypes("AAMFEd+MSVAb8JQ6f5gA", "Review Defect");
- public static final IAttributeType Role = new AtsAttributeTypes("AAMFEeCqMz0XCSBJ+IQA", "Role");
- public static final IAttributeType SmaNote = new AtsAttributeTypes("AAMFEdm7ywte8qayfbAA", "SMA Note", "Notes applicable to ATS object");
- public static final IAttributeType State = new AtsAttributeTypes("AAMFEdMa3wzVvp60xLQA", "State", "States of workflow state machine.");
- public static final IAttributeType StateNotes = new AtsAttributeTypes("AAMFEdiWPm7M_xV1EswA", "State Notes");
- public static final IAttributeType TeamDefinition = new AtsAttributeTypes("AAMFEdd5bFEe18bd0lQA", "Team Definition");
- public static final IAttributeType TeamUsesVersions = new AtsAttributeTypes("AAMFEcrHnzPxQ7w3ligA", "Team Uses Versions", "True if Team Workflow uses versioning/releasing option.");
- public static final IAttributeType Title = new AtsAttributeTypes(CoreAttributeTypes.Name.getGuid(), CoreAttributeTypes.Name.getName(), "Enter clear and consise title that can be generally understood.");
- public static final IAttributeType UserCommunity = new AtsAttributeTypes("AAMFEdAPtAq1IEwiCQAA", "User Community", "If working in one of these communities resulted in the creation of this Action, please select. Otherwise, select Other.");
- public static final IAttributeType ValidationRequired = new AtsAttributeTypes("AAMFEcjT0TwkD2R4w1QA", "Validation Required", "If selected, originator will be asked to validate the implementation.");
- public static final IAttributeType VersionLocked = new AtsAttributeTypes("AAzRtEJXbjzR5jySOZgA", "Version Locked", "True if version artifact is locked.");
- public static final IAttributeType WeeklyBenefit = new AtsAttributeTypes("AAMFEdEnEU9AecOHMOwA", "Weekly Benefit", "Estimated number of hours that will be saved over a single year if this change is completed.");
- public static final IAttributeType WorkPackage = new AtsAttributeTypes("AAMFEdpJqRp2wvA2qvAA", "Work Package", "Designated accounting work package for completing workflow.");
- // @formatter:on
-
- private AtsAttributeTypes(String guid, String name) {
- super(guid, "ats." + name);
- }
-
- private AtsAttributeTypes(String guid, String name, String description) {
- super(guid, "ats." + name, description);
- }
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import org.eclipse.osee.framework.core.data.IAttributeType;
+import org.eclipse.osee.framework.core.data.NamedIdentity;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public final class AtsAttributeTypes extends NamedIdentity implements IAttributeType {
+
+ // @formatter:off
+ public static final IAttributeType Actionable = new AtsAttributeTypes("AAMFEcvDtBiaJ3TMatAA", "Actionable", "True if item can have Action written against or assigned to.");
+ public static final IAttributeType ActionableItem = new AtsAttributeTypes("AAMFEdbcR2zpGzFOLOQA", "Actionable Item", "Actionable Items that are impacted by this change.");
+ public static final IAttributeType Active = new AtsAttributeTypes("AAMFEclQOVmzkIvzyWwA", "Active", "Active ATS configuration object.");
+ public static final IAttributeType AllowCommitBranch = new AtsAttributeTypes("AAMFEbCZCkwgj73BsQgA", "Allow Commit Branch");
+ public static final IAttributeType AllowCreateBranch = new AtsAttributeTypes("AAMFEbARuQEvi6rtY5gA", "Allow Create Branch");
+ public static final IAttributeType BaselineBranchGuid = new AtsAttributeTypes("AAMFEdIjJ2za2fblEVgA", "Baseline Branch Guid", "Basline branch associated with ATS object.");
+ public static final IAttributeType BlockingReview = new AtsAttributeTypes("AAMFEctKkjMRrIy1C7gA", "Blocking Review");
+ public static final IAttributeType Category1 = new AtsAttributeTypes("AAMFEdrYniOQYrYUKKQA", "Category", "Open field for user to be able to enter text to use for categorizing/sorting.");
+ public static final IAttributeType Category2 = new AtsAttributeTypes("AAMFEdthBkolbJKLXuAA", "Category2", Category1.getDescription());
+ public static final IAttributeType Category3 = new AtsAttributeTypes("AAMFEd06oxr8LMzZxdgA", "Category3", Category1.getDescription());
+ public static final IAttributeType ChangeType = new AtsAttributeTypes("AAMFEc+MwGHnPCv7HlgA", "Change Type", "Type of change.");
+ public static final IAttributeType CurrentState = new AtsAttributeTypes("AAMFEdOWL3u6hmX2VbwA", "Current State", "Current state of workflow state machine.");
+ public static final IAttributeType Decision = new AtsAttributeTypes("AAMFEd7uDXcmqq_FrCQA", "Decision", "Option selected during decision review.");
+ public static final IAttributeType DecisionReviewOptions = new AtsAttributeTypes("AAMFEd5hRy1+SRJRqfwA", "Decision Review Options", "Options available for selection in review. Each line is a separate option. Format: <option name>;<state to transition to>;<assignee>");
+ public static final IAttributeType Description = new AtsAttributeTypes("AAMFEdWJ_ChxX6+YKbwA", "Description", "Detailed explanation.");
+ public static final IAttributeType EstimatedCompletionDate = new AtsAttributeTypes("AAMFEc18k3Gh+GP7zqAA", "Estimated Completion Date", "Date the changes will be completed.");
+ public static final IAttributeType EstimatedHours = new AtsAttributeTypes("AAMFEdCSqBh+cPyadiwA", "Estimated Hours", "Hours estimated to implement the changes associated with this Action.\nIncludes estimated hours for workflows, tasks and reviews.");
+ public static final IAttributeType EstimatedReleaseDate = new AtsAttributeTypes("AAMFEcy6VB7Ble5SP1QA", "Estimated Release Date", "Date the changes will be made available to the users.");
+ public static final IAttributeType FullName = new AtsAttributeTypes("AAMFEdZI9XLT34cTonAA", "Full Name", "Expanded and descriptive name.");
+ public static final IAttributeType GoalOrderVote = new AtsAttributeTypes("Aiecsz9pP1CRoQdaYRAA", "Goal Order Vote", "Vote for order item belongs to within goal.");
+ public static final IAttributeType HoursPerWorkDay = new AtsAttributeTypes("AAMFEdGlqFsZp22RMdAA", "Hours Per Work Day");
+ public static final IAttributeType LegacyPcrId = new AtsAttributeTypes("AAMFEd3TakphMtQX1zgA", "Legacy PCR Id", "Field to register problem change report id from legacy items imported into ATS.");
+ public static final IAttributeType Location = new AtsAttributeTypes("AAMFEeAW4QBlesdfacwA", "Location", "Enter location of materials to review.");
+ public static final IAttributeType Log = new AtsAttributeTypes("AAMFEdgB1DX3eJSZb0wA", "Log");
+ public static final IAttributeType NeedBy = new AtsAttributeTypes("AAMFEcxAGzHAKfDNAIwA", "Need By", "Hard schedule date that workflow must be completed.");
+ public static final IAttributeType NextVersion = new AtsAttributeTypes("AAMFEcpH8Xb72hsF5AwA", "Next Version", "True if version artifact is \"Next\" version to be released.");
+ public static final IAttributeType Numeric1 = new AtsAttributeTypes("AABY2xxQsDm811kCViwA", "Numeric1", "Open field for user to be able to enter numbers for sorting.");
+ public static final IAttributeType Numeric2 = new AtsAttributeTypes("AABiRtvZsAEkU4BS9qwA", "Numeric2", Numeric1.getDescription());
+ public static final IAttributeType PercentRework = new AtsAttributeTypes("AAMFEdKfjl2TII9+tuwA", "Percent Rework");
+ public static final IAttributeType Points = new AtsAttributeTypes("AY2EeqhzcDEGtXtREkAA", "Points", "Abstract value that describes risk, complexity, and size of Actions.");
+ public static final IAttributeType PriorityType = new AtsAttributeTypes("AAMFEc8JzH1U6XGD59QA", "Priority", "1 = High; 5 = Low");
+ public static final IAttributeType Problem = new AtsAttributeTypes("AAMFEdQUxRyevvTu+bwA", "Problem", "Problem found during analysis.");
+ public static final IAttributeType ProposedResolution = new AtsAttributeTypes("AAMFEdSSRDGgBQ5tctAA", "Proposed Resolution", "Recommended resolution.");
+ public static final IAttributeType RelatedToState = new AtsAttributeTypes("AAMFEdkwHULOmHbMbGgA", "Related To State", "State of parent workflow this object is related to.");
+ public static final IAttributeType ReleaseDate = new AtsAttributeTypes("AAMFEc3+cGcMDOCdmdAA", "Release Date", "Date the changes were made available to the users.");
+ public static final IAttributeType Released = new AtsAttributeTypes("AAMFEcnMoUZMLA2zB1AA", "Released", "True if object is in a released state.");
+ public static final IAttributeType Resolution = new AtsAttributeTypes("AAMFEdUMfV1KdbQNaKwA", "Resolution", "Implementation details.");
+ public static final IAttributeType ReviewBlocks = new AtsAttributeTypes("AAMFEc6G2A8jmRWJgagA", "Review Blocks", "Review Completion will block it's parent workflow in this manner.");
+ public static final IAttributeType ReviewDefect = new AtsAttributeTypes("AAMFEd+MSVAb8JQ6f5gA", "Review Defect");
+ public static final IAttributeType Role = new AtsAttributeTypes("AAMFEeCqMz0XCSBJ+IQA", "Role");
+ public static final IAttributeType SmaNote = new AtsAttributeTypes("AAMFEdm7ywte8qayfbAA", "SMA Note", "Notes applicable to ATS object");
+ public static final IAttributeType State = new AtsAttributeTypes("AAMFEdMa3wzVvp60xLQA", "State", "States of workflow state machine.");
+ public static final IAttributeType StateNotes = new AtsAttributeTypes("AAMFEdiWPm7M_xV1EswA", "State Notes");
+ public static final IAttributeType TeamDefinition = new AtsAttributeTypes("AAMFEdd5bFEe18bd0lQA", "Team Definition");
+ public static final IAttributeType TeamUsesVersions = new AtsAttributeTypes("AAMFEcrHnzPxQ7w3ligA", "Team Uses Versions", "True if Team Workflow uses versioning/releasing option.");
+ public static final IAttributeType Title = new AtsAttributeTypes(CoreAttributeTypes.Name.getGuid(), CoreAttributeTypes.Name.getName(), "Enter clear and consise title that can be generally understood.");
+ public static final IAttributeType UserCommunity = new AtsAttributeTypes("AAMFEdAPtAq1IEwiCQAA", "User Community", "If working in one of these communities resulted in the creation of this Action, please select. Otherwise, select Other.");
+ public static final IAttributeType ValidationRequired = new AtsAttributeTypes("AAMFEcjT0TwkD2R4w1QA", "Validation Required", "If selected, originator will be asked to validate the implementation.");
+ public static final IAttributeType VersionLocked = new AtsAttributeTypes("AAzRtEJXbjzR5jySOZgA", "Version Locked", "True if version artifact is locked.");
+ public static final IAttributeType WeeklyBenefit = new AtsAttributeTypes("AAMFEdEnEU9AecOHMOwA", "Weekly Benefit", "Estimated number of hours that will be saved over a single year if this change is completed.");
+ public static final IAttributeType WorkPackage = new AtsAttributeTypes("AAMFEdpJqRp2wvA2qvAA", "Work Package", "Designated accounting work package for completing workflow.");
+ // @formatter:on
+
+ private AtsAttributeTypes(String guid, String name) {
+ super(guid, "ats." + name);
+ }
+
+ private AtsAttributeTypes(String guid, String name, String description) {
+ super(guid, "ats." + name, description);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java
index ec1d78f404..9cccdcc067 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java
@@ -1,80 +1,80 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.Collection;
-import org.eclipse.osee.ats.util.widgets.XDecisionOptions;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-
-/**
- * @author Donald G. Dunne
- */
-public class DecisionReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact {
-
- public XDecisionOptions decisionOptions;
- public static enum DecisionReviewState {
- Prepare,
- Decision,
- Followup,
- Completed
- };
-
- public DecisionReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- decisionOptions = new XDecisionOptions(this);
- }
-
- @Override
- public String getHelpContext() {
- return "decisionReview";
- }
-
- @Override
- public String getHyperName() {
- return getName();
- }
-
- @Override
- public String getWorldViewDecision() throws OseeCoreException {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.Collection;
+import org.eclipse.osee.ats.util.widgets.XDecisionOptions;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class DecisionReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact {
+
+ public XDecisionOptions decisionOptions;
+ public static enum DecisionReviewState {
+ Prepare,
+ Decision,
+ Followup,
+ Completed
+ };
+
+ public DecisionReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ decisionOptions = new XDecisionOptions(this);
+ }
+
+ @Override
+ public String getHelpContext() {
+ return "decisionReview";
+ }
+
+ @Override
+ public String getHyperName() {
+ return getName();
+ }
+
+ @Override
+ public String getWorldViewDecision() throws OseeCoreException {
return getSoleAttributeValue(AtsAttributeTypes.Decision, "");
- }
-
- @Override
- public String getWorldViewDescription() throws OseeCoreException {
+ }
+
+ @Override
+ public String getWorldViewDescription() throws OseeCoreException {
return getSoleAttributeValue(AtsAttributeTypes.Description, "");
- }
-
- @Override
- public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException {
- if (getParentSMA() == null) {
- return null;
- }
- return getParentSMA().getWorldViewTargetedVersion();
- }
-
- @Override
- public Collection<User> getImplementers() throws OseeCoreException {
- return getImplementersByState(DecisionReviewState.Decision.name());
- }
-
- @Override
- public String getWorldViewReviewDecider() throws OseeCoreException {
- return Artifacts.toString("; ", getStateMgr().getAssignees(DecisionReviewState.Decision.name()));
- }
-
+ }
+
+ @Override
+ public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException {
+ if (getParentSMA() == null) {
+ return null;
+ }
+ return getParentSMA().getWorldViewTargetedVersion();
+ }
+
+ @Override
+ public Collection<User> getImplementers() throws OseeCoreException {
+ return getImplementersByState(DecisionReviewState.Decision.name());
+ }
+
+ @Override
+ public String getWorldViewReviewDecider() throws OseeCoreException {
+ return Artifacts.toString("; ", getStateMgr().getAssignees(DecisionReviewState.Decision.name()));
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/GoalArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/GoalArtifact.java
index f91b19973b..633a6a14be 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/GoalArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/GoalArtifact.java
@@ -1,276 +1,276 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.text.NumberFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import org.eclipse.jface.window.Window;
-import org.eclipse.nebula.widgets.xviewer.XViewerCells;
-import org.eclipse.osee.ats.artifact.ATSLog.LogType;
-import org.eclipse.osee.ats.util.AtsArtifactTypes;
-import org.eclipse.osee.ats.util.AtsRelationTypes;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.ats.world.search.GoalSearchItem;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ArtifactListDialog;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.EntryDialog;
-import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * @author Donald G. Dunne
- */
-public class GoalArtifact extends StateMachineArtifact {
-
- public static enum GoalState {
- InWork,
- Completed,
- Cancelled
- };
-
- public GoalArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- registerAtsWorldRelation(AtsRelationTypes.Goal_Member);
- }
-
- @Override
- public ActionArtifact getParentActionArtifact() {
- return null;
- }
-
- @Override
- public StateMachineArtifact getParentSMA() throws OseeCoreException {
- List<Artifact> parents = getRelatedArtifacts(AtsRelationTypes.Goal_Goal);
- if (parents.isEmpty()) {
- return null;
- }
- if (parents.size() == 1) {
- return (StateMachineArtifact) parents.iterator().next();
- }
- System.err.println("Two parent goals, what do here?");
- return (StateMachineArtifact) parents.iterator().next();
- }
-
- @Override
- public TeamWorkFlowArtifact getParentTeamWorkflow() {
- return null;
- }
-
- @Override
- public Set<User> getPrivilegedUsers() {
- return null;
- }
-
- @Override
- public boolean isTaskable() {
- return false;
- }
-
- @Override
- public Date getWorldViewReleaseDate() {
- return null;
- }
-
- @Override
- public VersionArtifact getWorldViewTargetedVersion() {
- return null;
- }
-
- @Override
- public String getWorldViewParentID() {
- return null;
- }
-
- @Override
- public String getHyperTargetVersion() {
- return null;
- }
-
- public static void getGoals(Artifact artifact, Set<Artifact> goals, boolean recurse) throws OseeCoreException {
- getGoals(Arrays.asList(artifact), goals, recurse);
- }
-
- public static Collection<Artifact> getGoals(Artifact artifact, boolean recurse) throws OseeCoreException {
- Set<Artifact> goals = new HashSet<Artifact>();
- getGoals(artifact, goals, recurse);
- return goals;
- }
-
- public static void getGoals(Collection<Artifact> artifacts, Set<Artifact> goals, boolean recurse) throws OseeCoreException {
- for (Artifact art : artifacts) {
- if (art instanceof GoalArtifact) {
- goals.add(art);
- }
- goals.addAll(art.getRelatedArtifacts(AtsRelationTypes.Goal_Goal, GoalArtifact.class));
- if (recurse && art instanceof StateMachineArtifact && ((StateMachineArtifact) art).getParentSMA() != null) {
- getGoals(((StateMachineArtifact) art).getParentSMA(), goals, recurse);
- }
- }
- }
-
- public static boolean isHasGoal(Artifact artifact) throws OseeCoreException {
- return artifact.getRelatedArtifactsCount(AtsRelationTypes.Goal_Goal) > 0;
- }
-
- public static String getGoalOrder(Artifact artifact) throws OseeCoreException {
- if (artifact instanceof GoalArtifact) {
- return "";
- }
- if (!isHasGoal(artifact)) {
- return "";
- }
- Collection<Artifact> goals = GoalArtifact.getGoals(artifact, false);
- if (goals.size() > 1) {
- List<Artifact> goalsSorted = new ArrayList<Artifact>(goals);
- Collections.sort(goalsSorted);
- StringBuffer sb = new StringBuffer();
- for (Artifact goal : goalsSorted) {
- sb.append(String.format("%s-[%s] ", getGoalOrder((GoalArtifact) goal, artifact), goal));
- }
- return sb.toString();
- }
- Artifact goal = goals.iterator().next();
- return getGoalOrder((GoalArtifact) goal, artifact);
- }
-
- public static String getGoalOrder(GoalArtifact goalArtifact, Artifact member) throws OseeCoreException {
- List<Artifact> members = goalArtifact.getMembers();
- if (!members.contains(member)) {
- return "";
- }
- try {
- return String.valueOf(members.indexOf(member) + 1);
- } catch (Exception ex) {
- return XViewerCells.getCellExceptionString(ex);
- }
- }
-
- public static GoalArtifact createGoal(String title) throws OseeCoreException {
- GoalArtifact goalArt =
- (GoalArtifact) ArtifactTypeManager.addArtifact(AtsArtifactTypes.Goal, AtsUtil.getAtsBranch());
- goalArt.setName(title);
- goalArt.getLog().addLog(LogType.Originated, "", "");
-
- // Initialize state machine
- goalArt.getStateMgr().initializeStateMachine(GoalState.InWork.name(),
- Collections.singleton(UserManager.getUser()));
- goalArt.getLog().addLog(LogType.StateEntered, GoalState.InWork.name(), "");
- return goalArt;
- }
-
- public List<Artifact> getMembers() throws OseeCoreException {
- return getRelatedArtifacts(AtsRelationTypes.Goal_Member, false);
- }
-
- public void addMember(Artifact artifact) throws OseeCoreException {
- if (!getMembers().contains(artifact)) {
- addRelation(AtsRelationTypes.Goal_Member, artifact);
- }
- }
-
- /**
- * change goal, prompt if member of two goals
- */
- public static GoalArtifact promptChangeGoalOrder(Artifact artifact) throws OseeCoreException {
- if (!isHasGoal(artifact)) {
- AWorkbench.popup(String.format("No Goal set for artifact [%s]", artifact));
- return null;
- }
- Collection<Artifact> goals = getGoals(artifact, false);
- GoalArtifact goal = null;
- if (goals.size() == 1) {
- goal = (GoalArtifact) goals.iterator().next();
- } else if (goals.size() > 1) {
- ArtifactListDialog dialog = new ArtifactListDialog(Displays.getActiveShell());
- dialog.setTitle("Select Goal");
- dialog.setMessage("Artifact has multiple Goals\n\nSelect Goal to change order");
- dialog.setArtifacts(goals);
- if (dialog.open() == 0) {
- goal = (GoalArtifact) dialog.getSelection();
- } else {
- return null;
- }
- }
- return promptChangeGoalOrder(goal, artifact);
- }
-
- /**
- * change goal order for artifact within given goal
- */
- public static GoalArtifact promptChangeGoalOrder(GoalArtifact goalArtifact, Artifact artifact) throws OseeCoreException {
- return promptChangeGoalOrder(goalArtifact, Arrays.asList(artifact));
- }
-
- /**
- * change goal order for artifacts within given goal
- */
- public static GoalArtifact promptChangeGoalOrder(GoalArtifact goalArtifact, List<Artifact> artifacts) throws OseeCoreException {
- String currentOrder = "Current Order: ";
- for (Artifact artifact : artifacts) {
- if (artifacts.size() == 1 && !isHasGoal(artifact) || goalArtifact == null) {
- AWorkbench.popup(String.format("No Goal set for artifact [%s]", artifact));
- return null;
- }
- String currIndexStr = getGoalOrder(goalArtifact, artifact);
- currentOrder += currIndexStr + ", ";
- }
- currentOrder = currentOrder.replaceFirst(", $", "");
-
- List<Artifact> members = goalArtifact.getMembers();
- EntryDialog ed =
- new EntryDialog(
- "Change Goal Order",
- String.format(
- "Goal: %s\n\n%s\n\nEnter New Order Number from 1..%d or %d for last\n\nNote: Goal will be placed before number entered.",
- goalArtifact, currentOrder, members.size(), members.size() + 1));
- ed.setNumberFormat(NumberFormat.getIntegerInstance());
-
- int result = ed.open();
- if (result == Window.OK) {
- String newIndexStr = ed.getEntry();
- Integer enteredIndex = new Integer(newIndexStr);
- boolean insertLast = enteredIndex == members.size() + 1;
- Integer membersIndex = insertLast ? members.size() - 1 : enteredIndex - 1;
- if (membersIndex > members.size()) {
- AWorkbench.popup(String.format("New Order Number [%s] out of range 1..%d", newIndexStr, members.size()));
- return null;
- }
- for (Artifact artifact : artifacts) {
- Artifact insertTarget = members.get(membersIndex);
- goalArtifact.setRelationOrder(AtsRelationTypes.Goal_Member, insertTarget, insertLast ? true : false,
- artifact);
- }
- goalArtifact.persist();
- return goalArtifact;
- }
- return null;
- }
-
- public Collection<GoalArtifact> getInWorkGoals() throws OseeCoreException {
- GoalSearchItem searchItem = new GoalSearchItem("", new ArrayList<TeamDefinitionArtifact>(), false, null);
- return org.eclipse.osee.framework.jdk.core.util.Collections.castAll(searchItem.performSearchGetResults());
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.text.NumberFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.eclipse.jface.window.Window;
+import org.eclipse.nebula.widgets.xviewer.XViewerCells;
+import org.eclipse.osee.ats.artifact.ATSLog.LogType;
+import org.eclipse.osee.ats.util.AtsArtifactTypes;
+import org.eclipse.osee.ats.util.AtsRelationTypes;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.ats.world.search.GoalSearchItem;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ArtifactListDialog;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.EntryDialog;
+import org.eclipse.osee.framework.ui.swt.Displays;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class GoalArtifact extends StateMachineArtifact {
+
+ public static enum GoalState {
+ InWork,
+ Completed,
+ Cancelled
+ };
+
+ public GoalArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ registerAtsWorldRelation(AtsRelationTypes.Goal_Member);
+ }
+
+ @Override
+ public ActionArtifact getParentActionArtifact() {
+ return null;
+ }
+
+ @Override
+ public StateMachineArtifact getParentSMA() throws OseeCoreException {
+ List<Artifact> parents = getRelatedArtifacts(AtsRelationTypes.Goal_Goal);
+ if (parents.isEmpty()) {
+ return null;
+ }
+ if (parents.size() == 1) {
+ return (StateMachineArtifact) parents.iterator().next();
+ }
+ System.err.println("Two parent goals, what do here?");
+ return (StateMachineArtifact) parents.iterator().next();
+ }
+
+ @Override
+ public TeamWorkFlowArtifact getParentTeamWorkflow() {
+ return null;
+ }
+
+ @Override
+ public Set<User> getPrivilegedUsers() {
+ return null;
+ }
+
+ @Override
+ public boolean isTaskable() {
+ return false;
+ }
+
+ @Override
+ public Date getWorldViewReleaseDate() {
+ return null;
+ }
+
+ @Override
+ public VersionArtifact getWorldViewTargetedVersion() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewParentID() {
+ return null;
+ }
+
+ @Override
+ public String getHyperTargetVersion() {
+ return null;
+ }
+
+ public static void getGoals(Artifact artifact, Set<Artifact> goals, boolean recurse) throws OseeCoreException {
+ getGoals(Arrays.asList(artifact), goals, recurse);
+ }
+
+ public static Collection<Artifact> getGoals(Artifact artifact, boolean recurse) throws OseeCoreException {
+ Set<Artifact> goals = new HashSet<Artifact>();
+ getGoals(artifact, goals, recurse);
+ return goals;
+ }
+
+ public static void getGoals(Collection<Artifact> artifacts, Set<Artifact> goals, boolean recurse) throws OseeCoreException {
+ for (Artifact art : artifacts) {
+ if (art instanceof GoalArtifact) {
+ goals.add(art);
+ }
+ goals.addAll(art.getRelatedArtifacts(AtsRelationTypes.Goal_Goal, GoalArtifact.class));
+ if (recurse && art instanceof StateMachineArtifact && ((StateMachineArtifact) art).getParentSMA() != null) {
+ getGoals(((StateMachineArtifact) art).getParentSMA(), goals, recurse);
+ }
+ }
+ }
+
+ public static boolean isHasGoal(Artifact artifact) throws OseeCoreException {
+ return artifact.getRelatedArtifactsCount(AtsRelationTypes.Goal_Goal) > 0;
+ }
+
+ public static String getGoalOrder(Artifact artifact) throws OseeCoreException {
+ if (artifact instanceof GoalArtifact) {
+ return "";
+ }
+ if (!isHasGoal(artifact)) {
+ return "";
+ }
+ Collection<Artifact> goals = GoalArtifact.getGoals(artifact, false);
+ if (goals.size() > 1) {
+ List<Artifact> goalsSorted = new ArrayList<Artifact>(goals);
+ Collections.sort(goalsSorted);
+ StringBuffer sb = new StringBuffer();
+ for (Artifact goal : goalsSorted) {
+ sb.append(String.format("%s-[%s] ", getGoalOrder((GoalArtifact) goal, artifact), goal));
+ }
+ return sb.toString();
+ }
+ Artifact goal = goals.iterator().next();
+ return getGoalOrder((GoalArtifact) goal, artifact);
+ }
+
+ public static String getGoalOrder(GoalArtifact goalArtifact, Artifact member) throws OseeCoreException {
+ List<Artifact> members = goalArtifact.getMembers();
+ if (!members.contains(member)) {
+ return "";
+ }
+ try {
+ return String.valueOf(members.indexOf(member) + 1);
+ } catch (Exception ex) {
+ return XViewerCells.getCellExceptionString(ex);
+ }
+ }
+
+ public static GoalArtifact createGoal(String title) throws OseeCoreException {
+ GoalArtifact goalArt =
+ (GoalArtifact) ArtifactTypeManager.addArtifact(AtsArtifactTypes.Goal, AtsUtil.getAtsBranch());
+ goalArt.setName(title);
+ goalArt.getLog().addLog(LogType.Originated, "", "");
+
+ // Initialize state machine
+ goalArt.getStateMgr().initializeStateMachine(GoalState.InWork.name(),
+ Collections.singleton(UserManager.getUser()));
+ goalArt.getLog().addLog(LogType.StateEntered, GoalState.InWork.name(), "");
+ return goalArt;
+ }
+
+ public List<Artifact> getMembers() throws OseeCoreException {
+ return getRelatedArtifacts(AtsRelationTypes.Goal_Member, false);
+ }
+
+ public void addMember(Artifact artifact) throws OseeCoreException {
+ if (!getMembers().contains(artifact)) {
+ addRelation(AtsRelationTypes.Goal_Member, artifact);
+ }
+ }
+
+ /**
+ * change goal, prompt if member of two goals
+ */
+ public static GoalArtifact promptChangeGoalOrder(Artifact artifact) throws OseeCoreException {
+ if (!isHasGoal(artifact)) {
+ AWorkbench.popup(String.format("No Goal set for artifact [%s]", artifact));
+ return null;
+ }
+ Collection<Artifact> goals = getGoals(artifact, false);
+ GoalArtifact goal = null;
+ if (goals.size() == 1) {
+ goal = (GoalArtifact) goals.iterator().next();
+ } else if (goals.size() > 1) {
+ ArtifactListDialog dialog = new ArtifactListDialog(Displays.getActiveShell());
+ dialog.setTitle("Select Goal");
+ dialog.setMessage("Artifact has multiple Goals\n\nSelect Goal to change order");
+ dialog.setArtifacts(goals);
+ if (dialog.open() == 0) {
+ goal = (GoalArtifact) dialog.getSelection();
+ } else {
+ return null;
+ }
+ }
+ return promptChangeGoalOrder(goal, artifact);
+ }
+
+ /**
+ * change goal order for artifact within given goal
+ */
+ public static GoalArtifact promptChangeGoalOrder(GoalArtifact goalArtifact, Artifact artifact) throws OseeCoreException {
+ return promptChangeGoalOrder(goalArtifact, Arrays.asList(artifact));
+ }
+
+ /**
+ * change goal order for artifacts within given goal
+ */
+ public static GoalArtifact promptChangeGoalOrder(GoalArtifact goalArtifact, List<Artifact> artifacts) throws OseeCoreException {
+ String currentOrder = "Current Order: ";
+ for (Artifact artifact : artifacts) {
+ if (artifacts.size() == 1 && !isHasGoal(artifact) || goalArtifact == null) {
+ AWorkbench.popup(String.format("No Goal set for artifact [%s]", artifact));
+ return null;
+ }
+ String currIndexStr = getGoalOrder(goalArtifact, artifact);
+ currentOrder += currIndexStr + ", ";
+ }
+ currentOrder = currentOrder.replaceFirst(", $", "");
+
+ List<Artifact> members = goalArtifact.getMembers();
+ EntryDialog ed =
+ new EntryDialog(
+ "Change Goal Order",
+ String.format(
+ "Goal: %s\n\n%s\n\nEnter New Order Number from 1..%d or %d for last\n\nNote: Goal will be placed before number entered.",
+ goalArtifact, currentOrder, members.size(), members.size() + 1));
+ ed.setNumberFormat(NumberFormat.getIntegerInstance());
+
+ int result = ed.open();
+ if (result == Window.OK) {
+ String newIndexStr = ed.getEntry();
+ Integer enteredIndex = new Integer(newIndexStr);
+ boolean insertLast = enteredIndex == members.size() + 1;
+ Integer membersIndex = insertLast ? members.size() - 1 : enteredIndex - 1;
+ if (membersIndex > members.size()) {
+ AWorkbench.popup(String.format("New Order Number [%s] out of range 1..%d", newIndexStr, members.size()));
+ return null;
+ }
+ for (Artifact artifact : artifacts) {
+ Artifact insertTarget = members.get(membersIndex);
+ goalArtifact.setRelationOrder(AtsRelationTypes.Goal_Member, insertTarget, insertLast ? true : false,
+ artifact);
+ }
+ goalArtifact.persist();
+ return goalArtifact;
+ }
+ return null;
+ }
+
+ public Collection<GoalArtifact> getInWorkGoals() throws OseeCoreException {
+ GoalSearchItem searchItem = new GoalSearchItem("", new ArrayList<TeamDefinitionArtifact>(), false, null);
+ return org.eclipse.osee.framework.jdk.core.util.Collections.castAll(searchItem.performSearchGetResults());
+ }
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/PeerToPeerReviewArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/PeerToPeerReviewArtifact.java
index 4c896e35a4..6d7b8971f2 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/PeerToPeerReviewArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/PeerToPeerReviewArtifact.java
@@ -1,130 +1,130 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.Collection;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.widgets.defect.DefectManager;
-import org.eclipse.osee.ats.util.widgets.role.UserRole;
-import org.eclipse.osee.ats.util.widgets.role.UserRole.Role;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-
-/**
- * @author Donald G. Dunne
- */
-public class PeerToPeerReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact {
-
- public static enum PeerToPeerReviewState {
- Prepare,
- Review,
- Completed
- };
-
- public PeerToPeerReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- defectManager = new DefectManager(this);
- }
-
- public static String getDefaultReviewTitle(TeamWorkFlowArtifact teamArt) {
- return "Review \"" + teamArt.getArtifactTypeName() + "\" titled \"" + teamArt.getName() + "\"";
- }
-
- @Override
- public IStatus isUserRoleValid(String namespace) throws OseeCoreException {
- if (getUserRoleManager().getUserRoles(Role.Author).size() <= 0) {
- return new Status(IStatus.ERROR, namespace, "Must have at least one Author");
- }
- if (getUserRoleManager().getUserRoles(Role.Reviewer).size() <= 0) {
- return new Status(IStatus.ERROR, namespace, "Must have at least one Reviewer");
- }
- // If in review state, all roles must have hours spent entered
- if (getStateMgr().getCurrentStateName().equals(PeerToPeerReviewArtifact.PeerToPeerReviewState.Review.name())) {
- for (UserRole uRole : userRoleManager.getUserRoles()) {
- if (uRole.getHoursSpent() == null) {
- new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, "Hours spent must be entered for each role.");
- }
- }
- }
- return super.isUserRoleValid(namespace);
- }
-
- @Override
- public String getHelpContext() {
- return "peerToPeerReview";
- }
-
- @Override
- public String getHyperName() {
- return getName();
- }
-
- @Override
- public String getWorldViewDescription() throws OseeCoreException {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.Collection;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.widgets.defect.DefectManager;
+import org.eclipse.osee.ats.util.widgets.role.UserRole;
+import org.eclipse.osee.ats.util.widgets.role.UserRole.Role;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class PeerToPeerReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact {
+
+ public static enum PeerToPeerReviewState {
+ Prepare,
+ Review,
+ Completed
+ };
+
+ public PeerToPeerReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ defectManager = new DefectManager(this);
+ }
+
+ public static String getDefaultReviewTitle(TeamWorkFlowArtifact teamArt) {
+ return "Review \"" + teamArt.getArtifactTypeName() + "\" titled \"" + teamArt.getName() + "\"";
+ }
+
+ @Override
+ public IStatus isUserRoleValid(String namespace) throws OseeCoreException {
+ if (getUserRoleManager().getUserRoles(Role.Author).size() <= 0) {
+ return new Status(IStatus.ERROR, namespace, "Must have at least one Author");
+ }
+ if (getUserRoleManager().getUserRoles(Role.Reviewer).size() <= 0) {
+ return new Status(IStatus.ERROR, namespace, "Must have at least one Reviewer");
+ }
+ // If in review state, all roles must have hours spent entered
+ if (getStateMgr().getCurrentStateName().equals(PeerToPeerReviewArtifact.PeerToPeerReviewState.Review.name())) {
+ for (UserRole uRole : userRoleManager.getUserRoles()) {
+ if (uRole.getHoursSpent() == null) {
+ new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, "Hours spent must be entered for each role.");
+ }
+ }
+ }
+ return super.isUserRoleValid(namespace);
+ }
+
+ @Override
+ public String getHelpContext() {
+ return "peerToPeerReview";
+ }
+
+ @Override
+ public String getHyperName() {
+ return getName();
+ }
+
+ @Override
+ public String getWorldViewDescription() throws OseeCoreException {
return getSoleAttributeValue(AtsAttributeTypes.Description, "");
- }
-
- @Override
- public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException {
- if (getParentSMA() == null) {
- return null;
- }
- return getParentSMA().getWorldViewTargetedVersion();
- }
-
- @Override
- public Collection<User> getImplementers() throws OseeCoreException {
- Collection<User> users = getImplementersByState(PeerToPeerReviewState.Review.name());
- for (UserRole role : userRoleManager.getUserRoles()) {
- users.add(role.getUser());
- }
- return users;
- }
-
- @Override
- public String getWorldViewReviewAuthor() throws OseeCoreException {
- return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Author));
- }
-
- @Override
- public String getWorldViewReviewModerator() throws OseeCoreException {
- return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Moderator));
- }
-
- @Override
- public String getWorldViewReviewReviewer() throws OseeCoreException {
- return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Reviewer));
- }
-
- @Override
- public String getWorldViewNumberOfReviewIssueDefects() throws OseeCoreException {
- return String.valueOf(getDefectManager().getNumIssues());
- }
-
- @Override
- public String getWorldViewNumberOfReviewMajorDefects() throws OseeCoreException {
- return String.valueOf(getDefectManager().getNumMajor());
- }
-
- @Override
- public String getWorldViewNumberOfReviewMinorDefects() throws OseeCoreException {
- return String.valueOf(getDefectManager().getNumMinor());
- }
-
-}
+ }
+
+ @Override
+ public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException {
+ if (getParentSMA() == null) {
+ return null;
+ }
+ return getParentSMA().getWorldViewTargetedVersion();
+ }
+
+ @Override
+ public Collection<User> getImplementers() throws OseeCoreException {
+ Collection<User> users = getImplementersByState(PeerToPeerReviewState.Review.name());
+ for (UserRole role : userRoleManager.getUserRoles()) {
+ users.add(role.getUser());
+ }
+ return users;
+ }
+
+ @Override
+ public String getWorldViewReviewAuthor() throws OseeCoreException {
+ return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Author));
+ }
+
+ @Override
+ public String getWorldViewReviewModerator() throws OseeCoreException {
+ return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Moderator));
+ }
+
+ @Override
+ public String getWorldViewReviewReviewer() throws OseeCoreException {
+ return Artifacts.toString("; ", getUserRoleManager().getRoleUsers(Role.Reviewer));
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewIssueDefects() throws OseeCoreException {
+ return String.valueOf(getDefectManager().getNumIssues());
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewMajorDefects() throws OseeCoreException {
+ return String.valueOf(getDefectManager().getNumMajor());
+ }
+
+ @Override
+ public String getWorldViewNumberOfReviewMinorDefects() throws OseeCoreException {
+ return String.valueOf(getDefectManager().getNumMinor());
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ReviewSMArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ReviewSMArtifact.java
index 1f2673e219..de916b4cbd 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ReviewSMArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/ReviewSMArtifact.java
@@ -1,343 +1,343 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.Collection;
-import java.util.Date;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsNotifyUsers;
-import org.eclipse.osee.ats.util.AtsRelationTypes;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.ats.util.widgets.XActionableItemsDam;
-import org.eclipse.osee.ats.util.widgets.defect.DefectManager;
-import org.eclipse.osee.ats.util.widgets.role.UserRole;
-import org.eclipse.osee.ats.util.widgets.role.UserRole.Role;
-import org.eclipse.osee.ats.util.widgets.role.UserRoleManager;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
-
-/**
- * @author Donald G. Dunne
- */
-public abstract class ReviewSMArtifact extends TaskableStateMachineArtifact {
-
- protected DefectManager defectManager;
- protected UserRoleManager userRoleManager;
- private XActionableItemsDam actionableItemsDam;
- private Collection<UserRole> preSaveReviewRoleComplete;
- Boolean standAlone = null;
- public static enum ReviewBlockType {
- None,
- Transition,
- Commit
- };
-
- public ReviewSMArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- }
-
- @Override
- public void onInitializationComplete() throws OseeCoreException {
- super.onInitializationComplete();
- initializeSMA();
- };
-
- @Override
- public Set<User> getPrivilegedUsers() throws OseeCoreException {
- Set<User> users = new HashSet<User>();
- if (getParentTeamWorkflow() != null) {
- users.addAll(getParentTeamWorkflow().getPrivilegedUsers());
- }
- for (ActionableItemArtifact aia : getActionableItemsDam().getActionableItems()) {
- for (TeamDefinitionArtifact teamDef : aia.getImpactedTeamDefs()) {
- addPriviledgedUsersUpTeamDefinitionTree(teamDef, users);
- }
- }
- if (AtsUtil.isAtsAdmin()) {
- users.add(UserManager.getUser());
- }
- return users;
- }
-
- @Override
- public void onAttributePersist(SkynetTransaction transaction) {
- super.onAttributePersist(transaction);
- // Since multiple ways exist to change the assignees, notification is performed on the persist
- if (isDeleted()) {
- return;
- }
- try {
- notifyReviewersComplete();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void initalizePreSaveCache() {
- super.initalizePreSaveCache();
- try {
- preSaveReviewRoleComplete = getRoleUsersReviewComplete();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
-
- private Collection<UserRole> getRoleUsersReviewComplete() throws OseeCoreException {
- return this.getUserRoleManager().getRoleUsersReviewComplete();
- }
-
- public void notifyReviewersComplete() throws OseeCoreException {
- UserRoleManager userRoleManager = this.getUserRoleManager();
- if (!preSaveReviewRoleComplete.equals(userRoleManager.getRoleUsersReviewComplete())) {
- //all reviewers are complete; send notification to author/moderator
- if (userRoleManager.getUserRoles(Role.Reviewer).equals(userRoleManager.getRoleUsersReviewComplete())) {
- AtsNotifyUsers.getInstance().notify(this, AtsNotifyUsers.NotifyType.Reviewed);
- }
- }
- preSaveReviewRoleComplete = userRoleManager.getRoleUsersReviewComplete();
- }
-
- /**
- * Reset managers for case where artifact is re-loaded/initialized
- *
- * @throws OseeCoreException
- * @see org.eclipse.osee.ats.artifact.StateMachineArtifact#initialize()
- */
- @Override
- protected void initializeSMA() throws OseeCoreException {
- super.initializeSMA();
- defectManager = new DefectManager(this);
- userRoleManager = new UserRoleManager(this);
- actionableItemsDam = new XActionableItemsDam(this);
- }
-
- @Override
- public String getArtifactSuperTypeName() {
- return "Review";
- }
-
- public boolean isBlocking() throws OseeCoreException {
- return getReviewBlockType() != ReviewBlockType.None;
- }
-
- public ReviewBlockType getReviewBlockType() throws OseeCoreException {
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsNotifyUsers;
+import org.eclipse.osee.ats.util.AtsRelationTypes;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.ats.util.widgets.XActionableItemsDam;
+import org.eclipse.osee.ats.util.widgets.defect.DefectManager;
+import org.eclipse.osee.ats.util.widgets.role.UserRole;
+import org.eclipse.osee.ats.util.widgets.role.UserRole.Role;
+import org.eclipse.osee.ats.util.widgets.role.UserRoleManager;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+
+/**
+ * @author Donald G. Dunne
+ */
+public abstract class ReviewSMArtifact extends TaskableStateMachineArtifact {
+
+ protected DefectManager defectManager;
+ protected UserRoleManager userRoleManager;
+ private XActionableItemsDam actionableItemsDam;
+ private Collection<UserRole> preSaveReviewRoleComplete;
+ Boolean standAlone = null;
+ public static enum ReviewBlockType {
+ None,
+ Transition,
+ Commit
+ };
+
+ public ReviewSMArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ }
+
+ @Override
+ public void onInitializationComplete() throws OseeCoreException {
+ super.onInitializationComplete();
+ initializeSMA();
+ };
+
+ @Override
+ public Set<User> getPrivilegedUsers() throws OseeCoreException {
+ Set<User> users = new HashSet<User>();
+ if (getParentTeamWorkflow() != null) {
+ users.addAll(getParentTeamWorkflow().getPrivilegedUsers());
+ }
+ for (ActionableItemArtifact aia : getActionableItemsDam().getActionableItems()) {
+ for (TeamDefinitionArtifact teamDef : aia.getImpactedTeamDefs()) {
+ addPriviledgedUsersUpTeamDefinitionTree(teamDef, users);
+ }
+ }
+ if (AtsUtil.isAtsAdmin()) {
+ users.add(UserManager.getUser());
+ }
+ return users;
+ }
+
+ @Override
+ public void onAttributePersist(SkynetTransaction transaction) {
+ super.onAttributePersist(transaction);
+ // Since multiple ways exist to change the assignees, notification is performed on the persist
+ if (isDeleted()) {
+ return;
+ }
+ try {
+ notifyReviewersComplete();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void initalizePreSaveCache() {
+ super.initalizePreSaveCache();
+ try {
+ preSaveReviewRoleComplete = getRoleUsersReviewComplete();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ private Collection<UserRole> getRoleUsersReviewComplete() throws OseeCoreException {
+ return this.getUserRoleManager().getRoleUsersReviewComplete();
+ }
+
+ public void notifyReviewersComplete() throws OseeCoreException {
+ UserRoleManager userRoleManager = this.getUserRoleManager();
+ if (!preSaveReviewRoleComplete.equals(userRoleManager.getRoleUsersReviewComplete())) {
+ //all reviewers are complete; send notification to author/moderator
+ if (userRoleManager.getUserRoles(Role.Reviewer).equals(userRoleManager.getRoleUsersReviewComplete())) {
+ AtsNotifyUsers.getInstance().notify(this, AtsNotifyUsers.NotifyType.Reviewed);
+ }
+ }
+ preSaveReviewRoleComplete = userRoleManager.getRoleUsersReviewComplete();
+ }
+
+ /**
+ * Reset managers for case where artifact is re-loaded/initialized
+ *
+ * @throws OseeCoreException
+ * @see org.eclipse.osee.ats.artifact.StateMachineArtifact#initialize()
+ */
+ @Override
+ protected void initializeSMA() throws OseeCoreException {
+ super.initializeSMA();
+ defectManager = new DefectManager(this);
+ userRoleManager = new UserRoleManager(this);
+ actionableItemsDam = new XActionableItemsDam(this);
+ }
+
+ @Override
+ public String getArtifactSuperTypeName() {
+ return "Review";
+ }
+
+ public boolean isBlocking() throws OseeCoreException {
+ return getReviewBlockType() != ReviewBlockType.None;
+ }
+
+ public ReviewBlockType getReviewBlockType() throws OseeCoreException {
String typeStr = getSoleAttributeValue(AtsAttributeTypes.ReviewBlocks, null);
- if (typeStr == null) {
- // Check old attribute value
+ if (typeStr == null) {
+ // Check old attribute value
if (getSoleAttributeValue(AtsAttributeTypes.BlockingReview, false) == true) {
- return ReviewBlockType.Transition;
- }
- return ReviewBlockType.None;
- }
- return ReviewBlockType.valueOf(typeStr);
- }
-
- public DefectManager getDefectManager() {
- if (defectManager == null) {
- defectManager = new DefectManager(this);
- }
- return defectManager;
- }
-
- @Override
- public String getHyperTargetVersion() {
- return null;
- }
-
- public UserRoleManager getUserRoleManager() {
- if (userRoleManager == null) {
- return userRoleManager = new UserRoleManager(this);
- }
- return userRoleManager;
- }
-
- @SuppressWarnings("unused")
- public IStatus isUserRoleValid(String namespace) throws OseeCoreException {
- // Need this cause it removes all error items of this namespace
- return new Status(IStatus.OK, namespace, "");
- }
-
- public Set<TeamDefinitionArtifact> getCorrespondingTeamDefinitionArtifact() throws OseeCoreException {
- Set<TeamDefinitionArtifact> teamDefs = new HashSet<TeamDefinitionArtifact>();
- if (getParentTeamWorkflow() != null) {
- teamDefs.add(getParentTeamWorkflow().getTeamDefinition());
- }
- if (getActionableItemsDam().getActionableItems().size() > 0) {
- teamDefs.addAll(ActionableItemArtifact.getImpactedTeamDefs(getActionableItemsDam().getActionableItems()));
- }
- return teamDefs;
- }
-
- /**
- * @return the actionableItemsDam
- */
- public XActionableItemsDam getActionableItemsDam() throws OseeCoreException {
- if (actionableItemsDam == null) {
- actionableItemsDam = new XActionableItemsDam(this);
- }
- return actionableItemsDam;
- }
-
- @Override
- public StateMachineArtifact getParentSMA() throws OseeCoreException {
- if (isStandAloneReview()) {
- return null;
- }
- if (parentSma != null) {
- return parentSma;
- }
- parentSma = getParentTeamWorkflow();
- return parentSma;
- }
-
- @Override
- public ActionArtifact getParentActionArtifact() throws OseeCoreException {
- if (isStandAloneReview()) {
- return null;
- }
- if (parentAction != null) {
- return parentAction;
- }
- parentTeamArt = getParentTeamWorkflow();
- if (parentTeamArt != null) {
- parentAction = parentTeamArt.getParentActionArtifact();
- }
- return parentAction;
- }
-
- @Override
- public TeamWorkFlowArtifact getParentTeamWorkflow() throws OseeCoreException {
- if (isStandAloneReview()) {
- return null;
- }
- if (parentTeamArt != null) {
- return parentTeamArt;
- }
- List<TeamWorkFlowArtifact> teams =
- getRelatedArtifacts(AtsRelationTypes.TeamWorkflowToReview_Team, TeamWorkFlowArtifact.class);
- if (teams.size() > 1) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE,
- getArtifactTypeName() + " " + getHumanReadableId() + " has multiple parent workflows");
- } else if (!isStandAloneReview() && teams.isEmpty()) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE,
- getArtifactTypeName() + " " + getHumanReadableId() + " has no parent workflow");
- }
- if (teams.size() > 0) {
- parentTeamArt = teams.iterator().next();
- }
- return parentTeamArt;
- }
-
- public boolean isStandAloneReview() throws OseeCoreException {
- if (standAlone == null) {
- standAlone = getActionableItemsDam().getActionableItemGuids().size() > 0;
- }
- return standAlone;
- }
-
- @Override
- public String getWorldViewParentID() throws OseeCoreException {
- return getParentTeamWorkflow().getHumanReadableId();
- }
-
- @Override
- public Date getWorldViewDeadlineDate() {
- return null;
- }
-
- @Override
- public String getWorldViewCategory() {
- return "";
- }
-
- @Override
- public Date getWorldViewReleaseDate() {
- return null;
- }
-
- @Override
- public String getWorldViewTeam() throws OseeCoreException {
- TeamWorkFlowArtifact teamDef = getParentTeamWorkflow();
- if (teamDef != null) {
- return teamDef.getWorldViewTeam();
- }
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewDecider() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewModerator() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewReviewer() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewAuthor() throws OseeCoreException {
- return "";
- }
-
- @Override
- public double getWorldViewWeeklyBenefit() {
- return 0;
- }
-
- @Override
- public String getWorldViewWorkPackage() {
- return "";
- }
-
- public Artifact getArtifact() {
- return this;
- }
-
- @Override
- public String getWorldViewCategory2() {
- return "";
- }
-
- @Override
- public String getWorldViewCategory3() {
- return "";
- }
-
- @Override
- public String getWorldViewDeadlineDateStr() {
- return "";
- }
-
-}
+ return ReviewBlockType.Transition;
+ }
+ return ReviewBlockType.None;
+ }
+ return ReviewBlockType.valueOf(typeStr);
+ }
+
+ public DefectManager getDefectManager() {
+ if (defectManager == null) {
+ defectManager = new DefectManager(this);
+ }
+ return defectManager;
+ }
+
+ @Override
+ public String getHyperTargetVersion() {
+ return null;
+ }
+
+ public UserRoleManager getUserRoleManager() {
+ if (userRoleManager == null) {
+ return userRoleManager = new UserRoleManager(this);
+ }
+ return userRoleManager;
+ }
+
+ @SuppressWarnings("unused")
+ public IStatus isUserRoleValid(String namespace) throws OseeCoreException {
+ // Need this cause it removes all error items of this namespace
+ return new Status(IStatus.OK, namespace, "");
+ }
+
+ public Set<TeamDefinitionArtifact> getCorrespondingTeamDefinitionArtifact() throws OseeCoreException {
+ Set<TeamDefinitionArtifact> teamDefs = new HashSet<TeamDefinitionArtifact>();
+ if (getParentTeamWorkflow() != null) {
+ teamDefs.add(getParentTeamWorkflow().getTeamDefinition());
+ }
+ if (getActionableItemsDam().getActionableItems().size() > 0) {
+ teamDefs.addAll(ActionableItemArtifact.getImpactedTeamDefs(getActionableItemsDam().getActionableItems()));
+ }
+ return teamDefs;
+ }
+
+ /**
+ * @return the actionableItemsDam
+ */
+ public XActionableItemsDam getActionableItemsDam() throws OseeCoreException {
+ if (actionableItemsDam == null) {
+ actionableItemsDam = new XActionableItemsDam(this);
+ }
+ return actionableItemsDam;
+ }
+
+ @Override
+ public StateMachineArtifact getParentSMA() throws OseeCoreException {
+ if (isStandAloneReview()) {
+ return null;
+ }
+ if (parentSma != null) {
+ return parentSma;
+ }
+ parentSma = getParentTeamWorkflow();
+ return parentSma;
+ }
+
+ @Override
+ public ActionArtifact getParentActionArtifact() throws OseeCoreException {
+ if (isStandAloneReview()) {
+ return null;
+ }
+ if (parentAction != null) {
+ return parentAction;
+ }
+ parentTeamArt = getParentTeamWorkflow();
+ if (parentTeamArt != null) {
+ parentAction = parentTeamArt.getParentActionArtifact();
+ }
+ return parentAction;
+ }
+
+ @Override
+ public TeamWorkFlowArtifact getParentTeamWorkflow() throws OseeCoreException {
+ if (isStandAloneReview()) {
+ return null;
+ }
+ if (parentTeamArt != null) {
+ return parentTeamArt;
+ }
+ List<TeamWorkFlowArtifact> teams =
+ getRelatedArtifacts(AtsRelationTypes.TeamWorkflowToReview_Team, TeamWorkFlowArtifact.class);
+ if (teams.size() > 1) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE,
+ getArtifactTypeName() + " " + getHumanReadableId() + " has multiple parent workflows");
+ } else if (!isStandAloneReview() && teams.isEmpty()) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE,
+ getArtifactTypeName() + " " + getHumanReadableId() + " has no parent workflow");
+ }
+ if (teams.size() > 0) {
+ parentTeamArt = teams.iterator().next();
+ }
+ return parentTeamArt;
+ }
+
+ public boolean isStandAloneReview() throws OseeCoreException {
+ if (standAlone == null) {
+ standAlone = getActionableItemsDam().getActionableItemGuids().size() > 0;
+ }
+ return standAlone;
+ }
+
+ @Override
+ public String getWorldViewParentID() throws OseeCoreException {
+ return getParentTeamWorkflow().getHumanReadableId();
+ }
+
+ @Override
+ public Date getWorldViewDeadlineDate() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewCategory() {
+ return "";
+ }
+
+ @Override
+ public Date getWorldViewReleaseDate() {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewTeam() throws OseeCoreException {
+ TeamWorkFlowArtifact teamDef = getParentTeamWorkflow();
+ if (teamDef != null) {
+ return teamDef.getWorldViewTeam();
+ }
+ return "";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewReviewDecider() throws OseeCoreException {
+ return "";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewReviewModerator() throws OseeCoreException {
+ return "";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewReviewReviewer() throws OseeCoreException {
+ return "";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewReviewAuthor() throws OseeCoreException {
+ return "";
+ }
+
+ @Override
+ public double getWorldViewWeeklyBenefit() {
+ return 0;
+ }
+
+ @Override
+ public String getWorldViewWorkPackage() {
+ return "";
+ }
+
+ public Artifact getArtifact() {
+ return this;
+ }
+
+ @Override
+ public String getWorldViewCategory2() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewCategory3() {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewDeadlineDateStr() {
+ return "";
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/StateMachineArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/StateMachineArtifact.java
index 40f44f41a9..d25032ac11 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/StateMachineArtifact.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/StateMachineArtifact.java
@@ -1,1913 +1,1913 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.artifact;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.nebula.widgets.xviewer.XViewerCells;
-import org.eclipse.osee.ats.artifact.ATSLog.LogType;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
-import org.eclipse.osee.ats.editor.SMAEditor;
-import org.eclipse.osee.ats.editor.stateItem.AtsStateItems;
-import org.eclipse.osee.ats.editor.stateItem.IAtsStateItem;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsArtifactTypes;
-import org.eclipse.osee.ats.util.AtsNotifyUsers;
-import org.eclipse.osee.ats.util.AtsRelationTypes;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.ats.util.DeadlineManager;
-import org.eclipse.osee.ats.util.Overview;
-import org.eclipse.osee.ats.util.Overview.PreviewStyle;
-import org.eclipse.osee.ats.util.StateManager;
-import org.eclipse.osee.ats.util.widgets.ReviewManager;
-import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
-import org.eclipse.osee.ats.workflow.AtsWorkPage;
-import org.eclipse.osee.ats.workflow.item.AtsStatePercentCompleteWeightRule;
-import org.eclipse.osee.ats.workflow.item.AtsWorkDefinitions;
-import org.eclipse.osee.ats.world.IWorldViewArtifact;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.data.IArtifactType;
-import org.eclipse.osee.framework.core.data.SystemUser;
-import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
-import org.eclipse.osee.framework.core.enums.IRelationEnumeration;
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.exception.OseeStateException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.core.services.CmAccessControl;
-import org.eclipse.osee.framework.core.services.HasCmAccessControl;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-import org.eclipse.osee.framework.ui.plugin.util.Result;
-import org.eclipse.osee.framework.ui.skynet.FrameworkArtifactImageProvider;
-import org.eclipse.osee.framework.ui.skynet.group.IGroupExplorerProvider;
-import org.eclipse.osee.framework.ui.skynet.notify.OseeNotificationManager;
-import org.eclipse.osee.framework.ui.skynet.util.ChangeType;
-import org.eclipse.osee.framework.ui.skynet.util.email.EmailGroup;
-import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkFlowDefinition;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkFlowDefinitionFactory;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkItemDefinition;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPageDefinition;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkRuleDefinition;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Donald G. Dunne
- */
-public abstract class StateMachineArtifact extends ATSArtifact implements HasCmAccessControl, IGroupExplorerProvider, IWorldViewArtifact, ISubscribableArtifact, IFavoriteableArtifact {
-
- private final Set<IRelationEnumeration> atsWorldRelations = new HashSet<IRelationEnumeration>();
- private Collection<User> preSaveStateAssignees;
- private User preSaveOriginator;
- public static double DEFAULT_HOURS_PER_WORK_DAY = 8;
- protected WorkFlowDefinition workFlowDefinition;
- protected Artifact parent;
- protected StateMachineArtifact parentSma;
- protected TeamWorkFlowArtifact parentTeamArt;
- protected ActionArtifact parentAction;
- private Collection<User> transitionAssignees;
- private static String SEPERATOR = "; ";
- private StateManager stateMgr;
- private DeadlineManager deadlineMgr;
- private SMAEditor editor;
- private ATSLog atsLog;
- private ATSNote atsNote;
- private static final AtsStateItems stateItems = new AtsStateItems();
- private boolean inTransition = false;
- public static enum TransitionOption {
- None,
- Persist,
- // Override check whether workflow allows transition to state
- OverrideTransitionValidityCheck,
- // Allows transition to occur with UnAssigned, OseeSystem or Guest
- OverrideAssigneeCheck
- };
-
- public StateMachineArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- }
-
- @Override
- public void onBirth() throws OseeCoreException {
- super.onBirth();
- setSoleAttributeValue(AtsAttributeTypes.CurrentState, "");
- }
-
- @Override
- public void onInitializationComplete() throws OseeCoreException {
- super.onInitializationComplete();
- initializeSMA();
- }
-
- @Override
- public void reloadAttributesAndRelations() throws OseeCoreException {
- super.reloadAttributesAndRelations();
- initializeSMA();
- }
-
- @SuppressWarnings("unused")
- protected void initializeSMA() throws OseeCoreException {
- initalizePreSaveCache();
- }
-
- public void initalizePreSaveCache() {
- try {
- deadlineMgr = new DeadlineManager(this);
- stateMgr = new StateManager(this);
- atsLog = new ATSLog(this);
- atsNote = new ATSNote(this);
- preSaveStateAssignees = getStateMgr().getAssignees();
- if (getOriginator() == null) {
- preSaveOriginator = UserManager.getUser();
- } else {
- preSaveOriginator = getOriginator();
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
-
- public boolean hasAtsWorldChildren() throws OseeCoreException {
- for (IRelationEnumeration iRelationEnumeration : atsWorldRelations) {
- if (getRelatedArtifactsCount(iRelationEnumeration) > 0) {
- return true;
- }
- }
- return false;
- }
-
- public String getHelpContext() {
- return "atsWorkflowEditorWorkflowTab";
- }
-
- public String getArtifactSuperTypeName() {
- return getArtifactTypeName();
- }
-
- @SuppressWarnings("unused")
- @Override
- public Date getWorldViewDeadlineDate() throws OseeCoreException {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewDeadlineDateStr() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewDescription() throws OseeCoreException {
- return "";
- }
-
- @Override
- public String getWorldViewImplementer() throws OseeCoreException {
- return Artifacts.toString("; ", getImplementers());
- }
-
- public Collection<User> getImplementersByState(String stateName) throws OseeCoreException {
- if (isCancelled()) {
- return Arrays.asList(getLog().getCancelledLogItem().getUser());
- }
- Collection<User> users = new HashSet<User>(getStateMgr().getAssignees(stateName));
- LogItem item = getLog().getCompletedLogItem();
- if (item != null) {
- users.add(item.getUser());
- }
- return users;
- }
-
- @SuppressWarnings("unused")
- public Collection<User> getImplementers() throws OseeCoreException {
- return Collections.emptyList();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewTeam() throws OseeCoreException {
- return null;
- }
-
- @Override
- public String getWorldViewGroups() throws OseeCoreException {
- return Artifacts.toString("; ", getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
- }
-
- @Override
- public String getWorldViewGoals() throws OseeCoreException {
- return Artifacts.toString("; ", getRelatedArtifacts(AtsRelationTypes.Goal_Goal));
- }
-
- @SuppressWarnings("unused")
- @Override
- public double getWorldViewWeeklyBenefit() throws OseeCoreException {
- return 0;
- }
-
- @Override
- public void onAttributePersist(SkynetTransaction transaction) {
- // Since multiple ways exist to change the assignees, notification is performed on the persist
- if (isDeleted()) {
- return;
- }
- try {
- notifyNewAssigneesAndReset();
- notifyOriginatorAndReset();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
-
- /**
- * Override to apply different algorithm to current section expansion.
- *
- * @param page
- * @return true if section should be expanded
- * @throws OseeCoreException
- */
- public boolean isCurrentSectionExpanded(String stateName) throws OseeCoreException {
- return getStateMgr().getCurrentStateName().equals(stateName);
- }
-
- public void notifyNewAssigneesAndReset() throws OseeCoreException {
- if (preSaveStateAssignees == null) {
- preSaveStateAssignees = getStateMgr().getAssignees();
- return;
- }
- Set<User> newAssignees = new HashSet<User>();
- for (User user : getStateMgr().getAssignees()) {
- if (!preSaveStateAssignees.contains(user)) {
- newAssignees.add(user);
- }
- }
- preSaveStateAssignees = getStateMgr().getAssignees();
- if (newAssignees.isEmpty()) {
- return;
- }
- try {
- // These will be processed upon save
- AtsNotifyUsers.getInstance().notify(this, newAssignees, AtsNotifyUsers.NotifyType.Assigned);
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- public void notifyOriginatorAndReset() throws OseeCoreException {
- if (preSaveOriginator != null && getOriginator() != null && !getOriginator().equals(preSaveOriginator)) {
- AtsNotifyUsers.getInstance().notify(this, AtsNotifyUsers.NotifyType.Originator);
- }
- preSaveOriginator = getOriginator();
- }
-
- @SuppressWarnings("unused")
- public boolean isValidationRequired() throws OseeCoreException {
- return false;
- }
-
- public abstract Set<User> getPrivilegedUsers() throws OseeCoreException;
-
- @Override
- public String getDescription() {
- return "";
- }
-
- public ArrayList<EmailGroup> getEmailableGroups() throws OseeCoreException {
- ArrayList<EmailGroup> groupNames = new ArrayList<EmailGroup>();
- ArrayList<String> emails = new ArrayList<String>();
- emails.add(getOriginator().getEmail());
- groupNames.add(new EmailGroup("Originator", emails));
- if (getStateMgr().getAssignees().size() > 0) {
- emails = new ArrayList<String>();
- for (User u : getStateMgr().getAssignees()) {
- emails.add(u.getEmail());
- }
- groupNames.add(new EmailGroup("Assignees", emails));
- }
- return groupNames;
- }
-
- @SuppressWarnings("unused")
- public StateMachineArtifact getParentSMA() throws OseeCoreException {
- return parentSma;
- }
-
- @SuppressWarnings("unused")
- public ActionArtifact getParentActionArtifact() throws OseeCoreException {
- return parentAction;
- }
-
- @SuppressWarnings("unused")
- public TeamWorkFlowArtifact getParentTeamWorkflow() throws OseeCoreException {
- return parentTeamArt;
- }
-
- public String getPreviewHtml() throws OseeCoreException {
- return getPreviewHtml(PreviewStyle.NONE);
- }
-
- public String getPreviewHtml(PreviewStyle... styles) throws OseeCoreException {
- Overview o = new Overview();
- o.addHeader(this, styles);
- o.addFooter(this, styles);
- return o.getPage();
- }
-
- public boolean isUnCancellable() {
- try {
- LogItem item = getLog().getStateEvent(LogType.StateCancelled);
- if (item == null) {
- throw new OseeArgumentException("No Cancelled Event");
- }
- for (WorkPageDefinition toWorkPageDefinition : getWorkFlowDefinition().getToPages(getWorkPageDefinition())) {
- if (toWorkPageDefinition.getPageName().equals(item.getState())) {
- return true;
- }
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- return false;
- }
-
- public boolean isTaskable() throws OseeCoreException {
- if (isCompleted() || isCancelled()) {
- return false;
- }
- return true;
- }
-
- public boolean showTaskTab() throws OseeCoreException {
- return isTaskable();
- }
-
- public String getEditorTitle() throws OseeCoreException {
- return getWorldViewType() + ": " + getName();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewActionableItems() throws OseeCoreException {
- return "";
- }
-
- /**
- * Registers relation as part of the parent/child hierarchy in ATS World
- */
- public void registerAtsWorldRelation(AtsRelationTypes side) {
- atsWorldRelations.add(side);
- }
-
- @Override
- public Image getAssigneeImage() throws OseeCoreException {
- if (isDeleted()) {
- return null;
- }
- return FrameworkArtifactImageProvider.getUserImage(getStateMgr().getAssignees());
- }
-
- public WorkFlowDefinition getWorkFlowDefinition() {
- if (workFlowDefinition == null) {
- try {
- workFlowDefinition = WorkFlowDefinitionFactory.getWorkFlowDefinition(this);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
- return workFlowDefinition;
- }
-
- @Override
- public void addSubscribed(User user, SkynetTransaction transaction) throws OseeCoreException {
- if (!getRelatedArtifacts(AtsRelationTypes.SubscribedUser_User).contains(user)) {
- addRelation(AtsRelationTypes.SubscribedUser_User, user);
- persist(transaction);
- }
-
- }
-
- @Override
- public void removeSubscribed(User user, SkynetTransaction transaction) throws OseeCoreException {
- deleteRelation(AtsRelationTypes.SubscribedUser_User, user);
- persist(transaction);
- }
-
- @Override
- public boolean isSubscribed(User user) throws OseeCoreException {
- return getRelatedArtifacts(AtsRelationTypes.SubscribedUser_User).contains(user);
- }
-
- @Override
- public ArrayList<User> getSubscribed() throws OseeCoreException {
- ArrayList<User> arts = new ArrayList<User>();
- for (Artifact art : getRelatedArtifacts(AtsRelationTypes.SubscribedUser_User)) {
- arts.add((User) art);
- }
- return arts;
- }
-
- @Override
- public void addFavorite(User user, SkynetTransaction transaction) throws OseeCoreException {
- if (!getRelatedArtifacts(AtsRelationTypes.FavoriteUser_User).contains(user)) {
- addRelation(AtsRelationTypes.FavoriteUser_User, user);
- persist(transaction);
- }
- }
-
- @Override
- public void removeFavorite(User user, SkynetTransaction transaction) throws OseeCoreException {
- deleteRelation(AtsRelationTypes.FavoriteUser_User, user);
- persist(transaction);
- }
-
- @Override
- public boolean isFavorite(User user) throws OseeCoreException {
- return getRelatedArtifacts(AtsRelationTypes.FavoriteUser_User).contains(user);
- }
-
- @Override
- public ArrayList<User> getFavorites() throws OseeCoreException {
- ArrayList<User> arts = new ArrayList<User>();
- for (Artifact art : getRelatedArtifacts(AtsRelationTypes.FavoriteUser_User)) {
- arts.add((User) art);
- }
- return arts;
- }
-
- @Override
- public boolean amISubscribed() {
- try {
- return isSubscribed(UserManager.getUser());
- } catch (OseeCoreException ex) {
- return false;
- }
- }
-
- @Override
- public boolean amIFavorite() {
- try {
- return isFavorite(UserManager.getUser());
- } catch (OseeCoreException ex) {
- return false;
- }
- }
-
- @Override
- public void atsDelete(Set<Artifact> deleteArts, Map<Artifact, Object> allRelated) throws OseeCoreException {
- SMAEditor.close(Collections.singleton(this), true);
- super.atsDelete(deleteArts, allRelated);
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewType() throws OseeCoreException {
- return getArtifactTypeName();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewTitle() throws OseeCoreException {
- return getName();
- }
-
- @Override
- public String getWorldViewState() throws OseeCoreException {
- return getStateMgr().getCurrentStateName();
- }
-
- public String implementersStr = null;
-
- @Override
- public String getWorldViewActivePoc() throws OseeCoreException {
- if (isCancelledOrCompleted()) {
- if (implementersStr == null) {
- if (getImplementers().size() > 0) {
- implementersStr = "(" + Artifacts.toString("; ", getImplementers()) + ")";
- }
- }
- return implementersStr;
- }
- return Artifacts.toString("; ", getStateMgr().getAssignees());
- }
-
- @Override
- public String getWorldViewCreatedDateStr() throws OseeCoreException {
- if (getWorldViewCreatedDate() == null) {
- return XViewerCells.getCellExceptionString("No creation date");
- }
- return new XDate(getWorldViewCreatedDate()).getMMDDYYHHMM();
- }
-
- @Override
- public String getWorldViewCompletedDateStr() throws OseeCoreException {
- if (isCompleted()) {
- if (getWorldViewCompletedDate() == null) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Completed with no date => " + getHumanReadableId());
- return XViewerCells.getCellExceptionString("Completed with no date.");
- }
- return new XDate(getWorldViewCompletedDate()).getMMDDYYHHMM();
- }
- return "";
- }
-
- @Override
- public String getWorldViewCancelledDateStr() throws OseeCoreException {
- if (isCancelled()) {
- if (getWorldViewCancelledDate() == null) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, "Cancelled with no date => " + getHumanReadableId());
- return XViewerCells.getCellExceptionString("Cancelled with no date.");
- }
- return new XDate(getWorldViewCancelledDate()).getMMDDYYHHMM();
- }
- return "";
- }
-
- @Override
- public Date getWorldViewCreatedDate() throws OseeCoreException {
- return getLog().getCreationDate();
- }
-
- @Override
- public String getWorldViewOriginator() throws OseeCoreException {
- return getOriginator().getName();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewID() throws OseeCoreException {
- return getHumanReadableId();
- }
-
- @Override
- public String getWorldViewLegacyPCR() throws OseeCoreException {
- if (isAttributeTypeValid(AtsAttributeTypes.LegacyPcrId)) {
- return getSoleAttributeValue(AtsAttributeTypes.LegacyPcrId, "");
- }
- return "";
- }
-
- @Override
- public Date getWorldViewCompletedDate() throws OseeCoreException {
- LogItem item = getLog().getCompletedLogItem();
- if (item != null) {
- return item.getDate();
- }
- return null;
- }
-
- @Override
- public Date getWorldViewCancelledDate() throws OseeCoreException {
- LogItem item = getLog().getCancelledLogItem();
- if (item != null) {
- return item.getDate();
- }
- return null;
- }
-
- @Override
- public abstract VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException;
-
- @SuppressWarnings("unused")
- @Override
- public ChangeType getWorldViewChangeType() throws OseeCoreException {
- return ChangeType.None;
- }
-
- @Override
- public String getWorldViewChangeTypeStr() throws OseeCoreException {
- if (getWorldViewChangeType() == null || getWorldViewChangeType() == ChangeType.None) {
- return "";
- } else {
- return getWorldViewChangeType().name();
- }
- }
-
- public double getEstimatedHoursFromArtifact() throws OseeCoreException {
- if (isAttributeTypeValid(AtsAttributeTypes.EstimatedHours)) {
- return getSoleAttributeValue(AtsAttributeTypes.EstimatedHours, 0.0);
- }
- return 0;
- }
-
- public double getEstimatedHoursFromTasks(String relatedToState) throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return 0;
- }
- return ((TaskableStateMachineArtifact) this).getEstimatedHoursFromTasks(relatedToState);
- }
-
- public double getEstimatedHoursFromTasks() throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return 0;
- }
- return ((TaskableStateMachineArtifact) this).getEstimatedHoursFromTasks();
- }
-
- public double getEstimatedHoursFromReviews() throws OseeCoreException {
- if (isTeamWorkflow()) {
- return ReviewManager.getEstimatedHours((TeamWorkFlowArtifact) this);
- }
- return 0;
- }
-
- public double getEstimatedHoursFromReviews(String relatedToState) throws OseeCoreException {
- if (isTeamWorkflow()) {
- return ReviewManager.getEstimatedHours((TeamWorkFlowArtifact) this, relatedToState);
- }
- return 0;
- }
-
- public double getEstimatedHoursTotal(String relatedToState) throws OseeCoreException {
- return getEstimatedHoursFromArtifact() + getEstimatedHoursFromTasks(relatedToState) + getEstimatedHoursFromReviews(relatedToState);
- }
-
- public double getEstimatedHoursTotal() throws OseeCoreException {
- return getEstimatedHoursFromArtifact() + getEstimatedHoursFromTasks() + getEstimatedHoursFromReviews();
- }
-
- @Override
- public double getWorldViewEstimatedHours() throws OseeCoreException {
- return getEstimatedHoursTotal();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewUserCommunity() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewPriority() throws OseeCoreException {
- return "";
- }
-
- @Override
- public String getWorldViewResolution() throws OseeCoreException {
- return getAttributesToString(AtsAttributeTypes.Resolution);
- }
-
- public double getRemainHoursFromArtifact() throws OseeCoreException {
- if (isCompleted() || isCancelled()) {
- return 0;
- }
- double est = getSoleAttributeValue(AtsAttributeTypes.EstimatedHours, 0.0);
- if (est == 0) {
- return getEstimatedHoursFromArtifact();
- }
- double remain = est - est * getPercentCompleteSMATotal() / 100.0;
- return remain;
- }
-
- public double getRemainHoursTotal() throws OseeCoreException {
- return getRemainHoursFromArtifact() + getRemainFromTasks() + getRemainFromReviews();
- }
-
- public double getRemainFromTasks() throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return 0;
- }
- return ((TaskableStateMachineArtifact) this).getRemainHoursFromTasks();
- }
-
- public double getRemainFromReviews() throws OseeCoreException {
- if (isTeamWorkflow()) {
- return ReviewManager.getRemainHours((TeamWorkFlowArtifact) this);
- }
- return 0;
- }
-
- @Override
- public double getWorldViewRemainHours() throws OseeCoreException {
- return getRemainHoursTotal();
- }
-
- @Override
- public Result isWorldViewRemainHoursValid() throws OseeCoreException {
- if (!isAttributeTypeValid(AtsAttributeTypes.EstimatedHours)) {
- return Result.TrueResult;
- }
- try {
- Double value = getSoleAttributeValue(AtsAttributeTypes.EstimatedHours, null);
- if (isCancelled()) {
- return Result.TrueResult;
- }
- if (value == null) {
- return new Result("Estimated Hours not set.");
- }
- return Result.TrueResult;
- } catch (Exception ex) {
- return new Result(
- ex.getClass().getName() + ": " + ex.getLocalizedMessage() + "\n\n" + Lib.exceptionToString(ex));
- }
- }
-
- @Override
- public Result isWorldViewManDaysNeededValid() throws OseeCoreException {
- Result result = isWorldViewRemainHoursValid();
- if (result.isFalse()) {
- return result;
- }
- if (getManHrsPerDayPreference() == 0) {
- return new Result("Man Day Hours Preference is not set.");
- }
-
- return Result.TrueResult;
- }
-
- @Override
- public double getWorldViewManDaysNeeded() throws OseeCoreException {
- double hrsRemain = getWorldViewRemainHours();
- double manDaysNeeded = 0;
- if (hrsRemain != 0) {
- manDaysNeeded = hrsRemain / getManHrsPerDayPreference();
- }
- return manDaysNeeded;
- }
-
- @SuppressWarnings("unused")
- public double getManHrsPerDayPreference() throws OseeCoreException {
- return DEFAULT_HOURS_PER_WORK_DAY;
- }
-
- @SuppressWarnings("unused")
- @Override
- public double getWorldViewAnnualCostAvoidance() throws OseeCoreException {
- return 0;
- }
-
- @Override
- public Result isWorldViewAnnualCostAvoidanceValid() throws OseeCoreException {
- if (isAttributeTypeValid(AtsAttributeTypes.WeeklyBenefit)) {
- return Result.TrueResult;
- }
- Result result = isWorldViewRemainHoursValid();
- if (result.isFalse()) {
- return result;
- }
- String value = null;
- try {
- value = getSoleAttributeValue(AtsAttributeTypes.WeeklyBenefit, "");
- if (!Strings.isValid(value)) {
- return new Result("Weekly Benefit Hours not set.");
- }
- double val = new Float(value).doubleValue();
- if (val == 0) {
- return new Result("Weekly Benefit Hours not set.");
- }
- } catch (NumberFormatException ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "HRID " + getHumanReadableId(), ex);
- return new Result("Weekly Benefit value is invalid double \"" + value + "\"");
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "HRID " + getHumanReadableId(), ex);
- return new Result("Exception calculating cost avoidance. See log for details.");
- }
- return Result.TrueResult;
- }
-
- @Override
- public String getWorldViewNotes() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.SmaNote, "");
- }
-
- @Override
- public String getWorldViewWorkPackage() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.WorkPackage, "");
- }
-
- @Override
- public String getWorldViewPoint() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.Points, "");
- }
-
- @Override
- public String getWorldViewNumeric1() throws OseeCoreException {
- return AtsUtil.doubleToI18nString(getSoleAttributeValue(AtsAttributeTypes.Numeric1, 0.0), true);
- }
-
- @Override
- public String getWorldViewNumeric2() throws OseeCoreException {
- return AtsUtil.doubleToI18nString(getSoleAttributeValue(AtsAttributeTypes.Numeric2, 0.0), true);
- }
-
- @Override
- public String getWorldViewGoalOrderVote() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.GoalOrderVote, "");
- }
-
- @Override
- public String getWorldViewCategory() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.Category1, "");
- }
-
- @Override
- public String getWorldViewCategory2() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.Category2, "");
- }
-
- @Override
- public String getWorldViewCategory3() throws OseeCoreException {
- return getSoleAttributeValue(AtsAttributeTypes.Category3, "");
- }
-
- public int getWorldViewStatePercentComplete() throws OseeCoreException {
- return getPercentCompleteSMAStateTotal(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public String getWorldViewNumberOfTasks() throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return "";
- }
- int num = ((TaskableStateMachineArtifact) this).getTaskArtifacts().size();
- if (num == 0) {
- return "";
- }
- return String.valueOf(num);
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewRelatedToState() throws OseeCoreException {
- return "";
- }
-
- @Override
- public String getWorldViewTargetedVersionStr() throws OseeCoreException {
- if (getWorldViewTargetedVersion() == null) {
- return "";
- }
- return getWorldViewTargetedVersion().toString();
- }
-
- /**
- * Return true if this artifact, it's ATS relations and any of the other side artifacts are dirty
- *
- * @return true if any object in SMA tree is dirty
- */
- public Result isSMAEditorDirty() {
- try {
- Set<Artifact> artifacts = new HashSet<Artifact>();
- getSmaArtifactsOneLevel(this, artifacts);
- for (Artifact artifact : artifacts) {
- if (artifact.isDirty()) {
- return new Result(true, String.format("Artifact [%s][%s] is dirty", artifact.getHumanReadableId(),
- artifact));
- }
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't save artifact " + getHumanReadableId(), ex);
- }
- return Result.FalseResult;
- }
-
- public void saveSMA(SkynetTransaction transaction) {
- try {
- Set<Artifact> artifacts = new HashSet<Artifact>();
- getSmaArtifactsOneLevel(this, artifacts);
- for (Artifact artifact : artifacts) {
- artifact.persist(transaction);
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't save artifact " + getHumanReadableId(), ex);
- }
- }
-
- public void revertSMA() {
- try {
- Set<Artifact> artifacts = new HashSet<Artifact>();
- getSmaArtifactsOneLevel(this, artifacts);
- for (Artifact artifact : artifacts) {
- artifact.reloadAttributesAndRelations();
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, "Can't revert artifact " + getHumanReadableId(), ex);
- }
- }
-
- @SuppressWarnings("unused")
- public void getSmaArtifactsOneLevel(StateMachineArtifact smaArtifact, Set<Artifact> artifacts) throws OseeCoreException {
- artifacts.add(smaArtifact);
- }
-
- @Override
- public Date getWorldViewEstimatedReleaseDate() throws OseeCoreException {
- Date date = getSoleAttributeValue(AtsAttributeTypes.EstimatedReleaseDate, null);
- Date parentDate = null;
- if (getParentSMA() != null) {
- parentDate = getParentSMA().getWorldViewEstimatedReleaseDate();
- }
- if (date == null && parentDate != null) {
- return parentDate;
- }
- return date;
- }
-
- @Override
- public Date getWorldViewEstimatedCompletionDate() throws OseeCoreException {
- Date date = getSoleAttributeValue(AtsAttributeTypes.EstimatedCompletionDate, null);
- if (date != null) {
- return date;
- }
- if (getParentSMA() != null) {
- Date parentDate = getParentSMA().getWorldViewEstimatedCompletionDate();
- if (parentDate != null) {
- return parentDate;
- }
- }
- date = getWorldViewEstimatedReleaseDate();
- if (date != null) {
- return date;
- }
- return null;
- }
-
- @Override
- public String getWorldViewEstimatedReleaseDateStr() throws OseeCoreException {
- if (getWorldViewEstimatedReleaseDate() == null) {
- return "";
- }
- return new XDate(getWorldViewEstimatedReleaseDate()).getMMDDYYHHMM();
- }
-
- @Override
- public String getWorldViewEstimatedCompletionDateStr() throws OseeCoreException {
- if (getWorldViewEstimatedCompletionDate() == null) {
- return "";
- }
- return new XDate(getWorldViewEstimatedCompletionDate()).getMMDDYYHHMM();
- }
-
- @Override
- public abstract Date getWorldViewReleaseDate() throws OseeCoreException;
-
- @Override
- public String getWorldViewReleaseDateStr() throws OseeCoreException {
- if (getWorldViewReleaseDate() == null) {
- return "";
- }
- return new XDate(getWorldViewReleaseDate()).getMMDDYYHHMM();
- }
-
- /**
- * Called at the end of a transition just before transaction manager persist. SMAs can override to perform tasks due
- * to transition.
- *
- * @throws Exception
- */
- @SuppressWarnings("unused")
- public void transitioned(WorkPageDefinition fromPage, WorkPageDefinition toPage, Collection<User> toAssignees, boolean persist, SkynetTransaction transaction) throws OseeCoreException {
- // provided for subclass implementation
- }
-
- @Override
- public String getHyperName() {
- return getName();
- }
-
- @Override
- public String getHyperType() {
- try {
- return getArtifactTypeName();
- } catch (Exception ex) {
- return ex.getLocalizedMessage();
- }
- }
-
- @Override
- public String getHyperState() {
- try {
- return getStateMgr().getCurrentStateName();
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- return "";
- }
-
- @Override
- public String getHyperAssignee() {
- try {
- return Artifacts.toString("; ", getStateMgr().getAssignees());
- } catch (OseeCoreException ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- return "";
- }
-
- @Override
- public Image getHyperAssigneeImage() throws OseeCoreException {
- return getAssigneeImage();
- }
-
- @Override
- public Artifact getHyperArtifact() {
- return this;
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewDecision() throws OseeCoreException {
- return "";
- }
-
- @Override
- public Artifact getParentAtsArtifact() throws OseeCoreException {
- return getParentSMA();
- }
-
- @Override
- public String getWorldViewValidationRequiredStr() throws OseeCoreException {
- if (isAttributeTypeValid(AtsAttributeTypes.ValidationRequired)) {
- return String.valueOf(getSoleAttributeValue(AtsAttributeTypes.ValidationRequired, false));
- }
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public Result isWorldViewDeadlineAlerting() throws OseeCoreException {
- return Result.FalseResult;
- }
-
- @SuppressWarnings("unused")
- @Override
- public int getWorldViewPercentRework() throws OseeCoreException {
- return 0;
- }
-
- @Override
- public String getWorldViewPercentReworkStr() throws OseeCoreException {
- int reWork = getWorldViewPercentRework();
- if (reWork == 0) {
- return "";
- }
- return String.valueOf(reWork);
- }
-
- public static Set<IArtifactType> getAllSMAType() throws OseeCoreException {
- Set<IArtifactType> artTypeNames = TeamWorkflowExtensions.getInstance().getAllTeamWorkflowArtifactTypes();
- artTypeNames.add(AtsArtifactTypes.Task);
- artTypeNames.add(AtsArtifactTypes.DecisionReview);
- artTypeNames.add(AtsArtifactTypes.PeerToPeerReview);
- return artTypeNames;
- }
-
- public static List<Artifact> getAllSMATypeArtifacts() throws OseeCoreException {
- List<Artifact> result = new ArrayList<Artifact>();
- for (IArtifactType artType : getAllSMAType()) {
- result.addAll(ArtifactQuery.getArtifactListFromType(artType, AtsUtil.getAtsBranch()));
- }
- return result;
- }
-
- public static List<TeamWorkFlowArtifact> getAllTeamWorkflowArtifacts() throws OseeCoreException {
- List<TeamWorkFlowArtifact> result = new ArrayList<TeamWorkFlowArtifact>();
- for (IArtifactType artType : TeamWorkflowExtensions.getInstance().getAllTeamWorkflowArtifactTypes()) {
- List<TeamWorkFlowArtifact> teamArts =
- org.eclipse.osee.framework.jdk.core.util.Collections.castAll(ArtifactQuery.getArtifactListFromType(artType,
- AtsUtil.getAtsBranch()));
- result.addAll(teamArts);
- }
- return result;
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewBranchStatus() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewAuthor() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewDecider() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewModerator() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewReviewReviewer() throws OseeCoreException {
- return "";
- }
-
- /**
- * Return hours spent working ONLY the SMA stateName (not children SMAs)
- */
- public double getHoursSpentSMAState(String stateName) throws OseeCoreException {
- return getStateMgr().getHoursSpent(stateName);
- }
-
- /**
- * Return hours spent working ONLY on tasks related to stateName
- */
- public double getHoursSpentSMAStateTasks(String stateName) throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return 0;
- }
- return ((TaskableStateMachineArtifact) this).getHoursSpentFromTasks(stateName);
- }
-
- /**
- * Return hours spent working ONLY on reviews related to stateName
- */
- public double getHoursSpentSMAStateReviews(String stateName) throws OseeCoreException {
- if (isTeamWorkflow()) {
- return ReviewManager.getHoursSpent((TeamWorkFlowArtifact) this, stateName);
- }
- return 0;
- }
-
- /**
- * Return hours spent working on all things (including children SMAs) related to stateName
- */
- public double getHoursSpentSMAStateTotal(String stateName) throws OseeCoreException {
- return getHoursSpentSMAState(stateName) + getHoursSpentSMAStateTasks(stateName) + getHoursSpentSMAStateReviews(stateName);
- }
-
- @Override
- public double getWorldViewHoursSpentStateTotal() throws OseeCoreException {
- return getHoursSpentSMAStateTotal(getStateMgr().getCurrentStateName());
- }
-
- /**
- * Return hours spent working on all things (including children SMAs) for this SMA
- */
- public double getHoursSpentSMATotal() throws OseeCoreException {
- double hours = 0.0;
- for (String stateName : getStateMgr().getVisitedStateNames()) {
- hours += getHoursSpentSMAStateTotal(stateName);
- }
- return hours;
- }
-
- /**
- * Return Percent Complete working ONLY the SMA stateName (not children SMAs)
- */
- public int getPercentCompleteSMAState(String stateName) throws OseeCoreException {
- return getStateMgr().getPercentComplete(stateName);
- }
-
- /**
- * Return Percent Complete ONLY on tasks related to stateName. Total Percent / # Tasks
- */
- public int getPercentCompleteSMAStateTasks(String stateName) throws OseeCoreException {
- if (!(this instanceof TaskableStateMachineArtifact)) {
- return 0;
- }
- return ((TaskableStateMachineArtifact) this).getPercentCompleteFromTasks(stateName);
- }
-
- /**
- * Return Percent Complete ONLY on reviews related to stateName. Total Percent / # Reviews
- */
- public int getPercentCompleteSMAStateReviews(String stateName) throws OseeCoreException {
- if (isTeamWorkflow()) {
- return ReviewManager.getPercentComplete((TeamWorkFlowArtifact) this, stateName);
- }
- return 0;
- }
-
- /**
- * Return Percent Complete on all things (including children SMAs) related to stateName. Total Percent for state,
- * tasks and reviews / 1 + # Tasks + # Reviews
- */
- public int getPercentCompleteSMAStateTotal(String stateName) throws OseeCoreException {
- return getStateMetricsData(stateName).getResultingPercent();
- }
-
- /**
- * Return Percent Complete on all things (including children SMAs) for this SMA<br>
- * <br>
- * percent = all state's percents / number of states (minus completed/cancelled)
- */
- public int getPercentCompleteSMATotal() throws OseeCoreException {
- if (isCancelledOrCompleted()) {
- return 100;
- }
- Map<String, Double> stateToWeightMap = getStatePercentCompleteWeight();
- if (stateToWeightMap.size() > 0) {
- // Calculate total percent using configured weighting
- int percent = 0;
- for (String stateName : getWorkFlowDefinition().getPageNames()) {
- if (!stateName.equals(DefaultTeamState.Completed.name()) && !stateName.equals(DefaultTeamState.Cancelled.name())) {
- Double weight = stateToWeightMap.get(stateName);
- if (weight == null) {
- weight = 0.0;
- }
- percent += weight * getPercentCompleteSMAStateTotal(stateName);
- }
- }
- return percent;
- } else {
- int percent = 0;
- int numStates = 0;
- for (String stateName : getWorkFlowDefinition().getPageNames()) {
- if (!stateName.equals(DefaultTeamState.Completed.name()) && !stateName.equals(DefaultTeamState.Cancelled.name())) {
- percent += getPercentCompleteSMAStateTotal(stateName);
- numStates++;
- }
- }
- if (numStates == 0) {
- return 0;
- }
- return percent / numStates;
- }
- }
-
- // Cache stateToWeight mapping
- private Map<String, Double> stateToWeight = null;
-
- public Map<String, Double> getStatePercentCompleteWeight() throws OseeCoreException {
- if (stateToWeight == null) {
- stateToWeight = new HashMap<String, Double>();
- Collection<WorkRuleDefinition> workRuleDefs = getWorkRulesStartsWith(AtsStatePercentCompleteWeightRule.ID);
- // Log error if multiple of same rule found, but keep going
- if (workRuleDefs.size() > 1) {
- OseeLog.log(
- AtsPlugin.class,
- Level.SEVERE,
- "Team Definition has multiple rules of type " + AtsStatePercentCompleteWeightRule.ID + ". Only 1 allowed. Defaulting to first found.");
- }
- if (workRuleDefs.size() == 1) {
- stateToWeight = AtsStatePercentCompleteWeightRule.getStateWeightMap(workRuleDefs.iterator().next());
- }
- }
- return stateToWeight;
- }
-
- private StateMetricsData getStateMetricsData(String stateName) throws OseeCoreException {
- // Add percent and bump objects 1 for state percent
- int percent = getPercentCompleteSMAState(stateName);
- int numObjects = 1; // the state itself is one object
-
- // Add percent for each task and bump objects for each task
- if (this instanceof TaskableStateMachineArtifact) {
- Collection<TaskArtifact> tasks = ((TaskableStateMachineArtifact) this).getTaskArtifacts(stateName);
- for (TaskArtifact taskArt : tasks) {
- percent += taskArt.getPercentCompleteSMATotal();
- }
- numObjects += tasks.size();
- }
-
- // Add percent for each review and bump objects for each review
- if (isTeamWorkflow()) {
- Collection<ReviewSMArtifact> reviews = ReviewManager.getReviews((TeamWorkFlowArtifact) this, stateName);
- for (ReviewSMArtifact reviewArt : reviews) {
- percent += reviewArt.getPercentCompleteSMATotal();
- }
- numObjects += reviews.size();
- }
-
- return new StateMetricsData(percent, numObjects);
- }
-
- private static class StateMetricsData {
- public int numObjects = 0;
- public int percent = 0;
-
- public StateMetricsData(int percent, int numObjects) {
- this.numObjects = numObjects;
- this.percent = percent;
- }
-
- public int getResultingPercent() {
- return percent / numObjects;
- }
-
- @Override
- public String toString() {
- return "Percent: " + getResultingPercent() + " NumObjs: " + numObjects + " Total Percent: " + percent;
- }
- }
-
- @Override
- public double getWorldViewHoursSpentState() throws OseeCoreException {
- return getHoursSpentSMAState(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public double getWorldViewHoursSpentStateReview() throws OseeCoreException {
- return getHoursSpentSMAStateReviews(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public double getWorldViewHoursSpentStateTask() throws OseeCoreException {
- return getHoursSpentSMAStateTasks(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public double getWorldViewHoursSpentTotal() throws OseeCoreException {
- return getHoursSpentSMATotal();
- }
-
- @Override
- public int getWorldViewPercentCompleteState() throws OseeCoreException {
- return getPercentCompleteSMAState(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public int getWorldViewPercentCompleteStateReview() throws OseeCoreException {
- return getPercentCompleteSMAStateReviews(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public int getWorldViewPercentCompleteStateTask() throws OseeCoreException {
- return getPercentCompleteSMAStateTasks(getStateMgr().getCurrentStateName());
- }
-
- @Override
- public int getWorldViewPercentCompleteTotal() throws OseeCoreException {
- return getPercentCompleteSMATotal();
- }
-
- public Set<IRelationEnumeration> getAtsWorldRelations() {
- return atsWorldRelations;
- }
-
- public String getWorldViewLastUpdated() throws OseeCoreException {
- return XDate.getDateStr(getLastModified(), XDate.MMDDYYHHMM);
- }
-
- @Override
- public String getWorldViewLastStatused() throws OseeCoreException {
- return XDate.getDateStr(getLog().getLastStatusedDate(), XDate.MMDDYYHHMM);
- }
-
- @SuppressWarnings("unused")
- public String getWorldViewSWEnhancement() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewNumberOfReviewIssueDefects() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewNumberOfReviewMajorDefects() throws OseeCoreException {
- return "";
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewNumberOfReviewMinorDefects() throws OseeCoreException {
- return "";
- }
-
- @Override
- public String getWorldViewActionsIntiatingWorkflow() throws OseeCoreException {
- return getParentActionArtifact().getWorldViewActionsIntiatingWorkflow();
- }
-
- @Override
- public String getWorldViewDaysInCurrentState() throws OseeCoreException {
- double timeInCurrState = getStateMgr().getTimeInState();
- if (timeInCurrState == 0) {
- return "0.0";
- }
- return AtsUtil.doubleToI18nString(timeInCurrState / XDate.MILLISECONDS_IN_A_DAY);
- }
-
- @Override
- public String getWorldViewParentState() throws OseeCoreException {
- if (getParentSMA() != null) {
- return getParentSMA().getStateMgr().getCurrentStateName();
- }
- return "";
- }
-
- @Override
- public String getGroupExplorerName() throws OseeCoreException {
- return String.format("[%s] %s", getStateMgr().getCurrentStateName(), getName());
- }
-
- @Override
- public String getWorldViewOriginatingWorkflowStr() throws OseeCoreException {
- return getParentActionArtifact().getWorldViewOriginatingWorkflowStr();
- }
-
- @Override
- public Collection<TeamWorkFlowArtifact> getWorldViewOriginatingWorkflows() throws OseeCoreException {
- return getParentActionArtifact().getWorldViewOriginatingWorkflows();
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getWorldViewNumberOfTasksRemaining() throws OseeCoreException {
- return "";
- }
-
- public void closeEditors(boolean save) {
- SMAEditor.close(java.util.Collections.singleton(this), save);
- }
-
- public ATSLog getLog() {
- return atsLog;
- }
-
- public ATSNote getNotes() {
- return atsNote;
- }
-
- public Result getUserInputNeeded() {
- return Result.FalseResult;
- }
-
- public WorkPageDefinition getWorkPageDefinition() throws OseeCoreException {
- if (getStateMgr().getCurrentStateName() == null) {
- return null;
- }
- return getWorkFlowDefinition().getWorkPageDefinitionByName(getStateMgr().getCurrentStateName());
- }
-
- public WorkPageDefinition getWorkPageDefinitionByName(String name) throws OseeCoreException {
- return getWorkFlowDefinition().getWorkPageDefinitionByName(name);
- }
-
- public WorkPageDefinition getWorkPageDefinitionById(String id) throws OseeCoreException {
- return getWorkFlowDefinition().getWorkPageDefinitionById(id);
- }
-
- public boolean isHistoricalVersion() {
- return isHistorical();
- }
-
- public List<WorkPageDefinition> getToWorkPages() throws OseeCoreException {
- return getWorkFlowDefinition().getToPages(getWorkPageDefinition());
- }
-
- public List<WorkPageDefinition> getReturnPages() throws OseeCoreException {
- return getWorkFlowDefinition().getReturnPages(getWorkPageDefinition());
- }
-
- public boolean isReturnPage(WorkPageDefinition workPageDefinition) throws OseeCoreException {
- return getWorkFlowDefinition().isReturnPage(getWorkPageDefinition(), workPageDefinition);
- }
-
- public boolean isAccessControlWrite() throws OseeCoreException {
- return AccessControlManager.hasPermission(this, PermissionEnum.WRITE);
- }
-
- public User getOriginator() throws OseeCoreException {
- return atsLog.getOriginator();
- }
-
- public void setOriginator(User user) throws OseeCoreException {
- atsLog.addLog(LogType.Originated, "", "Changed by " + UserManager.getUser().getName(), user);
- }
-
- /**
- * @return true if this is a TeamWorkflow and it uses versions
- * @throws OseeStateException
- */
- public boolean isTeamUsesVersions() {
- if (!isTeamWorkflow()) {
- return false;
- }
- try {
- return ((TeamWorkFlowArtifact) this).getTeamDefinition().isTeamUsesVersions();
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return false;
- }
- }
-
- /**
- * Return true if sma is TeamWorkflowArtifact or review of a team workflow and it's TeamDefinitionArtifact has rule
- * set
- */
- public boolean teamDefHasWorkRule(String ruleId) throws OseeCoreException {
- TeamWorkFlowArtifact teamArt = null;
- if (isTeamWorkflow()) {
- teamArt = (TeamWorkFlowArtifact) this;
- }
- if (this instanceof ReviewSMArtifact) {
- teamArt = ((ReviewSMArtifact) this).getParentTeamWorkflow();
- }
- if (teamArt == null) {
- return false;
- }
- try {
- return teamArt.getTeamDefinition().hasWorkRule(ruleId);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- return false;
- }
- }
-
- public boolean workPageHasWorkRule(String ruleId) throws OseeCoreException {
- return getWorkPageDefinition().hasWorkRule(AtsWorkDefinitions.RuleWorkItemId.atsRequireTargetedVersion.name());
- }
-
- public Collection<WorkRuleDefinition> getWorkRulesStartsWith(String ruleId) throws OseeCoreException {
- Set<WorkRuleDefinition> workRules = new HashSet<WorkRuleDefinition>();
- if (!Strings.isValid(ruleId)) {
- return workRules;
- }
- if (isTeamWorkflow()) {
- // Get rules from team definition
- workRules.addAll(((TeamWorkFlowArtifact) this).getTeamDefinition().getWorkRulesStartsWith(ruleId));
- }
- // Get work rules from workflow
- WorkFlowDefinition workFlowDefinition = getWorkFlowDefinition();
- if (workFlowDefinition != null) {
- // Get rules from workflow definitions
- workRules.addAll(getWorkFlowDefinition().getWorkRulesStartsWith(ruleId));
- }
- // Add work rules from page
- for (WorkItemDefinition wid : getWorkPageDefinition().getWorkItems(false)) {
- if (!wid.getId().equals("") && wid.getId().startsWith(ruleId)) {
- workRules.add((WorkRuleDefinition) wid);
- }
- }
- return workRules;
- }
-
- /**
- * @return true if this is a TeamWorkflow and the version it's been targeted for has been released
- */
- public boolean isReleased() {
- try {
- VersionArtifact verArt = getTargetedForVersion();
- if (verArt != null) {
- return verArt.isReleased();
- }
- } catch (Exception ex) {
- // Do Nothing
- }
- return false;
- }
-
- public boolean isVersionLocked() {
- try {
- VersionArtifact verArt = getTargetedForVersion();
- if (verArt != null) {
- return verArt.isVersionLocked();
- }
- } catch (Exception ex) {
- // Do Nothing
- }
- return false;
- }
-
- public VersionArtifact getTargetedForVersion() throws OseeCoreException {
- return getWorldViewTargetedVersion();
- }
-
- public boolean isCompleted() throws OseeCoreException {
- return stateMgr.getCurrentStateName().equals(DefaultTeamState.Completed.name());
- }
-
- public boolean isCancelled() throws OseeCoreException {
- return stateMgr.getCurrentStateName().equals(DefaultTeamState.Cancelled.name());
- }
-
- public boolean isCancelledOrCompleted() throws OseeCoreException {
- return isCompleted() || isCancelled();
- }
-
- public boolean isCurrentState(String stateName) throws OseeCoreException {
- return stateName.equals(stateMgr.getCurrentStateName());
- }
-
- public void setTransitionAssignees(Collection<User> assignees) throws OseeCoreException {
- if (assignees.contains(UserManager.getUser(SystemUser.OseeSystem)) || assignees.contains(UserManager.getUser(SystemUser.Guest))) {
- throw new OseeArgumentException("Can not assign workflow to OseeSystem or Guest");
- }
- if (assignees.size() > 1 && assignees.contains(UserManager.getUser(SystemUser.UnAssigned))) {
- throw new OseeArgumentException("Can not assign to user and UnAssigned");
- }
- transitionAssignees = assignees;
- }
-
- public boolean isAssigneeMe() throws OseeCoreException {
- return stateMgr.getAssignees().contains(UserManager.getUser());
- }
-
- public Collection<User> getTransitionAssignees() throws OseeCoreException {
- if (transitionAssignees != null) {
- if (transitionAssignees.size() > 0 && transitionAssignees.contains(UserManager.getUser(SystemUser.UnAssigned))) {
- transitionAssignees.remove(UserManager.getUser(SystemUser.UnAssigned));
- }
- if (transitionAssignees.size() > 0) {
- return transitionAssignees;
- }
- }
- return stateMgr.getAssignees();
- }
-
- public String getTransitionAssigneesStr() throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- for (User u : getTransitionAssignees()) {
- sb.append(u.getName() + SEPERATOR);
- }
- return sb.toString().replaceFirst(SEPERATOR + "$", "");
- }
-
- public Result transitionToCancelled(String reason, SkynetTransaction transaction, TransitionOption... transitionOption) {
- Result result =
- transition(DefaultTeamState.Cancelled.name(), Arrays.asList(new User[] {}), reason, transaction,
- transitionOption);
- return result;
- }
-
- public Result transitionToCompleted(String reason, SkynetTransaction transaction, TransitionOption... transitionOption) {
- Result result =
- transition(DefaultTeamState.Completed.name(), Arrays.asList(new User[] {}), reason, transaction,
- transitionOption);
- return result;
- }
-
- public Result isTransitionValid(final String toStateName, final Collection<User> toAssignees, TransitionOption... transitionOption) throws OseeCoreException {
- boolean overrideTransitionCheck =
- org.eclipse.osee.framework.jdk.core.util.Collections.getAggregate(transitionOption).contains(
- TransitionOption.OverrideTransitionValidityCheck);
- boolean overrideAssigneeCheck =
- org.eclipse.osee.framework.jdk.core.util.Collections.getAggregate(transitionOption).contains(
- TransitionOption.OverrideAssigneeCheck);
- // Validate assignees
- if (!overrideAssigneeCheck && (getStateMgr().getAssignees().contains(UserManager.getUser(SystemUser.OseeSystem)) || getStateMgr().getAssignees().contains(
- UserManager.getUser(SystemUser.Guest)) || getStateMgr().getAssignees().contains(
- UserManager.getUser(SystemUser.UnAssigned)))) {
- return new Result("Can not transition with \"Guest\", \"UnAssigned\" or \"OseeSystem\" user as assignee.");
- }
-
- // Validate toState name
- final WorkPageDefinition fromWorkPageDefinition = getWorkPageDefinition();
- final WorkPageDefinition toWorkPageDefinition = getWorkPageDefinitionByName(toStateName);
- if (toWorkPageDefinition == null) {
- return new Result("Invalid toState \"" + toStateName + "\"");
- }
-
- // Validate transition from fromPage to toPage
- if (!overrideTransitionCheck && !getWorkFlowDefinition().getToPages(fromWorkPageDefinition).contains(
- toWorkPageDefinition)) {
- String errStr =
- "Not configured to transition to \"" + toStateName + "\" from \"" + fromWorkPageDefinition.getPageName() + "\"";
- OseeLog.log(AtsPlugin.class, Level.SEVERE, errStr);
- return new Result(errStr);
- }
- // Don't transition with existing working branch
- if (toStateName.equals(DefaultTeamState.Cancelled.name()) && isTeamWorkflow() && ((TeamWorkFlowArtifact) this).getBranchMgr().isWorkingBranchInWork()) {
- return new Result("Working Branch exists. Please delete working branch before cancelling.");
- }
-
- // Don't transition with uncommitted branch if this is a commit state
- if (AtsWorkDefinitions.isAllowCommitBranch(getWorkPageDefinition()) && isTeamWorkflow() && ((TeamWorkFlowArtifact) this).getBranchMgr().isWorkingBranchInWork()) {
- return new Result("Working Branch exists. Please commit or delete working branch before transition.");
- }
-
- // Check extension points for valid transition
- List<IAtsStateItem> atsStateItems = stateItems.getStateItems(fromWorkPageDefinition.getId());
- for (IAtsStateItem item : atsStateItems) {
- Result result = item.transitioning(this, fromWorkPageDefinition.getPageName(), toStateName, toAssignees);
- if (result.isFalse()) {
- return result;
- }
- }
- for (IAtsStateItem item : atsStateItems) {
- Result result = item.transitioning(this, fromWorkPageDefinition.getPageName(), toStateName, toAssignees);
- if (result.isFalse()) {
- return result;
- }
- }
- return Result.TrueResult;
- }
-
- public Result transition(String toStateName, User toAssignee, SkynetTransaction transaction, TransitionOption... transitionOption) {
- List<User> users = new ArrayList<User>();
- if (toAssignee != null && !toStateName.equals(DefaultTeamState.Completed.name()) && !toStateName.equals(DefaultTeamState.Cancelled.name())) {
- users.add(toAssignee);
- }
- return transition(toStateName, users, transaction, transitionOption);
- }
-
- public boolean isTargetedVersionable() throws OseeCoreException {
- if (!isTeamWorkflow()) {
- return false;
- }
- return ((TeamWorkFlowArtifact) this).getTeamDefinition().getTeamDefinitionHoldingVersions() != null && ((TeamWorkFlowArtifact) this).getTeamDefinition().getTeamDefinitionHoldingVersions().isTeamUsesVersions();
- }
-
- public Result transition(String toStateName, Collection<User> toAssignees, SkynetTransaction transaction, TransitionOption... transitionOption) {
- return transition(toStateName, toAssignees, null, transaction, transitionOption);
- }
-
- private Result transition(final String toStateName, final Collection<User> toAssignees, final String completeOrCancelReason, SkynetTransaction transaction, TransitionOption... transitionOption) {
- try {
- final boolean persist =
- org.eclipse.osee.framework.jdk.core.util.Collections.getAggregate(transitionOption).contains(
- TransitionOption.Persist);
-
- Result result = isTransitionValid(toStateName, toAssignees, transitionOption);
- if (result.isFalse()) {
- return result;
- }
-
- final WorkPageDefinition fromWorkPageDefinition = getWorkPageDefinition();
- final WorkPageDefinition toWorkPageDefinition = getWorkPageDefinitionByName(toStateName);
-
- transitionHelper(toAssignees, persist, fromWorkPageDefinition, toWorkPageDefinition, toStateName,
- completeOrCancelReason, transaction);
- if (persist) {
- OseeNotificationManager.getInstance().sendNotifications();
- }
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- return new Result("Transaction failed " + ex.getLocalizedMessage());
- }
- return Result.TrueResult;
- }
-
- private void transitionHelper(Collection<User> toAssignees, boolean persist, WorkPageDefinition fromPage, WorkPageDefinition toPage, String toStateName, String completeOrCancelReason, SkynetTransaction transaction) throws OseeCoreException {
- // Log transition
- if (toPage.isCancelledPage()) {
- atsLog.addLog(LogType.StateCancelled, stateMgr.getCurrentStateName(), completeOrCancelReason);
- } else {
- atsLog.addLog(LogType.StateComplete, stateMgr.getCurrentStateName(),
- (completeOrCancelReason != null ? completeOrCancelReason : ""));
- }
- atsLog.addLog(LogType.StateEntered, toStateName, "");
-
- stateMgr.transitionHelper(toAssignees, persist, fromPage, toPage, toStateName, completeOrCancelReason);
-
- if (isValidationRequired() && isTeamWorkflow()) {
- ReviewManager.createValidateReview((TeamWorkFlowArtifact) this, false, transaction);
- }
-
- AtsNotifyUsers.getInstance().notify(this, AtsNotifyUsers.NotifyType.Subscribed,
- AtsNotifyUsers.NotifyType.Completed, AtsNotifyUsers.NotifyType.Completed);
-
- // Persist
- if (persist) {
- persist(transaction);
- }
-
- transitioned(fromPage, toPage, toAssignees, true, transaction);
-
- // Notify extension points of transition
- for (IAtsStateItem item : stateItems.getStateItems(fromPage.getId())) {
- item.transitioned(this, fromPage.getPageName(), toStateName, toAssignees, transaction);
- }
- for (IAtsStateItem item : stateItems.getStateItems(toPage.getId())) {
- item.transitioned(this, fromPage.getPageName(), toStateName, toAssignees, transaction);
- }
- }
-
- public SMAEditor getEditor() {
- return editor;
- }
-
- public void setEditor(SMAEditor editor) {
- this.editor = editor;
- }
-
- public AtsStateItems getStateItems() {
- return stateItems;
- }
-
- public boolean isInTransition() {
- return inTransition;
- }
-
- public void setInTransition(boolean inTransition) {
- this.inTransition = inTransition;
- }
-
- public DeadlineManager getDeadlineMgr() {
- return deadlineMgr;
- }
-
- public StateManager getStateMgr() {
- return stateMgr;
- }
-
- public boolean isTeamWorkflow() {
- return this instanceof TeamWorkFlowArtifact;
- }
-
- public boolean isTask() {
- return this instanceof TaskArtifact;
- }
-
- @Override
- public String getWorldViewGoalOrder() throws OseeCoreException {
- return GoalArtifact.getGoalOrder(this);
- }
-
- public AtsWorkPage getCurrentAtsWorkPage() throws OseeCoreException {
- for (AtsWorkPage atsWorkPage : getAtsWorkPages()) {
- if (isCurrentState(atsWorkPage.getName())) {
- return atsWorkPage;
- }
- }
- return null;
- }
-
- public List<AtsWorkPage> getAtsWorkPages() throws OseeCoreException {
- List<AtsWorkPage> atsWorkPages = new ArrayList<AtsWorkPage>();
- for (WorkPageDefinition workPageDefinition : getWorkFlowDefinition().getPagesOrdered()) {
- try {
- AtsWorkPage atsWorkPage =
- new AtsWorkPage(getWorkFlowDefinition(), workPageDefinition, null,
- ATSXWidgetOptionResolver.getInstance());
- atsWorkPages.add(atsWorkPage);
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- }
- return atsWorkPages;
- }
-
- /**
- * Assigned or computed Id that will show at the top of the editor
- */
- @SuppressWarnings("unused")
- public String getPcrId() throws OseeCoreException {
- return "";
- }
-
- public Map<String, String> getSMADetails() throws OseeCoreException {
- Map<String, String> details = Artifacts.getDetailsKeyValues(this);
- details.put("Workflow Definition", getWorkFlowDefinition().getName());
- if (getParentActionArtifact() != null) {
- details.put("Action Id", getParentActionArtifact().getHumanReadableId());
- }
- if (!(this instanceof TeamWorkFlowArtifact) && getParentTeamWorkflow() != null) {
- details.put("Parent Team Workflow Id", getParentTeamWorkflow().getHumanReadableId());
- }
- if (this.isOfType(AtsArtifactTypes.TeamWorkflow)) {
- String message = null;
- CmAccessControl accessControl = getAccessControl();
- if (accessControl != null) {
- Collection<? extends AccessContextId> ids = accessControl.getContextId(UserManager.getUser(), this);
- message = ids.toString();
- } else {
- message = "AtsCmAccessControlService not started";
- }
- details.put("Access Context Id", message);
- }
- return details;
- }
-
- protected void addPriviledgedUsersUpTeamDefinitionTree(TeamDefinitionArtifact tda, Set<User> users) throws OseeCoreException {
- users.addAll(tda.getLeads());
- users.addAll(tda.getPrivilegedMembers());
-
- // Walk up tree to get other editors
- if (tda.getParent() != null && tda.getParent() instanceof TeamDefinitionArtifact) {
- addPriviledgedUsersUpTeamDefinitionTree((TeamDefinitionArtifact) tda.getParent(), users);
- }
- }
-
- @Override
- public CmAccessControl getAccessControl() {
- return AtsPlugin.getInstance().getCmService();
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.artifact;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.nebula.widgets.xviewer.XViewerCells;
+import org.eclipse.osee.ats.artifact.ATSLog.LogType;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
+import org.eclipse.osee.ats.editor.SMAEditor;
+import org.eclipse.osee.ats.editor.stateItem.AtsStateItems;
+import org.eclipse.osee.ats.editor.stateItem.IAtsStateItem;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsArtifactTypes;
+import org.eclipse.osee.ats.util.AtsNotifyUsers;
+import org.eclipse.osee.ats.util.AtsRelationTypes;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.ats.util.DeadlineManager;
+import org.eclipse.osee.ats.util.Overview;
+import org.eclipse.osee.ats.util.Overview.PreviewStyle;
+import org.eclipse.osee.ats.util.StateManager;
+import org.eclipse.osee.ats.util.widgets.ReviewManager;
+import org.eclipse.osee.ats.workflow.ATSXWidgetOptionResolver;
+import org.eclipse.osee.ats.workflow.AtsWorkPage;
+import org.eclipse.osee.ats.workflow.item.AtsStatePercentCompleteWeightRule;
+import org.eclipse.osee.ats.workflow.item.AtsWorkDefinitions;
+import org.eclipse.osee.ats.world.IWorldViewArtifact;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.IArtifactType;
+import org.eclipse.osee.framework.core.data.SystemUser;
+import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
+import org.eclipse.osee.framework.core.enums.IRelationEnumeration;
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.core.services.CmAccessControl;
+import org.eclipse.osee.framework.core.services.HasCmAccessControl;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+import org.eclipse.osee.framework.ui.plugin.util.Result;
+import org.eclipse.osee.framework.ui.skynet.FrameworkArtifactImageProvider;
+import org.eclipse.osee.framework.ui.skynet.group.IGroupExplorerProvider;
+import org.eclipse.osee.framework.ui.skynet.notify.OseeNotificationManager;
+import org.eclipse.osee.framework.ui.skynet.util.ChangeType;
+import org.eclipse.osee.framework.ui.skynet.util.email.EmailGroup;
+import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkFlowDefinition;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkFlowDefinitionFactory;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkItemDefinition;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPageDefinition;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkRuleDefinition;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @author Donald G. Dunne
+ */
+public abstract class StateMachineArtifact extends ATSArtifact implements HasCmAccessControl, IGroupExplorerProvider, IWorldViewArtifact, ISubscribableArtifact, IFavoriteableArtifact {
+
+ private final Set<IRelationEnumeration> atsWorldRelations = new HashSet<IRelationEnumeration>();
+ private Collection<User> preSaveStateAssignees;
+ private User preSaveOriginator;
+ public static double DEFAULT_HOURS_PER_WORK_DAY = 8;
+ protected WorkFlowDefinition workFlowDefinition;
+ protected Artifact parent;
+ protected StateMachineArtifact parentSma;
+ protected TeamWorkFlowArtifact parentTeamArt;
+ protected ActionArtifact parentAction;
+ private Collection<User> transitionAssignees;
+ private static String SEPERATOR = "; ";
+ private StateManager stateMgr;
+ private DeadlineManager deadlineMgr;
+ private SMAEditor editor;
+ private ATSLog atsLog;
+ private ATSNote atsNote;
+ private static final AtsStateItems stateItems = new AtsStateItems();
+ private boolean inTransition = false;
+ public static enum TransitionOption {
+ None,
+ Persist,
+ // Override check whether workflow allows transition to state
+ OverrideTransitionValidityCheck,
+ // Allows transition to occur with UnAssigned, OseeSystem or Guest
+ OverrideAssigneeCheck
+ };
+
+ public StateMachineArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
+ super(parentFactory, guid, humanReadableId, branch, artifactType);
+ }
+
+ @Override
+ public void onBirth() throws OseeCoreException {
+ super.onBirth();
+ setSoleAttributeValue(AtsAttributeTypes.CurrentState, "");
+ }
+
+ @Override
+ public void onInitializationComplete() throws OseeCoreException {
+ super.onInitializationComplete();
+ initializeSMA();
+ }
+
+ @Override
+ public void reloadAttributesAndRelations() throws OseeCoreException {
+ super.reloadAttributesAndRelations();
+ initializeSMA();
+ }
+
+ @SuppressWarnings("unused")
+ protected void initializeSMA() throws OseeCoreException {
+ initalizePreSaveCache();
+ }
+
+ public void initalizePreSaveCache() {
+ try {
+ deadlineMgr = new DeadlineManager(this);
+ stateMgr = new StateManager(this);
+ atsLog = new ATSLog(this);
+ atsNote = new ATSNote(this);
+ preSaveStateAssignees = getStateMgr().getAssignees();
+ if (getOriginator() == null) {
+ preSaveOriginator = UserManager.getUser();
+ } else {
+ preSaveOriginator = getOriginator();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ public boolean hasAtsWorldChildren() throws OseeCoreException {
+ for (IRelationEnumeration iRelationEnumeration : atsWorldRelations) {
+ if (getRelatedArtifactsCount(iRelationEnumeration) > 0) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public String getHelpContext() {
+ return "atsWorkflowEditorWorkflowTab";
+ }
+
+ public String getArtifactSuperTypeName() {
+ return getArtifactTypeName();
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public Date getWorldViewDeadlineDate() throws OseeCoreException {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewDeadlineDateStr() throws OseeCoreException {
+ return "";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewDescription() throws OseeCoreException {
+ return "";
+ }
+
+ @Override
+ public String getWorldViewImplementer() throws OseeCoreException {
+ return Artifacts.toString("; ", getImplementers());
+ }
+
+ public Collection<User> getImplementersByState(String stateName) throws OseeCoreException {
+ if (isCancelled()) {
+ return Arrays.asList(getLog().getCancelledLogItem().getUser());
+ }
+ Collection<User> users = new HashSet<User>(getStateMgr().getAssignees(stateName));
+ LogItem item = getLog().getCompletedLogItem();
+ if (item != null) {
+ users.add(item.getUser());
+ }
+ return users;
+ }
+
+ @SuppressWarnings("unused")
+ public Collection<User> getImplementers() throws OseeCoreException {
+ return Collections.emptyList();
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getWorldViewTeam() throws OseeCoreException {
+ return null;
+ }
+
+ @Override
+ public String getWorldViewGroups() throws OseeCoreException {
+ return Artifacts.toString("; ", getRelatedArtifacts(CoreRelationTypes.Universal_Grouping__Group));
+ }
+
+ @Override
+ public String getWorldViewGoals() throws OseeCoreException {
+ return Artifacts.toString("; ", getRelatedArtifacts(AtsRelationTypes.Goal_Goal));
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public double getWorldViewWeeklyBenefit() throws OseeCoreException {
+ return 0;
+ }
+
+ @Override
+ public void onAttributePersist(SkynetTransaction transaction) {
+ // Since multiple ways exist to change the assignees, notification is performed on the persist
+ if (isDeleted()) {
+ return;
+ }
+ try {
+ notifyNewAssigneesAndReset();
+ notifyOriginatorAndReset();
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ /**
+ * Override to apply different algorithm to current section expansion.
+ *
+ * @param page
+ * @return true if section should be expanded
+ * @throws OseeCoreException
+ */
+ public boolean isCurrentSectionExpanded(String stateName) throws OseeCoreException {
+ return getStateMgr().getCurrentStateName().equals(stateName);
+ }
+
+ public void notifyNewAssigneesAndReset() throws OseeCoreException {
+ if (preSaveStateAssignees == null) {
+ preSaveStateAssignees = getStateMgr().getAssignees();
+ return;
+ }
+ Set<User> newAssignees = new HashSet<User>();
+ for (User user : getStateMgr().getAssignees()) {
+ if (!preSaveStateAssignees.contains(user)) {
+ newAssignees.add(user);
+ }
+ }
+ preSaveStateAssignees = getStateMgr().getAssignees();
+ if (newAssignees.isEmpty()) {
+ return;
+ }
+ try {
+ // These will be processed upon save
+ AtsNotifyUsers.getInstance().notify(this, newAssignees, AtsNotifyUsers.NotifyType.Assigned);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ public void notifyOriginatorAndReset() throws OseeCoreException {
+ if (preSaveOriginator != null && getOriginator() != null && !getOriginator().equals(preSaveOriginator)) {
+ AtsNotifyUsers.getInstance().notify(this, AtsNotifyUsers.NotifyType.Originator);
+ }
+ preSaveOriginator = getOriginator();
+ }
+
+ @SuppressWarnings("unused")
+ public boolean isValidationRequired() throws OseeCoreException {
+ return false;
+ }
+
+ public abstract Set<User> getPrivilegedUsers() throws OseeCoreException;
+
+ @Override
+ public String getDescription() {
+ return "";
+ }
+
+ public ArrayList<EmailGroup> getEmailableGroups() throws OseeCoreException {
+ ArrayList<EmailGroup> groupNames = new ArrayList<EmailGroup>();
+ ArrayList<String> emails = new ArrayList<String>();
+ emails.add(getOriginator().getEmail());
+ groupNames.add(new EmailGroup("Originator", emails));
+ if (getStateMgr().getAssignees().size() > 0) {
+ emails = new ArrayList<String>();
+ for (User u : getStateMgr().getAssignees()) {
+ emails.add(u.getEmail());
+ }
+ groupNames.add(new EmailGroup("Assignees", emails));
+ }
+ return groupNames;
+ }
+
+ @SuppressWarnings("unused")
+ public StateMachineArtifact getParentSMA() throws OseeCoreException {
+ return parentSma;
+ }
+
+ @SuppressWarnings("unused")
+ public ActionArtifact getParentActionArtifact() throws OseeCoreException {
+ return parentAction;
+ }
+
+ @SuppressWarnings("unused")
+ public TeamWorkFlowArtifact getParentTeamWorkflow() throws OseeCoreException {
+ return parentTeamArt;
+ }
+
+ public String getPreviewHtml() throws OseeCoreException {
+ return getPreviewHtml(PreviewStyle.NONE);
+ }
+
+ public String getPreviewHtml(PreviewStyle... styles) throws OseeCoreException {
+ Overview o = new Overview();
+ o.addHeader(this, styles);
+ o.addFooter(this, styles);
+ return o.getPage();
+ }
+
+ public boolean isUnCancellable() {
+ try {
+ LogItem item = getLog().getStateEvent(LogType.StateCancelled);
+ if (item == null) {
+ throw new OseeArgumentException("No Cancelled Event");
+ }