Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateReviewParticipationReport.java232
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GoalSearchWorkflowSearchItem.java384
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java602
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/PublishFullVersionReportItem.java268
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java716
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java80
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagementProvider.java88
-rw-r--r--plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessControlProviderImpl.java112
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project68
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java52
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java118
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java116
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java112
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/ArtifactDataProvider.java82
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeDslAccessModel.java148
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/RestrictionHandler.java48
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF40
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java268
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java454
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java214
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java106
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java106
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java160
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java146
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java108
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java114
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java364
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java490
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java5842
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java160
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java560
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java166
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java106
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java162
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java176
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java592
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java162
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java162
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java216
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java196
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java88
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java508
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java382
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java752
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java582
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java352
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java352
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java484
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java478
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java362
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java364
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java966
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java966
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java2988
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java94
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java472
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java94
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java496
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java352
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java474
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java558
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java1408
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java496
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java474
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java584
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java616
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java338
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java962
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java1152
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java1328
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/mocks/MockAccessDetailCollector.java68
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java40
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessModel.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockBundleContext.java298
-rw-r--r--plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockServiceReference.java74
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/AbstractServiceBinder.java266
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/MultiServiceBinder.java60
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/ServiceBinderFactoryImpl.java96
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/OsgiUtil.java82
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBindType.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBinderFactory.java38
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java236
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeDataTest.java106
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeTestSuite.java50
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/EnglishLanguageTest.java212
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/LanguageTestSuite.java50
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/EngineAsserts.java182
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/TagCollector.java62
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.java114
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/WordOrderMatcherTest.java158
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/ILanguage.java42
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java138
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggingManagerServiceRegHandler.java158
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineRegHandler.java130
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.java134
-rw-r--r--plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/language/EnglishLanguage.java262
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/EventSystemPreferences.java192
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/FrameworkEventToRemoteEvent2Listener.java706
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/JiniSkynetEventServiceLookup.java414
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/LegacyRemoteEventReceiver.java952
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/ResMessagingConnectionListener.java124
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/SkynetTransactionAccessServiceHandler.java128
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/StoreSkynetTransactionOperation.java420
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AlphabeticalRelationComparator.java86
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactContentProvider.java296
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecorator.java808
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecoratorPreferences.java132
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDoubleClick.java134
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDragDropSupport.java396
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java3132
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactImageManager.java670
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactLabelProvider.java204
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactValidationCheckOperation.java156
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java270
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeLabelProvider.java134
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributesComposite.java678
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/ExpandAllAction.java160
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/RefreshAction.java90
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactNameConflictHandler.java92
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPasteOperation.java262
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactSaveNotificationHandler.java194
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/NonBlankAndNotSameAsStartingValidator.java70
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactEditorLoopbackCmd.java204
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/AbstractEventArtifactEditor.java420
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java504
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorActionBarContributor.java554
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/BaseArtifactEditorInput.java188
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IActionContributor.java42
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IArtifactEditorEventHandler.java46
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/pages/ArtifactFormPage.java506
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java550
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/MessageSummaryNote.java306
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/ArtifactEditorFormSection.java74
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributeTypeUtil.java148
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributesFormSection.java264
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/DetailsFormSection.java202
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/RelationsFormSection.java304
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/IMassViewerEventHandler.java24
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassArtifactEditor.java598
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.java686
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerEventManager.java166
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerFactory.java106
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/IOseeAtsService.java50
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/OseeEditor.java38
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java264
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamContributionManager.java220
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditorActionBarContributor.java158
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ChangeArtifactTypeBlam.java96
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/CheckDefaulHierarchy.java126
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelations.java100
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatabaseHealth.java320
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExperimentalBlam.java84
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExtractReqPriority.java178
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/FixTemplateContentArtifacts.java744
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ImageCaptureBlam.java184
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/LoadAllArtifactsOnBranch.java92
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ParseWindowsDirectoryListing.java136
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateTxsBranchIdColumn.java202
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java392
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeTransactionBlam.java116
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ReportAttributeTypesUsageBlam.java132
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java918
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/SetRequirementCategory.java270
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java136
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UpdateArtifactTypeImage.java180
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BaseBlamSection.java92
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java276
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamOutputSection.java306
171 files changed, 29844 insertions, 29844 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateReviewParticipationReport.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateReviewParticipationReport.java
index fa6ee755330..9b209257a12 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateReviewParticipationReport.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GenerateReviewParticipationReport.java
@@ -1,116 +1,116 @@
-/*******************************************************************************
- * 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.navigate;
-
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.xviewer.column.XViewerReviewRoleColumn;
-import org.eclipse.osee.ats.util.xviewer.column.XViewerSmaCompletedDateColumn;
-import org.eclipse.osee.ats.util.xviewer.column.XViewerSmaStateColumn;
-import org.eclipse.osee.ats.world.WorldXViewerFactory;
-import org.eclipse.osee.ats.world.search.MyReviewWorkflowItem;
-import org.eclipse.osee.ats.world.search.MyReviewWorkflowItem.ReviewState;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.skynet.core.User;
-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.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItemAction;
-import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditorInput;
-import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.UserListDialog;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.SkynetXViewerFactory;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactNameColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactTypeColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerGuidColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerHridColumn;
-import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * Donald G. Dunne
- */
-public class GenerateReviewParticipationReport extends XNavigateItemAction {
-
- private static final String MASS_XVIEWER_CUSTOMIZE_NAMESPACE = "org.eclipse.osee.ats.ReviewParticipationReport";
-
- public GenerateReviewParticipationReport(XNavigateItem parent) {
- super(parent, "Generate Review Participation Report", AtsImage.REPORT);
- }
-
- @Override
- public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
- UserListDialog ld = new UserListDialog(Displays.getActiveShell());
- int result = ld.open();
- if (result == 0) {
- if (ld.getResult().length == 0) {
- AWorkbench.popup("ERROR", "Must select user");
- return;
- }
- User selectedUser = ld.getSelection();
- ParticipationReportJob job =
- new ParticipationReportJob("Review Participation Report - " + selectedUser, selectedUser);
- job.setUser(true);
- job.setPriority(Job.LONG);
- job.schedule();
- }
- }
-
- private static class ParticipationReportJob extends Job {
-
- private final User user;
-
- public ParticipationReportJob(String title, User user) {
- super(title);
- this.user = user;
- }
-
- @Override
- public IStatus run(IProgressMonitor monitor) {
- try {
- MyReviewWorkflowItem srch = new MyReviewWorkflowItem("", user, ReviewState.All);
- Collection<Artifact> reviewArts = srch.performSearchGetResults();
- MassArtifactEditorInput input =
- new MassArtifactEditorInput(getName() + " as of " + XDate.getDateNow(), reviewArts,
- new ReviewParticipationXViewerFactory(user));
- MassArtifactEditor.editArtifacts(input);
- } catch (Exception ex) {
- return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, -1, ex.toString(), ex);
- }
- monitor.done();
- return Status.OK_STATUS;
- }
- }
-
- public static class ReviewParticipationXViewerFactory extends SkynetXViewerFactory {
-
- public ReviewParticipationXViewerFactory(User user) {
- super(MASS_XVIEWER_CUSTOMIZE_NAMESPACE);
- registerColumns(new XViewerArtifactTypeColumn(true));
- registerColumns(new XViewerHridColumn());
- registerColumns(WorldXViewerFactory.Legacy_PCR_Col);
- registerColumns(new XViewerSmaStateColumn());
- registerColumns(new XViewerSmaCompletedDateColumn("Completed"));
- registerColumns(new XViewerReviewRoleColumn(user));
- registerColumns(WorldXViewerFactory.Related_To_State_Col);
- registerColumns(new XViewerArtifactNameColumn(true));
- registerColumns(new XViewerGuidColumn(true));
- registerAllAttributeColumns();
- }
-
- }
-}
+/*******************************************************************************
+ * 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.navigate;
+
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.xviewer.column.XViewerReviewRoleColumn;
+import org.eclipse.osee.ats.util.xviewer.column.XViewerSmaCompletedDateColumn;
+import org.eclipse.osee.ats.util.xviewer.column.XViewerSmaStateColumn;
+import org.eclipse.osee.ats.world.WorldXViewerFactory;
+import org.eclipse.osee.ats.world.search.MyReviewWorkflowItem;
+import org.eclipse.osee.ats.world.search.MyReviewWorkflowItem.ReviewState;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.skynet.core.User;
+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.plugin.xnavigate.XNavigateItem;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItemAction;
+import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditorInput;
+import org.eclipse.osee.framework.ui.skynet.widgets.XDate;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.UserListDialog;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.SkynetXViewerFactory;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactNameColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactTypeColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerGuidColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerHridColumn;
+import org.eclipse.osee.framework.ui.swt.Displays;
+
+/**
+ * Donald G. Dunne
+ */
+public class GenerateReviewParticipationReport extends XNavigateItemAction {
+
+ private static final String MASS_XVIEWER_CUSTOMIZE_NAMESPACE = "org.eclipse.osee.ats.ReviewParticipationReport";
+
+ public GenerateReviewParticipationReport(XNavigateItem parent) {
+ super(parent, "Generate Review Participation Report", AtsImage.REPORT);
+ }
+
+ @Override
+ public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
+ UserListDialog ld = new UserListDialog(Displays.getActiveShell());
+ int result = ld.open();
+ if (result == 0) {
+ if (ld.getResult().length == 0) {
+ AWorkbench.popup("ERROR", "Must select user");
+ return;
+ }
+ User selectedUser = ld.getSelection();
+ ParticipationReportJob job =
+ new ParticipationReportJob("Review Participation Report - " + selectedUser, selectedUser);
+ job.setUser(true);
+ job.setPriority(Job.LONG);
+ job.schedule();
+ }
+ }
+
+ private static class ParticipationReportJob extends Job {
+
+ private final User user;
+
+ public ParticipationReportJob(String title, User user) {
+ super(title);
+ this.user = user;
+ }
+
+ @Override
+ public IStatus run(IProgressMonitor monitor) {
+ try {
+ MyReviewWorkflowItem srch = new MyReviewWorkflowItem("", user, ReviewState.All);
+ Collection<Artifact> reviewArts = srch.performSearchGetResults();
+ MassArtifactEditorInput input =
+ new MassArtifactEditorInput(getName() + " as of " + XDate.getDateNow(), reviewArts,
+ new ReviewParticipationXViewerFactory(user));
+ MassArtifactEditor.editArtifacts(input);
+ } catch (Exception ex) {
+ return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, -1, ex.toString(), ex);
+ }
+ monitor.done();
+ return Status.OK_STATUS;
+ }
+ }
+
+ public static class ReviewParticipationXViewerFactory extends SkynetXViewerFactory {
+
+ public ReviewParticipationXViewerFactory(User user) {
+ super(MASS_XVIEWER_CUSTOMIZE_NAMESPACE);
+ registerColumns(new XViewerArtifactTypeColumn(true));
+ registerColumns(new XViewerHridColumn());
+ registerColumns(WorldXViewerFactory.Legacy_PCR_Col);
+ registerColumns(new XViewerSmaStateColumn());
+ registerColumns(new XViewerSmaCompletedDateColumn("Completed"));
+ registerColumns(new XViewerReviewRoleColumn(user));
+ registerColumns(WorldXViewerFactory.Related_To_State_Col);
+ registerColumns(new XViewerArtifactNameColumn(true));
+ registerColumns(new XViewerGuidColumn(true));
+ registerAllAttributeColumns();
+ }
+
+ }
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GoalSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GoalSearchWorkflowSearchItem.java
index e3d33a84ed9..35bea6bba66 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GoalSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/GoalSearchWorkflowSearchItem.java
@@ -1,192 +1,192 @@
-/*******************************************************************************
- * 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.navigate;
-
-import java.util.Collection;
-import java.util.logging.Level;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
-import org.eclipse.osee.ats.artifact.VersionArtifact;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.widgets.XHyperlabelTeamDefinitionSelection;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.ats.world.WorldEditorParameterSearchItem;
-import org.eclipse.osee.ats.world.search.GoalSearchItem;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-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.artifact.Artifact;
-import org.eclipse.osee.framework.ui.plugin.util.Result;
-import org.eclipse.osee.framework.ui.skynet.widgets.XCheckBox;
-import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Donald G. Dunne
- */
-public class GoalSearchWorkflowSearchItem extends WorldEditorParameterSearchItem {
-
- private XHyperlabelTeamDefinitionSelection teamCombo = null;
- private XMembersCombo assigneeCombo;
- private XCheckBox includeCompletedCancelledCheckbox;
-
- public GoalSearchWorkflowSearchItem(String name) {
- super(name, AtsImage.GOAL);
- }
-
- public GoalSearchWorkflowSearchItem() {
- this("Goal Search");
- }
-
- public GoalSearchWorkflowSearchItem(GoalSearchWorkflowSearchItem goalWorkflowSearchItem) {
- super(goalWorkflowSearchItem, AtsImage.GOAL);
- }
-
- @Override
- public GoalSearchWorkflowSearchItem copy() {
- return new GoalSearchWorkflowSearchItem(this);
- }
-
- @Override
- public GoalSearchWorkflowSearchItem copyProvider() {
- return new GoalSearchWorkflowSearchItem(this);
- }
-
- @Override
- public String getParameterXWidgetXml() {
- return "<xWidgets>" +
- //
- "<XWidget xwidgetType=\"XHyperlabelTeamDefinitionSelection\" displayName=\"Team Definitions(s)\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XMembersCombo\" displayName=\"Assignee\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Include Completed/Cancelled\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\"/>" +
- //
- "</xWidgets>";
- }
-
- @Override
- public Collection<? extends Artifact> performSearchGetResults(SearchType searchType) throws OseeCoreException {
- return new GoalSearchItem("", getSelectedTeamDefinitions(), isIncludeCompletedCancelledCheckbox(),
- getSelectedUser()).performSearchGetResults(false);
- }
-
- @Override
- public String getSelectedName(SearchType searchType) {
- StringBuffer sb = new StringBuffer();
- Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
- if (teamDefs.size() > 0) {
- sb.append(" - Teams: " + org.eclipse.osee.framework.jdk.core.util.Collections.toString(",", teamDefs));
- }
- if (getSelectedUser() != null) {
- sb.append(" - Assignee: " + getSelectedUser());
- }
- if (isIncludeCompletedCancelledCheckbox()) {
- sb.append(" - Include Completed/Cancelled");
- }
- return Strings.truncate("Goals" + sb.toString(), WorldEditor.TITLE_MAX_LENGTH, true);
- }
-
- @Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
- if (widget.getLabel().equals("Assignee")) {
- assigneeCombo = (XMembersCombo) widget;
- }
- if (widget.getLabel().equals("Include Completed/Cancelled")) {
- includeCompletedCancelledCheckbox = (XCheckBox) widget;
- }
- if (widget.getLabel().equals("Team Definitions(s)")) {
- teamCombo = (XHyperlabelTeamDefinitionSelection) widget;
- }
- }
-
- private User getSelectedUser() {
- if (assigneeCombo == null) {
- return null;
- }
- return assigneeCombo.getUser();
- }
-
- public void setSelectedUser(User user) {
- if (assigneeCombo != null) {
- assigneeCombo.set(user);
- }
- }
-
- private boolean isIncludeCompletedCancelledCheckbox() {
- if (includeCompletedCancelledCheckbox == null) {
- return false;
- }
- return includeCompletedCancelledCheckbox.isSelected();
- }
-
- public void includeCompletedCancelledCheckbox(boolean selected) {
- if (includeCompletedCancelledCheckbox != null) {
- includeCompletedCancelledCheckbox.set(selected);
- }
- }
-
- public Collection<TeamDefinitionArtifact> getSelectedTeamDefinitions() {
- if (teamCombo == null) {
- return java.util.Collections.emptyList();
- }
- return teamCombo.getSelectedTeamDefintions();
- }
-
- public void setSelectedTeamDefinitions(Collection<TeamDefinitionArtifact> selectedTeamDefs) {
- if (teamCombo != null) {
- teamCombo.setSelectedTeamDefs(selectedTeamDefs);
- teamCombo.notifyXModifiedListeners();
- }
- }
-
- @Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
- // do nothing
- }
-
- @Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
- // do nothing
- }
-
- @Override
- public Result isParameterSelectionValid() {
- try {
- User user = getSelectedUser();
- boolean includeCompleted = isIncludeCompletedCancelledCheckbox();
- if (user != null && includeCompleted) {
- return new Result("Assignee and Include Completed are not compatible selections.");
- }
- return Result.TrueResult;
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return new Result("Exception: " + ex.getLocalizedMessage());
- }
- }
-
- @Override
- public IDynamicWidgetLayoutListener getDynamicWidgetLayoutListener() {
- return null;
- }
-
- @Override
- public VersionArtifact getTargetedVersionArtifact() {
- return null;
- }
-
-}
+/*******************************************************************************
+ * 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.navigate;
+
+import java.util.Collection;
+import java.util.logging.Level;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
+import org.eclipse.osee.ats.artifact.VersionArtifact;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.widgets.XHyperlabelTeamDefinitionSelection;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.ats.world.WorldEditorParameterSearchItem;
+import org.eclipse.osee.ats.world.search.GoalSearchItem;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+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.artifact.Artifact;
+import org.eclipse.osee.framework.ui.plugin.util.Result;
+import org.eclipse.osee.framework.ui.skynet.widgets.XCheckBox;
+import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class GoalSearchWorkflowSearchItem extends WorldEditorParameterSearchItem {
+
+ private XHyperlabelTeamDefinitionSelection teamCombo = null;
+ private XMembersCombo assigneeCombo;
+ private XCheckBox includeCompletedCancelledCheckbox;
+
+ public GoalSearchWorkflowSearchItem(String name) {
+ super(name, AtsImage.GOAL);
+ }
+
+ public GoalSearchWorkflowSearchItem() {
+ this("Goal Search");
+ }
+
+ public GoalSearchWorkflowSearchItem(GoalSearchWorkflowSearchItem goalWorkflowSearchItem) {
+ super(goalWorkflowSearchItem, AtsImage.GOAL);
+ }
+
+ @Override
+ public GoalSearchWorkflowSearchItem copy() {
+ return new GoalSearchWorkflowSearchItem(this);
+ }
+
+ @Override
+ public GoalSearchWorkflowSearchItem copyProvider() {
+ return new GoalSearchWorkflowSearchItem(this);
+ }
+
+ @Override
+ public String getParameterXWidgetXml() {
+ return "<xWidgets>" +
+ //
+ "<XWidget xwidgetType=\"XHyperlabelTeamDefinitionSelection\" displayName=\"Team Definitions(s)\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XMembersCombo\" displayName=\"Assignee\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Include Completed/Cancelled\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\"/>" +
+ //
+ "</xWidgets>";
+ }
+
+ @Override
+ public Collection<? extends Artifact> performSearchGetResults(SearchType searchType) throws OseeCoreException {
+ return new GoalSearchItem("", getSelectedTeamDefinitions(), isIncludeCompletedCancelledCheckbox(),
+ getSelectedUser()).performSearchGetResults(false);
+ }
+
+ @Override
+ public String getSelectedName(SearchType searchType) {
+ StringBuffer sb = new StringBuffer();
+ Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
+ if (teamDefs.size() > 0) {
+ sb.append(" - Teams: " + org.eclipse.osee.framework.jdk.core.util.Collections.toString(",", teamDefs));
+ }
+ if (getSelectedUser() != null) {
+ sb.append(" - Assignee: " + getSelectedUser());
+ }
+ if (isIncludeCompletedCancelledCheckbox()) {
+ sb.append(" - Include Completed/Cancelled");
+ }
+ return Strings.truncate("Goals" + sb.toString(), WorldEditor.TITLE_MAX_LENGTH, true);
+ }
+
+ @Override
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ if (widget.getLabel().equals("Assignee")) {
+ assigneeCombo = (XMembersCombo) widget;
+ }
+ if (widget.getLabel().equals("Include Completed/Cancelled")) {
+ includeCompletedCancelledCheckbox = (XCheckBox) widget;
+ }
+ if (widget.getLabel().equals("Team Definitions(s)")) {
+ teamCombo = (XHyperlabelTeamDefinitionSelection) widget;
+ }
+ }
+
+ private User getSelectedUser() {
+ if (assigneeCombo == null) {
+ return null;
+ }
+ return assigneeCombo.getUser();
+ }
+
+ public void setSelectedUser(User user) {
+ if (assigneeCombo != null) {
+ assigneeCombo.set(user);
+ }
+ }
+
+ private boolean isIncludeCompletedCancelledCheckbox() {
+ if (includeCompletedCancelledCheckbox == null) {
+ return false;
+ }
+ return includeCompletedCancelledCheckbox.isSelected();
+ }
+
+ public void includeCompletedCancelledCheckbox(boolean selected) {
+ if (includeCompletedCancelledCheckbox != null) {
+ includeCompletedCancelledCheckbox.set(selected);
+ }
+ }
+
+ public Collection<TeamDefinitionArtifact> getSelectedTeamDefinitions() {
+ if (teamCombo == null) {
+ return java.util.Collections.emptyList();
+ }
+ return teamCombo.getSelectedTeamDefintions();
+ }
+
+ public void setSelectedTeamDefinitions(Collection<TeamDefinitionArtifact> selectedTeamDefs) {
+ if (teamCombo != null) {
+ teamCombo.setSelectedTeamDefs(selectedTeamDefs);
+ teamCombo.notifyXModifiedListeners();
+ }
+ }
+
+ @Override
+ public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ // do nothing
+ }
+
+ @Override
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ // do nothing
+ }
+
+ @Override
+ public Result isParameterSelectionValid() {
+ try {
+ User user = getSelectedUser();
+ boolean includeCompleted = isIncludeCompletedCancelledCheckbox();
+ if (user != null && includeCompleted) {
+ return new Result("Assignee and Include Completed are not compatible selections.");
+ }
+ return Result.TrueResult;
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ return new Result("Exception: " + ex.getLocalizedMessage());
+ }
+ }
+
+ @Override
+ public IDynamicWidgetLayoutListener getDynamicWidgetLayoutListener() {
+ return null;
+ }
+
+ @Override
+ public VersionArtifact getTargetedVersionArtifact() {
+ return null;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java
index 7f29dab8591..2f4692d0acb 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/NavigateView.java
@@ -1,304 +1,304 @@
-/*******************************************************************************
- * 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.navigate;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IRegistryEventListener;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.osee.ats.actions.MyFavoritesAction;
-import org.eclipse.osee.ats.actions.MyWorldAction;
-import org.eclipse.osee.ats.actions.NewAction;
-import org.eclipse.osee.ats.actions.NewGoal;
-import org.eclipse.osee.ats.actions.OpenChangeReportByIdAction;
-import org.eclipse.osee.ats.actions.OpenWorkflowByIdAction;
-import org.eclipse.osee.ats.actions.OpenWorldByIdAction;
-import org.eclipse.osee.ats.config.AtsBulkLoad;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsUtil;
-import org.eclipse.osee.framework.core.client.ClientSessionManager;
-import org.eclipse.osee.framework.core.operation.CompositeOperation;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.IActionable;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.skynet.OseeContributionItem;
-import org.eclipse.osee.framework.ui.skynet.action.CollapseAllAction;
-import org.eclipse.osee.framework.ui.skynet.action.ExpandAllAction;
-import org.eclipse.osee.framework.ui.skynet.notify.OseeNotificationManager;
-import org.eclipse.osee.framework.ui.skynet.util.DbConnectionExceptionComposite;
-import org.eclipse.osee.framework.ui.skynet.util.LoadingComposite;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.DisposeEvent;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.ui.progress.UIJob;
-
-/**
- * @author Donald G. Dunne
- */
-public class NavigateView extends ViewPart implements IActionable {
-
- public static final String VIEW_ID = "org.eclipse.osee.ats.navigate.NavigateView";
- public static final String HELP_CONTEXT_ID = "atsNavigator";
- private AtsNavigateComposite xNavComp;
- private final boolean includeCompleteCancelled = false;
- private Composite parent;
- private LoadingComposite loadingComposite;
-
- @Override
- public void createPartControl(Composite parent) {
- this.parent = parent;
- loadingComposite = new LoadingComposite(parent);
- refreshData();
- }
-
- public void refreshData() {
- List<IOperation> ops = new ArrayList<IOperation>();
- ops.add(AtsBulkLoad.getConfigLoadingOperation());
- ops.add(new AtsNavigateViewItemsOperation());
+/*******************************************************************************
+ * 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.navigate;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IRegistryEventListener;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.osee.ats.actions.MyFavoritesAction;
+import org.eclipse.osee.ats.actions.MyWorldAction;
+import org.eclipse.osee.ats.actions.NewAction;
+import org.eclipse.osee.ats.actions.NewGoal;
+import org.eclipse.osee.ats.actions.OpenChangeReportByIdAction;
+import org.eclipse.osee.ats.actions.OpenWorkflowByIdAction;
+import org.eclipse.osee.ats.actions.OpenWorldByIdAction;
+import org.eclipse.osee.ats.config.AtsBulkLoad;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsUtil;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.core.operation.CompositeOperation;
+import org.eclipse.osee.framework.core.operation.IOperation;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.plugin.core.IActionable;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
+import org.eclipse.osee.framework.ui.skynet.OseeContributionItem;
+import org.eclipse.osee.framework.ui.skynet.action.CollapseAllAction;
+import org.eclipse.osee.framework.ui.skynet.action.ExpandAllAction;
+import org.eclipse.osee.framework.ui.skynet.notify.OseeNotificationManager;
+import org.eclipse.osee.framework.ui.skynet.util.DbConnectionExceptionComposite;
+import org.eclipse.osee.framework.ui.skynet.util.LoadingComposite;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.IMemento;
+import org.eclipse.ui.IViewSite;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.ViewPart;
+import org.eclipse.ui.progress.UIJob;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class NavigateView extends ViewPart implements IActionable {
+
+ public static final String VIEW_ID = "org.eclipse.osee.ats.navigate.NavigateView";
+ public static final String HELP_CONTEXT_ID = "atsNavigator";
+ private AtsNavigateComposite xNavComp;
+ private final boolean includeCompleteCancelled = false;
+ private Composite parent;
+ private LoadingComposite loadingComposite;
+
+ @Override
+ public void createPartControl(Composite parent) {
+ this.parent = parent;
+ loadingComposite = new LoadingComposite(parent);
+ refreshData();
+ }
+
+ public void refreshData() {
+ List<IOperation> ops = new ArrayList<IOperation>();
+ ops.add(AtsBulkLoad.getConfigLoadingOperation());
+ ops.add(new AtsNavigateViewItemsOperation());
IOperation operation = new CompositeOperation("Load ATS Navigator", AtsPlugin.PLUGIN_ID, ops);
- Operations.executeAsJob(operation, false, Job.LONG, new ReloadJobChangeAdapter(this));
- }
-
- private final class ReloadJobChangeAdapter extends JobChangeAdapter {
-
- private final NavigateView navView;
-
- private ReloadJobChangeAdapter(NavigateView navView) {
- this.navView = navView;
- }
-
- @Override
- public void scheduled(IJobChangeEvent event) {
- super.scheduled(event);
- }
-
- @Override
- public void aboutToRun(IJobChangeEvent event) {
- super.aboutToRun(event);
- }
-
- @Override
- public void done(IJobChangeEvent event) {
- super.done(event);
- Job job = new UIJob("Load ATS Navigator") {
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- try {
- showBusy(false);
- if (!DbConnectionExceptionComposite.dbConnectionIsOk(parent)) {
- return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, "Navigate View - !dbConnectionIsOk");
- }
-
- if (Widgets.isAccessible(loadingComposite)) {
- loadingComposite.dispose();
- }
- xNavComp = new AtsNavigateComposite(AtsNavigateViewItems.getInstance(), parent, SWT.NONE);
-
- AtsPlugin.getInstance().setHelp(xNavComp, HELP_CONTEXT_ID, "org.eclipse.osee.ats.help.ui");
- createToolBar();
-
- // add search text box
- AtsQuickSearchComposite composite = new AtsQuickSearchComposite(xNavComp, SWT.NONE);
- composite.addDisposeListener(new DisposeListener() {
-
- @Override
- public void widgetDisposed(DisposeEvent e) {
- OseeNotificationManager.getInstance().sendNotifications();
- }
- });
-
- if (savedFilterStr != null) {
- xNavComp.getFilteredTree().getFilterControl().setText(savedFilterStr);
- }
- xNavComp.refresh();
- xNavComp.getFilteredTree().getFilterControl().setFocus();
-
- Label label = new Label(xNavComp, SWT.None);
- String str = getWhoAmI();
- if (AtsUtil.isAtsAdmin()) {
- str += " - Admin";
- }
- if (!str.equals("")) {
- if (AtsUtil.isAtsAdmin()) {
- label.setForeground(Displays.getSystemColor(SWT.COLOR_RED));
- } else {
- label.setForeground(Displays.getSystemColor(SWT.COLOR_BLUE));
- }
- }
- label.setText(str);
- label.setToolTipText(str);
- GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_CENTER);
- gridData.heightHint = 15;
- label.setLayoutData(gridData);
-
- OseeContributionItem.addTo(navView, false);
- xNavComp.layout();
-
- addExtensionPointListenerBecauseOfWorkspaceLoading();
-
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- }
- return Status.OK_STATUS;
- }
- };
- Operations.scheduleJob(job, false, Job.SHORT, null);
- }
- }
-
- private void addExtensionPointListenerBecauseOfWorkspaceLoading() {
- IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
- extensionRegistry.addListener(new IRegistryEventListener() {
- @Override
- public void added(IExtension[] extensions) {
- xNavComp.refresh();
- }
-
- @Override
- public void added(IExtensionPoint[] extensionPoints) {
- xNavComp.refresh();
- }
-
- @Override
- public void removed(IExtension[] extensions) {
- xNavComp.refresh();
- }
-
- @Override
- public void removed(IExtensionPoint[] extensionPoints) {
- xNavComp.refresh();
- }
- }, "org.eclipse.osee.framework.ui.skynet.BlamOperation");
- }
-
- public boolean isIncludeCompleteCancelled() {
- return includeCompleteCancelled;
- }
-
- private String getWhoAmI() {
- try {
- String userName = UserManager.getUser().getName();
- return String.format("%s - %s:%s", userName, ClientSessionManager.getDataStoreName(),
- ClientSessionManager.getDataStoreLoginName());
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return "Exception: " + ex.getLocalizedMessage();
- }
- }
-
- protected void createToolBar() {
- IToolBarManager toolbarManager = getViewSite().getActionBars().getToolBarManager();
- toolbarManager.add(new MyWorldAction());
- toolbarManager.add(new MyFavoritesAction());
- toolbarManager.add(new CollapseAllAction(xNavComp.getFilteredTree().getViewer()));
- toolbarManager.add(new ExpandAllAction(xNavComp.getFilteredTree().getViewer()));
- toolbarManager.add(new OpenChangeReportByIdAction());
- toolbarManager.add(new OpenWorldByIdAction());
- toolbarManager.add(new OpenWorkflowByIdAction());
- toolbarManager.add(new NewAction());
- getViewSite().getActionBars().updateActionBars();
-
- IActionBars bars = getViewSite().getActionBars();
- IMenuManager mm = bars.getMenuManager();
- mm.add(new NewAction());
- mm.add(new NewGoal());
- mm.add(OseeUiActions.createBugAction(AtsPlugin.getInstance(), this, VIEW_ID, "ATS Navigator"));
-
- toolbarManager.update(true);
- }
-
- public static NavigateView getNavigateView() {
- IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- try {
- return (NavigateView) page.showView(NavigateView.VIEW_ID);
- } catch (PartInitException e1) {
- MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Launch Error",
- "Couldn't Launch OSEE ATS NavigateView " + e1.getMessage());
- }
- return null;
- }
-
- @Override
- public String getActionDescription() {
- IStructuredSelection sel = (IStructuredSelection) xNavComp.getFilteredTree().getViewer().getSelection();
- if (sel.iterator().hasNext()) {
- return String.format("Currently Selected - %s", ((XNavigateItem) sel.iterator().next()).getName());
- }
- return "";
- }
-
- private static final String INPUT = "filter";
- private static final String FILTER_STR = "filterStr";
-
- @Override
- public void saveState(IMemento memento) {
- super.saveState(memento);
- memento = memento.createChild(INPUT);
-
- if (xNavComp != null && xNavComp.getFilteredTree().getFilterControl() != null && !xNavComp.getFilteredTree().isDisposed()) {
- String filterStr = xNavComp.getFilteredTree().getFilterControl().getText();
- memento.putString(FILTER_STR, filterStr);
- }
- }
- private String savedFilterStr = null;
-
- @Override
- public void init(IViewSite site, IMemento memento) throws PartInitException {
- super.init(site, memento);
- try {
- if (memento != null) {
- memento = memento.getChild(INPUT);
- if (memento != null) {
- savedFilterStr = memento.getString(FILTER_STR);
- }
- }
- } catch (Exception ex) {
+ Operations.executeAsJob(operation, false, Job.LONG, new ReloadJobChangeAdapter(this));
+ }
+
+ private final class ReloadJobChangeAdapter extends JobChangeAdapter {
+
+ private final NavigateView navView;
+
+ private ReloadJobChangeAdapter(NavigateView navView) {
+ this.navView = navView;
+ }
+
+ @Override
+ public void scheduled(IJobChangeEvent event) {
+ super.scheduled(event);
+ }
+
+ @Override
+ public void aboutToRun(IJobChangeEvent event) {
+ super.aboutToRun(event);
+ }
+
+ @Override
+ public void done(IJobChangeEvent event) {
+ super.done(event);
+ Job job = new UIJob("Load ATS Navigator") {
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ try {
+ showBusy(false);
+ if (!DbConnectionExceptionComposite.dbConnectionIsOk(parent)) {
+ return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, "Navigate View - !dbConnectionIsOk");
+ }
+
+ if (Widgets.isAccessible(loadingComposite)) {
+ loadingComposite.dispose();
+ }
+ xNavComp = new AtsNavigateComposite(AtsNavigateViewItems.getInstance(), parent, SWT.NONE);
+
+ AtsPlugin.getInstance().setHelp(xNavComp, HELP_CONTEXT_ID, "org.eclipse.osee.ats.help.ui");
+ createToolBar();
+
+ // add search text box
+ AtsQuickSearchComposite composite = new AtsQuickSearchComposite(xNavComp, SWT.NONE);
+ composite.addDisposeListener(new DisposeListener() {
+
+ @Override
+ public void widgetDisposed(DisposeEvent e) {
+ OseeNotificationManager.getInstance().sendNotifications();
+ }
+ });
+
+ if (savedFilterStr != null) {
+ xNavComp.getFilteredTree().getFilterControl().setText(savedFilterStr);
+ }
+ xNavComp.refresh();
+ xNavComp.getFilteredTree().getFilterControl().setFocus();
+
+ Label label = new Label(xNavComp, SWT.None);
+ String str = getWhoAmI();
+ if (AtsUtil.isAtsAdmin()) {
+ str += " - Admin";
+ }
+ if (!str.equals("")) {
+ if (AtsUtil.isAtsAdmin()) {
+ label.setForeground(Displays.getSystemColor(SWT.COLOR_RED));
+ } else {
+ label.setForeground(Displays.getSystemColor(SWT.COLOR_BLUE));
+ }
+ }
+ label.setText(str);
+ label.setToolTipText(str);
+ GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_CENTER);
+ gridData.heightHint = 15;
+ label.setLayoutData(gridData);
+
+ OseeContributionItem.addTo(navView, false);
+ xNavComp.layout();
+
+ addExtensionPointListenerBecauseOfWorkspaceLoading();
+
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ return Status.OK_STATUS;
+ }
+ };
+ Operations.scheduleJob(job, false, Job.SHORT, null);
+ }
+ }
+
+ private void addExtensionPointListenerBecauseOfWorkspaceLoading() {
+ IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
+ extensionRegistry.addListener(new IRegistryEventListener() {
+ @Override
+ public void added(IExtension[] extensions) {
+ xNavComp.refresh();
+ }
+
+ @Override
+ public void added(IExtensionPoint[] extensionPoints) {
+ xNavComp.refresh();
+ }
+
+ @Override
+ public void removed(IExtension[] extensions) {
+ xNavComp.refresh();
+ }
+
+ @Override
+ public void removed(IExtensionPoint[] extensionPoints) {
+ xNavComp.refresh();
+ }
+ }, "org.eclipse.osee.framework.ui.skynet.BlamOperation");
+ }
+
+ public boolean isIncludeCompleteCancelled() {
+ return includeCompleteCancelled;
+ }
+
+ private String getWhoAmI() {
+ try {
+ String userName = UserManager.getUser().getName();
+ return String.format("%s - %s:%s", userName, ClientSessionManager.getDataStoreName(),
+ ClientSessionManager.getDataStoreLoginName());
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ return "Exception: " + ex.getLocalizedMessage();
+ }
+ }
+
+ protected void createToolBar() {
+ IToolBarManager toolbarManager = getViewSite().getActionBars().getToolBarManager();
+ toolbarManager.add(new MyWorldAction());
+ toolbarManager.add(new MyFavoritesAction());
+ toolbarManager.add(new CollapseAllAction(xNavComp.getFilteredTree().getViewer()));
+ toolbarManager.add(new ExpandAllAction(xNavComp.getFilteredTree().getViewer()));
+ toolbarManager.add(new OpenChangeReportByIdAction());
+ toolbarManager.add(new OpenWorldByIdAction());
+ toolbarManager.add(new OpenWorkflowByIdAction());
+ toolbarManager.add(new NewAction());
+ getViewSite().getActionBars().updateActionBars();
+
+ IActionBars bars = getViewSite().getActionBars();
+ IMenuManager mm = bars.getMenuManager();
+ mm.add(new NewAction());
+ mm.add(new NewGoal());
+ mm.add(OseeUiActions.createBugAction(AtsPlugin.getInstance(), this, VIEW_ID, "ATS Navigator"));
+
+ toolbarManager.update(true);
+ }
+
+ public static NavigateView getNavigateView() {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ try {
+ return (NavigateView) page.showView(NavigateView.VIEW_ID);
+ } catch (PartInitException e1) {
+ MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Launch Error",
+ "Couldn't Launch OSEE ATS NavigateView " + e1.getMessage());
+ }
+ return null;
+ }
+
+ @Override
+ public String getActionDescription() {
+ IStructuredSelection sel = (IStructuredSelection) xNavComp.getFilteredTree().getViewer().getSelection();
+ if (sel.iterator().hasNext()) {
+ return String.format("Currently Selected - %s", ((XNavigateItem) sel.iterator().next()).getName());
+ }
+ return "";
+ }
+
+ private static final String INPUT = "filter";
+ private static final String FILTER_STR = "filterStr";
+
+ @Override
+ public void saveState(IMemento memento) {
+ super.saveState(memento);
+ memento = memento.createChild(INPUT);
+
+ if (xNavComp != null && xNavComp.getFilteredTree().getFilterControl() != null && !xNavComp.getFilteredTree().isDisposed()) {
+ String filterStr = xNavComp.getFilteredTree().getFilterControl().getText();
+ memento.putString(FILTER_STR, filterStr);
+ }
+ }
+ private String savedFilterStr = null;
+
+ @Override
+ public void init(IViewSite site, IMemento memento) throws PartInitException {
+ super.init(site, memento);
+ try {
+ if (memento != null) {
+ memento = memento.getChild(INPUT);
+ if (memento != null) {
+ savedFilterStr = memento.getString(FILTER_STR);
+ }
+ }
+ } catch (Exception ex) {
OseeLog.log(AtsPlugin.class, Level.WARNING, "NavigateView error on init", ex);
- }
- }
-
- @Override
- public void setFocus() {
- // do nothing
- }
-
+ }
+ }
+
+ @Override
+ public void setFocus() {
+ // do nothing
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/PublishFullVersionReportItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/PublishFullVersionReportItem.java
index 3ded2b6fa3b..8f2d079dcac 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/PublishFullVersionReportItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/PublishFullVersionReportItem.java
@@ -1,134 +1,134 @@
-/*******************************************************************************
- * 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.navigate;
-
-import java.io.File;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
-import org.eclipse.osee.ats.config.AtsCacheManager;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.AtsArtifactTypes;
-import org.eclipse.osee.ats.util.VersionReportJob;
-import org.eclipse.osee.ats.util.widgets.dialog.TeamDefinitionDialog;
-import org.eclipse.osee.framework.core.enums.Active;
-import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-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.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItemAction;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.program.Program;
-import org.eclipse.swt.widgets.FileDialog;
-
-/**
- * @author Donald G. Dunne
- */
-public class PublishFullVersionReportItem extends XNavigateItemAction {
-
- private final TeamDefinitionArtifact teamDef;
- private final String publishToFilename;
- private final String teamDefName;
-
- public PublishFullVersionReportItem(XNavigateItem parent, String name, TeamDefinitionArtifact teamDef, String publishToFilename) {
- super(parent, name);
- this.teamDef = teamDef;
- this.teamDefName = null;
- this.publishToFilename = publishToFilename;
- }
-
- public PublishFullVersionReportItem(XNavigateItem parent, String name, String teamDefName, String publishToFilename) {
- super(parent, name);
- this.teamDefName = teamDefName;
- this.teamDef = null;
- this.publishToFilename = publishToFilename;
- }
-
- public PublishFullVersionReportItem(XNavigateItem parent) {
- this(parent, "Publish Full Version Report", (String) null, null);
- }
-
- @Override
- public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
- String usePublishToFilename = publishToFilename;
- if (usePublishToFilename == null) {
- final FileDialog dialog = new FileDialog(Displays.getActiveShell().getShell(), SWT.SAVE);
- dialog.setFilterExtensions(new String[] {"*.html"});
- usePublishToFilename = dialog.open();
- if (usePublishToFilename == null) {
- return;
- }
- }
- TeamDefinitionArtifact useTeamDef = teamDef;
- if (useTeamDef == null && teamDefName != null) {
- try {
- useTeamDef =
- (TeamDefinitionArtifact) AtsCacheManager.getSoleArtifactByName(
- ArtifactTypeManager.getType(AtsArtifactTypes.TeamDefinition), teamDefName);
- } catch (ArtifactDoesNotExist ex) {
- // do nothing, going to get team below
- }
- }
- if (useTeamDef == null) {
- TeamDefinitionDialog ld = new TeamDefinitionDialog("Select Team", "Select Team");
- ld.setInput(TeamDefinitionArtifact.getTeamDefinitions(Active.Both));
- int result = ld.open();
- if (result == 0) {
- useTeamDef = (TeamDefinitionArtifact) ld.getResult()[0];
- } else {
- return;
- }
- } else if (!MessageDialog.openConfirm(Displays.getActiveShell(), getName(), getName())) {
- return;
- }
-
- String title = useTeamDef.getName() + " Version Report";
- PublishReportJob job = new PublishReportJob(title, teamDef, usePublishToFilename);
- job.setUser(true);
- job.setPriority(Job.LONG);
- job.schedule();
- }
-
- private static class PublishReportJob extends Job {
-
- private final TeamDefinitionArtifact teamDef;
- private final String filename;
-
- public PublishReportJob(String title, TeamDefinitionArtifact teamDef, String filename) {
- super(title);
- this.teamDef = teamDef;
- this.filename = filename;
- }
-
- @Override
- public IStatus run(IProgressMonitor monitor) {
- try {
- String html = VersionReportJob.getFullReleaseReport(teamDef, monitor);
- Lib.writeStringToFile(html, new File(filename));
- Program.launch(filename);
- AWorkbench.popup("Publish Complete", "Data Published To \"" + filename + "\"");
- } catch (Exception ex) {
- return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, -1, ex.toString(), ex);
- }
-
- monitor.done();
- return Status.OK_STATUS;
- }
- }
-
-}
+/*******************************************************************************
+ * 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.navigate;
+
+import java.io.File;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
+import org.eclipse.osee.ats.config.AtsCacheManager;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.AtsArtifactTypes;
+import org.eclipse.osee.ats.util.VersionReportJob;
+import org.eclipse.osee.ats.util.widgets.dialog.TeamDefinitionDialog;
+import org.eclipse.osee.framework.core.enums.Active;
+import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+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.plugin.xnavigate.XNavigateItem;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItemAction;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.program.Program;
+import org.eclipse.swt.widgets.FileDialog;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class PublishFullVersionReportItem extends XNavigateItemAction {
+
+ private final TeamDefinitionArtifact teamDef;
+ private final String publishToFilename;
+ private final String teamDefName;
+
+ public PublishFullVersionReportItem(XNavigateItem parent, String name, TeamDefinitionArtifact teamDef, String publishToFilename) {
+ super(parent, name);
+ this.teamDef = teamDef;
+ this.teamDefName = null;
+ this.publishToFilename = publishToFilename;
+ }
+
+ public PublishFullVersionReportItem(XNavigateItem parent, String name, String teamDefName, String publishToFilename) {
+ super(parent, name);
+ this.teamDefName = teamDefName;
+ this.teamDef = null;
+ this.publishToFilename = publishToFilename;
+ }
+
+ public PublishFullVersionReportItem(XNavigateItem parent) {
+ this(parent, "Publish Full Version Report", (String) null, null);
+ }
+
+ @Override
+ public void run(TableLoadOption... tableLoadOptions) throws OseeCoreException {
+ String usePublishToFilename = publishToFilename;
+ if (usePublishToFilename == null) {
+ final FileDialog dialog = new FileDialog(Displays.getActiveShell().getShell(), SWT.SAVE);
+ dialog.setFilterExtensions(new String[] {"*.html"});
+ usePublishToFilename = dialog.open();
+ if (usePublishToFilename == null) {
+ return;
+ }
+ }
+ TeamDefinitionArtifact useTeamDef = teamDef;
+ if (useTeamDef == null && teamDefName != null) {
+ try {
+ useTeamDef =
+ (TeamDefinitionArtifact) AtsCacheManager.getSoleArtifactByName(
+ ArtifactTypeManager.getType(AtsArtifactTypes.TeamDefinition), teamDefName);
+ } catch (ArtifactDoesNotExist ex) {
+ // do nothing, going to get team below
+ }
+ }
+ if (useTeamDef == null) {
+ TeamDefinitionDialog ld = new TeamDefinitionDialog("Select Team", "Select Team");
+ ld.setInput(TeamDefinitionArtifact.getTeamDefinitions(Active.Both));
+ int result = ld.open();
+ if (result == 0) {
+ useTeamDef = (TeamDefinitionArtifact) ld.getResult()[0];
+ } else {
+ return;
+ }
+ } else if (!MessageDialog.openConfirm(Displays.getActiveShell(), getName(), getName())) {
+ return;
+ }
+
+ String title = useTeamDef.getName() + " Version Report";
+ PublishReportJob job = new PublishReportJob(title, teamDef, usePublishToFilename);
+ job.setUser(true);
+ job.setPriority(Job.LONG);
+ job.schedule();
+ }
+
+ private static class PublishReportJob extends Job {
+
+ private final TeamDefinitionArtifact teamDef;
+ private final String filename;
+
+ public PublishReportJob(String title, TeamDefinitionArtifact teamDef, String filename) {
+ super(title);
+ this.teamDef = teamDef;
+ this.filename = filename;
+ }
+
+ @Override
+ public IStatus run(IProgressMonitor monitor) {
+ try {
+ String html = VersionReportJob.getFullReleaseReport(teamDef, monitor);
+ Lib.writeStringToFile(html, new File(filename));
+ Program.launch(filename);
+ AWorkbench.popup("Publish Complete", "Data Published To \"" + filename + "\"");
+ } catch (Exception ex) {
+ return new Status(IStatus.ERROR, AtsPlugin.PLUGIN_ID, -1, ex.toString(), ex);
+ }
+
+ monitor.done();
+ return Status.OK_STATUS;
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
index b11f540299a..174911d48de 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
@@ -1,358 +1,358 @@
-/*******************************************************************************
- * 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.navigate;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.osee.ats.AtsImage;
-import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
-import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
-import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
-import org.eclipse.osee.ats.artifact.VersionArtifact;
-import org.eclipse.osee.ats.artifact.VersionArtifact.VersionReleaseType;
-import org.eclipse.osee.ats.internal.AtsPlugin;
-import org.eclipse.osee.ats.util.widgets.ReviewManager;
-import org.eclipse.osee.ats.util.widgets.XHyperlabelTeamDefinitionSelection;
-import org.eclipse.osee.ats.world.WorldEditor;
-import org.eclipse.osee.ats.world.WorldEditorParameterSearchItem;
-import org.eclipse.osee.ats.world.search.TeamWorldSearchItem;
-import org.eclipse.osee.ats.world.search.TeamWorldSearchItem.ReleasedOption;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-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.artifact.Artifact;
-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.widgets.XCheckBox;
-import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
-import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Donald G. Dunne
- */
-public class TeamWorkflowSearchWorkflowSearchItem extends WorldEditorParameterSearchItem {
-
- protected XHyperlabelTeamDefinitionSelection teamCombo = null;
- protected XCombo releasedCombo = null;
- protected XCombo versionCombo = null;
- protected XMembersCombo assigneeCombo;
- protected XCheckBox includeCompletedCancelledCheckbox;
- protected XCheckBox showFlatCheckbox;
-
- public TeamWorkflowSearchWorkflowSearchItem(String name) {
- super(name, AtsImage.TEAM_WORKFLOW);
- }
-
- public TeamWorkflowSearchWorkflowSearchItem() {
- this("Team Workflow Search");
- }
-
- public TeamWorkflowSearchWorkflowSearchItem(TeamWorkflowSearchWorkflowSearchItem editTeamWorkflowSearchItem) {
- super(editTeamWorkflowSearchItem, AtsImage.TEAM_WORKFLOW);
- }
-
- @Override
- public TeamWorkflowSearchWorkflowSearchItem copy() {
- return new TeamWorkflowSearchWorkflowSearchItem(this);
- }
-
- @Override
- public TeamWorkflowSearchWorkflowSearchItem copyProvider() {
- return new TeamWorkflowSearchWorkflowSearchItem(this);
- }
-
- @SuppressWarnings("unused")
- @Override
- public String getParameterXWidgetXml() throws OseeCoreException {
- return "<xWidgets>" +
- //
- "<XWidget xwidgetType=\"XHyperlabelTeamDefinitionSelection\" displayName=\"Team Definitions(s)\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XCombo()\" beginComposite=\"10\" displayName=\"Version\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XCombo(Both,Released,UnReleased)\" displayName=\"Released\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XMembersCombo\" displayName=\"Assignee\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Include Completed/Cancelled\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\"/>" +
- //
- "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Show Flat\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\" toolTip=\"Show Tasks/Reviews flattened instead of hierarchcial\"/>" +
- //
- "</xWidgets>";
- }
-
- @Override
- public Collection<? extends Artifact> performSearchGetResults(SearchType searchType) throws OseeCoreException {
- Collection<Artifact> artifacts =
- new TeamWorldSearchItem("", getSelectedTeamDefinitions(), isIncludeCompletedCancelledCheckbox(), false, false,
- getSelectedVersionArtifact(), getSelectedUser(), getSelectedReleased()).performSearchGetResults(false);
- return filterShowFlat(artifacts);
- }
-
- protected Collection<? extends Artifact> filterShowFlat(Collection<Artifact> artifacts) throws OseeCoreException {
- if (!isShowFlatCheckbox()) {
- return artifacts;
- }
- Set<Artifact> results = new HashSet<Artifact>(artifacts);
- for (Artifact artifact : artifacts) {
- if (artifact instanceof TaskableStateMachineArtifact) {
- results.addAll(((TaskableStateMachineArtifact) artifact).getTaskArtifacts());
- }
- if (artifact instanceof TeamWorkFlowArtifact) {
- results.addAll(ReviewManager.getReviews((TeamWorkFlowArtifact) artifact));
- }
- }
- return results;
- }
-
- @Override
- public String getSelectedName(SearchType searchType) throws OseeCoreException {
- StringBuffer sb = new StringBuffer();
- Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
- if (teamDefs.size() > 0) {
- sb.append(" - Teams: " + org.eclipse.osee.framework.jdk.core.util.Collections.toString(",", teamDefs));
- }
- if (getSelectedVersionArtifact() != null) {
- sb.append(" - Version: " + getSelectedVersionArtifact());
- }
- ReleasedOption releaseOption = getSelectedReleased();
- if (releaseOption != null && releaseOption != ReleasedOption.Both) {
- sb.append(" - ReleasedOption: " + releaseOption);
- }
- if (getSelectedUser() != null) {
- sb.append(" - Assignee: " + getSelectedUser());
- }
- if (isIncludeCompletedCancelledCheckbox()) {
- sb.append(" - Include Completed/Cancelled");
- }
- return Strings.truncate(getName() + sb.toString(), WorldEditor.TITLE_MAX_LENGTH, true);
- }
-
- @SuppressWarnings("unused")
- @Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
- if (widget.getLabel().equals("Assignee")) {
- assigneeCombo = (XMembersCombo) widget;
- }
- if (widget.getLabel().equals("Include Completed/Cancelled")) {
- includeCompletedCancelledCheckbox = (XCheckBox) widget;
- }
- if (widget.getLabel().equals("Show Flat")) {
- showFlatCheckbox = (XCheckBox) widget;
- }
- if (widget.getLabel().equals("Version")) {
- versionCombo = (XCombo) widget;
- versionCombo.getComboBox().setVisibleItemCount(25);
- widget.setToolTip("Select Team to populate Version list");
- }
- if (widget.getLabel().equals("Released")) {
- releasedCombo = (XCombo) widget;
- }
- if (widget.getLabel().equals("Team Definitions(s)")) {
- teamCombo = (XHyperlabelTeamDefinitionSelection) widget;
- teamCombo.addXModifiedListener(new XModifiedListener() {
- @Override
- public void widgetModified(XWidget widget) {
- if (versionCombo != null) {
- try {
- Collection<TeamDefinitionArtifact> teamDefArts = getSelectedTeamDefinitions();
- if (teamDefArts.isEmpty()) {
- versionCombo.setDataStrings(new String[] {});
- return;
- }
- TeamDefinitionArtifact teamDefHoldingVersions =
- teamDefArts.iterator().next().getTeamDefinitionHoldingVersions();
- if (teamDefHoldingVersions == null) {
- versionCombo.setDataStrings(new String[] {});
- return;
- }
- Collection<String> names =
- Artifacts.artNames(teamDefHoldingVersions.getVersionsArtifacts(VersionReleaseType.Both));
- if (names.isEmpty()) {
- versionCombo.setDataStrings(new String[] {});
- return;
- }
- versionCombo.setDataStrings(names.toArray(new String[names.size()]));
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
- });
- }
- }
-
- protected User getSelectedUser() {
- if (assigneeCombo == null) {
- return null;
- }
- return assigneeCombo.getUser();
- }
-
- public void setSelectedUser(User user) {
- if (assigneeCombo != null) {
- assigneeCombo.set(user);
- }
- }
-
- protected boolean isIncludeCompletedCancelledCheckbox() {
- if (includeCompletedCancelledCheckbox == null) {
- return false;
- }
- return includeCompletedCancelledCheckbox.isSelected();
- }
-
- public void includeCompletedCancelledCheckbox(boolean selected) {
- if (includeCompletedCancelledCheckbox != null) {
- includeCompletedCancelledCheckbox.set(selected);
- }
- }
-
- protected boolean isShowFlatCheckbox() {
- if (showFlatCheckbox == null) {
- return false;
- }
- return showFlatCheckbox.isSelected();
- }
-
- public void includeShowFlatCheckbox(boolean selected) {
- if (showFlatCheckbox != null) {
- showFlatCheckbox.set(selected);
- }
- }
-
- protected VersionArtifact getSelectedVersionArtifact() throws OseeCoreException {
- if (versionCombo == null) {
- return null;
- }
- String versionStr = versionCombo.get();
- if (!Strings.isValid(versionStr)) {
- return null;
- }
- Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
- if (teamDefs.size() > 0) {
- TeamDefinitionArtifact teamDefHoldingVersions = teamDefs.iterator().next().getTeamDefinitionHoldingVersions();
- if (teamDefHoldingVersions == null) {
- return null;
- }
- for (VersionArtifact versionArtifact : teamDefHoldingVersions.getVersionsArtifacts(VersionReleaseType.Both)) {
- if (versionArtifact.getName().equals(versionStr)) {
- return versionArtifact;
- }
- }
- }
- return null;
- }
-
- public void setVersion(String versionStr) {
- if (versionCombo != null && versionCombo.getInDataStrings() != null) {
- // should check if the version combo was populated
- if (versionCombo.getInDataStrings().length > 0) {
- versionCombo.set(versionStr);
- }
- }
- }
-
- public Collection<TeamDefinitionArtifact> getSelectedTeamDefinitions() {
- if (teamCombo == null) {
- return java.util.Collections.emptyList();
- }
- return teamCombo.getSelectedTeamDefintions();
- }
-
- public void setSelectedTeamDefinitions(Collection<TeamDefinitionArtifact> selectedTeamDefs) {
- if (teamCombo != null) {
- teamCombo.setSelectedTeamDefs(selectedTeamDefs);
- teamCombo.notifyXModifiedListeners();
- }
- }
-
- protected ReleasedOption getSelectedReleased() {
- if (releasedCombo == null || !Strings.isValid(releasedCombo.get())) {
- return ReleasedOption.Both;
- }
- return ReleasedOption.valueOf(releasedCombo.get());
- }
-
- public void setSelectedReleased(ReleasedOption option) {
- if (releasedCombo != null) {
- releasedCombo.set(option.toString());
- }
- }
-
- @Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
- // do nothing
- }
-
- @Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
- // do nothing
- }
-
- @SuppressWarnings("unused")
- @Override
- public Result isParameterSelectionValid() throws OseeCoreException {
- try {
- boolean selected = false;
- Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
- if (teamDefs.size() > 0) {
- selected = true;
- }
- VersionArtifact verArt = getSelectedVersionArtifact();
- if (verArt != null) {
- selected = true;
- }
- User user = getSelectedUser();
- if (user != null) {
- selected = true;
- }
- boolean includeCompleted = isIncludeCompletedCancelledCheckbox();
- if (!selected) {
- return new Result("You must select at least Team, Version or Assignee.");
- }
- if (user != null && includeCompleted) {
- return new Result("Assignee and Include Completed are not compatible selections.");
- }
- if (user != null && includeCompleted && verArt == null && teamDefs.isEmpty()) {
- return new Result("You must select at least Team or Version with Include Completed.");
- }
- return Result.TrueResult;
- } catch (Exception ex) {
- OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
- return new Result("Exception: " + ex.getLocalizedMessage());
- }
- }
-
- @Override
- public IDynamicWidgetLayoutListener getDynamicWidgetLayoutListener() {
- return null;
- }
-
- @Override
- public VersionArtifact getTargetedVersionArtifact() throws OseeCoreException {
- if (versionCombo == null) {
- return null;
- }
- return getSelectedVersionArtifact();
- }
-
-}
+/*******************************************************************************
+ * 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.navigate;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.osee.ats.AtsImage;
+import org.eclipse.osee.ats.artifact.TaskableStateMachineArtifact;
+import org.eclipse.osee.ats.artifact.TeamDefinitionArtifact;
+import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact;
+import org.eclipse.osee.ats.artifact.VersionArtifact;
+import org.eclipse.osee.ats.artifact.VersionArtifact.VersionReleaseType;
+import org.eclipse.osee.ats.internal.AtsPlugin;
+import org.eclipse.osee.ats.util.widgets.ReviewManager;
+import org.eclipse.osee.ats.util.widgets.XHyperlabelTeamDefinitionSelection;
+import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.ats.world.WorldEditorParameterSearchItem;
+import org.eclipse.osee.ats.world.search.TeamWorldSearchItem;
+import org.eclipse.osee.ats.world.search.TeamWorldSearchItem.ReleasedOption;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+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.artifact.Artifact;
+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.widgets.XCheckBox;
+import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
+import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class TeamWorkflowSearchWorkflowSearchItem extends WorldEditorParameterSearchItem {
+
+ protected XHyperlabelTeamDefinitionSelection teamCombo = null;
+ protected XCombo releasedCombo = null;
+ protected XCombo versionCombo = null;
+ protected XMembersCombo assigneeCombo;
+ protected XCheckBox includeCompletedCancelledCheckbox;
+ protected XCheckBox showFlatCheckbox;
+
+ public TeamWorkflowSearchWorkflowSearchItem(String name) {
+ super(name, AtsImage.TEAM_WORKFLOW);
+ }
+
+ public TeamWorkflowSearchWorkflowSearchItem() {
+ this("Team Workflow Search");
+ }
+
+ public TeamWorkflowSearchWorkflowSearchItem(TeamWorkflowSearchWorkflowSearchItem editTeamWorkflowSearchItem) {
+ super(editTeamWorkflowSearchItem, AtsImage.TEAM_WORKFLOW);
+ }
+
+ @Override
+ public TeamWorkflowSearchWorkflowSearchItem copy() {
+ return new TeamWorkflowSearchWorkflowSearchItem(this);
+ }
+
+ @Override
+ public TeamWorkflowSearchWorkflowSearchItem copyProvider() {
+ return new TeamWorkflowSearchWorkflowSearchItem(this);
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public String getParameterXWidgetXml() throws OseeCoreException {
+ return "<xWidgets>" +
+ //
+ "<XWidget xwidgetType=\"XHyperlabelTeamDefinitionSelection\" displayName=\"Team Definitions(s)\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XCombo()\" beginComposite=\"10\" displayName=\"Version\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XCombo(Both,Released,UnReleased)\" displayName=\"Released\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XMembersCombo\" displayName=\"Assignee\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Include Completed/Cancelled\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\"/>" +
+ //
+ "<XWidget xwidgetType=\"XCheckBox\" displayName=\"Show Flat\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\" toolTip=\"Show Tasks/Reviews flattened instead of hierarchcial\"/>" +
+ //
+ "</xWidgets>";
+ }
+
+ @Override
+ public Collection<? extends Artifact> performSearchGetResults(SearchType searchType) throws OseeCoreException {
+ Collection<Artifact> artifacts =
+ new TeamWorldSearchItem("", getSelectedTeamDefinitions(), isIncludeCompletedCancelledCheckbox(), false, false,
+ getSelectedVersionArtifact(), getSelectedUser(), getSelectedReleased()).performSearchGetResults(false);
+ return filterShowFlat(artifacts);
+ }
+
+ protected Collection<? extends Artifact> filterShowFlat(Collection<Artifact> artifacts) throws OseeCoreException {
+ if (!isShowFlatCheckbox()) {
+ return artifacts;
+ }
+ Set<Artifact> results = new HashSet<Artifact>(artifacts);
+ for (Artifact artifact : artifacts) {
+ if (artifact instanceof TaskableStateMachineArtifact) {
+ results.addAll(((TaskableStateMachineArtifact) artifact).getTaskArtifacts());
+ }
+ if (artifact instanceof TeamWorkFlowArtifact) {
+ results.addAll(ReviewManager.getReviews((TeamWorkFlowArtifact) artifact));
+ }
+ }
+ return results;
+ }
+
+ @Override
+ public String getSelectedName(SearchType searchType) throws OseeCoreException {
+ StringBuffer sb = new StringBuffer();
+ Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
+ if (teamDefs.size() > 0) {
+ sb.append(" - Teams: " + org.eclipse.osee.framework.jdk.core.util.Collections.toString(",", teamDefs));
+ }
+ if (getSelectedVersionArtifact() != null) {
+ sb.append(" - Version: " + getSelectedVersionArtifact());
+ }
+ ReleasedOption releaseOption = getSelectedReleased();
+ if (releaseOption != null && releaseOption != ReleasedOption.Both) {
+ sb.append(" - ReleasedOption: " + releaseOption);
+ }
+ if (getSelectedUser() != null) {
+ sb.append(" - Assignee: " + getSelectedUser());
+ }
+ if (isIncludeCompletedCancelledCheckbox()) {
+ sb.append(" - Include Completed/Cancelled");
+ }
+ return Strings.truncate(getName() + sb.toString(), WorldEditor.TITLE_MAX_LENGTH, true);
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ if (widget.getLabel().equals("Assignee")) {
+ assigneeCombo = (XMembersCombo) widget;
+ }
+ if (widget.getLabel().equals("Include Completed/Cancelled")) {
+ includeCompletedCancelledCheckbox = (XCheckBox) widget;
+ }
+ if (widget.getLabel().equals("Show Flat")) {
+ showFlatCheckbox = (XCheckBox) widget;
+ }
+ if (widget.getLabel().equals("Version")) {
+ versionCombo = (XCombo) widget;
+ versionCombo.getComboBox().setVisibleItemCount(25);
+ widget.setToolTip("Select Team to populate Version list");
+ }
+ if (widget.getLabel().equals("Released")) {
+ releasedCombo = (XCombo) widget;
+ }
+ if (widget.getLabel().equals("Team Definitions(s)")) {
+ teamCombo = (XHyperlabelTeamDefinitionSelection) widget;
+ teamCombo.addXModifiedListener(new XModifiedListener() {
+ @Override
+ public void widgetModified(XWidget widget) {
+ if (versionCombo != null) {
+ try {
+ Collection<TeamDefinitionArtifact> teamDefArts = getSelectedTeamDefinitions();
+ if (teamDefArts.isEmpty()) {
+ versionCombo.setDataStrings(new String[] {});
+ return;
+ }
+ TeamDefinitionArtifact teamDefHoldingVersions =
+ teamDefArts.iterator().next().getTeamDefinitionHoldingVersions();
+ if (teamDefHoldingVersions == null) {
+ versionCombo.setDataStrings(new String[] {});
+ return;
+ }
+ Collection<String> names =
+ Artifacts.artNames(teamDefHoldingVersions.getVersionsArtifacts(VersionReleaseType.Both));
+ if (names.isEmpty()) {
+ versionCombo.setDataStrings(new String[] {});
+ return;
+ }
+ versionCombo.setDataStrings(names.toArray(new String[names.size()]));
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+ });
+ }
+ }
+
+ protected User getSelectedUser() {
+ if (assigneeCombo == null) {
+ return null;
+ }
+ return assigneeCombo.getUser();
+ }
+
+ public void setSelectedUser(User user) {
+ if (assigneeCombo != null) {
+ assigneeCombo.set(user);
+ }
+ }
+
+ protected boolean isIncludeCompletedCancelledCheckbox() {
+ if (includeCompletedCancelledCheckbox == null) {
+ return false;
+ }
+ return includeCompletedCancelledCheckbox.isSelected();
+ }
+
+ public void includeCompletedCancelledCheckbox(boolean selected) {
+ if (includeCompletedCancelledCheckbox != null) {
+ includeCompletedCancelledCheckbox.set(selected);
+ }
+ }
+
+ protected boolean isShowFlatCheckbox() {
+ if (showFlatCheckbox == null) {
+ return false;
+ }
+ return showFlatCheckbox.isSelected();
+ }
+
+ public void includeShowFlatCheckbox(boolean selected) {
+ if (showFlatCheckbox != null) {
+ showFlatCheckbox.set(selected);
+ }
+ }
+
+ protected VersionArtifact getSelectedVersionArtifact() throws OseeCoreException {
+ if (versionCombo == null) {
+ return null;
+ }
+ String versionStr = versionCombo.get();
+ if (!Strings.isValid(versionStr)) {
+ return null;
+ }
+ Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
+ if (teamDefs.size() > 0) {
+ TeamDefinitionArtifact teamDefHoldingVersions = teamDefs.iterator().next().getTeamDefinitionHoldingVersions();
+ if (teamDefHoldingVersions == null) {
+ return null;
+ }
+ for (VersionArtifact versionArtifact : teamDefHoldingVersions.getVersionsArtifacts(VersionReleaseType.Both)) {
+ if (versionArtifact.getName().equals(versionStr)) {
+ return versionArtifact;
+ }
+ }
+ }
+ return null;
+ }
+
+ public void setVersion(String versionStr) {
+ if (versionCombo != null && versionCombo.getInDataStrings() != null) {
+ // should check if the version combo was populated
+ if (versionCombo.getInDataStrings().length > 0) {
+ versionCombo.set(versionStr);
+ }
+ }
+ }
+
+ public Collection<TeamDefinitionArtifact> getSelectedTeamDefinitions() {
+ if (teamCombo == null) {
+ return java.util.Collections.emptyList();
+ }
+ return teamCombo.getSelectedTeamDefintions();
+ }
+
+ public void setSelectedTeamDefinitions(Collection<TeamDefinitionArtifact> selectedTeamDefs) {
+ if (teamCombo != null) {
+ teamCombo.setSelectedTeamDefs(selectedTeamDefs);
+ teamCombo.notifyXModifiedListeners();
+ }
+ }
+
+ protected ReleasedOption getSelectedReleased() {
+ if (releasedCombo == null || !Strings.isValid(releasedCombo.get())) {
+ return ReleasedOption.Both;
+ }
+ return ReleasedOption.valueOf(releasedCombo.get());
+ }
+
+ public void setSelectedReleased(ReleasedOption option) {
+ if (releasedCombo != null) {
+ releasedCombo.set(option.toString());
+ }
+ }
+
+ @Override
+ public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ // do nothing
+ }
+
+ @Override
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ // do nothing
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public Result isParameterSelectionValid() throws OseeCoreException {
+ try {
+ boolean selected = false;
+ Collection<TeamDefinitionArtifact> teamDefs = getSelectedTeamDefinitions();
+ if (teamDefs.size() > 0) {
+ selected = true;
+ }
+ VersionArtifact verArt = getSelectedVersionArtifact();
+ if (verArt != null) {
+ selected = true;
+ }
+ User user = getSelectedUser();
+ if (user != null) {
+ selected = true;
+ }
+ boolean includeCompleted = isIncludeCompletedCancelledCheckbox();
+ if (!selected) {
+ return new Result("You must select at least Team, Version or Assignee.");
+ }
+ if (user != null && includeCompleted) {
+ return new Result("Assignee and Include Completed are not compatible selections.");
+ }
+ if (user != null && includeCompleted && verArt == null && teamDefs.isEmpty()) {
+ return new Result("You must select at least Team or Version with Include Completed.");
+ }
+ return Result.TrueResult;
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ return new Result("Exception: " + ex.getLocalizedMessage());
+ }
+ }
+
+ @Override
+ public IDynamicWidgetLayoutListener getDynamicWidgetLayoutListener() {
+ return null;
+ }
+
+ @Override
+ public VersionArtifact getTargetedVersionArtifact() throws OseeCoreException {
+ if (versionCombo == null) {
+ return null;
+ }
+ return getSelectedVersionArtifact();
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
index cd741cd5dea..28bd3b08a8c 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.framework.access.test.mocks;
-
-import java.util.Collection;
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.core.model.access.AccessModel;
-import org.eclipse.osee.framework.core.model.access.HasAccessModel;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockCMWithAccessModel extends MockConfigurationManagement implements HasAccessModel {
-
- private final AccessModel accessModel;
- private boolean wasGetAccessModelCalled;
-
- public MockCMWithAccessModel(AccessModel accessModel, IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<AccessContextId> contextIds) {
- super(expectedUser, expectedObject, isApplicable, contextIds);
- this.accessModel = accessModel;
- }
-
- @Override
- public AccessModel getAccessModel() {
- this.wasGetAccessModelCalled = true;
- return accessModel;
- }
-
- public boolean wasAccessModelCalled() {
- return wasGetAccessModelCalled;
- }
+/*******************************************************************************
+ * Copyright (c) 2010 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.framework.access.test.mocks;
+
+import java.util.Collection;
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+import org.eclipse.osee.framework.core.model.access.AccessModel;
+import org.eclipse.osee.framework.core.model.access.HasAccessModel;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockCMWithAccessModel extends MockConfigurationManagement implements HasAccessModel {
+
+ private final AccessModel accessModel;
+ private boolean wasGetAccessModelCalled;
+
+ public MockCMWithAccessModel(AccessModel accessModel, IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<AccessContextId> contextIds) {
+ super(expectedUser, expectedObject, isApplicable, contextIds);
+ this.accessModel = accessModel;
+ }
+
+ @Override
+ public AccessModel getAccessModel() {
+ this.wasGetAccessModelCalled = true;
+ return accessModel;
+ }
+
+ public boolean wasAccessModelCalled() {
+ return wasGetAccessModelCalled;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagementProvider.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagementProvider.java
index 2e98b8940eb..d8c184b8ed7 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagementProvider.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagementProvider.java
@@ -1,45 +1,45 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.framework.access.test.mocks;
-
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.core.services.CmAccessControl;
-import org.eclipse.osee.framework.core.services.CmAccessControlProvider;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockConfigurationManagementProvider implements CmAccessControlProvider {
- private final IBasicArtifact<?> expectedUser;
- private final Object expectedObject;
- private final CmAccessControl cmToReturn;
- private boolean wasGetCMCalled;
-
- public MockConfigurationManagementProvider(IBasicArtifact<?> expectedUser, Object expectedObject, CmAccessControl cmToReturn) {
- super();
- this.expectedUser = expectedUser;
- this.expectedObject = expectedObject;
- this.cmToReturn = cmToReturn;
- }
-
- @Override
- public CmAccessControl getService(IBasicArtifact<?> user, Object object) {
- wasGetCMCalled = true;
- Assert.assertEquals(expectedUser, user);
- Assert.assertEquals(expectedObject, object);
- return cmToReturn;
- }
-
- public boolean wasGetCMCalled() {
- return wasGetCMCalled;
- }
+/*******************************************************************************
+ * Copyright (c) 2010 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.framework.access.test.mocks;
+
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+import org.eclipse.osee.framework.core.services.CmAccessControl;
+import org.eclipse.osee.framework.core.services.CmAccessControlProvider;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockConfigurationManagementProvider implements CmAccessControlProvider {
+ private final IBasicArtifact<?> expectedUser;
+ private final Object expectedObject;
+ private final CmAccessControl cmToReturn;
+ private boolean wasGetCMCalled;
+
+ public MockConfigurationManagementProvider(IBasicArtifact<?> expectedUser, Object expectedObject, CmAccessControl cmToReturn) {
+ super();
+ this.expectedUser = expectedUser;
+ this.expectedObject = expectedObject;
+ this.cmToReturn = cmToReturn;
+ }
+
+ @Override
+ public CmAccessControl getService(IBasicArtifact<?> user, Object object) {
+ wasGetCMCalled = true;
+ Assert.assertEquals(expectedUser, user);
+ Assert.assertEquals(expectedObject, object);
+ return cmToReturn;
+ }
+
+ public boolean wasGetCMCalled() {
+ return wasGetCMCalled;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessControlProviderImpl.java b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessControlProviderImpl.java
index de61ff017b9..84aae3774b5 100644
--- a/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessControlProviderImpl.java
+++ b/plugins/org.eclipse.osee.framework.access/src/org/eclipse/osee/framework/access/internal/cm/CmAccessControlProviderImpl.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.framework.access.internal.cm;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeStateException;
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.core.services.CmAccessControl;
-import org.eclipse.osee.framework.core.services.CmAccessControlProvider;
-import org.eclipse.osee.framework.core.services.HasCmAccessControl;
-
-/**
- * @author Roberto E. Escobar
- */
-public class CmAccessControlProviderImpl implements CmAccessControlProvider {
-
- private final Collection<CmAccessControl> cmServices;
-
- public CmAccessControlProviderImpl(Collection<CmAccessControl> cmServices) {
- this.cmServices = cmServices;
- }
-
- @Override
- public CmAccessControl getService(IBasicArtifact<?> userArtifact, Object object) throws OseeCoreException {
- if (object instanceof HasCmAccessControl) {
- HasCmAccessControl cmContainer = (HasCmAccessControl) object;
- return cmContainer.getAccessControl();
- } else {
- CmAccessControl cmToReturn;
- Collection<CmAccessControl> applicableCms = new ArrayList<CmAccessControl>();
- for (CmAccessControl cmService : cmServices) {
- if (cmService.isApplicable(userArtifact, object)) {
- applicableCms.add(cmService);
- }
- }
- if (applicableCms.isEmpty()) {
- cmToReturn = null;
- } else if (applicableCms.size() == 1) {
- cmToReturn = applicableCms.iterator().next();
- } else {
- throw new OseeStateException(String.format(
- "Multiple Configuration Management Systems managing: [%s] cms:%s", object, applicableCms));
- }
- return cmToReturn;
- }
- }
+/*******************************************************************************
+ * 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.framework.access.internal.cm;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeStateException;
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+import org.eclipse.osee.framework.core.services.CmAccessControl;
+import org.eclipse.osee.framework.core.services.CmAccessControlProvider;
+import org.eclipse.osee.framework.core.services.HasCmAccessControl;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class CmAccessControlProviderImpl implements CmAccessControlProvider {
+
+ private final Collection<CmAccessControl> cmServices;
+
+ public CmAccessControlProviderImpl(Collection<CmAccessControl> cmServices) {
+ this.cmServices = cmServices;
+ }
+
+ @Override
+ public CmAccessControl getService(IBasicArtifact<?> userArtifact, Object object) throws OseeCoreException {
+ if (object instanceof HasCmAccessControl) {
+ HasCmAccessControl cmContainer = (HasCmAccessControl) object;
+ return cmContainer.getAccessControl();
+ } else {
+ CmAccessControl cmToReturn;
+ Collection<CmAccessControl> applicableCms = new ArrayList<CmAccessControl>();
+ for (CmAccessControl cmService : cmServices) {
+ if (cmService.isApplicable(userArtifact, object)) {
+ applicableCms.add(cmService);
+ }
+ }
+ if (applicableCms.isEmpty()) {
+ cmToReturn = null;
+ } else if (applicableCms.size() == 1) {
+ cmToReturn = applicableCms.iterator().next();
+ } else {
+ throw new OseeStateException(String.format(
+ "Multiple Configuration Management Systems managing: [%s] cms:%s", object, applicableCms));
+ }
+ return cmToReturn;
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
index a1edc0ea801..740ae5b566e 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
@@ -1,34 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.osee.framework.core.dsl.integration.test</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.framework.core.dsl.integration.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java
index 96c13e00eec..a5a834b4daf 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.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.framework.core.dsl.integration.test.mocks;
-
-import org.eclipse.osee.framework.core.model.access.AccessDetail;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class CheckAccessDetailCollectorNotCalled implements AccessDetailCollector {
-
- @Override
- public void collect(AccessDetail<?> accessDetail) {
- Assert.fail("Method was unexpectedly called");
- }
-
+/*******************************************************************************
+ * 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.framework.core.dsl.integration.test.mocks;
+
+import org.eclipse.osee.framework.core.model.access.AccessDetail;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class CheckAccessDetailCollectorNotCalled implements AccessDetailCollector {
+
+ @Override
+ public void collect(AccessDetail<?> accessDetail) {
+ Assert.fail("Method was unexpectedly called");
+ }
+
}; \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
index eb84e9ae0da..4005ef41858 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
@@ -1,23 +1,23 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration.test.mocks;
-
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.data.NamedIdentity;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockAccessContextId extends NamedIdentity implements AccessContextId {
- public MockAccessContextId(String guid, String name) {
- super(guid, name);
- }
+/*******************************************************************************
+ * 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.framework.core.dsl.integration.test.mocks;
+
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.NamedIdentity;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockAccessContextId extends NamedIdentity implements AccessContextId {
+ public MockAccessContextId(String guid, String name) {
+ super(guid, name);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
index 0d23171ba36..e57bb964fb3 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
@@ -1,60 +1,60 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration.test.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockArtifactDataProvider implements ArtifactDataProvider {
-
- private final boolean isApplicable;
- private final Object expectedObject;
- private final ArtifactData artifactData;
- private boolean wasIsApplicableCalled;
- private boolean wasAsCastedObjectCalled;
-
- public MockArtifactDataProvider(boolean isApplicable, Object expectedObject, ArtifactData artifactData) {
- this.isApplicable = isApplicable;
- this.expectedObject = expectedObject;
- this.artifactData = artifactData;
- reset();
- }
-
- public void reset() {
- wasIsApplicableCalled = false;
- wasAsCastedObjectCalled = false;
- }
-
- @Override
- public boolean isApplicable(Object object) {
- wasIsApplicableCalled = true;
- Assert.assertEquals(expectedObject, object);
- return isApplicable;
- }
-
- @Override
- public ArtifactData asCastedObject(Object object) {
- wasAsCastedObjectCalled = true;
- Assert.assertEquals(expectedObject, object);
- return artifactData;
- }
-
- public boolean wasIsApplicableCalled() {
- return wasIsApplicableCalled;
- }
-
- public boolean wasAsCastedObjectCalled() {
- return wasAsCastedObjectCalled;
- }
+/*******************************************************************************
+ * 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.framework.core.dsl.integration.test.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockArtifactDataProvider implements ArtifactDataProvider {
+
+ private final boolean isApplicable;
+ private final Object expectedObject;
+ private final ArtifactData artifactData;
+ private boolean wasIsApplicableCalled;
+ private boolean wasAsCastedObjectCalled;
+
+ public MockArtifactDataProvider(boolean isApplicable, Object expectedObject, ArtifactData artifactData) {
+ this.isApplicable = isApplicable;
+ this.expectedObject = expectedObject;
+ this.artifactData = artifactData;
+ reset();
+ }
+
+ public void reset() {
+ wasIsApplicableCalled = false;
+ wasAsCastedObjectCalled = false;
+ }
+
+ @Override
+ public boolean isApplicable(Object object) {
+ wasIsApplicableCalled = true;
+ Assert.assertEquals(expectedObject, object);
+ return isApplicable;
+ }
+
+ @Override
+ public ArtifactData asCastedObject(Object object) {
+ wasAsCastedObjectCalled = true;
+ Assert.assertEquals(expectedObject, object);
+ return artifactData;
+ }
+
+ public boolean wasIsApplicableCalled() {
+ return wasIsApplicableCalled;
+ }
+
+ public boolean wasAsCastedObjectCalled() {
+ return wasAsCastedObjectCalled;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
index fc06ae804d5..7bfaecfe94a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
@@ -1,59 +1,59 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration.test.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.OseeDslProvider;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockDslProvider implements OseeDslProvider {
-
- private final OseeDsl dslToReturn;
-
- private boolean wasLoadDslCalled;
- private boolean wasGetDslCalled;
- private OseeDsl dslToStore;
-
- public MockDslProvider(OseeDsl dslToReturn) {
- this.dslToReturn = dslToReturn;
- }
-
- @Override
- public void loadDsl() {
- wasLoadDslCalled = true;
- }
-
- @Override
- public OseeDsl getDsl() {
- wasGetDslCalled = true;
- return dslToReturn;
- }
-
- @Override
- public void storeDsl(OseeDsl dsl) {
- dslToStore = dsl;
- }
-
- public OseeDsl getDslToStore() {
- return dslToStore;
- }
-
- public boolean wasLoadDslCalled() {
- return wasLoadDslCalled;
- }
-
- public boolean wasGetDslCalled() {
- return wasGetDslCalled;
- }
-
+/*******************************************************************************
+ * 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.framework.core.dsl.integration.test.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.OseeDslProvider;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockDslProvider implements OseeDslProvider {
+
+ private final OseeDsl dslToReturn;
+
+ private boolean wasLoadDslCalled;
+ private boolean wasGetDslCalled;
+ private OseeDsl dslToStore;
+
+ public MockDslProvider(OseeDsl dslToReturn) {
+ this.dslToReturn = dslToReturn;
+ }
+
+ @Override
+ public void loadDsl() {
+ wasLoadDslCalled = true;
+ }
+
+ @Override
+ public OseeDsl getDsl() {
+ wasGetDslCalled = true;
+ return dslToReturn;
+ }
+
+ @Override
+ public void storeDsl(OseeDsl dsl) {
+ dslToStore = dsl;
+ }
+
+ public OseeDsl getDslToStore() {
+ return dslToStore;
+ }
+
+ public boolean wasLoadDslCalled() {
+ return wasLoadDslCalled;
+ }
+
+ public boolean wasGetDslCalled() {
+ return wasGetDslCalled;
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java
index 28328587b8f..91c2e89e8dd 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.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.framework.core.dsl.integration.test.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
-import org.eclipse.osee.framework.core.dsl.integration.RestrictionHandler;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockRestrictionHandler implements RestrictionHandler<Object> {
-
- private final ObjectRestriction expectedObjectRestriction;
- private final ArtifactData expectedArtifactData;
- private final AccessDetailCollector expectedCollector;
- private boolean wasProcessCalled;
-
- public MockRestrictionHandler(ObjectRestriction expectedObjectRestriction, ArtifactData expectedArtifactData, AccessDetailCollector expectedCollector) {
- super();
- this.expectedObjectRestriction = expectedObjectRestriction;
- this.expectedArtifactData = expectedArtifactData;
- this.expectedCollector = expectedCollector;
- reset();
- }
-
- @Override
- public Object asCastedObject(ObjectRestriction objectRestriction) {
- return null;
- }
-
- public void reset() {
- wasProcessCalled = false;
- }
-
- public boolean wasProcessCalled() {
- return wasProcessCalled;
- }
-
- @Override
- public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) {
- wasProcessCalled = true;
- Assert.assertEquals(expectedObjectRestriction, objectRestriction);
- Assert.assertEquals(expectedArtifactData, artifactData);
- Assert.assertEquals(expectedCollector, collector);
- }
+/*******************************************************************************
+ * 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.framework.core.dsl.integration.test.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
+import org.eclipse.osee.framework.core.dsl.integration.RestrictionHandler;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockRestrictionHandler implements RestrictionHandler<Object> {
+
+ private final ObjectRestriction expectedObjectRestriction;
+ private final ArtifactData expectedArtifactData;
+ private final AccessDetailCollector expectedCollector;
+ private boolean wasProcessCalled;
+
+ public MockRestrictionHandler(ObjectRestriction expectedObjectRestriction, ArtifactData expectedArtifactData, AccessDetailCollector expectedCollector) {
+ super();
+ this.expectedObjectRestriction = expectedObjectRestriction;
+ this.expectedArtifactData = expectedArtifactData;
+ this.expectedCollector = expectedCollector;
+ reset();
+ }
+
+ @Override
+ public Object asCastedObject(ObjectRestriction objectRestriction) {
+ return null;
+ }
+
+ public void reset() {
+ wasProcessCalled = false;
+ }
+
+ public boolean wasProcessCalled() {
+ return wasProcessCalled;
+ }
+
+ @Override
+ public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) {
+ wasProcessCalled = true;
+ Assert.assertEquals(expectedObjectRestriction, objectRestriction);
+ Assert.assertEquals(expectedArtifactData, artifactData);
+ Assert.assertEquals(expectedCollector, collector);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/ArtifactDataProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/ArtifactDataProvider.java
index 3c30ccf10d0..30e7e675e2c 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/ArtifactDataProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/ArtifactDataProvider.java
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration;
-
-import java.util.Collection;
-import org.eclipse.osee.framework.core.data.IAttributeType;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.core.model.type.RelationType;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface ArtifactDataProvider {
-
- public static interface ArtifactData {
- String getGuid();
-
- ArtifactType getArtifactType();
-
- boolean isAttributeTypeValid(IAttributeType attributeType) throws OseeCoreException;
-
- Collection<RelationType> getValidRelationTypes() throws OseeCoreException;
-
- Collection<String> getHierarchy();
-
- IBasicArtifact<?> getObject();
- }
-
- boolean isApplicable(Object object);
-
- ArtifactData asCastedObject(Object object) 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.framework.core.dsl.integration;
+
+import java.util.Collection;
+import org.eclipse.osee.framework.core.data.IAttributeType;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.core.model.type.RelationType;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface ArtifactDataProvider {
+
+ public static interface ArtifactData {
+ String getGuid();
+
+ ArtifactType getArtifactType();
+
+ boolean isAttributeTypeValid(IAttributeType attributeType) throws OseeCoreException;
+
+ Collection<RelationType> getValidRelationTypes() throws OseeCoreException;
+
+ Collection<String> getHierarchy();
+
+ IBasicArtifact<?> getObject();
+ }
+
+ boolean isApplicable(Object object);
+
+ ArtifactData asCastedObject(Object object) throws OseeCoreException;
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeDslAccessModel.java b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeDslAccessModel.java
index e10df887d67..eb45b181557 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeDslAccessModel.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeDslAccessModel.java
@@ -1,75 +1,75 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration;
-
-import java.util.Collection;
-import java.util.HashSet;
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.access.AccessData;
-import org.eclipse.osee.framework.core.model.access.AccessDetail;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-import org.eclipse.osee.framework.core.model.access.AccessModel;
-import org.eclipse.osee.framework.core.util.Conditions;
-
-/**
- * @author Roberto E. Escobar
- */
-public class OseeDslAccessModel implements AccessModel {
- private final AccessModelInterpreter interpreter;
- private final OseeDslProvider dslProvider;
-
- public OseeDslAccessModel(AccessModelInterpreter interpreter, OseeDslProvider dslProvider) {
- this.interpreter = interpreter;
- this.dslProvider = dslProvider;
- }
-
- @Override
- public void computeAccess(AccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) throws OseeCoreException {
- Conditions.checkNotNull(contextId, "contextId");
- Conditions.checkNotNull(objectsToCheck, "objectsToCheck");
- Conditions.checkNotNull(accessData, "accessData");
-
- OseeDsl oseeDsl = dslProvider.getDsl();
- Conditions.checkNotNull(oseeDsl, "oseeDsl", "dsl provider returned null");
-
- Collection<AccessContext> contexts = oseeDsl.getAccessDeclarations();
- AccessContext context = interpreter.getContext(contexts, contextId);
- Conditions.checkNotNull(context, "interpreted accessContext",
- "No matching access context was found in access dsl for [%s]", contextId);
-
- for (Object objectToCheck : objectsToCheck) {
- Collection<AccessDetail<?>> accessDetail = new HashSet<AccessDetail<?>>();
- AccessDetailCollector collector = new AccessDataCollector(accessDetail);
- interpreter.computeAccessDetails(collector, context, objectToCheck);
- accessData.addAll(objectToCheck, accessDetail);
- }
- }
-
- private static final class AccessDataCollector implements AccessDetailCollector {
- private final Collection<AccessDetail<?>> accessDetails;
-
- public AccessDataCollector(Collection<AccessDetail<?>> accessDetails) {
- this.accessDetails = accessDetails;
- }
-
- @Override
- public void collect(AccessDetail<?> accessDetail) {
- if (accessDetail != null) {
- if (!accessDetails.contains(accessDetail)) {
- accessDetails.add(accessDetail);
- }
- }
- }
- }
+/*******************************************************************************
+ * 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.framework.core.dsl.integration;
+
+import java.util.Collection;
+import java.util.HashSet;
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.access.AccessData;
+import org.eclipse.osee.framework.core.model.access.AccessDetail;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+import org.eclipse.osee.framework.core.model.access.AccessModel;
+import org.eclipse.osee.framework.core.util.Conditions;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class OseeDslAccessModel implements AccessModel {
+ private final AccessModelInterpreter interpreter;
+ private final OseeDslProvider dslProvider;
+
+ public OseeDslAccessModel(AccessModelInterpreter interpreter, OseeDslProvider dslProvider) {
+ this.interpreter = interpreter;
+ this.dslProvider = dslProvider;
+ }
+
+ @Override
+ public void computeAccess(AccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) throws OseeCoreException {
+ Conditions.checkNotNull(contextId, "contextId");
+ Conditions.checkNotNull(objectsToCheck, "objectsToCheck");
+ Conditions.checkNotNull(accessData, "accessData");
+
+ OseeDsl oseeDsl = dslProvider.getDsl();
+ Conditions.checkNotNull(oseeDsl, "oseeDsl", "dsl provider returned null");
+
+ Collection<AccessContext> contexts = oseeDsl.getAccessDeclarations();
+ AccessContext context = interpreter.getContext(contexts, contextId);
+ Conditions.checkNotNull(context, "interpreted accessContext",
+ "No matching access context was found in access dsl for [%s]", contextId);
+
+ for (Object objectToCheck : objectsToCheck) {
+ Collection<AccessDetail<?>> accessDetail = new HashSet<AccessDetail<?>>();
+ AccessDetailCollector collector = new AccessDataCollector(accessDetail);
+ interpreter.computeAccessDetails(collector, context, objectToCheck);
+ accessData.addAll(objectToCheck, accessDetail);
+ }
+ }
+
+ private static final class AccessDataCollector implements AccessDetailCollector {
+ private final Collection<AccessDetail<?>> accessDetails;
+
+ public AccessDataCollector(Collection<AccessDetail<?>> accessDetails) {
+ this.accessDetails = accessDetails;
+ }
+
+ @Override
+ public void collect(AccessDetail<?> accessDetail) {
+ if (accessDetail != null) {
+ if (!accessDetails.contains(accessDetail)) {
+ accessDetails.add(accessDetail);
+ }
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/RestrictionHandler.java b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/RestrictionHandler.java
index e1968f441da..ce6fee56aa4 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/RestrictionHandler.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/RestrictionHandler.java
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * 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.framework.core.dsl.integration;
-
-import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface RestrictionHandler<T> {
- public T asCastedObject(ObjectRestriction objectRestriction);
-
- public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) 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.framework.core.dsl.integration;
+
+import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface RestrictionHandler<T> {
+ public T asCastedObject(ObjectRestriction objectRestriction);
+
+ public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) throws OseeCoreException;
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
index f6a9aa99928..15a9a8da02a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
@@ -1,20 +1,20 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: org.eclipse.osee.framework.core.dsl.ui
-Bundle-Vendor: Eclipse Open System Engineering Environment
-Bundle-Version: 0.9.5.qualifier
-Bundle-SymbolicName: org.eclipse.osee.framework.core.dsl.ui; singleton:=true
-Bundle-ActivationPolicy: lazy
-Require-Bundle: org.eclipse.osee.framework.core.dsl;visibility:=reexport,
- org.eclipse.xtext.ui,
- org.eclipse.ui.editors;bundle-version="3.5.0",
- org.eclipse.ui.ide;bundle-version="3.5.0",
- org.eclipse.xtext.ui.shared,
- org.eclipse.ui,
- org.eclipse.xtext.builder,
- org.antlr.runtime
-Import-Package: org.apache.log4j,
- org.eclipse.osee.framework.jdk.core.util
-Export-Package: org.eclipse.osee.framework.core.dsl.ui.contentassist.antlr
-Bundle-Activator: org.eclipse.osee.framework.core.dsl.ui.internal.OseeDslActivator
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: org.eclipse.osee.framework.core.dsl.ui
+Bundle-Vendor: Eclipse Open System Engineering Environment
+Bundle-Version: 0.9.5.qualifier
+Bundle-SymbolicName: org.eclipse.osee.framework.core.dsl.ui; singleton:=true
+Bundle-ActivationPolicy: lazy
+Require-Bundle: org.eclipse.osee.framework.core.dsl;visibility:=reexport,
+ org.eclipse.xtext.ui,
+ org.eclipse.ui.editors;bundle-version="3.5.0",
+ org.eclipse.ui.ide;bundle-version="3.5.0",
+ org.eclipse.xtext.ui.shared,
+ org.eclipse.ui,
+ org.eclipse.xtext.builder,
+ org.antlr.runtime
+Import-Package: org.apache.log4j,
+ org.eclipse.osee.framework.jdk.core.util
+Export-Package: org.eclipse.osee.framework.core.dsl.ui.contentassist.antlr
+Bundle-Activator: org.eclipse.osee.framework.core.dsl.ui.internal.OseeDslActivator
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java
index cb9e2a1c2e5..4a33402ace2 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessContext.java
@@ -1,135 +1,135 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Access Context</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts <em>Super Access Contexts</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules <em>Access Rules</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext()
- * @model
- * @generated
- */
-public interface AccessContext extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Super Access Contexts</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Super Access Contexts</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Super Access Contexts</em>' reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_SuperAccessContexts()
- * @model
- * @generated
- */
- EList<AccessContext> getSuperAccessContexts();
-
- /**
- * Returns the value of the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Guid</em>' attribute.
- * @see #setGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_Guid()
- * @model
- * @generated
- */
- String getGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Guid</em>' attribute.
- * @see #getGuid()
- * @generated
- */
- void setGuid(String value);
-
- /**
- * Returns the value of the '<em><b>Access Rules</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Access Rules</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Access Rules</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_AccessRules()
- * @model containment="true"
- * @generated
- */
- EList<ObjectRestriction> getAccessRules();
-
- /**
- * Returns the value of the '<em><b>Hierarchy Restrictions</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Hierarchy Restrictions</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Hierarchy Restrictions</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_HierarchyRestrictions()
- * @model containment="true"
- * @generated
- */
- EList<HierarchyRestriction> getHierarchyRestrictions();
-
-} // AccessContext
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Access Context</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts <em>Super Access Contexts</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules <em>Access Rules</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext()
+ * @model
+ * @generated
+ */
+public interface AccessContext extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Super Access Contexts</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Super Access Contexts</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Super Access Contexts</em>' reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_SuperAccessContexts()
+ * @model
+ * @generated
+ */
+ EList<AccessContext> getSuperAccessContexts();
+
+ /**
+ * Returns the value of the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Guid</em>' attribute.
+ * @see #setGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_Guid()
+ * @model
+ * @generated
+ */
+ String getGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Guid</em>' attribute.
+ * @see #getGuid()
+ * @generated
+ */
+ void setGuid(String value);
+
+ /**
+ * Returns the value of the '<em><b>Access Rules</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Access Rules</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Access Rules</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_AccessRules()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ObjectRestriction> getAccessRules();
+
+ /**
+ * Returns the value of the '<em><b>Hierarchy Restrictions</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Hierarchy Restrictions</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Hierarchy Restrictions</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessContext_HierarchyRestrictions()
+ * @model containment="true"
+ * @generated
+ */
+ EList<HierarchyRestriction> getHierarchyRestrictions();
+
+} // AccessContext
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java
index cf3583599e9..82c98022f1b 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AccessPermissionEnum.java
@@ -1,227 +1,227 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Access Permission Enum</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessPermissionEnum()
- * @model
- * @generated
- */
-public enum AccessPermissionEnum implements Enumerator
-{
- /**
- * The '<em><b>ALLOW</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #ALLOW_VALUE
- * @generated
- * @ordered
- */
- ALLOW(0, "ALLOW", "ALLOW"),
-
- /**
- * The '<em><b>DENY</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #DENY_VALUE
- * @generated
- * @ordered
- */
- DENY(1, "DENY", "DENY");
-
- /**
- * The '<em><b>ALLOW</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>ALLOW</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #ALLOW
- * @model
- * @generated
- * @ordered
- */
- public static final int ALLOW_VALUE = 0;
-
- /**
- * The '<em><b>DENY</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>DENY</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #DENY
- * @model
- * @generated
- * @ordered
- */
- public static final int DENY_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Access Permission Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final AccessPermissionEnum[] VALUES_ARRAY =
- new AccessPermissionEnum[]
- {
- ALLOW,
- DENY,
- };
-
- /**
- * A public read-only list of all the '<em><b>Access Permission Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<AccessPermissionEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static AccessPermissionEnum get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- AccessPermissionEnum result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static AccessPermissionEnum getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- AccessPermissionEnum result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static AccessPermissionEnum get(int value)
- {
- switch (value)
- {
- case ALLOW_VALUE: return ALLOW;
- case DENY_VALUE: return DENY;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private AccessPermissionEnum(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //AccessPermissionEnum
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Access Permission Enum</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAccessPermissionEnum()
+ * @model
+ * @generated
+ */
+public enum AccessPermissionEnum implements Enumerator
+{
+ /**
+ * The '<em><b>ALLOW</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ALLOW_VALUE
+ * @generated
+ * @ordered
+ */
+ ALLOW(0, "ALLOW", "ALLOW"),
+
+ /**
+ * The '<em><b>DENY</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #DENY_VALUE
+ * @generated
+ * @ordered
+ */
+ DENY(1, "DENY", "DENY");
+
+ /**
+ * The '<em><b>ALLOW</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>ALLOW</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #ALLOW
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int ALLOW_VALUE = 0;
+
+ /**
+ * The '<em><b>DENY</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>DENY</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #DENY
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int DENY_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Access Permission Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final AccessPermissionEnum[] VALUES_ARRAY =
+ new AccessPermissionEnum[]
+ {
+ ALLOW,
+ DENY,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Access Permission Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<AccessPermissionEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AccessPermissionEnum get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ AccessPermissionEnum result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AccessPermissionEnum getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ AccessPermissionEnum result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Access Permission Enum</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AccessPermissionEnum get(int value)
+ {
+ switch (value)
+ {
+ case ALLOW_VALUE: return ALLOW;
+ case DENY_VALUE: return DENY;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private AccessPermissionEnum(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //AccessPermissionEnum
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java
index 14425f472a7..6a76948e61a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AddEnum.java
@@ -1,108 +1,108 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Add Enum</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum()
- * @model
- * @generated
- */
-public interface AddEnum extends OverrideOption
-{
- /**
- * Returns the value of the '<em><b>Enum Entry</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Entry</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Entry</em>' attribute.
- * @see #setEnumEntry(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_EnumEntry()
- * @model
- * @generated
- */
- String getEnumEntry();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Enum Entry</em>' attribute.
- * @see #getEnumEntry()
- * @generated
- */
- void setEnumEntry(String value);
-
- /**
- * Returns the value of the '<em><b>Ordinal</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Ordinal</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Ordinal</em>' attribute.
- * @see #setOrdinal(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_Ordinal()
- * @model
- * @generated
- */
- String getOrdinal();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Ordinal</em>' attribute.
- * @see #getOrdinal()
- * @generated
- */
- void setOrdinal(String value);
-
- /**
- * Returns the value of the '<em><b>Entry Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Entry Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Entry Guid</em>' attribute.
- * @see #setEntryGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_EntryGuid()
- * @model
- * @generated
- */
- String getEntryGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Entry Guid</em>' attribute.
- * @see #getEntryGuid()
- * @generated
- */
- void setEntryGuid(String value);
-
-} // AddEnum
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Add Enum</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum()
+ * @model
+ * @generated
+ */
+public interface AddEnum extends OverrideOption
+{
+ /**
+ * Returns the value of the '<em><b>Enum Entry</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Entry</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Entry</em>' attribute.
+ * @see #setEnumEntry(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_EnumEntry()
+ * @model
+ * @generated
+ */
+ String getEnumEntry();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Enum Entry</em>' attribute.
+ * @see #getEnumEntry()
+ * @generated
+ */
+ void setEnumEntry(String value);
+
+ /**
+ * Returns the value of the '<em><b>Ordinal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Ordinal</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Ordinal</em>' attribute.
+ * @see #setOrdinal(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_Ordinal()
+ * @model
+ * @generated
+ */
+ String getOrdinal();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Ordinal</em>' attribute.
+ * @see #getOrdinal()
+ * @generated
+ */
+ void setOrdinal(String value);
+
+ /**
+ * Returns the value of the '<em><b>Entry Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Entry Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Entry Guid</em>' attribute.
+ * @see #setEntryGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAddEnum_EntryGuid()
+ * @model
+ * @generated
+ */
+ String getEntryGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Entry Guid</em>' attribute.
+ * @see #getEntryGuid()
+ * @generated
+ */
+ void setEntryGuid(String value);
+
+} // AddEnum
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java
index d2962843bfb..5fde68b4615 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactInstanceRestriction.java
@@ -1,54 +1,54 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Artifact Instance Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactInstanceRestriction()
- * @model
- * @generated
- */
-public interface ArtifactInstanceRestriction extends ObjectRestriction
-{
- /**
- * Returns the value of the '<em><b>Artifact Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact Ref</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact Ref</em>' reference.
- * @see #setArtifactRef(XArtifactRef)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactInstanceRestriction_ArtifactRef()
- * @model
- * @generated
- */
- XArtifactRef getArtifactRef();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Artifact Ref</em>' reference.
- * @see #getArtifactRef()
- * @generated
- */
- void setArtifactRef(XArtifactRef value);
-
-} // ArtifactInstanceRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Artifact Instance Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactInstanceRestriction()
+ * @model
+ * @generated
+ */
+public interface ArtifactInstanceRestriction extends ObjectRestriction
+{
+ /**
+ * Returns the value of the '<em><b>Artifact Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact Ref</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact Ref</em>' reference.
+ * @see #setArtifactRef(XArtifactRef)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactInstanceRestriction_ArtifactRef()
+ * @model
+ * @generated
+ */
+ XArtifactRef getArtifactRef();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Artifact Ref</em>' reference.
+ * @see #getArtifactRef()
+ * @generated
+ */
+ void setArtifactRef(XArtifactRef value);
+
+} // ArtifactInstanceRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java
index 38cfa7353bf..0b9ba58fbb6 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ArtifactTypeRestriction.java
@@ -1,54 +1,54 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Artifact Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactTypeRestriction()
- * @model
- * @generated
- */
-public interface ArtifactTypeRestriction extends ObjectRestriction
-{
- /**
- * Returns the value of the '<em><b>Artifact Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact Type Ref</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact Type Ref</em>' reference.
- * @see #setArtifactTypeRef(XArtifactType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactTypeRestriction_ArtifactTypeRef()
- * @model
- * @generated
- */
- XArtifactType getArtifactTypeRef();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Artifact Type Ref</em>' reference.
- * @see #getArtifactTypeRef()
- * @generated
- */
- void setArtifactTypeRef(XArtifactType value);
-
-} // ArtifactTypeRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Artifact Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactTypeRestriction()
+ * @model
+ * @generated
+ */
+public interface ArtifactTypeRestriction extends ObjectRestriction
+{
+ /**
+ * Returns the value of the '<em><b>Artifact Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact Type Ref</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact Type Ref</em>' reference.
+ * @see #setArtifactTypeRef(XArtifactType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getArtifactTypeRestriction_ArtifactTypeRef()
+ * @model
+ * @generated
+ */
+ XArtifactType getArtifactTypeRef();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Artifact Type Ref</em>' reference.
+ * @see #getArtifactTypeRef()
+ * @generated
+ */
+ void setArtifactTypeRef(XArtifactType value);
+
+} // ArtifactTypeRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java
index 3dc754d6a01..bcb1980a045 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/AttributeTypeRestriction.java
@@ -1,81 +1,81 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Attribute Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction()
- * @model
- * @generated
- */
-public interface AttributeTypeRestriction extends ObjectRestriction
-{
- /**
- * Returns the value of the '<em><b>Attribute Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Attribute Type Ref</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Attribute Type Ref</em>' reference.
- * @see #setAttributeTypeRef(XAttributeType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction_AttributeTypeRef()
- * @model
- * @generated
- */
- XAttributeType getAttributeTypeRef();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Attribute Type Ref</em>' reference.
- * @see #getAttributeTypeRef()
- * @generated
- */
- void setAttributeTypeRef(XAttributeType value);
-
- /**
- * Returns the value of the '<em><b>Artifact Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact Type Ref</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact Type Ref</em>' reference.
- * @see #setArtifactTypeRef(XArtifactType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction_ArtifactTypeRef()
- * @model
- * @generated
- */
- XArtifactType getArtifactTypeRef();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Artifact Type Ref</em>' reference.
- * @see #getArtifactTypeRef()
- * @generated
- */
- void setArtifactTypeRef(XArtifactType value);
-
-} // AttributeTypeRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Attribute Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction()
+ * @model
+ * @generated
+ */
+public interface AttributeTypeRestriction extends ObjectRestriction
+{
+ /**
+ * Returns the value of the '<em><b>Attribute Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Attribute Type Ref</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Attribute Type Ref</em>' reference.
+ * @see #setAttributeTypeRef(XAttributeType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction_AttributeTypeRef()
+ * @model
+ * @generated
+ */
+ XAttributeType getAttributeTypeRef();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Attribute Type Ref</em>' reference.
+ * @see #getAttributeTypeRef()
+ * @generated
+ */
+ void setAttributeTypeRef(XAttributeType value);
+
+ /**
+ * Returns the value of the '<em><b>Artifact Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact Type Ref</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact Type Ref</em>' reference.
+ * @see #setArtifactTypeRef(XArtifactType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getAttributeTypeRestriction_ArtifactTypeRef()
+ * @model
+ * @generated
+ */
+ XArtifactType getArtifactTypeRef();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Artifact Type Ref</em>' reference.
+ * @see #getArtifactTypeRef()
+ * @generated
+ */
+ void setArtifactTypeRef(XArtifactType value);
+
+} // AttributeTypeRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java
index 7d1be4e711e..0ff98105713 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/HierarchyRestriction.java
@@ -1,74 +1,74 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Hierarchy Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules <em>Access Rules</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction()
- * @model
- * @generated
- */
-public interface HierarchyRestriction extends EObject
-{
- /**
- * Returns the value of the '<em><b>Artifact</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact</em>' reference.
- * @see #setArtifact(XArtifactRef)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction_Artifact()
- * @model
- * @generated
- */
- XArtifactRef getArtifact();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Artifact</em>' reference.
- * @see #getArtifact()
- * @generated
- */
- void setArtifact(XArtifactRef value);
-
- /**
- * Returns the value of the '<em><b>Access Rules</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Access Rules</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Access Rules</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction_AccessRules()
- * @model containment="true"
- * @generated
- */
- EList<ObjectRestriction> getAccessRules();
-
-} // HierarchyRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Hierarchy Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules <em>Access Rules</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction()
+ * @model
+ * @generated
+ */
+public interface HierarchyRestriction extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Artifact</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact</em>' reference.
+ * @see #setArtifact(XArtifactRef)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction_Artifact()
+ * @model
+ * @generated
+ */
+ XArtifactRef getArtifact();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Artifact</em>' reference.
+ * @see #getArtifact()
+ * @generated
+ */
+ void setArtifact(XArtifactRef value);
+
+ /**
+ * Returns the value of the '<em><b>Access Rules</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Access Rules</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Access Rules</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getHierarchyRestriction_AccessRules()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ObjectRestriction> getAccessRules();
+
+} // HierarchyRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java
index 0df896f2bcc..019b2f34337 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/Import.java
@@ -1,55 +1,55 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Import</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getImport()
- * @model
- * @generated
- */
-public interface Import extends EObject
-{
- /**
- * Returns the value of the '<em><b>Import URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Import URI</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Import URI</em>' attribute.
- * @see #setImportURI(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getImport_ImportURI()
- * @model
- * @generated
- */
- String getImportURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Import URI</em>' attribute.
- * @see #getImportURI()
- * @generated
- */
- void setImportURI(String value);
-
-} // Import
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Import</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getImport()
+ * @model
+ * @generated
+ */
+public interface Import extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Import URI</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Import URI</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Import URI</em>' attribute.
+ * @see #setImportURI(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getImport_ImportURI()
+ * @model
+ * @generated
+ */
+ String getImportURI();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Import URI</em>' attribute.
+ * @see #getImportURI()
+ * @generated
+ */
+ void setImportURI(String value);
+
+} // Import
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java
index 8e7deab4d07..8ceebfd5a31 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/ObjectRestriction.java
@@ -1,58 +1,58 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Object Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getObjectRestriction()
- * @model
- * @generated
- */
-public interface ObjectRestriction extends EObject
-{
- /**
- * Returns the value of the '<em><b>Permission</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Permission</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Permission</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
- * @see #setPermission(AccessPermissionEnum)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getObjectRestriction_Permission()
- * @model
- * @generated
- */
- AccessPermissionEnum getPermission();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Permission</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
- * @see #getPermission()
- * @generated
- */
- void setPermission(AccessPermissionEnum value);
-
-} // ObjectRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Object Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getObjectRestriction()
+ * @model
+ * @generated
+ */
+public interface ObjectRestriction extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Permission</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Permission</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Permission</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
+ * @see #setPermission(AccessPermissionEnum)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getObjectRestriction_Permission()
+ * @model
+ * @generated
+ */
+ AccessPermissionEnum getPermission();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Permission</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
+ * @see #getPermission()
+ * @generated
+ */
+ void setPermission(AccessPermissionEnum value);
+
+} // ObjectRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java
index 23ae70945df..f4150eb414f 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDsl.java
@@ -1,183 +1,183 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Osee Dsl</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports <em>Imports</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes <em>Artifact Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes <em>Relation Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes <em>Attribute Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes <em>Enum Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides <em>Enum Overrides</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs <em>Branch Refs</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs <em>Artifact Refs</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations <em>Access Declarations</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl()
- * @model
- * @generated
- */
-public interface OseeDsl extends EObject
-{
- /**
- * Returns the value of the '<em><b>Imports</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Imports</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Imports</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_Imports()
- * @model containment="true"
- * @generated
- */
- EList<Import> getImports();
-
- /**
- * Returns the value of the '<em><b>Artifact Types</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact Types</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact Types</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_ArtifactTypes()
- * @model containment="true"
- * @generated
- */
- EList<XArtifactType> getArtifactTypes();
-
- /**
- * Returns the value of the '<em><b>Relation Types</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Relation Types</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Relation Types</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_RelationTypes()
- * @model containment="true"
- * @generated
- */
- EList<XRelationType> getRelationTypes();
-
- /**
- * Returns the value of the '<em><b>Attribute Types</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Attribute Types</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Attribute Types</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_AttributeTypes()
- * @model containment="true"
- * @generated
- */
- EList<XAttributeType> getAttributeTypes();
-
- /**
- * Returns the value of the '<em><b>Enum Types</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Types</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Types</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_EnumTypes()
- * @model containment="true"
- * @generated
- */
- EList<XOseeEnumType> getEnumTypes();
-
- /**
- * Returns the value of the '<em><b>Enum Overrides</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Overrides</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Overrides</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_EnumOverrides()
- * @model containment="true"
- * @generated
- */
- EList<XOseeEnumOverride> getEnumOverrides();
-
- /**
- * Returns the value of the '<em><b>Branch Refs</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Branch Refs</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Branch Refs</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_BranchRefs()
- * @model containment="true"
- * @generated
- */
- EList<XBranchRef> getBranchRefs();
-
- /**
- * Returns the value of the '<em><b>Artifact Refs</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Artifact Refs</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Artifact Refs</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_ArtifactRefs()
- * @model containment="true"
- * @generated
- */
- EList<XArtifactRef> getArtifactRefs();
-
- /**
- * Returns the value of the '<em><b>Access Declarations</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Access Declarations</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Access Declarations</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_AccessDeclarations()
- * @model containment="true"
- * @generated
- */
- EList<AccessContext> getAccessDeclarations();
-
-} // OseeDsl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Osee Dsl</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports <em>Imports</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes <em>Artifact Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes <em>Relation Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes <em>Attribute Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes <em>Enum Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides <em>Enum Overrides</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs <em>Branch Refs</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs <em>Artifact Refs</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations <em>Access Declarations</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl()
+ * @model
+ * @generated
+ */
+public interface OseeDsl extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Imports</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Imports</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Imports</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_Imports()
+ * @model containment="true"
+ * @generated
+ */
+ EList<Import> getImports();
+
+ /**
+ * Returns the value of the '<em><b>Artifact Types</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact Types</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact Types</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_ArtifactTypes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XArtifactType> getArtifactTypes();
+
+ /**
+ * Returns the value of the '<em><b>Relation Types</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Relation Types</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Relation Types</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_RelationTypes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XRelationType> getRelationTypes();
+
+ /**
+ * Returns the value of the '<em><b>Attribute Types</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Attribute Types</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Attribute Types</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_AttributeTypes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XAttributeType> getAttributeTypes();
+
+ /**
+ * Returns the value of the '<em><b>Enum Types</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Types</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Types</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_EnumTypes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XOseeEnumType> getEnumTypes();
+
+ /**
+ * Returns the value of the '<em><b>Enum Overrides</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Overrides</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Overrides</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_EnumOverrides()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XOseeEnumOverride> getEnumOverrides();
+
+ /**
+ * Returns the value of the '<em><b>Branch Refs</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Branch Refs</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Branch Refs</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_BranchRefs()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XBranchRef> getBranchRefs();
+
+ /**
+ * Returns the value of the '<em><b>Artifact Refs</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Artifact Refs</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Artifact Refs</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_ArtifactRefs()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XArtifactRef> getArtifactRefs();
+
+ /**
+ * Returns the value of the '<em><b>Access Declarations</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Access Declarations</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Access Declarations</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeDsl_AccessDeclarations()
+ * @model containment="true"
+ * @generated
+ */
+ EList<AccessContext> getAccessDeclarations();
+
+} // OseeDsl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java
index 117618dc37e..7ce8474c76b 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslFactory.java
@@ -1,245 +1,245 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
- * @generated
- */
-public interface OseeDslFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- OseeDslFactory eINSTANCE = org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Osee Dsl</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Osee Dsl</em>'.
- * @generated
- */
- OseeDsl createOseeDsl();
-
- /**
- * Returns a new object of class '<em>Import</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Import</em>'.
- * @generated
- */
- Import createImport();
-
- /**
- * Returns a new object of class '<em>Osee Element</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Osee Element</em>'.
- * @generated
- */
- OseeElement createOseeElement();
-
- /**
- * Returns a new object of class '<em>Osee Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Osee Type</em>'.
- * @generated
- */
- OseeType createOseeType();
-
- /**
- * Returns a new object of class '<em>XArtifact Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XArtifact Type</em>'.
- * @generated
- */
- XArtifactType createXArtifactType();
-
- /**
- * Returns a new object of class '<em>XAttribute Type Ref</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XAttribute Type Ref</em>'.
- * @generated
- */
- XAttributeTypeRef createXAttributeTypeRef();
-
- /**
- * Returns a new object of class '<em>XAttribute Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XAttribute Type</em>'.
- * @generated
- */
- XAttributeType createXAttributeType();
-
- /**
- * Returns a new object of class '<em>XOsee Enum Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XOsee Enum Type</em>'.
- * @generated
- */
- XOseeEnumType createXOseeEnumType();
-
- /**
- * Returns a new object of class '<em>XOsee Enum Entry</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XOsee Enum Entry</em>'.
- * @generated
- */
- XOseeEnumEntry createXOseeEnumEntry();
-
- /**
- * Returns a new object of class '<em>XOsee Enum Override</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XOsee Enum Override</em>'.
- * @generated
- */
- XOseeEnumOverride createXOseeEnumOverride();
-
- /**
- * Returns a new object of class '<em>Override Option</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Override Option</em>'.
- * @generated
- */
- OverrideOption createOverrideOption();
-
- /**
- * Returns a new object of class '<em>Add Enum</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Add Enum</em>'.
- * @generated
- */
- AddEnum createAddEnum();
-
- /**
- * Returns a new object of class '<em>Remove Enum</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Remove Enum</em>'.
- * @generated
- */
- RemoveEnum createRemoveEnum();
-
- /**
- * Returns a new object of class '<em>XRelation Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XRelation Type</em>'.
- * @generated
- */
- XRelationType createXRelationType();
-
- /**
- * Returns a new object of class '<em>XArtifact Ref</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XArtifact Ref</em>'.
- * @generated
- */
- XArtifactRef createXArtifactRef();
-
- /**
- * Returns a new object of class '<em>XBranch Ref</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>XBranch Ref</em>'.
- * @generated
- */
- XBranchRef createXBranchRef();
-
- /**
- * Returns a new object of class '<em>Access Context</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Access Context</em>'.
- * @generated
- */
- AccessContext createAccessContext();
-
- /**
- * Returns a new object of class '<em>Hierarchy Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Hierarchy Restriction</em>'.
- * @generated
- */
- HierarchyRestriction createHierarchyRestriction();
-
- /**
- * Returns a new object of class '<em>Object Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Object Restriction</em>'.
- * @generated
- */
- ObjectRestriction createObjectRestriction();
-
- /**
- * Returns a new object of class '<em>Artifact Instance Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Artifact Instance Restriction</em>'.
- * @generated
- */
- ArtifactInstanceRestriction createArtifactInstanceRestriction();
-
- /**
- * Returns a new object of class '<em>Artifact Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Artifact Type Restriction</em>'.
- * @generated
- */
- ArtifactTypeRestriction createArtifactTypeRestriction();
-
- /**
- * Returns a new object of class '<em>Attribute Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Attribute Type Restriction</em>'.
- * @generated
- */
- AttributeTypeRestriction createAttributeTypeRestriction();
-
- /**
- * Returns a new object of class '<em>Relation Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Relation Type Restriction</em>'.
- * @generated
- */
- RelationTypeRestriction createRelationTypeRestriction();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- OseeDslPackage getOseeDslPackage();
-
-} //OseeDslFactory
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
+ * @generated
+ */
+public interface OseeDslFactory extends EFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ OseeDslFactory eINSTANCE = org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Osee Dsl</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Osee Dsl</em>'.
+ * @generated
+ */
+ OseeDsl createOseeDsl();
+
+ /**
+ * Returns a new object of class '<em>Import</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Import</em>'.
+ * @generated
+ */
+ Import createImport();
+
+ /**
+ * Returns a new object of class '<em>Osee Element</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Osee Element</em>'.
+ * @generated
+ */
+ OseeElement createOseeElement();
+
+ /**
+ * Returns a new object of class '<em>Osee Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Osee Type</em>'.
+ * @generated
+ */
+ OseeType createOseeType();
+
+ /**
+ * Returns a new object of class '<em>XArtifact Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XArtifact Type</em>'.
+ * @generated
+ */
+ XArtifactType createXArtifactType();
+
+ /**
+ * Returns a new object of class '<em>XAttribute Type Ref</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XAttribute Type Ref</em>'.
+ * @generated
+ */
+ XAttributeTypeRef createXAttributeTypeRef();
+
+ /**
+ * Returns a new object of class '<em>XAttribute Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XAttribute Type</em>'.
+ * @generated
+ */
+ XAttributeType createXAttributeType();
+
+ /**
+ * Returns a new object of class '<em>XOsee Enum Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XOsee Enum Type</em>'.
+ * @generated
+ */
+ XOseeEnumType createXOseeEnumType();
+
+ /**
+ * Returns a new object of class '<em>XOsee Enum Entry</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XOsee Enum Entry</em>'.
+ * @generated
+ */
+ XOseeEnumEntry createXOseeEnumEntry();
+
+ /**
+ * Returns a new object of class '<em>XOsee Enum Override</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XOsee Enum Override</em>'.
+ * @generated
+ */
+ XOseeEnumOverride createXOseeEnumOverride();
+
+ /**
+ * Returns a new object of class '<em>Override Option</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Override Option</em>'.
+ * @generated
+ */
+ OverrideOption createOverrideOption();
+
+ /**
+ * Returns a new object of class '<em>Add Enum</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Add Enum</em>'.
+ * @generated
+ */
+ AddEnum createAddEnum();
+
+ /**
+ * Returns a new object of class '<em>Remove Enum</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Remove Enum</em>'.
+ * @generated
+ */
+ RemoveEnum createRemoveEnum();
+
+ /**
+ * Returns a new object of class '<em>XRelation Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XRelation Type</em>'.
+ * @generated
+ */
+ XRelationType createXRelationType();
+
+ /**
+ * Returns a new object of class '<em>XArtifact Ref</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XArtifact Ref</em>'.
+ * @generated
+ */
+ XArtifactRef createXArtifactRef();
+
+ /**
+ * Returns a new object of class '<em>XBranch Ref</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>XBranch Ref</em>'.
+ * @generated
+ */
+ XBranchRef createXBranchRef();
+
+ /**
+ * Returns a new object of class '<em>Access Context</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Access Context</em>'.
+ * @generated
+ */
+ AccessContext createAccessContext();
+
+ /**
+ * Returns a new object of class '<em>Hierarchy Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Hierarchy Restriction</em>'.
+ * @generated
+ */
+ HierarchyRestriction createHierarchyRestriction();
+
+ /**
+ * Returns a new object of class '<em>Object Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Object Restriction</em>'.
+ * @generated
+ */
+ ObjectRestriction createObjectRestriction();
+
+ /**
+ * Returns a new object of class '<em>Artifact Instance Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Artifact Instance Restriction</em>'.
+ * @generated
+ */
+ ArtifactInstanceRestriction createArtifactInstanceRestriction();
+
+ /**
+ * Returns a new object of class '<em>Artifact Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Artifact Type Restriction</em>'.
+ * @generated
+ */
+ ArtifactTypeRestriction createArtifactTypeRestriction();
+
+ /**
+ * Returns a new object of class '<em>Attribute Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Attribute Type Restriction</em>'.
+ * @generated
+ */
+ AttributeTypeRestriction createAttributeTypeRestriction();
+
+ /**
+ * Returns a new object of class '<em>Relation Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Relation Type Restriction</em>'.
+ * @generated
+ */
+ RelationTypeRestriction createRelationTypeRestriction();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ OseeDslPackage getOseeDslPackage();
+
+} //OseeDslFactory
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java
index 770c18c7384..552752e45e0 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeDslPackage.java
@@ -1,2921 +1,2921 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslFactory
- * @model kind="package"
- * @generated
- */
-public interface OseeDslPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "oseeDsl";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/osee/framework/core/dsl/OseeDsl";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "oseeDsl";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- OseeDslPackage eINSTANCE = org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl <em>Osee Dsl</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeDsl()
- * @generated
- */
- int OSEE_DSL = 0;
-
- /**
- * The feature id for the '<em><b>Imports</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__IMPORTS = 0;
-
- /**
- * The feature id for the '<em><b>Artifact Types</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ARTIFACT_TYPES = 1;
-
- /**
- * The feature id for the '<em><b>Relation Types</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__RELATION_TYPES = 2;
-
- /**
- * The feature id for the '<em><b>Attribute Types</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ATTRIBUTE_TYPES = 3;
-
- /**
- * The feature id for the '<em><b>Enum Types</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ENUM_TYPES = 4;
-
- /**
- * The feature id for the '<em><b>Enum Overrides</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ENUM_OVERRIDES = 5;
-
- /**
- * The feature id for the '<em><b>Branch Refs</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__BRANCH_REFS = 6;
-
- /**
- * The feature id for the '<em><b>Artifact Refs</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ARTIFACT_REFS = 7;
-
- /**
- * The feature id for the '<em><b>Access Declarations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL__ACCESS_DECLARATIONS = 8;
-
- /**
- * The number of structural features of the '<em>Osee Dsl</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_DSL_FEATURE_COUNT = 9;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl <em>Import</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getImport()
- * @generated
- */
- int IMPORT = 1;
-
- /**
- * The feature id for the '<em><b>Import URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IMPORT__IMPORT_URI = 0;
-
- /**
- * The number of structural features of the '<em>Import</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int IMPORT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl <em>Osee Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeElement()
- * @generated
- */
- int OSEE_ELEMENT = 2;
-
- /**
- * The number of structural features of the '<em>Osee Element</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_ELEMENT_FEATURE_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl <em>Osee Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeType()
- * @generated
- */
- int OSEE_TYPE = 3;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_TYPE__NAME = OSEE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_TYPE__TYPE_GUID = OSEE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Osee Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OSEE_TYPE_FEATURE_COUNT = OSEE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl <em>XArtifact Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactType()
- * @generated
- */
- int XARTIFACT_TYPE = 4;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE__NAME = OSEE_TYPE__NAME;
-
- /**
- * The feature id for the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
-
- /**
- * The feature id for the '<em><b>Abstract</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE__ABSTRACT = OSEE_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Super Artifact Types</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES = OSEE_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Valid Attribute Types</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES = OSEE_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>XArtifact Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl <em>XAttribute Type Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeTypeRef()
- * @generated
- */
- int XATTRIBUTE_TYPE_REF = 5;
-
- /**
- * The feature id for the '<em><b>Valid Attribute Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE = 0;
-
- /**
- * The feature id for the '<em><b>Branch Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE_REF__BRANCH_GUID = 1;
-
- /**
- * The number of structural features of the '<em>XAttribute Type Ref</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE_REF_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl <em>XAttribute Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeType()
- * @generated
- */
- int XATTRIBUTE_TYPE = 6;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__NAME = OSEE_TYPE__NAME;
-
- /**
- * The feature id for the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
-
- /**
- * The feature id for the '<em><b>Base Attribute Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE = OSEE_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Override</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__OVERRIDE = OSEE_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Data Provider</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__DATA_PROVIDER = OSEE_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Min</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__MIN = OSEE_TYPE_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Max</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__MAX = OSEE_TYPE_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Tagger Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__TAGGER_ID = OSEE_TYPE_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the '<em><b>Enum Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__ENUM_TYPE = OSEE_TYPE_FEATURE_COUNT + 6;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__DESCRIPTION = OSEE_TYPE_FEATURE_COUNT + 7;
-
- /**
- * The feature id for the '<em><b>Default Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__DEFAULT_VALUE = OSEE_TYPE_FEATURE_COUNT + 8;
-
- /**
- * The feature id for the '<em><b>File Extension</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE__FILE_EXTENSION = OSEE_TYPE_FEATURE_COUNT + 9;
-
- /**
- * The number of structural features of the '<em>XAttribute Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XATTRIBUTE_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 10;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl <em>XOsee Enum Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumType()
- * @generated
- */
- int XOSEE_ENUM_TYPE = 7;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_TYPE__NAME = OSEE_TYPE__NAME;
-
- /**
- * The feature id for the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
-
- /**
- * The feature id for the '<em><b>Enum Entries</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_TYPE__ENUM_ENTRIES = OSEE_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>XOsee Enum Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl <em>XOsee Enum Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumEntry()
- * @generated
- */
- int XOSEE_ENUM_ENTRY = 8;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_ENTRY__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Ordinal</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_ENTRY__ORDINAL = 1;
-
- /**
- * The feature id for the '<em><b>Entry Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_ENTRY__ENTRY_GUID = 2;
-
- /**
- * The number of structural features of the '<em>XOsee Enum Entry</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_ENTRY_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl <em>XOsee Enum Override</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumOverride()
- * @generated
- */
- int XOSEE_ENUM_OVERRIDE = 9;
-
- /**
- * The feature id for the '<em><b>Overriden Enum Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE = OSEE_ELEMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Inherit All</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_OVERRIDE__INHERIT_ALL = OSEE_ELEMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Override Options</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS = OSEE_ELEMENT_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>XOsee Enum Override</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XOSEE_ENUM_OVERRIDE_FEATURE_COUNT = OSEE_ELEMENT_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl <em>Override Option</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOverrideOption()
- * @generated
- */
- int OVERRIDE_OPTION = 10;
-
- /**
- * The number of structural features of the '<em>Override Option</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OVERRIDE_OPTION_FEATURE_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl <em>Add Enum</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAddEnum()
- * @generated
- */
- int ADD_ENUM = 11;
-
- /**
- * The feature id for the '<em><b>Enum Entry</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ENUM__ENUM_ENTRY = OVERRIDE_OPTION_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Ordinal</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ENUM__ORDINAL = OVERRIDE_OPTION_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Entry Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ENUM__ENTRY_GUID = OVERRIDE_OPTION_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Add Enum</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ENUM_FEATURE_COUNT = OVERRIDE_OPTION_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl <em>Remove Enum</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRemoveEnum()
- * @generated
- */
- int REMOVE_ENUM = 12;
-
- /**
- * The feature id for the '<em><b>Enum Entry</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REMOVE_ENUM__ENUM_ENTRY = OVERRIDE_OPTION_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Remove Enum</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REMOVE_ENUM_FEATURE_COUNT = OVERRIDE_OPTION_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl <em>XRelation Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationType()
- * @generated
- */
- int XRELATION_TYPE = 13;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__NAME = OSEE_TYPE__NAME;
-
- /**
- * The feature id for the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
-
- /**
- * The feature id for the '<em><b>Side AName</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__SIDE_ANAME = OSEE_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Side AArtifact Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__SIDE_AARTIFACT_TYPE = OSEE_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Side BName</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__SIDE_BNAME = OSEE_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Side BArtifact Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__SIDE_BARTIFACT_TYPE = OSEE_TYPE_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Default Order Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__DEFAULT_ORDER_TYPE = OSEE_TYPE_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Multiplicity</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE__MULTIPLICITY = OSEE_TYPE_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>XRelation Type</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XRELATION_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl <em>XArtifact Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactRef()
- * @generated
- */
- int XARTIFACT_REF = 14;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_REF__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_REF__GUID = 1;
-
- /**
- * The number of structural features of the '<em>XArtifact Ref</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XARTIFACT_REF_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl <em>XBranch Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXBranchRef()
- * @generated
- */
- int XBRANCH_REF = 15;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XBRANCH_REF__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XBRANCH_REF__GUID = 1;
-
- /**
- * The number of structural features of the '<em>XBranch Ref</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int XBRANCH_REF_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl <em>Access Context</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessContext()
- * @generated
- */
- int ACCESS_CONTEXT = 16;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Super Access Contexts</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS = 1;
-
- /**
- * The feature id for the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT__GUID = 2;
-
- /**
- * The feature id for the '<em><b>Access Rules</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT__ACCESS_RULES = 3;
-
- /**
- * The feature id for the '<em><b>Hierarchy Restrictions</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS = 4;
-
- /**
- * The number of structural features of the '<em>Access Context</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTEXT_FEATURE_COUNT = 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl <em>Hierarchy Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getHierarchyRestriction()
- * @generated
- */
- int HIERARCHY_RESTRICTION = 17;
-
- /**
- * The feature id for the '<em><b>Artifact</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int HIERARCHY_RESTRICTION__ARTIFACT = 0;
-
- /**
- * The feature id for the '<em><b>Access Rules</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int HIERARCHY_RESTRICTION__ACCESS_RULES = 1;
-
- /**
- * The number of structural features of the '<em>Hierarchy Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int HIERARCHY_RESTRICTION_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl <em>Object Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getObjectRestriction()
- * @generated
- */
- int OBJECT_RESTRICTION = 18;
-
- /**
- * The feature id for the '<em><b>Permission</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OBJECT_RESTRICTION__PERMISSION = 0;
-
- /**
- * The number of structural features of the '<em>Object Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int OBJECT_RESTRICTION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl <em>Artifact Instance Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactInstanceRestriction()
- * @generated
- */
- int ARTIFACT_INSTANCE_RESTRICTION = 19;
-
- /**
- * The feature id for the '<em><b>Permission</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_INSTANCE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
-
- /**
- * The feature id for the '<em><b>Artifact Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Artifact Instance Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_INSTANCE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl <em>Artifact Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactTypeRestriction()
- * @generated
- */
- int ARTIFACT_TYPE_RESTRICTION = 20;
-
- /**
- * The feature id for the '<em><b>Permission</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
-
- /**
- * The feature id for the '<em><b>Artifact Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Artifact Type Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ARTIFACT_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl <em>Attribute Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAttributeTypeRestriction()
- * @generated
- */
- int ATTRIBUTE_TYPE_RESTRICTION = 21;
-
- /**
- * The feature id for the '<em><b>Permission</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ATTRIBUTE_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
-
- /**
- * The feature id for the '<em><b>Attribute Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Artifact Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Attribute Type Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ATTRIBUTE_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl <em>Relation Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationTypeRestriction()
- * @generated
- */
- int RELATION_TYPE_RESTRICTION = 22;
-
- /**
- * The feature id for the '<em><b>Permission</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RELATION_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
-
- /**
- * The feature id for the '<em><b>Relation Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Restricted To Side</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Relation Type Restriction</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int RELATION_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationMultiplicityEnum()
- * @generated
- */
- int RELATION_MULTIPLICITY_ENUM = 23;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessPermissionEnum()
- * @generated
- */
- int ACCESS_PERMISSION_ENUM = 24;
-
- /**
- * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationSideEnum()
- * @generated
- */
- int XRELATION_SIDE_ENUM = 25;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl <em>Osee Dsl</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Osee Dsl</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl
- * @generated
- */
- EClass getOseeDsl();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports <em>Imports</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Imports</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_Imports();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes <em>Artifact Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Artifact Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_ArtifactTypes();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes <em>Relation Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Relation Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_RelationTypes();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes <em>Attribute Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Attribute Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_AttributeTypes();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes <em>Enum Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Enum Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_EnumTypes();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides <em>Enum Overrides</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Enum Overrides</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_EnumOverrides();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs <em>Branch Refs</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Branch Refs</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_BranchRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs <em>Artifact Refs</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Artifact Refs</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_ArtifactRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations <em>Access Declarations</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Access Declarations</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations()
- * @see #getOseeDsl()
- * @generated
- */
- EReference getOseeDsl_AccessDeclarations();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import <em>Import</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Import</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import
- * @generated
- */
- EClass getImport();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Import URI</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI()
- * @see #getImport()
- * @generated
- */
- EAttribute getImport_ImportURI();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement <em>Osee Element</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Osee Element</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement
- * @generated
- */
- EClass getOseeElement();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType <em>Osee Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Osee Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType
- * @generated
- */
- EClass getOseeType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName()
- * @see #getOseeType()
- * @generated
- */
- EAttribute getOseeType_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Type Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid()
- * @see #getOseeType()
- * @generated
- */
- EAttribute getOseeType_TypeGuid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType <em>XArtifact Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XArtifact Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType
- * @generated
- */
- EClass getXArtifactType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Abstract</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract()
- * @see #getXArtifactType()
- * @generated
- */
- EAttribute getXArtifactType_Abstract();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes <em>Super Artifact Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Super Artifact Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes()
- * @see #getXArtifactType()
- * @generated
- */
- EReference getXArtifactType_SuperArtifactTypes();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes <em>Valid Attribute Types</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Valid Attribute Types</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes()
- * @see #getXArtifactType()
- * @generated
- */
- EReference getXArtifactType_ValidAttributeTypes();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef <em>XAttribute Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XAttribute Type Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef
- * @generated
- */
- EClass getXAttributeTypeRef();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Valid Attribute Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType()
- * @see #getXAttributeTypeRef()
- * @generated
- */
- EReference getXAttributeTypeRef_ValidAttributeType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Branch Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid()
- * @see #getXAttributeTypeRef()
- * @generated
- */
- EAttribute getXAttributeTypeRef_BranchGuid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType <em>XAttribute Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XAttribute Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType
- * @generated
- */
- EClass getXAttributeType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Base Attribute Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_BaseAttributeType();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Override</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride()
- * @see #getXAttributeType()
- * @generated
- */
- EReference getXAttributeType_Override();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Data Provider</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_DataProvider();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Min</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_Min();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Max</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_Max();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Tagger Id</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_TaggerId();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Enum Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType()
- * @see #getXAttributeType()
- * @generated
- */
- EReference getXAttributeType_EnumType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Description</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Default Value</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_DefaultValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>File Extension</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension()
- * @see #getXAttributeType()
- * @generated
- */
- EAttribute getXAttributeType_FileExtension();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType <em>XOsee Enum Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XOsee Enum Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType
- * @generated
- */
- EClass getXOseeEnumType();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries <em>Enum Entries</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Enum Entries</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries()
- * @see #getXOseeEnumType()
- * @generated
- */
- EReference getXOseeEnumType_EnumEntries();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry <em>XOsee Enum Entry</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XOsee Enum Entry</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry
- * @generated
- */
- EClass getXOseeEnumEntry();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName()
- * @see #getXOseeEnumEntry()
- * @generated
- */
- EAttribute getXOseeEnumEntry_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Ordinal</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal()
- * @see #getXOseeEnumEntry()
- * @generated
- */
- EAttribute getXOseeEnumEntry_Ordinal();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Entry Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid()
- * @see #getXOseeEnumEntry()
- * @generated
- */
- EAttribute getXOseeEnumEntry_EntryGuid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride <em>XOsee Enum Override</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XOsee Enum Override</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride
- * @generated
- */
- EClass getXOseeEnumOverride();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Overriden Enum Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType()
- * @see #getXOseeEnumOverride()
- * @generated
- */
- EReference getXOseeEnumOverride_OverridenEnumType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherit All</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll()
- * @see #getXOseeEnumOverride()
- * @generated
- */
- EAttribute getXOseeEnumOverride_InheritAll();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions <em>Override Options</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Override Options</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions()
- * @see #getXOseeEnumOverride()
- * @generated
- */
- EReference getXOseeEnumOverride_OverrideOptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption <em>Override Option</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Override Option</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption
- * @generated
- */
- EClass getOverrideOption();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum <em>Add Enum</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Add Enum</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum
- * @generated
- */
- EClass getAddEnum();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Enum Entry</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry()
- * @see #getAddEnum()
- * @generated
- */
- EAttribute getAddEnum_EnumEntry();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Ordinal</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal()
- * @see #getAddEnum()
- * @generated
- */
- EAttribute getAddEnum_Ordinal();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Entry Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid()
- * @see #getAddEnum()
- * @generated
- */
- EAttribute getAddEnum_EntryGuid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum <em>Remove Enum</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Remove Enum</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum
- * @generated
- */
- EClass getRemoveEnum();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Enum Entry</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry()
- * @see #getRemoveEnum()
- * @generated
- */
- EReference getRemoveEnum_EnumEntry();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType <em>XRelation Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XRelation Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType
- * @generated
- */
- EClass getXRelationType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Side AName</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName()
- * @see #getXRelationType()
- * @generated
- */
- EAttribute getXRelationType_SideAName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Side AArtifact Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType()
- * @see #getXRelationType()
- * @generated
- */
- EReference getXRelationType_SideAArtifactType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Side BName</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName()
- * @see #getXRelationType()
- * @generated
- */
- EAttribute getXRelationType_SideBName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Side BArtifact Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType()
- * @see #getXRelationType()
- * @generated
- */
- EReference getXRelationType_SideBArtifactType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Default Order Type</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType()
- * @see #getXRelationType()
- * @generated
- */
- EAttribute getXRelationType_DefaultOrderType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Multiplicity</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity()
- * @see #getXRelationType()
- * @generated
- */
- EAttribute getXRelationType_Multiplicity();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef <em>XArtifact Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XArtifact Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef
- * @generated
- */
- EClass getXArtifactRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName()
- * @see #getXArtifactRef()
- * @generated
- */
- EAttribute getXArtifactRef_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid()
- * @see #getXArtifactRef()
- * @generated
- */
- EAttribute getXArtifactRef_Guid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef <em>XBranch Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>XBranch Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef
- * @generated
- */
- EClass getXBranchRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName()
- * @see #getXBranchRef()
- * @generated
- */
- EAttribute getXBranchRef_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid()
- * @see #getXBranchRef()
- * @generated
- */
- EAttribute getXBranchRef_Guid();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext <em>Access Context</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Access Context</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext
- * @generated
- */
- EClass getAccessContext();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName()
- * @see #getAccessContext()
- * @generated
- */
- EAttribute getAccessContext_Name();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts <em>Super Access Contexts</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Super Access Contexts</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts()
- * @see #getAccessContext()
- * @generated
- */
- EReference getAccessContext_SuperAccessContexts();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Guid</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid()
- * @see #getAccessContext()
- * @generated
- */
- EAttribute getAccessContext_Guid();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules <em>Access Rules</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Access Rules</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules()
- * @see #getAccessContext()
- * @generated
- */
- EReference getAccessContext_AccessRules();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Hierarchy Restrictions</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions()
- * @see #getAccessContext()
- * @generated
- */
- EReference getAccessContext_HierarchyRestrictions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction <em>Hierarchy Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Hierarchy Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction
- * @generated
- */
- EClass getHierarchyRestriction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Artifact</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact()
- * @see #getHierarchyRestriction()
- * @generated
- */
- EReference getHierarchyRestriction_Artifact();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules <em>Access Rules</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Access Rules</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules()
- * @see #getHierarchyRestriction()
- * @generated
- */
- EReference getHierarchyRestriction_AccessRules();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction <em>Object Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Object Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction
- * @generated
- */
- EClass getObjectRestriction();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Permission</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission()
- * @see #getObjectRestriction()
- * @generated
- */
- EAttribute getObjectRestriction_Permission();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction <em>Artifact Instance Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Artifact Instance Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction
- * @generated
- */
- EClass getArtifactInstanceRestriction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Artifact Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef()
- * @see #getArtifactInstanceRestriction()
- * @generated
- */
- EReference getArtifactInstanceRestriction_ArtifactRef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction <em>Artifact Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Artifact Type Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction
- * @generated
- */
- EClass getArtifactTypeRestriction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Artifact Type Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef()
- * @see #getArtifactTypeRestriction()
- * @generated
- */
- EReference getArtifactTypeRestriction_ArtifactTypeRef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction <em>Attribute Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Attribute Type Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction
- * @generated
- */
- EClass getAttributeTypeRestriction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Attribute Type Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef()
- * @see #getAttributeTypeRestriction()
- * @generated
- */
- EReference getAttributeTypeRestriction_AttributeTypeRef();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Artifact Type Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef()
- * @see #getAttributeTypeRestriction()
- * @generated
- */
- EReference getAttributeTypeRestriction_ArtifactTypeRef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction <em>Relation Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Relation Type Restriction</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction
- * @generated
- */
- EClass getRelationTypeRestriction();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Relation Type Ref</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef()
- * @see #getRelationTypeRestriction()
- * @generated
- */
- EReference getRelationTypeRestriction_RelationTypeRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Restricted To Side</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide()
- * @see #getRelationTypeRestriction()
- * @generated
- */
- EAttribute getRelationTypeRestriction_RestrictedToSide();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>Relation Multiplicity Enum</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
- * @generated
- */
- EEnum getRelationMultiplicityEnum();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>Access Permission Enum</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
- * @generated
- */
- EEnum getAccessPermissionEnum();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>XRelation Side Enum</em>'.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
- * @generated
- */
- EEnum getXRelationSideEnum();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- OseeDslFactory getOseeDslFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl <em>Osee Dsl</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeDsl()
- * @generated
- */
- EClass OSEE_DSL = eINSTANCE.getOseeDsl();
-
- /**
- * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__IMPORTS = eINSTANCE.getOseeDsl_Imports();
-
- /**
- * The meta object literal for the '<em><b>Artifact Types</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ARTIFACT_TYPES = eINSTANCE.getOseeDsl_ArtifactTypes();
-
- /**
- * The meta object literal for the '<em><b>Relation Types</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__RELATION_TYPES = eINSTANCE.getOseeDsl_RelationTypes();
-
- /**
- * The meta object literal for the '<em><b>Attribute Types</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ATTRIBUTE_TYPES = eINSTANCE.getOseeDsl_AttributeTypes();
-
- /**
- * The meta object literal for the '<em><b>Enum Types</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ENUM_TYPES = eINSTANCE.getOseeDsl_EnumTypes();
-
- /**
- * The meta object literal for the '<em><b>Enum Overrides</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ENUM_OVERRIDES = eINSTANCE.getOseeDsl_EnumOverrides();
-
- /**
- * The meta object literal for the '<em><b>Branch Refs</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__BRANCH_REFS = eINSTANCE.getOseeDsl_BranchRefs();
-
- /**
- * The meta object literal for the '<em><b>Artifact Refs</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ARTIFACT_REFS = eINSTANCE.getOseeDsl_ArtifactRefs();
-
- /**
- * The meta object literal for the '<em><b>Access Declarations</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference OSEE_DSL__ACCESS_DECLARATIONS = eINSTANCE.getOseeDsl_AccessDeclarations();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl <em>Import</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getImport()
- * @generated
- */
- EClass IMPORT = eINSTANCE.getImport();
-
- /**
- * The meta object literal for the '<em><b>Import URI</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute IMPORT__IMPORT_URI = eINSTANCE.getImport_ImportURI();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl <em>Osee Element</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeElement()
- * @generated
- */
- EClass OSEE_ELEMENT = eINSTANCE.getOseeElement();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl <em>Osee Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeType()
- * @generated
- */
- EClass OSEE_TYPE = eINSTANCE.getOseeType();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute OSEE_TYPE__NAME = eINSTANCE.getOseeType_Name();
-
- /**
- * The meta object literal for the '<em><b>Type Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute OSEE_TYPE__TYPE_GUID = eINSTANCE.getOseeType_TypeGuid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl <em>XArtifact Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactType()
- * @generated
- */
- EClass XARTIFACT_TYPE = eINSTANCE.getXArtifactType();
-
- /**
- * The meta object literal for the '<em><b>Abstract</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XARTIFACT_TYPE__ABSTRACT = eINSTANCE.getXArtifactType_Abstract();
-
- /**
- * The meta object literal for the '<em><b>Super Artifact Types</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES = eINSTANCE.getXArtifactType_SuperArtifactTypes();
-
- /**
- * The meta object literal for the '<em><b>Valid Attribute Types</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES = eINSTANCE.getXArtifactType_ValidAttributeTypes();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl <em>XAttribute Type Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeTypeRef()
- * @generated
- */
- EClass XATTRIBUTE_TYPE_REF = eINSTANCE.getXAttributeTypeRef();
-
- /**
- * The meta object literal for the '<em><b>Valid Attribute Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE = eINSTANCE.getXAttributeTypeRef_ValidAttributeType();
-
- /**
- * The meta object literal for the '<em><b>Branch Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE_REF__BRANCH_GUID = eINSTANCE.getXAttributeTypeRef_BranchGuid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl <em>XAttribute Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeType()
- * @generated
- */
- EClass XATTRIBUTE_TYPE = eINSTANCE.getXAttributeType();
-
- /**
- * The meta object literal for the '<em><b>Base Attribute Type</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE = eINSTANCE.getXAttributeType_BaseAttributeType();
-
- /**
- * The meta object literal for the '<em><b>Override</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XATTRIBUTE_TYPE__OVERRIDE = eINSTANCE.getXAttributeType_Override();
-
- /**
- * The meta object literal for the '<em><b>Data Provider</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__DATA_PROVIDER = eINSTANCE.getXAttributeType_DataProvider();
-
- /**
- * The meta object literal for the '<em><b>Min</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__MIN = eINSTANCE.getXAttributeType_Min();
-
- /**
- * The meta object literal for the '<em><b>Max</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__MAX = eINSTANCE.getXAttributeType_Max();
-
- /**
- * The meta object literal for the '<em><b>Tagger Id</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__TAGGER_ID = eINSTANCE.getXAttributeType_TaggerId();
-
- /**
- * The meta object literal for the '<em><b>Enum Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XATTRIBUTE_TYPE__ENUM_TYPE = eINSTANCE.getXAttributeType_EnumType();
-
- /**
- * The meta object literal for the '<em><b>Description</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__DESCRIPTION = eINSTANCE.getXAttributeType_Description();
-
- /**
- * The meta object literal for the '<em><b>Default Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__DEFAULT_VALUE = eINSTANCE.getXAttributeType_DefaultValue();
-
- /**
- * The meta object literal for the '<em><b>File Extension</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XATTRIBUTE_TYPE__FILE_EXTENSION = eINSTANCE.getXAttributeType_FileExtension();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl <em>XOsee Enum Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumType()
- * @generated
- */
- EClass XOSEE_ENUM_TYPE = eINSTANCE.getXOseeEnumType();
-
- /**
- * The meta object literal for the '<em><b>Enum Entries</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XOSEE_ENUM_TYPE__ENUM_ENTRIES = eINSTANCE.getXOseeEnumType_EnumEntries();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl <em>XOsee Enum Entry</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumEntry()
- * @generated
- */
- EClass XOSEE_ENUM_ENTRY = eINSTANCE.getXOseeEnumEntry();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XOSEE_ENUM_ENTRY__NAME = eINSTANCE.getXOseeEnumEntry_Name();
-
- /**
- * The meta object literal for the '<em><b>Ordinal</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XOSEE_ENUM_ENTRY__ORDINAL = eINSTANCE.getXOseeEnumEntry_Ordinal();
-
- /**
- * The meta object literal for the '<em><b>Entry Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XOSEE_ENUM_ENTRY__ENTRY_GUID = eINSTANCE.getXOseeEnumEntry_EntryGuid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl <em>XOsee Enum Override</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumOverride()
- * @generated
- */
- EClass XOSEE_ENUM_OVERRIDE = eINSTANCE.getXOseeEnumOverride();
-
- /**
- * The meta object literal for the '<em><b>Overriden Enum Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE = eINSTANCE.getXOseeEnumOverride_OverridenEnumType();
-
- /**
- * The meta object literal for the '<em><b>Inherit All</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XOSEE_ENUM_OVERRIDE__INHERIT_ALL = eINSTANCE.getXOseeEnumOverride_InheritAll();
-
- /**
- * The meta object literal for the '<em><b>Override Options</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS = eINSTANCE.getXOseeEnumOverride_OverrideOptions();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl <em>Override Option</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOverrideOption()
- * @generated
- */
- EClass OVERRIDE_OPTION = eINSTANCE.getOverrideOption();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl <em>Add Enum</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAddEnum()
- * @generated
- */
- EClass ADD_ENUM = eINSTANCE.getAddEnum();
-
- /**
- * The meta object literal for the '<em><b>Enum Entry</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ADD_ENUM__ENUM_ENTRY = eINSTANCE.getAddEnum_EnumEntry();
-
- /**
- * The meta object literal for the '<em><b>Ordinal</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ADD_ENUM__ORDINAL = eINSTANCE.getAddEnum_Ordinal();
-
- /**
- * The meta object literal for the '<em><b>Entry Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ADD_ENUM__ENTRY_GUID = eINSTANCE.getAddEnum_EntryGuid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl <em>Remove Enum</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRemoveEnum()
- * @generated
- */
- EClass REMOVE_ENUM = eINSTANCE.getRemoveEnum();
-
- /**
- * The meta object literal for the '<em><b>Enum Entry</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference REMOVE_ENUM__ENUM_ENTRY = eINSTANCE.getRemoveEnum_EnumEntry();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl <em>XRelation Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationType()
- * @generated
- */
- EClass XRELATION_TYPE = eINSTANCE.getXRelationType();
-
- /**
- * The meta object literal for the '<em><b>Side AName</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XRELATION_TYPE__SIDE_ANAME = eINSTANCE.getXRelationType_SideAName();
-
- /**
- * The meta object literal for the '<em><b>Side AArtifact Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XRELATION_TYPE__SIDE_AARTIFACT_TYPE = eINSTANCE.getXRelationType_SideAArtifactType();
-
- /**
- * The meta object literal for the '<em><b>Side BName</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XRELATION_TYPE__SIDE_BNAME = eINSTANCE.getXRelationType_SideBName();
-
- /**
- * The meta object literal for the '<em><b>Side BArtifact Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference XRELATION_TYPE__SIDE_BARTIFACT_TYPE = eINSTANCE.getXRelationType_SideBArtifactType();
-
- /**
- * The meta object literal for the '<em><b>Default Order Type</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XRELATION_TYPE__DEFAULT_ORDER_TYPE = eINSTANCE.getXRelationType_DefaultOrderType();
-
- /**
- * The meta object literal for the '<em><b>Multiplicity</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XRELATION_TYPE__MULTIPLICITY = eINSTANCE.getXRelationType_Multiplicity();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl <em>XArtifact Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactRef()
- * @generated
- */
- EClass XARTIFACT_REF = eINSTANCE.getXArtifactRef();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XARTIFACT_REF__NAME = eINSTANCE.getXArtifactRef_Name();
-
- /**
- * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XARTIFACT_REF__GUID = eINSTANCE.getXArtifactRef_Guid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl <em>XBranch Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXBranchRef()
- * @generated
- */
- EClass XBRANCH_REF = eINSTANCE.getXBranchRef();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XBRANCH_REF__NAME = eINSTANCE.getXBranchRef_Name();
-
- /**
- * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute XBRANCH_REF__GUID = eINSTANCE.getXBranchRef_Guid();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl <em>Access Context</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessContext()
- * @generated
- */
- EClass ACCESS_CONTEXT = eINSTANCE.getAccessContext();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACCESS_CONTEXT__NAME = eINSTANCE.getAccessContext_Name();
-
- /**
- * The meta object literal for the '<em><b>Super Access Contexts</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS = eINSTANCE.getAccessContext_SuperAccessContexts();
-
- /**
- * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ACCESS_CONTEXT__GUID = eINSTANCE.getAccessContext_Guid();
-
- /**
- * The meta object literal for the '<em><b>Access Rules</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ACCESS_CONTEXT__ACCESS_RULES = eINSTANCE.getAccessContext_AccessRules();
-
- /**
- * The meta object literal for the '<em><b>Hierarchy Restrictions</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS = eINSTANCE.getAccessContext_HierarchyRestrictions();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl <em>Hierarchy Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getHierarchyRestriction()
- * @generated
- */
- EClass HIERARCHY_RESTRICTION = eINSTANCE.getHierarchyRestriction();
-
- /**
- * The meta object literal for the '<em><b>Artifact</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference HIERARCHY_RESTRICTION__ARTIFACT = eINSTANCE.getHierarchyRestriction_Artifact();
-
- /**
- * The meta object literal for the '<em><b>Access Rules</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference HIERARCHY_RESTRICTION__ACCESS_RULES = eINSTANCE.getHierarchyRestriction_AccessRules();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl <em>Object Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getObjectRestriction()
- * @generated
- */
- EClass OBJECT_RESTRICTION = eINSTANCE.getObjectRestriction();
-
- /**
- * The meta object literal for the '<em><b>Permission</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute OBJECT_RESTRICTION__PERMISSION = eINSTANCE.getObjectRestriction_Permission();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl <em>Artifact Instance Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactInstanceRestriction()
- * @generated
- */
- EClass ARTIFACT_INSTANCE_RESTRICTION = eINSTANCE.getArtifactInstanceRestriction();
-
- /**
- * The meta object literal for the '<em><b>Artifact Ref</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF = eINSTANCE.getArtifactInstanceRestriction_ArtifactRef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl <em>Artifact Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactTypeRestriction()
- * @generated
- */
- EClass ARTIFACT_TYPE_RESTRICTION = eINSTANCE.getArtifactTypeRestriction();
-
- /**
- * The meta object literal for the '<em><b>Artifact Type Ref</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = eINSTANCE.getArtifactTypeRestriction_ArtifactTypeRef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl <em>Attribute Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAttributeTypeRestriction()
- * @generated
- */
- EClass ATTRIBUTE_TYPE_RESTRICTION = eINSTANCE.getAttributeTypeRestriction();
-
- /**
- * The meta object literal for the '<em><b>Attribute Type Ref</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF = eINSTANCE.getAttributeTypeRestriction_AttributeTypeRef();
-
- /**
- * The meta object literal for the '<em><b>Artifact Type Ref</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = eINSTANCE.getAttributeTypeRestriction_ArtifactTypeRef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl <em>Relation Type Restriction</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationTypeRestriction()
- * @generated
- */
- EClass RELATION_TYPE_RESTRICTION = eINSTANCE.getRelationTypeRestriction();
-
- /**
- * The meta object literal for the '<em><b>Relation Type Ref</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF = eINSTANCE.getRelationTypeRestriction_RelationTypeRef();
-
- /**
- * The meta object literal for the '<em><b>Restricted To Side</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE = eINSTANCE.getRelationTypeRestriction_RestrictedToSide();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationMultiplicityEnum()
- * @generated
- */
- EEnum RELATION_MULTIPLICITY_ENUM = eINSTANCE.getRelationMultiplicityEnum();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessPermissionEnum()
- * @generated
- */
- EEnum ACCESS_PERMISSION_ENUM = eINSTANCE.getAccessPermissionEnum();
-
- /**
- * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationSideEnum()
- * @generated
- */
- EEnum XRELATION_SIDE_ENUM = eINSTANCE.getXRelationSideEnum();
-
- }
-
-} //OseeDslPackage
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface OseeDslPackage extends EPackage
+{
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "oseeDsl";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/osee/framework/core/dsl/OseeDsl";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "oseeDsl";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ OseeDslPackage eINSTANCE = org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl <em>Osee Dsl</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeDsl()
+ * @generated
+ */
+ int OSEE_DSL = 0;
+
+ /**
+ * The feature id for the '<em><b>Imports</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__IMPORTS = 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Types</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ARTIFACT_TYPES = 1;
+
+ /**
+ * The feature id for the '<em><b>Relation Types</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__RELATION_TYPES = 2;
+
+ /**
+ * The feature id for the '<em><b>Attribute Types</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ATTRIBUTE_TYPES = 3;
+
+ /**
+ * The feature id for the '<em><b>Enum Types</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ENUM_TYPES = 4;
+
+ /**
+ * The feature id for the '<em><b>Enum Overrides</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ENUM_OVERRIDES = 5;
+
+ /**
+ * The feature id for the '<em><b>Branch Refs</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__BRANCH_REFS = 6;
+
+ /**
+ * The feature id for the '<em><b>Artifact Refs</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ARTIFACT_REFS = 7;
+
+ /**
+ * The feature id for the '<em><b>Access Declarations</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL__ACCESS_DECLARATIONS = 8;
+
+ /**
+ * The number of structural features of the '<em>Osee Dsl</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_DSL_FEATURE_COUNT = 9;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl <em>Import</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getImport()
+ * @generated
+ */
+ int IMPORT = 1;
+
+ /**
+ * The feature id for the '<em><b>Import URI</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IMPORT__IMPORT_URI = 0;
+
+ /**
+ * The number of structural features of the '<em>Import</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IMPORT_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl <em>Osee Element</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeElement()
+ * @generated
+ */
+ int OSEE_ELEMENT = 2;
+
+ /**
+ * The number of structural features of the '<em>Osee Element</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_ELEMENT_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl <em>Osee Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeType()
+ * @generated
+ */
+ int OSEE_TYPE = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_TYPE__NAME = OSEE_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_TYPE__TYPE_GUID = OSEE_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Osee Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OSEE_TYPE_FEATURE_COUNT = OSEE_ELEMENT_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl <em>XArtifact Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactType()
+ * @generated
+ */
+ int XARTIFACT_TYPE = 4;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE__NAME = OSEE_TYPE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
+
+ /**
+ * The feature id for the '<em><b>Abstract</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE__ABSTRACT = OSEE_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Super Artifact Types</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES = OSEE_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Valid Attribute Types</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES = OSEE_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>XArtifact Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl <em>XAttribute Type Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeTypeRef()
+ * @generated
+ */
+ int XATTRIBUTE_TYPE_REF = 5;
+
+ /**
+ * The feature id for the '<em><b>Valid Attribute Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE = 0;
+
+ /**
+ * The feature id for the '<em><b>Branch Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE_REF__BRANCH_GUID = 1;
+
+ /**
+ * The number of structural features of the '<em>XAttribute Type Ref</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE_REF_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl <em>XAttribute Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeType()
+ * @generated
+ */
+ int XATTRIBUTE_TYPE = 6;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__NAME = OSEE_TYPE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
+
+ /**
+ * The feature id for the '<em><b>Base Attribute Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE = OSEE_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Override</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__OVERRIDE = OSEE_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Data Provider</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__DATA_PROVIDER = OSEE_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Min</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__MIN = OSEE_TYPE_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Max</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__MAX = OSEE_TYPE_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Tagger Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__TAGGER_ID = OSEE_TYPE_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the '<em><b>Enum Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__ENUM_TYPE = OSEE_TYPE_FEATURE_COUNT + 6;
+
+ /**
+ * The feature id for the '<em><b>Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__DESCRIPTION = OSEE_TYPE_FEATURE_COUNT + 7;
+
+ /**
+ * The feature id for the '<em><b>Default Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__DEFAULT_VALUE = OSEE_TYPE_FEATURE_COUNT + 8;
+
+ /**
+ * The feature id for the '<em><b>File Extension</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE__FILE_EXTENSION = OSEE_TYPE_FEATURE_COUNT + 9;
+
+ /**
+ * The number of structural features of the '<em>XAttribute Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XATTRIBUTE_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 10;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl <em>XOsee Enum Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumType()
+ * @generated
+ */
+ int XOSEE_ENUM_TYPE = 7;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_TYPE__NAME = OSEE_TYPE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
+
+ /**
+ * The feature id for the '<em><b>Enum Entries</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_TYPE__ENUM_ENTRIES = OSEE_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>XOsee Enum Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl <em>XOsee Enum Entry</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumEntry()
+ * @generated
+ */
+ int XOSEE_ENUM_ENTRY = 8;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_ENTRY__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Ordinal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_ENTRY__ORDINAL = 1;
+
+ /**
+ * The feature id for the '<em><b>Entry Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_ENTRY__ENTRY_GUID = 2;
+
+ /**
+ * The number of structural features of the '<em>XOsee Enum Entry</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_ENTRY_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl <em>XOsee Enum Override</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumOverride()
+ * @generated
+ */
+ int XOSEE_ENUM_OVERRIDE = 9;
+
+ /**
+ * The feature id for the '<em><b>Overriden Enum Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE = OSEE_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Inherit All</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_OVERRIDE__INHERIT_ALL = OSEE_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Override Options</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS = OSEE_ELEMENT_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>XOsee Enum Override</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XOSEE_ENUM_OVERRIDE_FEATURE_COUNT = OSEE_ELEMENT_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl <em>Override Option</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOverrideOption()
+ * @generated
+ */
+ int OVERRIDE_OPTION = 10;
+
+ /**
+ * The number of structural features of the '<em>Override Option</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OVERRIDE_OPTION_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl <em>Add Enum</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAddEnum()
+ * @generated
+ */
+ int ADD_ENUM = 11;
+
+ /**
+ * The feature id for the '<em><b>Enum Entry</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ADD_ENUM__ENUM_ENTRY = OVERRIDE_OPTION_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Ordinal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ADD_ENUM__ORDINAL = OVERRIDE_OPTION_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Entry Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ADD_ENUM__ENTRY_GUID = OVERRIDE_OPTION_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>Add Enum</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ADD_ENUM_FEATURE_COUNT = OVERRIDE_OPTION_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl <em>Remove Enum</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRemoveEnum()
+ * @generated
+ */
+ int REMOVE_ENUM = 12;
+
+ /**
+ * The feature id for the '<em><b>Enum Entry</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REMOVE_ENUM__ENUM_ENTRY = OVERRIDE_OPTION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Remove Enum</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REMOVE_ENUM_FEATURE_COUNT = OVERRIDE_OPTION_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl <em>XRelation Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationType()
+ * @generated
+ */
+ int XRELATION_TYPE = 13;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__NAME = OSEE_TYPE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__TYPE_GUID = OSEE_TYPE__TYPE_GUID;
+
+ /**
+ * The feature id for the '<em><b>Side AName</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__SIDE_ANAME = OSEE_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Side AArtifact Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__SIDE_AARTIFACT_TYPE = OSEE_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Side BName</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__SIDE_BNAME = OSEE_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Side BArtifact Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__SIDE_BARTIFACT_TYPE = OSEE_TYPE_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Default Order Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__DEFAULT_ORDER_TYPE = OSEE_TYPE_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Multiplicity</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE__MULTIPLICITY = OSEE_TYPE_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>XRelation Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XRELATION_TYPE_FEATURE_COUNT = OSEE_TYPE_FEATURE_COUNT + 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl <em>XArtifact Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactRef()
+ * @generated
+ */
+ int XARTIFACT_REF = 14;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_REF__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_REF__GUID = 1;
+
+ /**
+ * The number of structural features of the '<em>XArtifact Ref</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XARTIFACT_REF_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl <em>XBranch Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXBranchRef()
+ * @generated
+ */
+ int XBRANCH_REF = 15;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XBRANCH_REF__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XBRANCH_REF__GUID = 1;
+
+ /**
+ * The number of structural features of the '<em>XBranch Ref</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int XBRANCH_REF_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl <em>Access Context</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessContext()
+ * @generated
+ */
+ int ACCESS_CONTEXT = 16;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Super Access Contexts</b></em>' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS = 1;
+
+ /**
+ * The feature id for the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT__GUID = 2;
+
+ /**
+ * The feature id for the '<em><b>Access Rules</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT__ACCESS_RULES = 3;
+
+ /**
+ * The feature id for the '<em><b>Hierarchy Restrictions</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS = 4;
+
+ /**
+ * The number of structural features of the '<em>Access Context</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTEXT_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl <em>Hierarchy Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getHierarchyRestriction()
+ * @generated
+ */
+ int HIERARCHY_RESTRICTION = 17;
+
+ /**
+ * The feature id for the '<em><b>Artifact</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_RESTRICTION__ARTIFACT = 0;
+
+ /**
+ * The feature id for the '<em><b>Access Rules</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_RESTRICTION__ACCESS_RULES = 1;
+
+ /**
+ * The number of structural features of the '<em>Hierarchy Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_RESTRICTION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl <em>Object Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getObjectRestriction()
+ * @generated
+ */
+ int OBJECT_RESTRICTION = 18;
+
+ /**
+ * The feature id for the '<em><b>Permission</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OBJECT_RESTRICTION__PERMISSION = 0;
+
+ /**
+ * The number of structural features of the '<em>Object Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OBJECT_RESTRICTION_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl <em>Artifact Instance Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactInstanceRestriction()
+ * @generated
+ */
+ int ARTIFACT_INSTANCE_RESTRICTION = 19;
+
+ /**
+ * The feature id for the '<em><b>Permission</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_INSTANCE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
+
+ /**
+ * The feature id for the '<em><b>Artifact Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Artifact Instance Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_INSTANCE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl <em>Artifact Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactTypeRestriction()
+ * @generated
+ */
+ int ARTIFACT_TYPE_RESTRICTION = 20;
+
+ /**
+ * The feature id for the '<em><b>Permission</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
+
+ /**
+ * The feature id for the '<em><b>Artifact Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Artifact Type Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ARTIFACT_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl <em>Attribute Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAttributeTypeRestriction()
+ * @generated
+ */
+ int ATTRIBUTE_TYPE_RESTRICTION = 21;
+
+ /**
+ * The feature id for the '<em><b>Permission</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ATTRIBUTE_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
+
+ /**
+ * The feature id for the '<em><b>Attribute Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Artifact Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Attribute Type Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ATTRIBUTE_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl <em>Relation Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationTypeRestriction()
+ * @generated
+ */
+ int RELATION_TYPE_RESTRICTION = 22;
+
+ /**
+ * The feature id for the '<em><b>Permission</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RELATION_TYPE_RESTRICTION__PERMISSION = OBJECT_RESTRICTION__PERMISSION;
+
+ /**
+ * The feature id for the '<em><b>Relation Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF = OBJECT_RESTRICTION_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Restricted To Side</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE = OBJECT_RESTRICTION_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Relation Type Restriction</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RELATION_TYPE_RESTRICTION_FEATURE_COUNT = OBJECT_RESTRICTION_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationMultiplicityEnum()
+ * @generated
+ */
+ int RELATION_MULTIPLICITY_ENUM = 23;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessPermissionEnum()
+ * @generated
+ */
+ int ACCESS_PERMISSION_ENUM = 24;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationSideEnum()
+ * @generated
+ */
+ int XRELATION_SIDE_ENUM = 25;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl <em>Osee Dsl</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Osee Dsl</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl
+ * @generated
+ */
+ EClass getOseeDsl();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports <em>Imports</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Imports</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getImports()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_Imports();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes <em>Artifact Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Artifact Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactTypes()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_ArtifactTypes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes <em>Relation Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Relation Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getRelationTypes()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_RelationTypes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes <em>Attribute Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Attribute Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAttributeTypes()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_AttributeTypes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes <em>Enum Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Enum Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumTypes()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_EnumTypes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides <em>Enum Overrides</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Enum Overrides</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getEnumOverrides()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_EnumOverrides();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs <em>Branch Refs</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Branch Refs</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getBranchRefs()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_BranchRefs();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs <em>Artifact Refs</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Artifact Refs</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getArtifactRefs()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_ArtifactRefs();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations <em>Access Declarations</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Access Declarations</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl#getAccessDeclarations()
+ * @see #getOseeDsl()
+ * @generated
+ */
+ EReference getOseeDsl_AccessDeclarations();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import <em>Import</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Import</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import
+ * @generated
+ */
+ EClass getImport();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI <em>Import URI</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Import URI</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import#getImportURI()
+ * @see #getImport()
+ * @generated
+ */
+ EAttribute getImport_ImportURI();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement <em>Osee Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Osee Element</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement
+ * @generated
+ */
+ EClass getOseeElement();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType <em>Osee Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Osee Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType
+ * @generated
+ */
+ EClass getOseeType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName()
+ * @see #getOseeType()
+ * @generated
+ */
+ EAttribute getOseeType_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid()
+ * @see #getOseeType()
+ * @generated
+ */
+ EAttribute getOseeType_TypeGuid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType <em>XArtifact Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XArtifact Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType
+ * @generated
+ */
+ EClass getXArtifactType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Abstract</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract()
+ * @see #getXArtifactType()
+ * @generated
+ */
+ EAttribute getXArtifactType_Abstract();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes <em>Super Artifact Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference list '<em>Super Artifact Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes()
+ * @see #getXArtifactType()
+ * @generated
+ */
+ EReference getXArtifactType_SuperArtifactTypes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes <em>Valid Attribute Types</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Valid Attribute Types</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes()
+ * @see #getXArtifactType()
+ * @generated
+ */
+ EReference getXArtifactType_ValidAttributeTypes();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef <em>XAttribute Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XAttribute Type Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef
+ * @generated
+ */
+ EClass getXAttributeTypeRef();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Valid Attribute Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType()
+ * @see #getXAttributeTypeRef()
+ * @generated
+ */
+ EReference getXAttributeTypeRef_ValidAttributeType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Branch Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid()
+ * @see #getXAttributeTypeRef()
+ * @generated
+ */
+ EAttribute getXAttributeTypeRef_BranchGuid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType <em>XAttribute Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XAttribute Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType
+ * @generated
+ */
+ EClass getXAttributeType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Base Attribute Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_BaseAttributeType();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Override</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EReference getXAttributeType_Override();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Data Provider</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_DataProvider();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Min</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_Min();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Max</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_Max();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Tagger Id</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_TaggerId();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Enum Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EReference getXAttributeType_EnumType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Description</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_Description();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Default Value</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_DefaultValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>File Extension</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension()
+ * @see #getXAttributeType()
+ * @generated
+ */
+ EAttribute getXAttributeType_FileExtension();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType <em>XOsee Enum Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XOsee Enum Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType
+ * @generated
+ */
+ EClass getXOseeEnumType();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries <em>Enum Entries</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Enum Entries</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries()
+ * @see #getXOseeEnumType()
+ * @generated
+ */
+ EReference getXOseeEnumType_EnumEntries();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry <em>XOsee Enum Entry</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XOsee Enum Entry</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry
+ * @generated
+ */
+ EClass getXOseeEnumEntry();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName()
+ * @see #getXOseeEnumEntry()
+ * @generated
+ */
+ EAttribute getXOseeEnumEntry_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Ordinal</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal()
+ * @see #getXOseeEnumEntry()
+ * @generated
+ */
+ EAttribute getXOseeEnumEntry_Ordinal();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Entry Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid()
+ * @see #getXOseeEnumEntry()
+ * @generated
+ */
+ EAttribute getXOseeEnumEntry_EntryGuid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride <em>XOsee Enum Override</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XOsee Enum Override</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride
+ * @generated
+ */
+ EClass getXOseeEnumOverride();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Overriden Enum Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType()
+ * @see #getXOseeEnumOverride()
+ * @generated
+ */
+ EReference getXOseeEnumOverride_OverridenEnumType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Inherit All</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll()
+ * @see #getXOseeEnumOverride()
+ * @generated
+ */
+ EAttribute getXOseeEnumOverride_InheritAll();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions <em>Override Options</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Override Options</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions()
+ * @see #getXOseeEnumOverride()
+ * @generated
+ */
+ EReference getXOseeEnumOverride_OverrideOptions();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption <em>Override Option</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Override Option</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption
+ * @generated
+ */
+ EClass getOverrideOption();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum <em>Add Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Add Enum</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum
+ * @generated
+ */
+ EClass getAddEnum();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry <em>Enum Entry</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Enum Entry</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEnumEntry()
+ * @see #getAddEnum()
+ * @generated
+ */
+ EAttribute getAddEnum_EnumEntry();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal <em>Ordinal</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Ordinal</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getOrdinal()
+ * @see #getAddEnum()
+ * @generated
+ */
+ EAttribute getAddEnum_Ordinal();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid <em>Entry Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Entry Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum#getEntryGuid()
+ * @see #getAddEnum()
+ * @generated
+ */
+ EAttribute getAddEnum_EntryGuid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum <em>Remove Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Remove Enum</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum
+ * @generated
+ */
+ EClass getRemoveEnum();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Enum Entry</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry()
+ * @see #getRemoveEnum()
+ * @generated
+ */
+ EReference getRemoveEnum_EnumEntry();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType <em>XRelation Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XRelation Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType
+ * @generated
+ */
+ EClass getXRelationType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Side AName</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EAttribute getXRelationType_SideAName();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Side AArtifact Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EReference getXRelationType_SideAArtifactType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Side BName</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EAttribute getXRelationType_SideBName();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Side BArtifact Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EReference getXRelationType_SideBArtifactType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Default Order Type</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EAttribute getXRelationType_DefaultOrderType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Multiplicity</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity()
+ * @see #getXRelationType()
+ * @generated
+ */
+ EAttribute getXRelationType_Multiplicity();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef <em>XArtifact Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XArtifact Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef
+ * @generated
+ */
+ EClass getXArtifactRef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName()
+ * @see #getXArtifactRef()
+ * @generated
+ */
+ EAttribute getXArtifactRef_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid()
+ * @see #getXArtifactRef()
+ * @generated
+ */
+ EAttribute getXArtifactRef_Guid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef <em>XBranch Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>XBranch Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef
+ * @generated
+ */
+ EClass getXBranchRef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName()
+ * @see #getXBranchRef()
+ * @generated
+ */
+ EAttribute getXBranchRef_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid()
+ * @see #getXBranchRef()
+ * @generated
+ */
+ EAttribute getXBranchRef_Guid();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext <em>Access Context</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Access Context</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext
+ * @generated
+ */
+ EClass getAccessContext();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getName()
+ * @see #getAccessContext()
+ * @generated
+ */
+ EAttribute getAccessContext_Name();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts <em>Super Access Contexts</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference list '<em>Super Access Contexts</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getSuperAccessContexts()
+ * @see #getAccessContext()
+ * @generated
+ */
+ EReference getAccessContext_SuperAccessContexts();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid <em>Guid</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Guid</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getGuid()
+ * @see #getAccessContext()
+ * @generated
+ */
+ EAttribute getAccessContext_Guid();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules <em>Access Rules</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Access Rules</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getAccessRules()
+ * @see #getAccessContext()
+ * @generated
+ */
+ EReference getAccessContext_AccessRules();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Hierarchy Restrictions</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext#getHierarchyRestrictions()
+ * @see #getAccessContext()
+ * @generated
+ */
+ EReference getAccessContext_HierarchyRestrictions();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction <em>Hierarchy Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Hierarchy Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction
+ * @generated
+ */
+ EClass getHierarchyRestriction();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact <em>Artifact</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Artifact</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getArtifact()
+ * @see #getHierarchyRestriction()
+ * @generated
+ */
+ EReference getHierarchyRestriction_Artifact();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules <em>Access Rules</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Access Rules</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction#getAccessRules()
+ * @see #getHierarchyRestriction()
+ * @generated
+ */
+ EReference getHierarchyRestriction_AccessRules();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction <em>Object Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Object Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction
+ * @generated
+ */
+ EClass getObjectRestriction();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission <em>Permission</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Permission</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction#getPermission()
+ * @see #getObjectRestriction()
+ * @generated
+ */
+ EAttribute getObjectRestriction_Permission();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction <em>Artifact Instance Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Artifact Instance Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction
+ * @generated
+ */
+ EClass getArtifactInstanceRestriction();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef <em>Artifact Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Artifact Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction#getArtifactRef()
+ * @see #getArtifactInstanceRestriction()
+ * @generated
+ */
+ EReference getArtifactInstanceRestriction_ArtifactRef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction <em>Artifact Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Artifact Type Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction
+ * @generated
+ */
+ EClass getArtifactTypeRestriction();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Artifact Type Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction#getArtifactTypeRef()
+ * @see #getArtifactTypeRestriction()
+ * @generated
+ */
+ EReference getArtifactTypeRestriction_ArtifactTypeRef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction <em>Attribute Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Attribute Type Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction
+ * @generated
+ */
+ EClass getAttributeTypeRestriction();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef <em>Attribute Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Attribute Type Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getAttributeTypeRef()
+ * @see #getAttributeTypeRestriction()
+ * @generated
+ */
+ EReference getAttributeTypeRestriction_AttributeTypeRef();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef <em>Artifact Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Artifact Type Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction#getArtifactTypeRef()
+ * @see #getAttributeTypeRestriction()
+ * @generated
+ */
+ EReference getAttributeTypeRestriction_ArtifactTypeRef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction <em>Relation Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Relation Type Restriction</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction
+ * @generated
+ */
+ EClass getRelationTypeRestriction();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Relation Type Ref</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef()
+ * @see #getRelationTypeRestriction()
+ * @generated
+ */
+ EReference getRelationTypeRestriction_RelationTypeRef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Restricted To Side</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide()
+ * @see #getRelationTypeRestriction()
+ * @generated
+ */
+ EAttribute getRelationTypeRestriction_RestrictedToSide();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Relation Multiplicity Enum</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
+ * @generated
+ */
+ EEnum getRelationMultiplicityEnum();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Access Permission Enum</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
+ * @generated
+ */
+ EEnum getAccessPermissionEnum();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>XRelation Side Enum</em>'.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
+ * @generated
+ */
+ EEnum getXRelationSideEnum();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ OseeDslFactory getOseeDslFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl <em>Osee Dsl</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeDsl()
+ * @generated
+ */
+ EClass OSEE_DSL = eINSTANCE.getOseeDsl();
+
+ /**
+ * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__IMPORTS = eINSTANCE.getOseeDsl_Imports();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Types</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ARTIFACT_TYPES = eINSTANCE.getOseeDsl_ArtifactTypes();
+
+ /**
+ * The meta object literal for the '<em><b>Relation Types</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__RELATION_TYPES = eINSTANCE.getOseeDsl_RelationTypes();
+
+ /**
+ * The meta object literal for the '<em><b>Attribute Types</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ATTRIBUTE_TYPES = eINSTANCE.getOseeDsl_AttributeTypes();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Types</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ENUM_TYPES = eINSTANCE.getOseeDsl_EnumTypes();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Overrides</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ENUM_OVERRIDES = eINSTANCE.getOseeDsl_EnumOverrides();
+
+ /**
+ * The meta object literal for the '<em><b>Branch Refs</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__BRANCH_REFS = eINSTANCE.getOseeDsl_BranchRefs();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Refs</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ARTIFACT_REFS = eINSTANCE.getOseeDsl_ArtifactRefs();
+
+ /**
+ * The meta object literal for the '<em><b>Access Declarations</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OSEE_DSL__ACCESS_DECLARATIONS = eINSTANCE.getOseeDsl_AccessDeclarations();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl <em>Import</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getImport()
+ * @generated
+ */
+ EClass IMPORT = eINSTANCE.getImport();
+
+ /**
+ * The meta object literal for the '<em><b>Import URI</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IMPORT__IMPORT_URI = eINSTANCE.getImport_ImportURI();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl <em>Osee Element</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeElementImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeElement()
+ * @generated
+ */
+ EClass OSEE_ELEMENT = eINSTANCE.getOseeElement();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl <em>Osee Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOseeType()
+ * @generated
+ */
+ EClass OSEE_TYPE = eINSTANCE.getOseeType();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OSEE_TYPE__NAME = eINSTANCE.getOseeType_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Type Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OSEE_TYPE__TYPE_GUID = eINSTANCE.getOseeType_TypeGuid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl <em>XArtifact Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactType()
+ * @generated
+ */
+ EClass XARTIFACT_TYPE = eINSTANCE.getXArtifactType();
+
+ /**
+ * The meta object literal for the '<em><b>Abstract</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XARTIFACT_TYPE__ABSTRACT = eINSTANCE.getXArtifactType_Abstract();
+
+ /**
+ * The meta object literal for the '<em><b>Super Artifact Types</b></em>' reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES = eINSTANCE.getXArtifactType_SuperArtifactTypes();
+
+ /**
+ * The meta object literal for the '<em><b>Valid Attribute Types</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES = eINSTANCE.getXArtifactType_ValidAttributeTypes();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl <em>XAttribute Type Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeTypeRef()
+ * @generated
+ */
+ EClass XATTRIBUTE_TYPE_REF = eINSTANCE.getXAttributeTypeRef();
+
+ /**
+ * The meta object literal for the '<em><b>Valid Attribute Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE = eINSTANCE.getXAttributeTypeRef_ValidAttributeType();
+
+ /**
+ * The meta object literal for the '<em><b>Branch Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE_REF__BRANCH_GUID = eINSTANCE.getXAttributeTypeRef_BranchGuid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl <em>XAttribute Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXAttributeType()
+ * @generated
+ */
+ EClass XATTRIBUTE_TYPE = eINSTANCE.getXAttributeType();
+
+ /**
+ * The meta object literal for the '<em><b>Base Attribute Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE = eINSTANCE.getXAttributeType_BaseAttributeType();
+
+ /**
+ * The meta object literal for the '<em><b>Override</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XATTRIBUTE_TYPE__OVERRIDE = eINSTANCE.getXAttributeType_Override();
+
+ /**
+ * The meta object literal for the '<em><b>Data Provider</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__DATA_PROVIDER = eINSTANCE.getXAttributeType_DataProvider();
+
+ /**
+ * The meta object literal for the '<em><b>Min</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__MIN = eINSTANCE.getXAttributeType_Min();
+
+ /**
+ * The meta object literal for the '<em><b>Max</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__MAX = eINSTANCE.getXAttributeType_Max();
+
+ /**
+ * The meta object literal for the '<em><b>Tagger Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__TAGGER_ID = eINSTANCE.getXAttributeType_TaggerId();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XATTRIBUTE_TYPE__ENUM_TYPE = eINSTANCE.getXAttributeType_EnumType();
+
+ /**
+ * The meta object literal for the '<em><b>Description</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__DESCRIPTION = eINSTANCE.getXAttributeType_Description();
+
+ /**
+ * The meta object literal for the '<em><b>Default Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__DEFAULT_VALUE = eINSTANCE.getXAttributeType_DefaultValue();
+
+ /**
+ * The meta object literal for the '<em><b>File Extension</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XATTRIBUTE_TYPE__FILE_EXTENSION = eINSTANCE.getXAttributeType_FileExtension();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl <em>XOsee Enum Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumType()
+ * @generated
+ */
+ EClass XOSEE_ENUM_TYPE = eINSTANCE.getXOseeEnumType();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Entries</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XOSEE_ENUM_TYPE__ENUM_ENTRIES = eINSTANCE.getXOseeEnumType_EnumEntries();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl <em>XOsee Enum Entry</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumEntry()
+ * @generated
+ */
+ EClass XOSEE_ENUM_ENTRY = eINSTANCE.getXOseeEnumEntry();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XOSEE_ENUM_ENTRY__NAME = eINSTANCE.getXOseeEnumEntry_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Ordinal</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XOSEE_ENUM_ENTRY__ORDINAL = eINSTANCE.getXOseeEnumEntry_Ordinal();
+
+ /**
+ * The meta object literal for the '<em><b>Entry Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XOSEE_ENUM_ENTRY__ENTRY_GUID = eINSTANCE.getXOseeEnumEntry_EntryGuid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl <em>XOsee Enum Override</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXOseeEnumOverride()
+ * @generated
+ */
+ EClass XOSEE_ENUM_OVERRIDE = eINSTANCE.getXOseeEnumOverride();
+
+ /**
+ * The meta object literal for the '<em><b>Overriden Enum Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE = eINSTANCE.getXOseeEnumOverride_OverridenEnumType();
+
+ /**
+ * The meta object literal for the '<em><b>Inherit All</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XOSEE_ENUM_OVERRIDE__INHERIT_ALL = eINSTANCE.getXOseeEnumOverride_InheritAll();
+
+ /**
+ * The meta object literal for the '<em><b>Override Options</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS = eINSTANCE.getXOseeEnumOverride_OverrideOptions();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl <em>Override Option</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OverrideOptionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getOverrideOption()
+ * @generated
+ */
+ EClass OVERRIDE_OPTION = eINSTANCE.getOverrideOption();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl <em>Add Enum</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAddEnum()
+ * @generated
+ */
+ EClass ADD_ENUM = eINSTANCE.getAddEnum();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Entry</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ADD_ENUM__ENUM_ENTRY = eINSTANCE.getAddEnum_EnumEntry();
+
+ /**
+ * The meta object literal for the '<em><b>Ordinal</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ADD_ENUM__ORDINAL = eINSTANCE.getAddEnum_Ordinal();
+
+ /**
+ * The meta object literal for the '<em><b>Entry Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ADD_ENUM__ENTRY_GUID = eINSTANCE.getAddEnum_EntryGuid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl <em>Remove Enum</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRemoveEnum()
+ * @generated
+ */
+ EClass REMOVE_ENUM = eINSTANCE.getRemoveEnum();
+
+ /**
+ * The meta object literal for the '<em><b>Enum Entry</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference REMOVE_ENUM__ENUM_ENTRY = eINSTANCE.getRemoveEnum_EnumEntry();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl <em>XRelation Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationType()
+ * @generated
+ */
+ EClass XRELATION_TYPE = eINSTANCE.getXRelationType();
+
+ /**
+ * The meta object literal for the '<em><b>Side AName</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XRELATION_TYPE__SIDE_ANAME = eINSTANCE.getXRelationType_SideAName();
+
+ /**
+ * The meta object literal for the '<em><b>Side AArtifact Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XRELATION_TYPE__SIDE_AARTIFACT_TYPE = eINSTANCE.getXRelationType_SideAArtifactType();
+
+ /**
+ * The meta object literal for the '<em><b>Side BName</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XRELATION_TYPE__SIDE_BNAME = eINSTANCE.getXRelationType_SideBName();
+
+ /**
+ * The meta object literal for the '<em><b>Side BArtifact Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference XRELATION_TYPE__SIDE_BARTIFACT_TYPE = eINSTANCE.getXRelationType_SideBArtifactType();
+
+ /**
+ * The meta object literal for the '<em><b>Default Order Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XRELATION_TYPE__DEFAULT_ORDER_TYPE = eINSTANCE.getXRelationType_DefaultOrderType();
+
+ /**
+ * The meta object literal for the '<em><b>Multiplicity</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XRELATION_TYPE__MULTIPLICITY = eINSTANCE.getXRelationType_Multiplicity();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl <em>XArtifact Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXArtifactRef()
+ * @generated
+ */
+ EClass XARTIFACT_REF = eINSTANCE.getXArtifactRef();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XARTIFACT_REF__NAME = eINSTANCE.getXArtifactRef_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XARTIFACT_REF__GUID = eINSTANCE.getXArtifactRef_Guid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl <em>XBranch Ref</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXBranchRef()
+ * @generated
+ */
+ EClass XBRANCH_REF = eINSTANCE.getXBranchRef();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XBRANCH_REF__NAME = eINSTANCE.getXBranchRef_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute XBRANCH_REF__GUID = eINSTANCE.getXBranchRef_Guid();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl <em>Access Context</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessContext()
+ * @generated
+ */
+ EClass ACCESS_CONTEXT = eINSTANCE.getAccessContext();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ACCESS_CONTEXT__NAME = eINSTANCE.getAccessContext_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Super Access Contexts</b></em>' reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS = eINSTANCE.getAccessContext_SuperAccessContexts();
+
+ /**
+ * The meta object literal for the '<em><b>Guid</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ACCESS_CONTEXT__GUID = eINSTANCE.getAccessContext_Guid();
+
+ /**
+ * The meta object literal for the '<em><b>Access Rules</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ACCESS_CONTEXT__ACCESS_RULES = eINSTANCE.getAccessContext_AccessRules();
+
+ /**
+ * The meta object literal for the '<em><b>Hierarchy Restrictions</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS = eINSTANCE.getAccessContext_HierarchyRestrictions();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl <em>Hierarchy Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getHierarchyRestriction()
+ * @generated
+ */
+ EClass HIERARCHY_RESTRICTION = eINSTANCE.getHierarchyRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference HIERARCHY_RESTRICTION__ARTIFACT = eINSTANCE.getHierarchyRestriction_Artifact();
+
+ /**
+ * The meta object literal for the '<em><b>Access Rules</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference HIERARCHY_RESTRICTION__ACCESS_RULES = eINSTANCE.getHierarchyRestriction_AccessRules();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl <em>Object Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getObjectRestriction()
+ * @generated
+ */
+ EClass OBJECT_RESTRICTION = eINSTANCE.getObjectRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Permission</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OBJECT_RESTRICTION__PERMISSION = eINSTANCE.getObjectRestriction_Permission();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl <em>Artifact Instance Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactInstanceRestriction()
+ * @generated
+ */
+ EClass ARTIFACT_INSTANCE_RESTRICTION = eINSTANCE.getArtifactInstanceRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Ref</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF = eINSTANCE.getArtifactInstanceRestriction_ArtifactRef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl <em>Artifact Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getArtifactTypeRestriction()
+ * @generated
+ */
+ EClass ARTIFACT_TYPE_RESTRICTION = eINSTANCE.getArtifactTypeRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Type Ref</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = eINSTANCE.getArtifactTypeRestriction_ArtifactTypeRef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl <em>Attribute Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAttributeTypeRestriction()
+ * @generated
+ */
+ EClass ATTRIBUTE_TYPE_RESTRICTION = eINSTANCE.getAttributeTypeRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Attribute Type Ref</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF = eINSTANCE.getAttributeTypeRestriction_AttributeTypeRef();
+
+ /**
+ * The meta object literal for the '<em><b>Artifact Type Ref</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF = eINSTANCE.getAttributeTypeRestriction_ArtifactTypeRef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl <em>Relation Type Restriction</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationTypeRestriction()
+ * @generated
+ */
+ EClass RELATION_TYPE_RESTRICTION = eINSTANCE.getRelationTypeRestriction();
+
+ /**
+ * The meta object literal for the '<em><b>Relation Type Ref</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF = eINSTANCE.getRelationTypeRestriction_RelationTypeRef();
+
+ /**
+ * The meta object literal for the '<em><b>Restricted To Side</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE = eINSTANCE.getRelationTypeRestriction_RestrictedToSide();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum <em>Relation Multiplicity Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getRelationMultiplicityEnum()
+ * @generated
+ */
+ EEnum RELATION_MULTIPLICITY_ENUM = eINSTANCE.getRelationMultiplicityEnum();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum <em>Access Permission Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getAccessPermissionEnum()
+ * @generated
+ */
+ EEnum ACCESS_PERMISSION_ENUM = eINSTANCE.getAccessPermissionEnum();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum <em>XRelation Side Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslPackageImpl#getXRelationSideEnum()
+ * @generated
+ */
+ EEnum XRELATION_SIDE_ENUM = eINSTANCE.getXRelationSideEnum();
+
+ }
+
+} //OseeDslPackage
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java
index c81d35cc3c5..e2bcbd3983a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeElement.java
@@ -1,23 +1,23 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Osee Element</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeElement()
- * @model
- * @generated
- */
-public interface OseeElement extends EObject
-{
-} // OseeElement
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Osee Element</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeElement()
+ * @model
+ * @generated
+ */
+public interface OseeElement extends EObject
+{
+} // OseeElement
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java
index d5854606f23..026e735b9a6 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OseeType.java
@@ -1,81 +1,81 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Osee Type</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType()
- * @model
- * @generated
- */
-public interface OseeType extends OseeElement
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Type Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Type Guid</em>' attribute.
- * @see #setTypeGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType_TypeGuid()
- * @model
- * @generated
- */
- String getTypeGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Type Guid</em>' attribute.
- * @see #getTypeGuid()
- * @generated
- */
- void setTypeGuid(String value);
-
-} // OseeType
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Osee Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType()
+ * @model
+ * @generated
+ */
+public interface OseeType extends OseeElement
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Type Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type Guid</em>' attribute.
+ * @see #setTypeGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOseeType_TypeGuid()
+ * @model
+ * @generated
+ */
+ String getTypeGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType#getTypeGuid <em>Type Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type Guid</em>' attribute.
+ * @see #getTypeGuid()
+ * @generated
+ */
+ void setTypeGuid(String value);
+
+} // OseeType
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java
index 4a1249b1d62..0e9db0b37dd 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/OverrideOption.java
@@ -1,23 +1,23 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Override Option</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOverrideOption()
- * @model
- * @generated
- */
-public interface OverrideOption extends EObject
-{
-} // OverrideOption
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Override Option</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getOverrideOption()
+ * @model
+ * @generated
+ */
+public interface OverrideOption extends EObject
+{
+} // OverrideOption
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java
index 16c0f35bc2e..e7aa85b8f90 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationMultiplicityEnum.java
@@ -1,281 +1,281 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Relation Multiplicity Enum</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationMultiplicityEnum()
- * @model
- * @generated
- */
-public enum RelationMultiplicityEnum implements Enumerator
-{
- /**
- * The '<em><b>ONE TO ONE</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #ONE_TO_ONE_VALUE
- * @generated
- * @ordered
- */
- ONE_TO_ONE(0, "ONE_TO_ONE", "ONE_TO_ONE"),
-
- /**
- * The '<em><b>ONE TO MANY</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #ONE_TO_MANY_VALUE
- * @generated
- * @ordered
- */
- ONE_TO_MANY(1, "ONE_TO_MANY", "ONE_TO_MANY"),
-
- /**
- * The '<em><b>MANY TO ONE</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #MANY_TO_ONE_VALUE
- * @generated
- * @ordered
- */
- MANY_TO_ONE(2, "MANY_TO_ONE", "MANY_TO_ONE"),
-
- /**
- * The '<em><b>MANY TO MANY</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #MANY_TO_MANY_VALUE
- * @generated
- * @ordered
- */
- MANY_TO_MANY(3, "MANY_TO_MANY", "MANY_TO_MANY");
-
- /**
- * The '<em><b>ONE TO ONE</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>ONE TO ONE</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #ONE_TO_ONE
- * @model
- * @generated
- * @ordered
- */
- public static final int ONE_TO_ONE_VALUE = 0;
-
- /**
- * The '<em><b>ONE TO MANY</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>ONE TO MANY</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #ONE_TO_MANY
- * @model
- * @generated
- * @ordered
- */
- public static final int ONE_TO_MANY_VALUE = 1;
-
- /**
- * The '<em><b>MANY TO ONE</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>MANY TO ONE</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #MANY_TO_ONE
- * @model
- * @generated
- * @ordered
- */
- public static final int MANY_TO_ONE_VALUE = 2;
-
- /**
- * The '<em><b>MANY TO MANY</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>MANY TO MANY</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #MANY_TO_MANY
- * @model
- * @generated
- * @ordered
- */
- public static final int MANY_TO_MANY_VALUE = 3;
-
- /**
- * An array of all the '<em><b>Relation Multiplicity Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final RelationMultiplicityEnum[] VALUES_ARRAY =
- new RelationMultiplicityEnum[]
- {
- ONE_TO_ONE,
- ONE_TO_MANY,
- MANY_TO_ONE,
- MANY_TO_MANY,
- };
-
- /**
- * A public read-only list of all the '<em><b>Relation Multiplicity Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<RelationMultiplicityEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static RelationMultiplicityEnum get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- RelationMultiplicityEnum result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static RelationMultiplicityEnum getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- RelationMultiplicityEnum result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static RelationMultiplicityEnum get(int value)
- {
- switch (value)
- {
- case ONE_TO_ONE_VALUE: return ONE_TO_ONE;
- case ONE_TO_MANY_VALUE: return ONE_TO_MANY;
- case MANY_TO_ONE_VALUE: return MANY_TO_ONE;
- case MANY_TO_MANY_VALUE: return MANY_TO_MANY;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private RelationMultiplicityEnum(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //RelationMultiplicityEnum
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Relation Multiplicity Enum</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationMultiplicityEnum()
+ * @model
+ * @generated
+ */
+public enum RelationMultiplicityEnum implements Enumerator
+{
+ /**
+ * The '<em><b>ONE TO ONE</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ONE_TO_ONE_VALUE
+ * @generated
+ * @ordered
+ */
+ ONE_TO_ONE(0, "ONE_TO_ONE", "ONE_TO_ONE"),
+
+ /**
+ * The '<em><b>ONE TO MANY</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ONE_TO_MANY_VALUE
+ * @generated
+ * @ordered
+ */
+ ONE_TO_MANY(1, "ONE_TO_MANY", "ONE_TO_MANY"),
+
+ /**
+ * The '<em><b>MANY TO ONE</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MANY_TO_ONE_VALUE
+ * @generated
+ * @ordered
+ */
+ MANY_TO_ONE(2, "MANY_TO_ONE", "MANY_TO_ONE"),
+
+ /**
+ * The '<em><b>MANY TO MANY</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MANY_TO_MANY_VALUE
+ * @generated
+ * @ordered
+ */
+ MANY_TO_MANY(3, "MANY_TO_MANY", "MANY_TO_MANY");
+
+ /**
+ * The '<em><b>ONE TO ONE</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>ONE TO ONE</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #ONE_TO_ONE
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int ONE_TO_ONE_VALUE = 0;
+
+ /**
+ * The '<em><b>ONE TO MANY</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>ONE TO MANY</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #ONE_TO_MANY
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int ONE_TO_MANY_VALUE = 1;
+
+ /**
+ * The '<em><b>MANY TO ONE</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>MANY TO ONE</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #MANY_TO_ONE
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int MANY_TO_ONE_VALUE = 2;
+
+ /**
+ * The '<em><b>MANY TO MANY</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>MANY TO MANY</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #MANY_TO_MANY
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int MANY_TO_MANY_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Relation Multiplicity Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final RelationMultiplicityEnum[] VALUES_ARRAY =
+ new RelationMultiplicityEnum[]
+ {
+ ONE_TO_ONE,
+ ONE_TO_MANY,
+ MANY_TO_ONE,
+ MANY_TO_MANY,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Relation Multiplicity Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<RelationMultiplicityEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static RelationMultiplicityEnum get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ RelationMultiplicityEnum result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static RelationMultiplicityEnum getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ RelationMultiplicityEnum result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Relation Multiplicity Enum</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static RelationMultiplicityEnum get(int value)
+ {
+ switch (value)
+ {
+ case ONE_TO_ONE_VALUE: return ONE_TO_ONE;
+ case ONE_TO_MANY_VALUE: return ONE_TO_MANY;
+ case MANY_TO_ONE_VALUE: return MANY_TO_ONE;
+ case MANY_TO_MANY_VALUE: return MANY_TO_MANY;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private RelationMultiplicityEnum(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //RelationMultiplicityEnum
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java
index 48a2fd614da..f280be8956b 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RelationTypeRestriction.java
@@ -1,84 +1,84 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Relation Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction()
- * @model
- * @generated
- */
-public interface RelationTypeRestriction extends ObjectRestriction
-{
- /**
- * Returns the value of the '<em><b>Relation Type Ref</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Relation Type Ref</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Relation Type Ref</em>' reference.
- * @see #setRelationTypeRef(XRelationType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction_RelationTypeRef()
- * @model
- * @generated
- */
- XRelationType getRelationTypeRef();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Relation Type Ref</em>' reference.
- * @see #getRelationTypeRef()
- * @generated
- */
- void setRelationTypeRef(XRelationType value);
-
- /**
- * Returns the value of the '<em><b>Restricted To Side</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Restricted To Side</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Restricted To Side</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
- * @see #setRestrictedToSide(XRelationSideEnum)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction_RestrictedToSide()
- * @model
- * @generated
- */
- XRelationSideEnum getRestrictedToSide();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Restricted To Side</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
- * @see #getRestrictedToSide()
- * @generated
- */
- void setRestrictedToSide(XRelationSideEnum value);
-
-} // RelationTypeRestriction
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Relation Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction()
+ * @model
+ * @generated
+ */
+public interface RelationTypeRestriction extends ObjectRestriction
+{
+ /**
+ * Returns the value of the '<em><b>Relation Type Ref</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Relation Type Ref</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Relation Type Ref</em>' reference.
+ * @see #setRelationTypeRef(XRelationType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction_RelationTypeRef()
+ * @model
+ * @generated
+ */
+ XRelationType getRelationTypeRef();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRelationTypeRef <em>Relation Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Relation Type Ref</em>' reference.
+ * @see #getRelationTypeRef()
+ * @generated
+ */
+ void setRelationTypeRef(XRelationType value);
+
+ /**
+ * Returns the value of the '<em><b>Restricted To Side</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Restricted To Side</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Restricted To Side</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
+ * @see #setRestrictedToSide(XRelationSideEnum)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRelationTypeRestriction_RestrictedToSide()
+ * @model
+ * @generated
+ */
+ XRelationSideEnum getRestrictedToSide();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction#getRestrictedToSide <em>Restricted To Side</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Restricted To Side</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum
+ * @see #getRestrictedToSide()
+ * @generated
+ */
+ void setRestrictedToSide(XRelationSideEnum value);
+
+} // RelationTypeRestriction
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java
index f39fbe5f300..7044cf25f90 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/RemoveEnum.java
@@ -1,54 +1,54 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Remove Enum</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRemoveEnum()
- * @model
- * @generated
- */
-public interface RemoveEnum extends OverrideOption
-{
- /**
- * Returns the value of the '<em><b>Enum Entry</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Entry</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Entry</em>' reference.
- * @see #setEnumEntry(XOseeEnumEntry)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRemoveEnum_EnumEntry()
- * @model
- * @generated
- */
- XOseeEnumEntry getEnumEntry();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Enum Entry</em>' reference.
- * @see #getEnumEntry()
- * @generated
- */
- void setEnumEntry(XOseeEnumEntry value);
-
-} // RemoveEnum
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Remove Enum</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRemoveEnum()
+ * @model
+ * @generated
+ */
+public interface RemoveEnum extends OverrideOption
+{
+ /**
+ * Returns the value of the '<em><b>Enum Entry</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Entry</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Entry</em>' reference.
+ * @see #setEnumEntry(XOseeEnumEntry)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getRemoveEnum_EnumEntry()
+ * @model
+ * @generated
+ */
+ XOseeEnumEntry getEnumEntry();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum#getEnumEntry <em>Enum Entry</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Enum Entry</em>' reference.
+ * @see #getEnumEntry()
+ * @generated
+ */
+ void setEnumEntry(XOseeEnumEntry value);
+
+} // RemoveEnum
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java
index 539dd355469..e3517db9fc7 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactRef.java
@@ -1,82 +1,82 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XArtifact Ref</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef()
- * @model
- * @generated
- */
-public interface XArtifactRef extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Guid</em>' attribute.
- * @see #setGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef_Guid()
- * @model
- * @generated
- */
- String getGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Guid</em>' attribute.
- * @see #getGuid()
- * @generated
- */
- void setGuid(String value);
-
-} // XArtifactRef
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XArtifact Ref</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef()
+ * @model
+ * @generated
+ */
+public interface XArtifactRef extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Guid</em>' attribute.
+ * @see #setGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactRef_Guid()
+ * @model
+ * @generated
+ */
+ String getGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef#getGuid <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Guid</em>' attribute.
+ * @see #getGuid()
+ * @generated
+ */
+ void setGuid(String value);
+
+} // XArtifactRef
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java
index 0e45618b12e..722f8fca97f 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XArtifactType.java
@@ -1,89 +1,89 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XArtifact Type</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes <em>Super Artifact Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes <em>Valid Attribute Types</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType()
- * @model
- * @generated
- */
-public interface XArtifactType extends OseeType
-{
- /**
- * Returns the value of the '<em><b>Abstract</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Abstract</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Abstract</em>' attribute.
- * @see #setAbstract(boolean)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_Abstract()
- * @model
- * @generated
- */
- boolean isAbstract();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Abstract</em>' attribute.
- * @see #isAbstract()
- * @generated
- */
- void setAbstract(boolean value);
-
- /**
- * Returns the value of the '<em><b>Super Artifact Types</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Super Artifact Types</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Super Artifact Types</em>' reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_SuperArtifactTypes()
- * @model
- * @generated
- */
- EList<XArtifactType> getSuperArtifactTypes();
-
- /**
- * Returns the value of the '<em><b>Valid Attribute Types</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Valid Attribute Types</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Valid Attribute Types</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_ValidAttributeTypes()
- * @model containment="true"
- * @generated
- */
- EList<XAttributeTypeRef> getValidAttributeTypes();
-
-} // XArtifactType
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XArtifact Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getSuperArtifactTypes <em>Super Artifact Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#getValidAttributeTypes <em>Valid Attribute Types</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType()
+ * @model
+ * @generated
+ */
+public interface XArtifactType extends OseeType
+{
+ /**
+ * Returns the value of the '<em><b>Abstract</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Abstract</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Abstract</em>' attribute.
+ * @see #setAbstract(boolean)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_Abstract()
+ * @model
+ * @generated
+ */
+ boolean isAbstract();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType#isAbstract <em>Abstract</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Abstract</em>' attribute.
+ * @see #isAbstract()
+ * @generated
+ */
+ void setAbstract(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Super Artifact Types</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Super Artifact Types</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Super Artifact Types</em>' reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_SuperArtifactTypes()
+ * @model
+ * @generated
+ */
+ EList<XArtifactType> getSuperArtifactTypes();
+
+ /**
+ * Returns the value of the '<em><b>Valid Attribute Types</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Valid Attribute Types</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Valid Attribute Types</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXArtifactType_ValidAttributeTypes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XAttributeTypeRef> getValidAttributeTypes();
+
+} // XArtifactType
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java
index 594e26efbdf..a4bdb36d648 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeType.java
@@ -1,297 +1,297 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XAttribute Type</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType()
- * @model
- * @generated
- */
-public interface XAttributeType extends OseeType
-{
- /**
- * Returns the value of the '<em><b>Base Attribute Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Attribute Type</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Base Attribute Type</em>' attribute.
- * @see #setBaseAttributeType(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_BaseAttributeType()
- * @model
- * @generated
- */
- String getBaseAttributeType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Base Attribute Type</em>' attribute.
- * @see #getBaseAttributeType()
- * @generated
- */
- void setBaseAttributeType(String value);
-
- /**
- * Returns the value of the '<em><b>Override</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Override</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Override</em>' reference.
- * @see #setOverride(XAttributeType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Override()
- * @model
- * @generated
- */
- XAttributeType getOverride();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Override</em>' reference.
- * @see #getOverride()
- * @generated
- */
- void setOverride(XAttributeType value);
-
- /**
- * Returns the value of the '<em><b>Data Provider</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Data Provider</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Data Provider</em>' attribute.
- * @see #setDataProvider(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_DataProvider()
- * @model
- * @generated
- */
- String getDataProvider();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Data Provider</em>' attribute.
- * @see #getDataProvider()
- * @generated
- */
- void setDataProvider(String value);
-
- /**
- * Returns the value of the '<em><b>Min</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Min</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Min</em>' attribute.
- * @see #setMin(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Min()
- * @model
- * @generated
- */
- String getMin();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Min</em>' attribute.
- * @see #getMin()
- * @generated
- */
- void setMin(String value);
-
- /**
- * Returns the value of the '<em><b>Max</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Max</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Max</em>' attribute.
- * @see #setMax(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Max()
- * @model
- * @generated
- */
- String getMax();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Max</em>' attribute.
- * @see #getMax()
- * @generated
- */
- void setMax(String value);
-
- /**
- * Returns the value of the '<em><b>Tagger Id</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Tagger Id</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Tagger Id</em>' attribute.
- * @see #setTaggerId(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_TaggerId()
- * @model
- * @generated
- */
- String getTaggerId();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Tagger Id</em>' attribute.
- * @see #getTaggerId()
- * @generated
- */
- void setTaggerId(String value);
-
- /**
- * Returns the value of the '<em><b>Enum Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Type</em>' reference.
- * @see #setEnumType(XOseeEnumType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_EnumType()
- * @model
- * @generated
- */
- XOseeEnumType getEnumType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Enum Type</em>' reference.
- * @see #getEnumType()
- * @generated
- */
- void setEnumType(XOseeEnumType value);
-
- /**
- * Returns the value of the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Description</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Description</em>' attribute.
- * @see #setDescription(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Description</em>' attribute.
- * @see #getDescription()
- * @generated
- */
- void setDescription(String value);
-
- /**
- * Returns the value of the '<em><b>Default Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default Value</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Default Value</em>' attribute.
- * @see #setDefaultValue(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_DefaultValue()
- * @model
- * @generated
- */
- String getDefaultValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Default Value</em>' attribute.
- * @see #getDefaultValue()
- * @generated
- */
- void setDefaultValue(String value);
-
- /**
- * Returns the value of the '<em><b>File Extension</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>File Extension</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>File Extension</em>' attribute.
- * @see #setFileExtension(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_FileExtension()
- * @model
- * @generated
- */
- String getFileExtension();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>File Extension</em>' attribute.
- * @see #getFileExtension()
- * @generated
- */
- void setFileExtension(String value);
-
-} // XAttributeType
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XAttribute Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType()
+ * @model
+ * @generated
+ */
+public interface XAttributeType extends OseeType
+{
+ /**
+ * Returns the value of the '<em><b>Base Attribute Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Base Attribute Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Base Attribute Type</em>' attribute.
+ * @see #setBaseAttributeType(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_BaseAttributeType()
+ * @model
+ * @generated
+ */
+ String getBaseAttributeType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getBaseAttributeType <em>Base Attribute Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Base Attribute Type</em>' attribute.
+ * @see #getBaseAttributeType()
+ * @generated
+ */
+ void setBaseAttributeType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Override</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Override</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Override</em>' reference.
+ * @see #setOverride(XAttributeType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Override()
+ * @model
+ * @generated
+ */
+ XAttributeType getOverride();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getOverride <em>Override</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Override</em>' reference.
+ * @see #getOverride()
+ * @generated
+ */
+ void setOverride(XAttributeType value);
+
+ /**
+ * Returns the value of the '<em><b>Data Provider</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Data Provider</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Data Provider</em>' attribute.
+ * @see #setDataProvider(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_DataProvider()
+ * @model
+ * @generated
+ */
+ String getDataProvider();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDataProvider <em>Data Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Data Provider</em>' attribute.
+ * @see #getDataProvider()
+ * @generated
+ */
+ void setDataProvider(String value);
+
+ /**
+ * Returns the value of the '<em><b>Min</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Min</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Min</em>' attribute.
+ * @see #setMin(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Min()
+ * @model
+ * @generated
+ */
+ String getMin();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMin <em>Min</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Min</em>' attribute.
+ * @see #getMin()
+ * @generated
+ */
+ void setMin(String value);
+
+ /**
+ * Returns the value of the '<em><b>Max</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Max</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Max</em>' attribute.
+ * @see #setMax(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Max()
+ * @model
+ * @generated
+ */
+ String getMax();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getMax <em>Max</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Max</em>' attribute.
+ * @see #getMax()
+ * @generated
+ */
+ void setMax(String value);
+
+ /**
+ * Returns the value of the '<em><b>Tagger Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Tagger Id</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Tagger Id</em>' attribute.
+ * @see #setTaggerId(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_TaggerId()
+ * @model
+ * @generated
+ */
+ String getTaggerId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getTaggerId <em>Tagger Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Tagger Id</em>' attribute.
+ * @see #getTaggerId()
+ * @generated
+ */
+ void setTaggerId(String value);
+
+ /**
+ * Returns the value of the '<em><b>Enum Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Type</em>' reference.
+ * @see #setEnumType(XOseeEnumType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_EnumType()
+ * @model
+ * @generated
+ */
+ XOseeEnumType getEnumType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getEnumType <em>Enum Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Enum Type</em>' reference.
+ * @see #getEnumType()
+ * @generated
+ */
+ void setEnumType(XOseeEnumType value);
+
+ /**
+ * Returns the value of the '<em><b>Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Description</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Description</em>' attribute.
+ * @see #setDescription(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_Description()
+ * @model
+ * @generated
+ */
+ String getDescription();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDescription <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Description</em>' attribute.
+ * @see #getDescription()
+ * @generated
+ */
+ void setDescription(String value);
+
+ /**
+ * Returns the value of the '<em><b>Default Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default Value</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default Value</em>' attribute.
+ * @see #setDefaultValue(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_DefaultValue()
+ * @model
+ * @generated
+ */
+ String getDefaultValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getDefaultValue <em>Default Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default Value</em>' attribute.
+ * @see #getDefaultValue()
+ * @generated
+ */
+ void setDefaultValue(String value);
+
+ /**
+ * Returns the value of the '<em><b>File Extension</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>File Extension</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>File Extension</em>' attribute.
+ * @see #setFileExtension(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeType_FileExtension()
+ * @model
+ * @generated
+ */
+ String getFileExtension();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType#getFileExtension <em>File Extension</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>File Extension</em>' attribute.
+ * @see #getFileExtension()
+ * @generated
+ */
+ void setFileExtension(String value);
+
+} // XAttributeType
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java
index 806755fa15e..19140ae9572 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XAttributeTypeRef.java
@@ -1,82 +1,82 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XAttribute Type Ref</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef()
- * @model
- * @generated
- */
-public interface XAttributeTypeRef extends EObject
-{
- /**
- * Returns the value of the '<em><b>Valid Attribute Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Valid Attribute Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Valid Attribute Type</em>' reference.
- * @see #setValidAttributeType(XAttributeType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef_ValidAttributeType()
- * @model
- * @generated
- */
- XAttributeType getValidAttributeType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Valid Attribute Type</em>' reference.
- * @see #getValidAttributeType()
- * @generated
- */
- void setValidAttributeType(XAttributeType value);
-
- /**
- * Returns the value of the '<em><b>Branch Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Branch Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Branch Guid</em>' attribute.
- * @see #setBranchGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef_BranchGuid()
- * @model
- * @generated
- */
- String getBranchGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Branch Guid</em>' attribute.
- * @see #getBranchGuid()
- * @generated
- */
- void setBranchGuid(String value);
-
-} // XAttributeTypeRef
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XAttribute Type Ref</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef()
+ * @model
+ * @generated
+ */
+public interface XAttributeTypeRef extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Valid Attribute Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Valid Attribute Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Valid Attribute Type</em>' reference.
+ * @see #setValidAttributeType(XAttributeType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef_ValidAttributeType()
+ * @model
+ * @generated
+ */
+ XAttributeType getValidAttributeType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getValidAttributeType <em>Valid Attribute Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Valid Attribute Type</em>' reference.
+ * @see #getValidAttributeType()
+ * @generated
+ */
+ void setValidAttributeType(XAttributeType value);
+
+ /**
+ * Returns the value of the '<em><b>Branch Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Branch Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Branch Guid</em>' attribute.
+ * @see #setBranchGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXAttributeTypeRef_BranchGuid()
+ * @model
+ * @generated
+ */
+ String getBranchGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef#getBranchGuid <em>Branch Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Branch Guid</em>' attribute.
+ * @see #getBranchGuid()
+ * @generated
+ */
+ void setBranchGuid(String value);
+
+} // XAttributeTypeRef
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java
index d3e74ad126b..b00c1842709 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XBranchRef.java
@@ -1,82 +1,82 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XBranch Ref</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef()
- * @model
- * @generated
- */
-public interface XBranchRef extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Guid</em>' attribute.
- * @see #setGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef_Guid()
- * @model
- * @generated
- */
- String getGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Guid</em>' attribute.
- * @see #getGuid()
- * @generated
- */
- void setGuid(String value);
-
-} // XBranchRef
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XBranch Ref</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef()
+ * @model
+ * @generated
+ */
+public interface XBranchRef extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Guid</em>' attribute.
+ * @see #setGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXBranchRef_Guid()
+ * @model
+ * @generated
+ */
+ String getGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef#getGuid <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Guid</em>' attribute.
+ * @see #getGuid()
+ * @generated
+ */
+ void setGuid(String value);
+
+} // XBranchRef
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java
index db3cd3251f5..7d8b53db4eb 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumEntry.java
@@ -1,109 +1,109 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XOsee Enum Entry</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry()
- * @model
- * @generated
- */
-public interface XOseeEnumEntry extends EObject
-{
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Ordinal</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Ordinal</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Ordinal</em>' attribute.
- * @see #setOrdinal(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_Ordinal()
- * @model
- * @generated
- */
- String getOrdinal();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Ordinal</em>' attribute.
- * @see #getOrdinal()
- * @generated
- */
- void setOrdinal(String value);
-
- /**
- * Returns the value of the '<em><b>Entry Guid</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Entry Guid</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Entry Guid</em>' attribute.
- * @see #setEntryGuid(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_EntryGuid()
- * @model
- * @generated
- */
- String getEntryGuid();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Entry Guid</em>' attribute.
- * @see #getEntryGuid()
- * @generated
- */
- void setEntryGuid(String value);
-
-} // XOseeEnumEntry
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XOsee Enum Entry</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry()
+ * @model
+ * @generated
+ */
+public interface XOseeEnumEntry extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Ordinal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Ordinal</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Ordinal</em>' attribute.
+ * @see #setOrdinal(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_Ordinal()
+ * @model
+ * @generated
+ */
+ String getOrdinal();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getOrdinal <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Ordinal</em>' attribute.
+ * @see #getOrdinal()
+ * @generated
+ */
+ void setOrdinal(String value);
+
+ /**
+ * Returns the value of the '<em><b>Entry Guid</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Entry Guid</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Entry Guid</em>' attribute.
+ * @see #setEntryGuid(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumEntry_EntryGuid()
+ * @model
+ * @generated
+ */
+ String getEntryGuid();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry#getEntryGuid <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Entry Guid</em>' attribute.
+ * @see #getEntryGuid()
+ * @generated
+ */
+ void setEntryGuid(String value);
+
+} // XOseeEnumEntry
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java
index 01de29a2304..1549fea1191 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumOverride.java
@@ -1,99 +1,99 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XOsee Enum Override</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions <em>Override Options</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride()
- * @model
- * @generated
- */
-public interface XOseeEnumOverride extends OseeElement
-{
- /**
- * Returns the value of the '<em><b>Overriden Enum Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Overriden Enum Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Overriden Enum Type</em>' reference.
- * @see #setOverridenEnumType(XOseeEnumType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_OverridenEnumType()
- * @model
- * @generated
- */
- XOseeEnumType getOverridenEnumType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Overriden Enum Type</em>' reference.
- * @see #getOverridenEnumType()
- * @generated
- */
- void setOverridenEnumType(XOseeEnumType value);
-
- /**
- * Returns the value of the '<em><b>Inherit All</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Inherit All</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Inherit All</em>' attribute.
- * @see #setInheritAll(boolean)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_InheritAll()
- * @model
- * @generated
- */
- boolean isInheritAll();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Inherit All</em>' attribute.
- * @see #isInheritAll()
- * @generated
- */
- void setInheritAll(boolean value);
-
- /**
- * Returns the value of the '<em><b>Override Options</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Override Options</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Override Options</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_OverrideOptions()
- * @model containment="true"
- * @generated
- */
- EList<OverrideOption> getOverrideOptions();
-
-} // XOseeEnumOverride
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XOsee Enum Override</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverrideOptions <em>Override Options</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride()
+ * @model
+ * @generated
+ */
+public interface XOseeEnumOverride extends OseeElement
+{
+ /**
+ * Returns the value of the '<em><b>Overriden Enum Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Overriden Enum Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Overriden Enum Type</em>' reference.
+ * @see #setOverridenEnumType(XOseeEnumType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_OverridenEnumType()
+ * @model
+ * @generated
+ */
+ XOseeEnumType getOverridenEnumType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#getOverridenEnumType <em>Overriden Enum Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Overriden Enum Type</em>' reference.
+ * @see #getOverridenEnumType()
+ * @generated
+ */
+ void setOverridenEnumType(XOseeEnumType value);
+
+ /**
+ * Returns the value of the '<em><b>Inherit All</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Inherit All</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Inherit All</em>' attribute.
+ * @see #setInheritAll(boolean)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_InheritAll()
+ * @model
+ * @generated
+ */
+ boolean isInheritAll();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride#isInheritAll <em>Inherit All</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Inherit All</em>' attribute.
+ * @see #isInheritAll()
+ * @generated
+ */
+ void setInheritAll(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Override Options</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Override Options</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Override Options</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumOverride_OverrideOptions()
+ * @model containment="true"
+ * @generated
+ */
+ EList<OverrideOption> getOverrideOptions();
+
+} // XOseeEnumOverride
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java
index 312184e11bc..7ee0fc7244c 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XOseeEnumType.java
@@ -1,45 +1,45 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XOsee Enum Type</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries <em>Enum Entries</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumType()
- * @model
- * @generated
- */
-public interface XOseeEnumType extends OseeType
-{
- /**
- * Returns the value of the '<em><b>Enum Entries</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Enum Entries</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Enum Entries</em>' containment reference list.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumType_EnumEntries()
- * @model containment="true"
- * @generated
- */
- EList<XOseeEnumEntry> getEnumEntries();
-
-} // XOseeEnumType
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XOsee Enum Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType#getEnumEntries <em>Enum Entries</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumType()
+ * @model
+ * @generated
+ */
+public interface XOseeEnumType extends OseeType
+{
+ /**
+ * Returns the value of the '<em><b>Enum Entries</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Enum Entries</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Enum Entries</em>' containment reference list.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXOseeEnumType_EnumEntries()
+ * @model containment="true"
+ * @generated
+ */
+ EList<XOseeEnumEntry> getEnumEntries();
+
+} // XOseeEnumType
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java
index 77cafdff268..fa676c23edf 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationSideEnum.java
@@ -1,254 +1,254 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>XRelation Side Enum</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationSideEnum()
- * @model
- * @generated
- */
-public enum XRelationSideEnum implements Enumerator
-{
- /**
- * The '<em><b>SIDE A</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #SIDE_A_VALUE
- * @generated
- * @ordered
- */
- SIDE_A(0, "SIDE_A", "SIDE_A"),
-
- /**
- * The '<em><b>SIDE B</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #SIDE_B_VALUE
- * @generated
- * @ordered
- */
- SIDE_B(1, "SIDE_B", "SIDE_B"),
-
- /**
- * The '<em><b>BOTH</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #BOTH_VALUE
- * @generated
- * @ordered
- */
- BOTH(2, "BOTH", "BOTH");
-
- /**
- * The '<em><b>SIDE A</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>SIDE A</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #SIDE_A
- * @model
- * @generated
- * @ordered
- */
- public static final int SIDE_A_VALUE = 0;
-
- /**
- * The '<em><b>SIDE B</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>SIDE B</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #SIDE_B
- * @model
- * @generated
- * @ordered
- */
- public static final int SIDE_B_VALUE = 1;
-
- /**
- * The '<em><b>BOTH</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>BOTH</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #BOTH
- * @model
- * @generated
- * @ordered
- */
- public static final int BOTH_VALUE = 2;
-
- /**
- * An array of all the '<em><b>XRelation Side Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final XRelationSideEnum[] VALUES_ARRAY =
- new XRelationSideEnum[]
- {
- SIDE_A,
- SIDE_B,
- BOTH,
- };
-
- /**
- * A public read-only list of all the '<em><b>XRelation Side Enum</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<XRelationSideEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static XRelationSideEnum get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- XRelationSideEnum result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static XRelationSideEnum getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- XRelationSideEnum result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static XRelationSideEnum get(int value)
- {
- switch (value)
- {
- case SIDE_A_VALUE: return SIDE_A;
- case SIDE_B_VALUE: return SIDE_B;
- case BOTH_VALUE: return BOTH;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private XRelationSideEnum(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} //XRelationSideEnum
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>XRelation Side Enum</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationSideEnum()
+ * @model
+ * @generated
+ */
+public enum XRelationSideEnum implements Enumerator
+{
+ /**
+ * The '<em><b>SIDE A</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #SIDE_A_VALUE
+ * @generated
+ * @ordered
+ */
+ SIDE_A(0, "SIDE_A", "SIDE_A"),
+
+ /**
+ * The '<em><b>SIDE B</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #SIDE_B_VALUE
+ * @generated
+ * @ordered
+ */
+ SIDE_B(1, "SIDE_B", "SIDE_B"),
+
+ /**
+ * The '<em><b>BOTH</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #BOTH_VALUE
+ * @generated
+ * @ordered
+ */
+ BOTH(2, "BOTH", "BOTH");
+
+ /**
+ * The '<em><b>SIDE A</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>SIDE A</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #SIDE_A
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int SIDE_A_VALUE = 0;
+
+ /**
+ * The '<em><b>SIDE B</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>SIDE B</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #SIDE_B
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int SIDE_B_VALUE = 1;
+
+ /**
+ * The '<em><b>BOTH</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>BOTH</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #BOTH
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int BOTH_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>XRelation Side Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final XRelationSideEnum[] VALUES_ARRAY =
+ new XRelationSideEnum[]
+ {
+ SIDE_A,
+ SIDE_B,
+ BOTH,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>XRelation Side Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<XRelationSideEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static XRelationSideEnum get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ XRelationSideEnum result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static XRelationSideEnum getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ XRelationSideEnum result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>XRelation Side Enum</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static XRelationSideEnum get(int value)
+ {
+ switch (value)
+ {
+ case SIDE_A_VALUE: return SIDE_A;
+ case SIDE_B_VALUE: return SIDE_B;
+ case BOTH_VALUE: return BOTH;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private XRelationSideEnum(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //XRelationSideEnum
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java
index 0688b4761d4..278422e93b9 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/XRelationType.java
@@ -1,192 +1,192 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>XRelation Type</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType()
- * @model
- * @generated
- */
-public interface XRelationType extends OseeType
-{
- /**
- * Returns the value of the '<em><b>Side AName</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Side AName</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Side AName</em>' attribute.
- * @see #setSideAName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideAName()
- * @model
- * @generated
- */
- String getSideAName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Side AName</em>' attribute.
- * @see #getSideAName()
- * @generated
- */
- void setSideAName(String value);
-
- /**
- * Returns the value of the '<em><b>Side AArtifact Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Side AArtifact Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Side AArtifact Type</em>' reference.
- * @see #setSideAArtifactType(XArtifactType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideAArtifactType()
- * @model
- * @generated
- */
- XArtifactType getSideAArtifactType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Side AArtifact Type</em>' reference.
- * @see #getSideAArtifactType()
- * @generated
- */
- void setSideAArtifactType(XArtifactType value);
-
- /**
- * Returns the value of the '<em><b>Side BName</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Side BName</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Side BName</em>' attribute.
- * @see #setSideBName(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideBName()
- * @model
- * @generated
- */
- String getSideBName();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Side BName</em>' attribute.
- * @see #getSideBName()
- * @generated
- */
- void setSideBName(String value);
-
- /**
- * Returns the value of the '<em><b>Side BArtifact Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Side BArtifact Type</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Side BArtifact Type</em>' reference.
- * @see #setSideBArtifactType(XArtifactType)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideBArtifactType()
- * @model
- * @generated
- */
- XArtifactType getSideBArtifactType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Side BArtifact Type</em>' reference.
- * @see #getSideBArtifactType()
- * @generated
- */
- void setSideBArtifactType(XArtifactType value);
-
- /**
- * Returns the value of the '<em><b>Default Order Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default Order Type</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Default Order Type</em>' attribute.
- * @see #setDefaultOrderType(String)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_DefaultOrderType()
- * @model
- * @generated
- */
- String getDefaultOrderType();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Default Order Type</em>' attribute.
- * @see #getDefaultOrderType()
- * @generated
- */
- void setDefaultOrderType(String value);
-
- /**
- * Returns the value of the '<em><b>Multiplicity</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Multiplicity</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Multiplicity</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
- * @see #setMultiplicity(RelationMultiplicityEnum)
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_Multiplicity()
- * @model
- * @generated
- */
- RelationMultiplicityEnum getMultiplicity();
-
- /**
- * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Multiplicity</em>' attribute.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
- * @see #getMultiplicity()
- * @generated
- */
- void setMultiplicity(RelationMultiplicityEnum value);
-
-} // XRelationType
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>XRelation Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType()
+ * @model
+ * @generated
+ */
+public interface XRelationType extends OseeType
+{
+ /**
+ * Returns the value of the '<em><b>Side AName</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Side AName</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Side AName</em>' attribute.
+ * @see #setSideAName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideAName()
+ * @model
+ * @generated
+ */
+ String getSideAName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAName <em>Side AName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Side AName</em>' attribute.
+ * @see #getSideAName()
+ * @generated
+ */
+ void setSideAName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Side AArtifact Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Side AArtifact Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Side AArtifact Type</em>' reference.
+ * @see #setSideAArtifactType(XArtifactType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideAArtifactType()
+ * @model
+ * @generated
+ */
+ XArtifactType getSideAArtifactType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideAArtifactType <em>Side AArtifact Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Side AArtifact Type</em>' reference.
+ * @see #getSideAArtifactType()
+ * @generated
+ */
+ void setSideAArtifactType(XArtifactType value);
+
+ /**
+ * Returns the value of the '<em><b>Side BName</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Side BName</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Side BName</em>' attribute.
+ * @see #setSideBName(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideBName()
+ * @model
+ * @generated
+ */
+ String getSideBName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBName <em>Side BName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Side BName</em>' attribute.
+ * @see #getSideBName()
+ * @generated
+ */
+ void setSideBName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Side BArtifact Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Side BArtifact Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Side BArtifact Type</em>' reference.
+ * @see #setSideBArtifactType(XArtifactType)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_SideBArtifactType()
+ * @model
+ * @generated
+ */
+ XArtifactType getSideBArtifactType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getSideBArtifactType <em>Side BArtifact Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Side BArtifact Type</em>' reference.
+ * @see #getSideBArtifactType()
+ * @generated
+ */
+ void setSideBArtifactType(XArtifactType value);
+
+ /**
+ * Returns the value of the '<em><b>Default Order Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default Order Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default Order Type</em>' attribute.
+ * @see #setDefaultOrderType(String)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_DefaultOrderType()
+ * @model
+ * @generated
+ */
+ String getDefaultOrderType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getDefaultOrderType <em>Default Order Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default Order Type</em>' attribute.
+ * @see #getDefaultOrderType()
+ * @generated
+ */
+ void setDefaultOrderType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Multiplicity</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Multiplicity</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Multiplicity</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
+ * @see #setMultiplicity(RelationMultiplicityEnum)
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#getXRelationType_Multiplicity()
+ * @model
+ * @generated
+ */
+ RelationMultiplicityEnum getMultiplicity();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType#getMultiplicity <em>Multiplicity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Multiplicity</em>' attribute.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum
+ * @see #getMultiplicity()
+ * @generated
+ */
+ void setMultiplicity(RelationMultiplicityEnum value);
+
+} // XRelationType
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java
index bf90ca9522e..14b2ee97e39 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AccessContextImpl.java
@@ -1,376 +1,376 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Access Context</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getSuperAccessContexts <em>Super Access Contexts</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getGuid <em>Guid</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getAccessRules <em>Access Rules</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AccessContextImpl extends MinimalEObjectImpl.Container implements AccessContext
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getSuperAccessContexts() <em>Super Access Contexts</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSuperAccessContexts()
- * @generated
- * @ordered
- */
- protected EList<AccessContext> superAccessContexts;
-
- /**
- * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected static final String GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected String guid = GUID_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getAccessRules() <em>Access Rules</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAccessRules()
- * @generated
- * @ordered
- */
- protected EList<ObjectRestriction> accessRules;
-
- /**
- * The cached value of the '{@link #getHierarchyRestrictions() <em>Hierarchy Restrictions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHierarchyRestrictions()
- * @generated
- * @ordered
- */
- protected EList<HierarchyRestriction> hierarchyRestrictions;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AccessContextImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.ACCESS_CONTEXT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ACCESS_CONTEXT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<AccessContext> getSuperAccessContexts()
- {
- if (superAccessContexts == null)
- {
- superAccessContexts = new EObjectResolvingEList<AccessContext>(AccessContext.class, this, OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS);
- }
- return superAccessContexts;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getGuid()
- {
- return guid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setGuid(String newGuid)
- {
- String oldGuid = guid;
- guid = newGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ACCESS_CONTEXT__GUID, oldGuid, guid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<ObjectRestriction> getAccessRules()
- {
- if (accessRules == null)
- {
- accessRules = new EObjectContainmentEList<ObjectRestriction>(ObjectRestriction.class, this, OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES);
- }
- return accessRules;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<HierarchyRestriction> getHierarchyRestrictions()
- {
- if (hierarchyRestrictions == null)
- {
- hierarchyRestrictions = new EObjectContainmentEList<HierarchyRestriction>(HierarchyRestriction.class, this, OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS);
- }
- return hierarchyRestrictions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
- return ((InternalEList<?>)getAccessRules()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
- return ((InternalEList<?>)getHierarchyRestrictions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.ACCESS_CONTEXT__NAME:
- return getName();
- case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
- return getSuperAccessContexts();
- case OseeDslPackage.ACCESS_CONTEXT__GUID:
- return getGuid();
- case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
- return getAccessRules();
- case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
- return getHierarchyRestrictions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.ACCESS_CONTEXT__NAME:
- setName((String)newValue);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
- getSuperAccessContexts().clear();
- getSuperAccessContexts().addAll((Collection<? extends AccessContext>)newValue);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__GUID:
- setGuid((String)newValue);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
- getAccessRules().clear();
- getAccessRules().addAll((Collection<? extends ObjectRestriction>)newValue);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
- getHierarchyRestrictions().clear();
- getHierarchyRestrictions().addAll((Collection<? extends HierarchyRestriction>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ACCESS_CONTEXT__NAME:
- setName(NAME_EDEFAULT);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
- getSuperAccessContexts().clear();
- return;
- case OseeDslPackage.ACCESS_CONTEXT__GUID:
- setGuid(GUID_EDEFAULT);
- return;
- case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
- getAccessRules().clear();
- return;
- case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
- getHierarchyRestrictions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ACCESS_CONTEXT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
- return superAccessContexts != null && !superAccessContexts.isEmpty();
- case OseeDslPackage.ACCESS_CONTEXT__GUID:
- return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
- case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
- return accessRules != null && !accessRules.isEmpty();
- case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
- return hierarchyRestrictions != null && !hierarchyRestrictions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", guid: ");
- result.append(guid);
- result.append(')');
- return result.toString();
- }
-
-} //AccessContextImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Access Context</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getSuperAccessContexts <em>Super Access Contexts</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getGuid <em>Guid</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getAccessRules <em>Access Rules</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AccessContextImpl#getHierarchyRestrictions <em>Hierarchy Restrictions</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AccessContextImpl extends MinimalEObjectImpl.Container implements AccessContext
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSuperAccessContexts() <em>Super Access Contexts</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSuperAccessContexts()
+ * @generated
+ * @ordered
+ */
+ protected EList<AccessContext> superAccessContexts;
+
+ /**
+ * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected String guid = GUID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getAccessRules() <em>Access Rules</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAccessRules()
+ * @generated
+ * @ordered
+ */
+ protected EList<ObjectRestriction> accessRules;
+
+ /**
+ * The cached value of the '{@link #getHierarchyRestrictions() <em>Hierarchy Restrictions</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHierarchyRestrictions()
+ * @generated
+ * @ordered
+ */
+ protected EList<HierarchyRestriction> hierarchyRestrictions;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AccessContextImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.ACCESS_CONTEXT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ACCESS_CONTEXT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<AccessContext> getSuperAccessContexts()
+ {
+ if (superAccessContexts == null)
+ {
+ superAccessContexts = new EObjectResolvingEList<AccessContext>(AccessContext.class, this, OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS);
+ }
+ return superAccessContexts;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGuid()
+ {
+ return guid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGuid(String newGuid)
+ {
+ String oldGuid = guid;
+ guid = newGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ACCESS_CONTEXT__GUID, oldGuid, guid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ObjectRestriction> getAccessRules()
+ {
+ if (accessRules == null)
+ {
+ accessRules = new EObjectContainmentEList<ObjectRestriction>(ObjectRestriction.class, this, OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES);
+ }
+ return accessRules;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<HierarchyRestriction> getHierarchyRestrictions()
+ {
+ if (hierarchyRestrictions == null)
+ {
+ hierarchyRestrictions = new EObjectContainmentEList<HierarchyRestriction>(HierarchyRestriction.class, this, OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS);
+ }
+ return hierarchyRestrictions;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
+ return ((InternalEList<?>)getAccessRules()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
+ return ((InternalEList<?>)getHierarchyRestrictions()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ACCESS_CONTEXT__NAME:
+ return getName();
+ case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
+ return getSuperAccessContexts();
+ case OseeDslPackage.ACCESS_CONTEXT__GUID:
+ return getGuid();
+ case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
+ return getAccessRules();
+ case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
+ return getHierarchyRestrictions();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ACCESS_CONTEXT__NAME:
+ setName((String)newValue);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
+ getSuperAccessContexts().clear();
+ getSuperAccessContexts().addAll((Collection<? extends AccessContext>)newValue);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__GUID:
+ setGuid((String)newValue);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
+ getAccessRules().clear();
+ getAccessRules().addAll((Collection<? extends ObjectRestriction>)newValue);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
+ getHierarchyRestrictions().clear();
+ getHierarchyRestrictions().addAll((Collection<? extends HierarchyRestriction>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ACCESS_CONTEXT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
+ getSuperAccessContexts().clear();
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__GUID:
+ setGuid(GUID_EDEFAULT);
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
+ getAccessRules().clear();
+ return;
+ case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
+ getHierarchyRestrictions().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ACCESS_CONTEXT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case OseeDslPackage.ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS:
+ return superAccessContexts != null && !superAccessContexts.isEmpty();
+ case OseeDslPackage.ACCESS_CONTEXT__GUID:
+ return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
+ case OseeDslPackage.ACCESS_CONTEXT__ACCESS_RULES:
+ return accessRules != null && !accessRules.isEmpty();
+ case OseeDslPackage.ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS:
+ return hierarchyRestrictions != null && !hierarchyRestrictions.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", guid: ");
+ result.append(guid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AccessContextImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java
index f5397be2da1..8e7c76256ae 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddEnumImpl.java
@@ -1,292 +1,292 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Add Enum</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getEnumEntry <em>Enum Entry</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getOrdinal <em>Ordinal</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getEntryGuid <em>Entry Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AddEnumImpl extends OverrideOptionImpl implements AddEnum
-{
- /**
- * The default value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumEntry()
- * @generated
- * @ordered
- */
- protected static final String ENUM_ENTRY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumEntry()
- * @generated
- * @ordered
- */
- protected String enumEntry = ENUM_ENTRY_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOrdinal()
- * @generated
- * @ordered
- */
- protected static final String ORDINAL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOrdinal()
- * @generated
- * @ordered
- */
- protected String ordinal = ORDINAL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEntryGuid()
- * @generated
- * @ordered
- */
- protected static final String ENTRY_GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEntryGuid()
- * @generated
- * @ordered
- */
- protected String entryGuid = ENTRY_GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AddEnumImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.ADD_ENUM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getEnumEntry()
- {
- return enumEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEnumEntry(String newEnumEntry)
- {
- String oldEnumEntry = enumEntry;
- enumEntry = newEnumEntry;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getOrdinal()
- {
- return ordinal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOrdinal(String newOrdinal)
- {
- String oldOrdinal = ordinal;
- ordinal = newOrdinal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ORDINAL, oldOrdinal, ordinal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getEntryGuid()
- {
- return entryGuid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEntryGuid(String newEntryGuid)
- {
- String oldEntryGuid = entryGuid;
- entryGuid = newEntryGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ENTRY_GUID, oldEntryGuid, entryGuid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
- return getEnumEntry();
- case OseeDslPackage.ADD_ENUM__ORDINAL:
- return getOrdinal();
- case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
- return getEntryGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
- setEnumEntry((String)newValue);
- return;
- case OseeDslPackage.ADD_ENUM__ORDINAL:
- setOrdinal((String)newValue);
- return;
- case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
- setEntryGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
- setEnumEntry(ENUM_ENTRY_EDEFAULT);
- return;
- case OseeDslPackage.ADD_ENUM__ORDINAL:
- setOrdinal(ORDINAL_EDEFAULT);
- return;
- case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
- setEntryGuid(ENTRY_GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
- return ENUM_ENTRY_EDEFAULT == null ? enumEntry != null : !ENUM_ENTRY_EDEFAULT.equals(enumEntry);
- case OseeDslPackage.ADD_ENUM__ORDINAL:
- return ORDINAL_EDEFAULT == null ? ordinal != null : !ORDINAL_EDEFAULT.equals(ordinal);
- case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
- return ENTRY_GUID_EDEFAULT == null ? entryGuid != null : !ENTRY_GUID_EDEFAULT.equals(entryGuid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (enumEntry: ");
- result.append(enumEntry);
- result.append(", ordinal: ");
- result.append(ordinal);
- result.append(", entryGuid: ");
- result.append(entryGuid);
- result.append(')');
- return result.toString();
- }
-
-} //AddEnumImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Add Enum</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getEnumEntry <em>Enum Entry</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getOrdinal <em>Ordinal</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddEnumImpl#getEntryGuid <em>Entry Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AddEnumImpl extends OverrideOptionImpl implements AddEnum
+{
+ /**
+ * The default value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumEntry()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENUM_ENTRY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumEntry()
+ * @generated
+ * @ordered
+ */
+ protected String enumEntry = ENUM_ENTRY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOrdinal()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORDINAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOrdinal()
+ * @generated
+ * @ordered
+ */
+ protected String ordinal = ORDINAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEntryGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENTRY_GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEntryGuid()
+ * @generated
+ * @ordered
+ */
+ protected String entryGuid = ENTRY_GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AddEnumImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.ADD_ENUM;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEnumEntry()
+ {
+ return enumEntry;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnumEntry(String newEnumEntry)
+ {
+ String oldEnumEntry = enumEntry;
+ enumEntry = newEnumEntry;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOrdinal()
+ {
+ return ordinal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOrdinal(String newOrdinal)
+ {
+ String oldOrdinal = ordinal;
+ ordinal = newOrdinal;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ORDINAL, oldOrdinal, ordinal));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEntryGuid()
+ {
+ return entryGuid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEntryGuid(String newEntryGuid)
+ {
+ String oldEntryGuid = entryGuid;
+ entryGuid = newEntryGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ENUM__ENTRY_GUID, oldEntryGuid, entryGuid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
+ return getEnumEntry();
+ case OseeDslPackage.ADD_ENUM__ORDINAL:
+ return getOrdinal();
+ case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
+ return getEntryGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
+ setEnumEntry((String)newValue);
+ return;
+ case OseeDslPackage.ADD_ENUM__ORDINAL:
+ setOrdinal((String)newValue);
+ return;
+ case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
+ setEntryGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
+ setEnumEntry(ENUM_ENTRY_EDEFAULT);
+ return;
+ case OseeDslPackage.ADD_ENUM__ORDINAL:
+ setOrdinal(ORDINAL_EDEFAULT);
+ return;
+ case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
+ setEntryGuid(ENTRY_GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ADD_ENUM__ENUM_ENTRY:
+ return ENUM_ENTRY_EDEFAULT == null ? enumEntry != null : !ENUM_ENTRY_EDEFAULT.equals(enumEntry);
+ case OseeDslPackage.ADD_ENUM__ORDINAL:
+ return ORDINAL_EDEFAULT == null ? ordinal != null : !ORDINAL_EDEFAULT.equals(ordinal);
+ case OseeDslPackage.ADD_ENUM__ENTRY_GUID:
+ return ENTRY_GUID_EDEFAULT == null ? entryGuid != null : !ENTRY_GUID_EDEFAULT.equals(entryGuid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (enumEntry: ");
+ result.append(enumEntry);
+ result.append(", ordinal: ");
+ result.append(ordinal);
+ result.append(", entryGuid: ");
+ result.append(entryGuid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AddEnumImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java
index ca0acc91986..e6e898c47b5 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactInstanceRestrictionImpl.java
@@ -1,176 +1,176 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Artifact Instance Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl#getArtifactRef <em>Artifact Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ArtifactInstanceRestrictionImpl extends ObjectRestrictionImpl implements ArtifactInstanceRestriction
-{
- /**
- * The cached value of the '{@link #getArtifactRef() <em>Artifact Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifactRef()
- * @generated
- * @ordered
- */
- protected XArtifactRef artifactRef;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ArtifactInstanceRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.ARTIFACT_INSTANCE_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactRef getArtifactRef()
- {
- if (artifactRef != null && artifactRef.eIsProxy())
- {
- InternalEObject oldArtifactRef = (InternalEObject)artifactRef;
- artifactRef = (XArtifactRef)eResolveProxy(oldArtifactRef);
- if (artifactRef != oldArtifactRef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF, oldArtifactRef, artifactRef));
- }
- }
- return artifactRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactRef basicGetArtifactRef()
- {
- return artifactRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setArtifactRef(XArtifactRef newArtifactRef)
- {
- XArtifactRef oldArtifactRef = artifactRef;
- artifactRef = newArtifactRef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF, oldArtifactRef, artifactRef));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
- if (resolve) return getArtifactRef();
- return basicGetArtifactRef();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
- setArtifactRef((XArtifactRef)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
- setArtifactRef((XArtifactRef)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
- return artifactRef != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //ArtifactInstanceRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Artifact Instance Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactInstanceRestrictionImpl#getArtifactRef <em>Artifact Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ArtifactInstanceRestrictionImpl extends ObjectRestrictionImpl implements ArtifactInstanceRestriction
+{
+ /**
+ * The cached value of the '{@link #getArtifactRef() <em>Artifact Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifactRef()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactRef artifactRef;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ArtifactInstanceRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.ARTIFACT_INSTANCE_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactRef getArtifactRef()
+ {
+ if (artifactRef != null && artifactRef.eIsProxy())
+ {
+ InternalEObject oldArtifactRef = (InternalEObject)artifactRef;
+ artifactRef = (XArtifactRef)eResolveProxy(oldArtifactRef);
+ if (artifactRef != oldArtifactRef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF, oldArtifactRef, artifactRef));
+ }
+ }
+ return artifactRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactRef basicGetArtifactRef()
+ {
+ return artifactRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setArtifactRef(XArtifactRef newArtifactRef)
+ {
+ XArtifactRef oldArtifactRef = artifactRef;
+ artifactRef = newArtifactRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF, oldArtifactRef, artifactRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
+ if (resolve) return getArtifactRef();
+ return basicGetArtifactRef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
+ setArtifactRef((XArtifactRef)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
+ setArtifactRef((XArtifactRef)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF:
+ return artifactRef != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ArtifactInstanceRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java
index 8983062766a..adbb61d0540 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ArtifactTypeRestrictionImpl.java
@@ -1,176 +1,176 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Artifact Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ArtifactTypeRestrictionImpl extends ObjectRestrictionImpl implements ArtifactTypeRestriction
-{
- /**
- * The cached value of the '{@link #getArtifactTypeRef() <em>Artifact Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifactTypeRef()
- * @generated
- * @ordered
- */
- protected XArtifactType artifactTypeRef;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ArtifactTypeRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.ARTIFACT_TYPE_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType getArtifactTypeRef()
- {
- if (artifactTypeRef != null && artifactTypeRef.eIsProxy())
- {
- InternalEObject oldArtifactTypeRef = (InternalEObject)artifactTypeRef;
- artifactTypeRef = (XArtifactType)eResolveProxy(oldArtifactTypeRef);
- if (artifactTypeRef != oldArtifactTypeRef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
- }
- }
- return artifactTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType basicGetArtifactTypeRef()
- {
- return artifactTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setArtifactTypeRef(XArtifactType newArtifactTypeRef)
- {
- XArtifactType oldArtifactTypeRef = artifactTypeRef;
- artifactTypeRef = newArtifactTypeRef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- if (resolve) return getArtifactTypeRef();
- return basicGetArtifactTypeRef();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- setArtifactTypeRef((XArtifactType)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- setArtifactTypeRef((XArtifactType)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- return artifactTypeRef != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //ArtifactTypeRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Artifact Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ArtifactTypeRestrictionImpl#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ArtifactTypeRestrictionImpl extends ObjectRestrictionImpl implements ArtifactTypeRestriction
+{
+ /**
+ * The cached value of the '{@link #getArtifactTypeRef() <em>Artifact Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifactTypeRef()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactType artifactTypeRef;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ArtifactTypeRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.ARTIFACT_TYPE_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType getArtifactTypeRef()
+ {
+ if (artifactTypeRef != null && artifactTypeRef.eIsProxy())
+ {
+ InternalEObject oldArtifactTypeRef = (InternalEObject)artifactTypeRef;
+ artifactTypeRef = (XArtifactType)eResolveProxy(oldArtifactTypeRef);
+ if (artifactTypeRef != oldArtifactTypeRef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
+ }
+ }
+ return artifactTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType basicGetArtifactTypeRef()
+ {
+ return artifactTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setArtifactTypeRef(XArtifactType newArtifactTypeRef)
+ {
+ XArtifactType oldArtifactTypeRef = artifactTypeRef;
+ artifactTypeRef = newArtifactTypeRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ if (resolve) return getArtifactTypeRef();
+ return basicGetArtifactTypeRef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ setArtifactTypeRef((XArtifactType)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ setArtifactTypeRef((XArtifactType)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ return artifactTypeRef != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ArtifactTypeRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java
index 06a4a1f9d07..5f85c438493 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AttributeTypeRestrictionImpl.java
@@ -1,242 +1,242 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Attribute Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl#getAttributeTypeRef <em>Attribute Type Ref</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AttributeTypeRestrictionImpl extends ObjectRestrictionImpl implements AttributeTypeRestriction
-{
- /**
- * The cached value of the '{@link #getAttributeTypeRef() <em>Attribute Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAttributeTypeRef()
- * @generated
- * @ordered
- */
- protected XAttributeType attributeTypeRef;
-
- /**
- * The cached value of the '{@link #getArtifactTypeRef() <em>Artifact Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifactTypeRef()
- * @generated
- * @ordered
- */
- protected XArtifactType artifactTypeRef;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AttributeTypeRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType getAttributeTypeRef()
- {
- if (attributeTypeRef != null && attributeTypeRef.eIsProxy())
- {
- InternalEObject oldAttributeTypeRef = (InternalEObject)attributeTypeRef;
- attributeTypeRef = (XAttributeType)eResolveProxy(oldAttributeTypeRef);
- if (attributeTypeRef != oldAttributeTypeRef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF, oldAttributeTypeRef, attributeTypeRef));
- }
- }
- return attributeTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType basicGetAttributeTypeRef()
- {
- return attributeTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAttributeTypeRef(XAttributeType newAttributeTypeRef)
- {
- XAttributeType oldAttributeTypeRef = attributeTypeRef;
- attributeTypeRef = newAttributeTypeRef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF, oldAttributeTypeRef, attributeTypeRef));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType getArtifactTypeRef()
- {
- if (artifactTypeRef != null && artifactTypeRef.eIsProxy())
- {
- InternalEObject oldArtifactTypeRef = (InternalEObject)artifactTypeRef;
- artifactTypeRef = (XArtifactType)eResolveProxy(oldArtifactTypeRef);
- if (artifactTypeRef != oldArtifactTypeRef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
- }
- }
- return artifactTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType basicGetArtifactTypeRef()
- {
- return artifactTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setArtifactTypeRef(XArtifactType newArtifactTypeRef)
- {
- XArtifactType oldArtifactTypeRef = artifactTypeRef;
- artifactTypeRef = newArtifactTypeRef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
- if (resolve) return getAttributeTypeRef();
- return basicGetAttributeTypeRef();
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- if (resolve) return getArtifactTypeRef();
- return basicGetArtifactTypeRef();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
- setAttributeTypeRef((XAttributeType)newValue);
- return;
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- setArtifactTypeRef((XArtifactType)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
- setAttributeTypeRef((XAttributeType)null);
- return;
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- setArtifactTypeRef((XArtifactType)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
- return attributeTypeRef != null;
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
- return artifactTypeRef != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //AttributeTypeRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Attribute Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl#getAttributeTypeRef <em>Attribute Type Ref</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AttributeTypeRestrictionImpl#getArtifactTypeRef <em>Artifact Type Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AttributeTypeRestrictionImpl extends ObjectRestrictionImpl implements AttributeTypeRestriction
+{
+ /**
+ * The cached value of the '{@link #getAttributeTypeRef() <em>Attribute Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAttributeTypeRef()
+ * @generated
+ * @ordered
+ */
+ protected XAttributeType attributeTypeRef;
+
+ /**
+ * The cached value of the '{@link #getArtifactTypeRef() <em>Artifact Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifactTypeRef()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactType artifactTypeRef;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AttributeTypeRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType getAttributeTypeRef()
+ {
+ if (attributeTypeRef != null && attributeTypeRef.eIsProxy())
+ {
+ InternalEObject oldAttributeTypeRef = (InternalEObject)attributeTypeRef;
+ attributeTypeRef = (XAttributeType)eResolveProxy(oldAttributeTypeRef);
+ if (attributeTypeRef != oldAttributeTypeRef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF, oldAttributeTypeRef, attributeTypeRef));
+ }
+ }
+ return attributeTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType basicGetAttributeTypeRef()
+ {
+ return attributeTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAttributeTypeRef(XAttributeType newAttributeTypeRef)
+ {
+ XAttributeType oldAttributeTypeRef = attributeTypeRef;
+ attributeTypeRef = newAttributeTypeRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF, oldAttributeTypeRef, attributeTypeRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType getArtifactTypeRef()
+ {
+ if (artifactTypeRef != null && artifactTypeRef.eIsProxy())
+ {
+ InternalEObject oldArtifactTypeRef = (InternalEObject)artifactTypeRef;
+ artifactTypeRef = (XArtifactType)eResolveProxy(oldArtifactTypeRef);
+ if (artifactTypeRef != oldArtifactTypeRef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
+ }
+ }
+ return artifactTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType basicGetArtifactTypeRef()
+ {
+ return artifactTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setArtifactTypeRef(XArtifactType newArtifactTypeRef)
+ {
+ XArtifactType oldArtifactTypeRef = artifactTypeRef;
+ artifactTypeRef = newArtifactTypeRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, oldArtifactTypeRef, artifactTypeRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
+ if (resolve) return getAttributeTypeRef();
+ return basicGetAttributeTypeRef();
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ if (resolve) return getArtifactTypeRef();
+ return basicGetArtifactTypeRef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
+ setAttributeTypeRef((XAttributeType)newValue);
+ return;
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ setArtifactTypeRef((XArtifactType)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
+ setAttributeTypeRef((XAttributeType)null);
+ return;
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ setArtifactTypeRef((XArtifactType)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF:
+ return attributeTypeRef != null;
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF:
+ return artifactTypeRef != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //AttributeTypeRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java
index 300a1c98e49..6a42e313489 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/HierarchyRestrictionImpl.java
@@ -1,239 +1,239 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Hierarchy Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl#getArtifact <em>Artifact</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl#getAccessRules <em>Access Rules</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class HierarchyRestrictionImpl extends MinimalEObjectImpl.Container implements HierarchyRestriction
-{
- /**
- * The cached value of the '{@link #getArtifact() <em>Artifact</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifact()
- * @generated
- * @ordered
- */
- protected XArtifactRef artifact;
-
- /**
- * The cached value of the '{@link #getAccessRules() <em>Access Rules</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAccessRules()
- * @generated
- * @ordered
- */
- protected EList<ObjectRestriction> accessRules;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HierarchyRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.HIERARCHY_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactRef getArtifact()
- {
- if (artifact != null && artifact.eIsProxy())
- {
- InternalEObject oldArtifact = (InternalEObject)artifact;
- artifact = (XArtifactRef)eResolveProxy(oldArtifact);
- if (artifact != oldArtifact)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT, oldArtifact, artifact));
- }
- }
- return artifact;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactRef basicGetArtifact()
- {
- return artifact;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setArtifact(XArtifactRef newArtifact)
- {
- XArtifactRef oldArtifact = artifact;
- artifact = newArtifact;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT, oldArtifact, artifact));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<ObjectRestriction> getAccessRules()
- {
- if (accessRules == null)
- {
- accessRules = new EObjectContainmentEList<ObjectRestriction>(ObjectRestriction.class, this, OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES);
- }
- return accessRules;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
- return ((InternalEList<?>)getAccessRules()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
- if (resolve) return getArtifact();
- return basicGetArtifact();
- case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
- return getAccessRules();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
- setArtifact((XArtifactRef)newValue);
- return;
- case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
- getAccessRules().clear();
- getAccessRules().addAll((Collection<? extends ObjectRestriction>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
- setArtifact((XArtifactRef)null);
- return;
- case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
- getAccessRules().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
- return artifact != null;
- case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
- return accessRules != null && !accessRules.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //HierarchyRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Hierarchy Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl#getArtifact <em>Artifact</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.HierarchyRestrictionImpl#getAccessRules <em>Access Rules</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class HierarchyRestrictionImpl extends MinimalEObjectImpl.Container implements HierarchyRestriction
+{
+ /**
+ * The cached value of the '{@link #getArtifact() <em>Artifact</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifact()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactRef artifact;
+
+ /**
+ * The cached value of the '{@link #getAccessRules() <em>Access Rules</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAccessRules()
+ * @generated
+ * @ordered
+ */
+ protected EList<ObjectRestriction> accessRules;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HierarchyRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.HIERARCHY_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactRef getArtifact()
+ {
+ if (artifact != null && artifact.eIsProxy())
+ {
+ InternalEObject oldArtifact = (InternalEObject)artifact;
+ artifact = (XArtifactRef)eResolveProxy(oldArtifact);
+ if (artifact != oldArtifact)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT, oldArtifact, artifact));
+ }
+ }
+ return artifact;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactRef basicGetArtifact()
+ {
+ return artifact;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setArtifact(XArtifactRef newArtifact)
+ {
+ XArtifactRef oldArtifact = artifact;
+ artifact = newArtifact;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT, oldArtifact, artifact));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ObjectRestriction> getAccessRules()
+ {
+ if (accessRules == null)
+ {
+ accessRules = new EObjectContainmentEList<ObjectRestriction>(ObjectRestriction.class, this, OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES);
+ }
+ return accessRules;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
+ return ((InternalEList<?>)getAccessRules()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
+ if (resolve) return getArtifact();
+ return basicGetArtifact();
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
+ return getAccessRules();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
+ setArtifact((XArtifactRef)newValue);
+ return;
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
+ getAccessRules().clear();
+ getAccessRules().addAll((Collection<? extends ObjectRestriction>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
+ setArtifact((XArtifactRef)null);
+ return;
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
+ getAccessRules().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ARTIFACT:
+ return artifact != null;
+ case OseeDslPackage.HIERARCHY_RESTRICTION__ACCESS_RULES:
+ return accessRules != null && !accessRules.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //HierarchyRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java
index 229ca13e75c..04a446ade27 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ImportImpl.java
@@ -1,181 +1,181 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Import</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl#getImportURI <em>Import URI</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ImportImpl extends MinimalEObjectImpl.Container implements Import
-{
- /**
- * The default value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImportURI()
- * @generated
- * @ordered
- */
- protected static final String IMPORT_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImportURI()
- * @generated
- * @ordered
- */
- protected String importURI = IMPORT_URI_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ImportImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.IMPORT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getImportURI()
- {
- return importURI;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setImportURI(String newImportURI)
- {
- String oldImportURI = importURI;
- importURI = newImportURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.IMPORT__IMPORT_URI, oldImportURI, importURI));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.IMPORT__IMPORT_URI:
- return getImportURI();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.IMPORT__IMPORT_URI:
- setImportURI((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.IMPORT__IMPORT_URI:
- setImportURI(IMPORT_URI_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.IMPORT__IMPORT_URI:
- return IMPORT_URI_EDEFAULT == null ? importURI != null : !IMPORT_URI_EDEFAULT.equals(importURI);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (importURI: ");
- result.append(importURI);
- result.append(')');
- return result.toString();
- }
-
-} //ImportImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Import</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ImportImpl#getImportURI <em>Import URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImportImpl extends MinimalEObjectImpl.Container implements Import
+{
+ /**
+ * The default value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getImportURI()
+ * @generated
+ * @ordered
+ */
+ protected static final String IMPORT_URI_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getImportURI()
+ * @generated
+ * @ordered
+ */
+ protected String importURI = IMPORT_URI_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ImportImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.IMPORT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getImportURI()
+ {
+ return importURI;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setImportURI(String newImportURI)
+ {
+ String oldImportURI = importURI;
+ importURI = newImportURI;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.IMPORT__IMPORT_URI, oldImportURI, importURI));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.IMPORT__IMPORT_URI:
+ return getImportURI();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.IMPORT__IMPORT_URI:
+ setImportURI((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.IMPORT__IMPORT_URI:
+ setImportURI(IMPORT_URI_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.IMPORT__IMPORT_URI:
+ return IMPORT_URI_EDEFAULT == null ? importURI != null : !IMPORT_URI_EDEFAULT.equals(importURI);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (importURI: ");
+ result.append(importURI);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ImportImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java
index 15c1625b261..502efd8a169 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/ObjectRestrictionImpl.java
@@ -1,182 +1,182 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Object Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl#getPermission <em>Permission</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ObjectRestrictionImpl extends MinimalEObjectImpl.Container implements ObjectRestriction
-{
- /**
- * The default value of the '{@link #getPermission() <em>Permission</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPermission()
- * @generated
- * @ordered
- */
- protected static final AccessPermissionEnum PERMISSION_EDEFAULT = AccessPermissionEnum.ALLOW;
-
- /**
- * The cached value of the '{@link #getPermission() <em>Permission</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPermission()
- * @generated
- * @ordered
- */
- protected AccessPermissionEnum permission = PERMISSION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ObjectRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.OBJECT_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AccessPermissionEnum getPermission()
- {
- return permission;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPermission(AccessPermissionEnum newPermission)
- {
- AccessPermissionEnum oldPermission = permission;
- permission = newPermission == null ? PERMISSION_EDEFAULT : newPermission;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OBJECT_RESTRICTION__PERMISSION, oldPermission, permission));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
- return getPermission();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
- setPermission((AccessPermissionEnum)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
- setPermission(PERMISSION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
- return permission != PERMISSION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (permission: ");
- result.append(permission);
- result.append(')');
- return result.toString();
- }
-
-} //ObjectRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Object Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.ObjectRestrictionImpl#getPermission <em>Permission</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ObjectRestrictionImpl extends MinimalEObjectImpl.Container implements ObjectRestriction
+{
+ /**
+ * The default value of the '{@link #getPermission() <em>Permission</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPermission()
+ * @generated
+ * @ordered
+ */
+ protected static final AccessPermissionEnum PERMISSION_EDEFAULT = AccessPermissionEnum.ALLOW;
+
+ /**
+ * The cached value of the '{@link #getPermission() <em>Permission</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPermission()
+ * @generated
+ * @ordered
+ */
+ protected AccessPermissionEnum permission = PERMISSION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ObjectRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.OBJECT_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AccessPermissionEnum getPermission()
+ {
+ return permission;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPermission(AccessPermissionEnum newPermission)
+ {
+ AccessPermissionEnum oldPermission = permission;
+ permission = newPermission == null ? PERMISSION_EDEFAULT : newPermission;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OBJECT_RESTRICTION__PERMISSION, oldPermission, permission));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
+ return getPermission();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
+ setPermission((AccessPermissionEnum)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
+ setPermission(PERMISSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OBJECT_RESTRICTION__PERMISSION:
+ return permission != PERMISSION_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (permission: ");
+ result.append(permission);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ObjectRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java
index 1923c58ec81..8320e94894b 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslFactoryImpl.java
@@ -1,483 +1,483 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class OseeDslFactoryImpl extends EFactoryImpl implements OseeDslFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static OseeDslFactory init()
- {
- try
- {
- OseeDslFactory theOseeDslFactory = (OseeDslFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/osee/framework/core/dsl/OseeDsl");
- if (theOseeDslFactory != null)
- {
- return theOseeDslFactory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new OseeDslFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDslFactoryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case OseeDslPackage.OSEE_DSL: return createOseeDsl();
- case OseeDslPackage.IMPORT: return createImport();
- case OseeDslPackage.OSEE_ELEMENT: return createOseeElement();
- case OseeDslPackage.OSEE_TYPE: return createOseeType();
- case OseeDslPackage.XARTIFACT_TYPE: return createXArtifactType();
- case OseeDslPackage.XATTRIBUTE_TYPE_REF: return createXAttributeTypeRef();
- case OseeDslPackage.XATTRIBUTE_TYPE: return createXAttributeType();
- case OseeDslPackage.XOSEE_ENUM_TYPE: return createXOseeEnumType();
- case OseeDslPackage.XOSEE_ENUM_ENTRY: return createXOseeEnumEntry();
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE: return createXOseeEnumOverride();
- case OseeDslPackage.OVERRIDE_OPTION: return createOverrideOption();
- case OseeDslPackage.ADD_ENUM: return createAddEnum();
- case OseeDslPackage.REMOVE_ENUM: return createRemoveEnum();
- case OseeDslPackage.XRELATION_TYPE: return createXRelationType();
- case OseeDslPackage.XARTIFACT_REF: return createXArtifactRef();
- case OseeDslPackage.XBRANCH_REF: return createXBranchRef();
- case OseeDslPackage.ACCESS_CONTEXT: return createAccessContext();
- case OseeDslPackage.HIERARCHY_RESTRICTION: return createHierarchyRestriction();
- case OseeDslPackage.OBJECT_RESTRICTION: return createObjectRestriction();
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION: return createArtifactInstanceRestriction();
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION: return createArtifactTypeRestriction();
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION: return createAttributeTypeRestriction();
- case OseeDslPackage.RELATION_TYPE_RESTRICTION: return createRelationTypeRestriction();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue)
- {
- switch (eDataType.getClassifierID())
- {
- case OseeDslPackage.RELATION_MULTIPLICITY_ENUM:
- return createRelationMultiplicityEnumFromString(eDataType, initialValue);
- case OseeDslPackage.ACCESS_PERMISSION_ENUM:
- return createAccessPermissionEnumFromString(eDataType, initialValue);
- case OseeDslPackage.XRELATION_SIDE_ENUM:
- return createXRelationSideEnumFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue)
- {
- switch (eDataType.getClassifierID())
- {
- case OseeDslPackage.RELATION_MULTIPLICITY_ENUM:
- return convertRelationMultiplicityEnumToString(eDataType, instanceValue);
- case OseeDslPackage.ACCESS_PERMISSION_ENUM:
- return convertAccessPermissionEnumToString(eDataType, instanceValue);
- case OseeDslPackage.XRELATION_SIDE_ENUM:
- return convertXRelationSideEnumToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDsl createOseeDsl()
- {
- OseeDslImpl oseeDsl = new OseeDslImpl();
- return oseeDsl;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Import createImport()
- {
- ImportImpl import_ = new ImportImpl();
- return import_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeElement createOseeElement()
- {
- OseeElementImpl oseeElement = new OseeElementImpl();
- return oseeElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeType createOseeType()
- {
- OseeTypeImpl oseeType = new OseeTypeImpl();
- return oseeType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType createXArtifactType()
- {
- XArtifactTypeImpl xArtifactType = new XArtifactTypeImpl();
- return xArtifactType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeTypeRef createXAttributeTypeRef()
- {
- XAttributeTypeRefImpl xAttributeTypeRef = new XAttributeTypeRefImpl();
- return xAttributeTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType createXAttributeType()
- {
- XAttributeTypeImpl xAttributeType = new XAttributeTypeImpl();
- return xAttributeType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumType createXOseeEnumType()
- {
- XOseeEnumTypeImpl xOseeEnumType = new XOseeEnumTypeImpl();
- return xOseeEnumType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumEntry createXOseeEnumEntry()
- {
- XOseeEnumEntryImpl xOseeEnumEntry = new XOseeEnumEntryImpl();
- return xOseeEnumEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumOverride createXOseeEnumOverride()
- {
- XOseeEnumOverrideImpl xOseeEnumOverride = new XOseeEnumOverrideImpl();
- return xOseeEnumOverride;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OverrideOption createOverrideOption()
- {
- OverrideOptionImpl overrideOption = new OverrideOptionImpl();
- return overrideOption;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AddEnum createAddEnum()
- {
- AddEnumImpl addEnum = new AddEnumImpl();
- return addEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RemoveEnum createRemoveEnum()
- {
- RemoveEnumImpl removeEnum = new RemoveEnumImpl();
- return removeEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XRelationType createXRelationType()
- {
- XRelationTypeImpl xRelationType = new XRelationTypeImpl();
- return xRelationType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactRef createXArtifactRef()
- {
- XArtifactRefImpl xArtifactRef = new XArtifactRefImpl();
- return xArtifactRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XBranchRef createXBranchRef()
- {
- XBranchRefImpl xBranchRef = new XBranchRefImpl();
- return xBranchRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AccessContext createAccessContext()
- {
- AccessContextImpl accessContext = new AccessContextImpl();
- return accessContext;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HierarchyRestriction createHierarchyRestriction()
- {
- HierarchyRestrictionImpl hierarchyRestriction = new HierarchyRestrictionImpl();
- return hierarchyRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ObjectRestriction createObjectRestriction()
- {
- ObjectRestrictionImpl objectRestriction = new ObjectRestrictionImpl();
- return objectRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ArtifactInstanceRestriction createArtifactInstanceRestriction()
- {
- ArtifactInstanceRestrictionImpl artifactInstanceRestriction = new ArtifactInstanceRestrictionImpl();
- return artifactInstanceRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ArtifactTypeRestriction createArtifactTypeRestriction()
- {
- ArtifactTypeRestrictionImpl artifactTypeRestriction = new ArtifactTypeRestrictionImpl();
- return artifactTypeRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AttributeTypeRestriction createAttributeTypeRestriction()
- {
- AttributeTypeRestrictionImpl attributeTypeRestriction = new AttributeTypeRestrictionImpl();
- return attributeTypeRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RelationTypeRestriction createRelationTypeRestriction()
- {
- RelationTypeRestrictionImpl relationTypeRestriction = new RelationTypeRestrictionImpl();
- return relationTypeRestriction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RelationMultiplicityEnum createRelationMultiplicityEnumFromString(EDataType eDataType, String initialValue)
- {
- RelationMultiplicityEnum result = RelationMultiplicityEnum.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertRelationMultiplicityEnumToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AccessPermissionEnum createAccessPermissionEnumFromString(EDataType eDataType, String initialValue)
- {
- AccessPermissionEnum result = AccessPermissionEnum.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertAccessPermissionEnumToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XRelationSideEnum createXRelationSideEnumFromString(EDataType eDataType, String initialValue)
- {
- XRelationSideEnum result = XRelationSideEnum.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertXRelationSideEnumToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDslPackage getOseeDslPackage()
- {
- return (OseeDslPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static OseeDslPackage getPackage()
- {
- return OseeDslPackage.eINSTANCE;
- }
-
-} //OseeDslFactoryImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class OseeDslFactoryImpl extends EFactoryImpl implements OseeDslFactory
+{
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static OseeDslFactory init()
+ {
+ try
+ {
+ OseeDslFactory theOseeDslFactory = (OseeDslFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/osee/framework/core/dsl/OseeDsl");
+ if (theOseeDslFactory != null)
+ {
+ return theOseeDslFactory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new OseeDslFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDslFactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case OseeDslPackage.OSEE_DSL: return createOseeDsl();
+ case OseeDslPackage.IMPORT: return createImport();
+ case OseeDslPackage.OSEE_ELEMENT: return createOseeElement();
+ case OseeDslPackage.OSEE_TYPE: return createOseeType();
+ case OseeDslPackage.XARTIFACT_TYPE: return createXArtifactType();
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF: return createXAttributeTypeRef();
+ case OseeDslPackage.XATTRIBUTE_TYPE: return createXAttributeType();
+ case OseeDslPackage.XOSEE_ENUM_TYPE: return createXOseeEnumType();
+ case OseeDslPackage.XOSEE_ENUM_ENTRY: return createXOseeEnumEntry();
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE: return createXOseeEnumOverride();
+ case OseeDslPackage.OVERRIDE_OPTION: return createOverrideOption();
+ case OseeDslPackage.ADD_ENUM: return createAddEnum();
+ case OseeDslPackage.REMOVE_ENUM: return createRemoveEnum();
+ case OseeDslPackage.XRELATION_TYPE: return createXRelationType();
+ case OseeDslPackage.XARTIFACT_REF: return createXArtifactRef();
+ case OseeDslPackage.XBRANCH_REF: return createXBranchRef();
+ case OseeDslPackage.ACCESS_CONTEXT: return createAccessContext();
+ case OseeDslPackage.HIERARCHY_RESTRICTION: return createHierarchyRestriction();
+ case OseeDslPackage.OBJECT_RESTRICTION: return createObjectRestriction();
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION: return createArtifactInstanceRestriction();
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION: return createArtifactTypeRestriction();
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION: return createAttributeTypeRestriction();
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION: return createRelationTypeRestriction();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case OseeDslPackage.RELATION_MULTIPLICITY_ENUM:
+ return createRelationMultiplicityEnumFromString(eDataType, initialValue);
+ case OseeDslPackage.ACCESS_PERMISSION_ENUM:
+ return createAccessPermissionEnumFromString(eDataType, initialValue);
+ case OseeDslPackage.XRELATION_SIDE_ENUM:
+ return createXRelationSideEnumFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case OseeDslPackage.RELATION_MULTIPLICITY_ENUM:
+ return convertRelationMultiplicityEnumToString(eDataType, instanceValue);
+ case OseeDslPackage.ACCESS_PERMISSION_ENUM:
+ return convertAccessPermissionEnumToString(eDataType, instanceValue);
+ case OseeDslPackage.XRELATION_SIDE_ENUM:
+ return convertXRelationSideEnumToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDsl createOseeDsl()
+ {
+ OseeDslImpl oseeDsl = new OseeDslImpl();
+ return oseeDsl;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Import createImport()
+ {
+ ImportImpl import_ = new ImportImpl();
+ return import_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeElement createOseeElement()
+ {
+ OseeElementImpl oseeElement = new OseeElementImpl();
+ return oseeElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeType createOseeType()
+ {
+ OseeTypeImpl oseeType = new OseeTypeImpl();
+ return oseeType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType createXArtifactType()
+ {
+ XArtifactTypeImpl xArtifactType = new XArtifactTypeImpl();
+ return xArtifactType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeTypeRef createXAttributeTypeRef()
+ {
+ XAttributeTypeRefImpl xAttributeTypeRef = new XAttributeTypeRefImpl();
+ return xAttributeTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType createXAttributeType()
+ {
+ XAttributeTypeImpl xAttributeType = new XAttributeTypeImpl();
+ return xAttributeType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumType createXOseeEnumType()
+ {
+ XOseeEnumTypeImpl xOseeEnumType = new XOseeEnumTypeImpl();
+ return xOseeEnumType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumEntry createXOseeEnumEntry()
+ {
+ XOseeEnumEntryImpl xOseeEnumEntry = new XOseeEnumEntryImpl();
+ return xOseeEnumEntry;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumOverride createXOseeEnumOverride()
+ {
+ XOseeEnumOverrideImpl xOseeEnumOverride = new XOseeEnumOverrideImpl();
+ return xOseeEnumOverride;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OverrideOption createOverrideOption()
+ {
+ OverrideOptionImpl overrideOption = new OverrideOptionImpl();
+ return overrideOption;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AddEnum createAddEnum()
+ {
+ AddEnumImpl addEnum = new AddEnumImpl();
+ return addEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RemoveEnum createRemoveEnum()
+ {
+ RemoveEnumImpl removeEnum = new RemoveEnumImpl();
+ return removeEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XRelationType createXRelationType()
+ {
+ XRelationTypeImpl xRelationType = new XRelationTypeImpl();
+ return xRelationType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactRef createXArtifactRef()
+ {
+ XArtifactRefImpl xArtifactRef = new XArtifactRefImpl();
+ return xArtifactRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XBranchRef createXBranchRef()
+ {
+ XBranchRefImpl xBranchRef = new XBranchRefImpl();
+ return xBranchRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AccessContext createAccessContext()
+ {
+ AccessContextImpl accessContext = new AccessContextImpl();
+ return accessContext;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HierarchyRestriction createHierarchyRestriction()
+ {
+ HierarchyRestrictionImpl hierarchyRestriction = new HierarchyRestrictionImpl();
+ return hierarchyRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ObjectRestriction createObjectRestriction()
+ {
+ ObjectRestrictionImpl objectRestriction = new ObjectRestrictionImpl();
+ return objectRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ArtifactInstanceRestriction createArtifactInstanceRestriction()
+ {
+ ArtifactInstanceRestrictionImpl artifactInstanceRestriction = new ArtifactInstanceRestrictionImpl();
+ return artifactInstanceRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ArtifactTypeRestriction createArtifactTypeRestriction()
+ {
+ ArtifactTypeRestrictionImpl artifactTypeRestriction = new ArtifactTypeRestrictionImpl();
+ return artifactTypeRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AttributeTypeRestriction createAttributeTypeRestriction()
+ {
+ AttributeTypeRestrictionImpl attributeTypeRestriction = new AttributeTypeRestrictionImpl();
+ return attributeTypeRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RelationTypeRestriction createRelationTypeRestriction()
+ {
+ RelationTypeRestrictionImpl relationTypeRestriction = new RelationTypeRestrictionImpl();
+ return relationTypeRestriction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RelationMultiplicityEnum createRelationMultiplicityEnumFromString(EDataType eDataType, String initialValue)
+ {
+ RelationMultiplicityEnum result = RelationMultiplicityEnum.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertRelationMultiplicityEnumToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AccessPermissionEnum createAccessPermissionEnumFromString(EDataType eDataType, String initialValue)
+ {
+ AccessPermissionEnum result = AccessPermissionEnum.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertAccessPermissionEnumToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XRelationSideEnum createXRelationSideEnumFromString(EDataType eDataType, String initialValue)
+ {
+ XRelationSideEnum result = XRelationSideEnum.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertXRelationSideEnumToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDslPackage getOseeDslPackage()
+ {
+ return (OseeDslPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static OseeDslPackage getPackage()
+ {
+ return OseeDslPackage.eINSTANCE;
+ }
+
+} //OseeDslFactoryImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java
index 48d6ecac8b8..2bae4bfd96d 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslImpl.java
@@ -1,483 +1,483 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Osee Dsl</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getImports <em>Imports</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getArtifactTypes <em>Artifact Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getRelationTypes <em>Relation Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getAttributeTypes <em>Attribute Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getEnumTypes <em>Enum Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getEnumOverrides <em>Enum Overrides</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getBranchRefs <em>Branch Refs</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getArtifactRefs <em>Artifact Refs</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getAccessDeclarations <em>Access Declarations</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OseeDslImpl extends MinimalEObjectImpl.Container implements OseeDsl
-{
- /**
- * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getImports()
- * @generated
- * @ordered
- */
- protected EList<Import> imports;
-
- /**
- * The cached value of the '{@link #getArtifactTypes() <em>Artifact Types</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifactTypes()
- * @generated
- * @ordered
- */
- protected EList<XArtifactType> artifactTypes;
-
- /**
- * The cached value of the '{@link #getRelationTypes() <em>Relation Types</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRelationTypes()
- * @generated
- * @ordered
- */
- protected EList<XRelationType> relationTypes;
-
- /**
- * The cached value of the '{@link #getAttributeTypes() <em>Attribute Types</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAttributeTypes()
- * @generated
- * @ordered
- */
- protected EList<XAttributeType> attributeTypes;
-
- /**
- * The cached value of the '{@link #getEnumTypes() <em>Enum Types</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumTypes()
- * @generated
- * @ordered
- */
- protected EList<XOseeEnumType> enumTypes;
-
- /**
- * The cached value of the '{@link #getEnumOverrides() <em>Enum Overrides</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumOverrides()
- * @generated
- * @ordered
- */
- protected EList<XOseeEnumOverride> enumOverrides;
-
- /**
- * The cached value of the '{@link #getBranchRefs() <em>Branch Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBranchRefs()
- * @generated
- * @ordered
- */
- protected EList<XBranchRef> branchRefs;
-
- /**
- * The cached value of the '{@link #getArtifactRefs() <em>Artifact Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getArtifactRefs()
- * @generated
- * @ordered
- */
- protected EList<XArtifactRef> artifactRefs;
-
- /**
- * The cached value of the '{@link #getAccessDeclarations() <em>Access Declarations</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAccessDeclarations()
- * @generated
- * @ordered
- */
- protected EList<AccessContext> accessDeclarations;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OseeDslImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.OSEE_DSL;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Import> getImports()
- {
- if (imports == null)
- {
- imports = new EObjectContainmentEList<Import>(Import.class, this, OseeDslPackage.OSEE_DSL__IMPORTS);
- }
- return imports;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XArtifactType> getArtifactTypes()
- {
- if (artifactTypes == null)
- {
- artifactTypes = new EObjectContainmentEList<XArtifactType>(XArtifactType.class, this, OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES);
- }
- return artifactTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XRelationType> getRelationTypes()
- {
- if (relationTypes == null)
- {
- relationTypes = new EObjectContainmentEList<XRelationType>(XRelationType.class, this, OseeDslPackage.OSEE_DSL__RELATION_TYPES);
- }
- return relationTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XAttributeType> getAttributeTypes()
- {
- if (attributeTypes == null)
- {
- attributeTypes = new EObjectContainmentEList<XAttributeType>(XAttributeType.class, this, OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES);
- }
- return attributeTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XOseeEnumType> getEnumTypes()
- {
- if (enumTypes == null)
- {
- enumTypes = new EObjectContainmentEList<XOseeEnumType>(XOseeEnumType.class, this, OseeDslPackage.OSEE_DSL__ENUM_TYPES);
- }
- return enumTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XOseeEnumOverride> getEnumOverrides()
- {
- if (enumOverrides == null)
- {
- enumOverrides = new EObjectContainmentEList<XOseeEnumOverride>(XOseeEnumOverride.class, this, OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES);
- }
- return enumOverrides;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XBranchRef> getBranchRefs()
- {
- if (branchRefs == null)
- {
- branchRefs = new EObjectContainmentEList<XBranchRef>(XBranchRef.class, this, OseeDslPackage.OSEE_DSL__BRANCH_REFS);
- }
- return branchRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XArtifactRef> getArtifactRefs()
- {
- if (artifactRefs == null)
- {
- artifactRefs = new EObjectContainmentEList<XArtifactRef>(XArtifactRef.class, this, OseeDslPackage.OSEE_DSL__ARTIFACT_REFS);
- }
- return artifactRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<AccessContext> getAccessDeclarations()
- {
- if (accessDeclarations == null)
- {
- accessDeclarations = new EObjectContainmentEList<AccessContext>(AccessContext.class, this, OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS);
- }
- return accessDeclarations;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_DSL__IMPORTS:
- return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
- return ((InternalEList<?>)getArtifactTypes()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
- return ((InternalEList<?>)getRelationTypes()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
- return ((InternalEList<?>)getAttributeTypes()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
- return ((InternalEList<?>)getEnumTypes()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
- return ((InternalEList<?>)getEnumOverrides()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
- return ((InternalEList<?>)getBranchRefs()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
- return ((InternalEList<?>)getArtifactRefs()).basicRemove(otherEnd, msgs);
- case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
- return ((InternalEList<?>)getAccessDeclarations()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_DSL__IMPORTS:
- return getImports();
- case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
- return getArtifactTypes();
- case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
- return getRelationTypes();
- case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
- return getAttributeTypes();
- case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
- return getEnumTypes();
- case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
- return getEnumOverrides();
- case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
- return getBranchRefs();
- case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
- return getArtifactRefs();
- case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
- return getAccessDeclarations();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_DSL__IMPORTS:
- getImports().clear();
- getImports().addAll((Collection<? extends Import>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
- getArtifactTypes().clear();
- getArtifactTypes().addAll((Collection<? extends XArtifactType>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
- getRelationTypes().clear();
- getRelationTypes().addAll((Collection<? extends XRelationType>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
- getAttributeTypes().clear();
- getAttributeTypes().addAll((Collection<? extends XAttributeType>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
- getEnumTypes().clear();
- getEnumTypes().addAll((Collection<? extends XOseeEnumType>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
- getEnumOverrides().clear();
- getEnumOverrides().addAll((Collection<? extends XOseeEnumOverride>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
- getBranchRefs().clear();
- getBranchRefs().addAll((Collection<? extends XBranchRef>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
- getArtifactRefs().clear();
- getArtifactRefs().addAll((Collection<? extends XArtifactRef>)newValue);
- return;
- case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
- getAccessDeclarations().clear();
- getAccessDeclarations().addAll((Collection<? extends AccessContext>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_DSL__IMPORTS:
- getImports().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
- getArtifactTypes().clear();
- return;
- case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
- getRelationTypes().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
- getAttributeTypes().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
- getEnumTypes().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
- getEnumOverrides().clear();
- return;
- case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
- getBranchRefs().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
- getArtifactRefs().clear();
- return;
- case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
- getAccessDeclarations().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_DSL__IMPORTS:
- return imports != null && !imports.isEmpty();
- case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
- return artifactTypes != null && !artifactTypes.isEmpty();
- case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
- return relationTypes != null && !relationTypes.isEmpty();
- case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
- return attributeTypes != null && !attributeTypes.isEmpty();
- case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
- return enumTypes != null && !enumTypes.isEmpty();
- case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
- return enumOverrides != null && !enumOverrides.isEmpty();
- case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
- return branchRefs != null && !branchRefs.isEmpty();
- case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
- return artifactRefs != null && !artifactRefs.isEmpty();
- case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
- return accessDeclarations != null && !accessDeclarations.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //OseeDslImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Osee Dsl</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getImports <em>Imports</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getArtifactTypes <em>Artifact Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getRelationTypes <em>Relation Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getAttributeTypes <em>Attribute Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getEnumTypes <em>Enum Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getEnumOverrides <em>Enum Overrides</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getBranchRefs <em>Branch Refs</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getArtifactRefs <em>Artifact Refs</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeDslImpl#getAccessDeclarations <em>Access Declarations</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OseeDslImpl extends MinimalEObjectImpl.Container implements OseeDsl
+{
+ /**
+ * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getImports()
+ * @generated
+ * @ordered
+ */
+ protected EList<Import> imports;
+
+ /**
+ * The cached value of the '{@link #getArtifactTypes() <em>Artifact Types</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifactTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XArtifactType> artifactTypes;
+
+ /**
+ * The cached value of the '{@link #getRelationTypes() <em>Relation Types</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRelationTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XRelationType> relationTypes;
+
+ /**
+ * The cached value of the '{@link #getAttributeTypes() <em>Attribute Types</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAttributeTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XAttributeType> attributeTypes;
+
+ /**
+ * The cached value of the '{@link #getEnumTypes() <em>Enum Types</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XOseeEnumType> enumTypes;
+
+ /**
+ * The cached value of the '{@link #getEnumOverrides() <em>Enum Overrides</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumOverrides()
+ * @generated
+ * @ordered
+ */
+ protected EList<XOseeEnumOverride> enumOverrides;
+
+ /**
+ * The cached value of the '{@link #getBranchRefs() <em>Branch Refs</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBranchRefs()
+ * @generated
+ * @ordered
+ */
+ protected EList<XBranchRef> branchRefs;
+
+ /**
+ * The cached value of the '{@link #getArtifactRefs() <em>Artifact Refs</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArtifactRefs()
+ * @generated
+ * @ordered
+ */
+ protected EList<XArtifactRef> artifactRefs;
+
+ /**
+ * The cached value of the '{@link #getAccessDeclarations() <em>Access Declarations</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAccessDeclarations()
+ * @generated
+ * @ordered
+ */
+ protected EList<AccessContext> accessDeclarations;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OseeDslImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.OSEE_DSL;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Import> getImports()
+ {
+ if (imports == null)
+ {
+ imports = new EObjectContainmentEList<Import>(Import.class, this, OseeDslPackage.OSEE_DSL__IMPORTS);
+ }
+ return imports;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XArtifactType> getArtifactTypes()
+ {
+ if (artifactTypes == null)
+ {
+ artifactTypes = new EObjectContainmentEList<XArtifactType>(XArtifactType.class, this, OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES);
+ }
+ return artifactTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XRelationType> getRelationTypes()
+ {
+ if (relationTypes == null)
+ {
+ relationTypes = new EObjectContainmentEList<XRelationType>(XRelationType.class, this, OseeDslPackage.OSEE_DSL__RELATION_TYPES);
+ }
+ return relationTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XAttributeType> getAttributeTypes()
+ {
+ if (attributeTypes == null)
+ {
+ attributeTypes = new EObjectContainmentEList<XAttributeType>(XAttributeType.class, this, OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES);
+ }
+ return attributeTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XOseeEnumType> getEnumTypes()
+ {
+ if (enumTypes == null)
+ {
+ enumTypes = new EObjectContainmentEList<XOseeEnumType>(XOseeEnumType.class, this, OseeDslPackage.OSEE_DSL__ENUM_TYPES);
+ }
+ return enumTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XOseeEnumOverride> getEnumOverrides()
+ {
+ if (enumOverrides == null)
+ {
+ enumOverrides = new EObjectContainmentEList<XOseeEnumOverride>(XOseeEnumOverride.class, this, OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES);
+ }
+ return enumOverrides;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XBranchRef> getBranchRefs()
+ {
+ if (branchRefs == null)
+ {
+ branchRefs = new EObjectContainmentEList<XBranchRef>(XBranchRef.class, this, OseeDslPackage.OSEE_DSL__BRANCH_REFS);
+ }
+ return branchRefs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XArtifactRef> getArtifactRefs()
+ {
+ if (artifactRefs == null)
+ {
+ artifactRefs = new EObjectContainmentEList<XArtifactRef>(XArtifactRef.class, this, OseeDslPackage.OSEE_DSL__ARTIFACT_REFS);
+ }
+ return artifactRefs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<AccessContext> getAccessDeclarations()
+ {
+ if (accessDeclarations == null)
+ {
+ accessDeclarations = new EObjectContainmentEList<AccessContext>(AccessContext.class, this, OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS);
+ }
+ return accessDeclarations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_DSL__IMPORTS:
+ return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
+ return ((InternalEList<?>)getArtifactTypes()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
+ return ((InternalEList<?>)getRelationTypes()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
+ return ((InternalEList<?>)getAttributeTypes()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
+ return ((InternalEList<?>)getEnumTypes()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
+ return ((InternalEList<?>)getEnumOverrides()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
+ return ((InternalEList<?>)getBranchRefs()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
+ return ((InternalEList<?>)getArtifactRefs()).basicRemove(otherEnd, msgs);
+ case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
+ return ((InternalEList<?>)getAccessDeclarations()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_DSL__IMPORTS:
+ return getImports();
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
+ return getArtifactTypes();
+ case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
+ return getRelationTypes();
+ case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
+ return getAttributeTypes();
+ case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
+ return getEnumTypes();
+ case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
+ return getEnumOverrides();
+ case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
+ return getBranchRefs();
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
+ return getArtifactRefs();
+ case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
+ return getAccessDeclarations();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_DSL__IMPORTS:
+ getImports().clear();
+ getImports().addAll((Collection<? extends Import>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
+ getArtifactTypes().clear();
+ getArtifactTypes().addAll((Collection<? extends XArtifactType>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
+ getRelationTypes().clear();
+ getRelationTypes().addAll((Collection<? extends XRelationType>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
+ getAttributeTypes().clear();
+ getAttributeTypes().addAll((Collection<? extends XAttributeType>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
+ getEnumTypes().clear();
+ getEnumTypes().addAll((Collection<? extends XOseeEnumType>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
+ getEnumOverrides().clear();
+ getEnumOverrides().addAll((Collection<? extends XOseeEnumOverride>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
+ getBranchRefs().clear();
+ getBranchRefs().addAll((Collection<? extends XBranchRef>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
+ getArtifactRefs().clear();
+ getArtifactRefs().addAll((Collection<? extends XArtifactRef>)newValue);
+ return;
+ case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
+ getAccessDeclarations().clear();
+ getAccessDeclarations().addAll((Collection<? extends AccessContext>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_DSL__IMPORTS:
+ getImports().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
+ getArtifactTypes().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
+ getRelationTypes().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
+ getAttributeTypes().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
+ getEnumTypes().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
+ getEnumOverrides().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
+ getBranchRefs().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
+ getArtifactRefs().clear();
+ return;
+ case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
+ getAccessDeclarations().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_DSL__IMPORTS:
+ return imports != null && !imports.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_TYPES:
+ return artifactTypes != null && !artifactTypes.isEmpty();
+ case OseeDslPackage.OSEE_DSL__RELATION_TYPES:
+ return relationTypes != null && !relationTypes.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ATTRIBUTE_TYPES:
+ return attributeTypes != null && !attributeTypes.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ENUM_TYPES:
+ return enumTypes != null && !enumTypes.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ENUM_OVERRIDES:
+ return enumOverrides != null && !enumOverrides.isEmpty();
+ case OseeDslPackage.OSEE_DSL__BRANCH_REFS:
+ return branchRefs != null && !branchRefs.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ARTIFACT_REFS:
+ return artifactRefs != null && !artifactRefs.isEmpty();
+ case OseeDslPackage.OSEE_DSL__ACCESS_DECLARATIONS:
+ return accessDeclarations != null && !accessDeclarations.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //OseeDslImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java
index 267f1b041b5..8e5077a0a39 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeDslPackageImpl.java
@@ -1,1494 +1,1494 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslFactory;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class OseeDslPackageImpl extends EPackageImpl implements OseeDslPackage
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass oseeDslEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass importEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass oseeElementEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass oseeTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xArtifactTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xAttributeTypeRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xAttributeTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xOseeEnumTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xOseeEnumEntryEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xOseeEnumOverrideEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass overrideOptionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass addEnumEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass removeEnumEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xRelationTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xArtifactRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass xBranchRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass accessContextEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass hierarchyRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass objectRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass artifactInstanceRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass artifactTypeRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass attributeTypeRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass relationTypeRestrictionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum relationMultiplicityEnumEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum accessPermissionEnumEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum xRelationSideEnumEEnum = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private OseeDslPackageImpl()
- {
- super(eNS_URI, OseeDslFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>This method is used to initialize {@link OseeDslPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static OseeDslPackage init()
- {
- if (isInited) return (OseeDslPackage)EPackage.Registry.INSTANCE.getEPackage(OseeDslPackage.eNS_URI);
-
- // Obtain or create and register package
- OseeDslPackageImpl theOseeDslPackage = (OseeDslPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OseeDslPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OseeDslPackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theOseeDslPackage.createPackageContents();
-
- // Initialize created meta-data
- theOseeDslPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theOseeDslPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(OseeDslPackage.eNS_URI, theOseeDslPackage);
- return theOseeDslPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getOseeDsl()
- {
- return oseeDslEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_Imports()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_ArtifactTypes()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_RelationTypes()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_AttributeTypes()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_EnumTypes()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_EnumOverrides()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_BranchRefs()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_ArtifactRefs()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOseeDsl_AccessDeclarations()
- {
- return (EReference)oseeDslEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getImport()
- {
- return importEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getImport_ImportURI()
- {
- return (EAttribute)importEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getOseeElement()
- {
- return oseeElementEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getOseeType()
- {
- return oseeTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOseeType_Name()
- {
- return (EAttribute)oseeTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOseeType_TypeGuid()
- {
- return (EAttribute)oseeTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXArtifactType()
- {
- return xArtifactTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXArtifactType_Abstract()
- {
- return (EAttribute)xArtifactTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXArtifactType_SuperArtifactTypes()
- {
- return (EReference)xArtifactTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXArtifactType_ValidAttributeTypes()
- {
- return (EReference)xArtifactTypeEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXAttributeTypeRef()
- {
- return xAttributeTypeRefEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXAttributeTypeRef_ValidAttributeType()
- {
- return (EReference)xAttributeTypeRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeTypeRef_BranchGuid()
- {
- return (EAttribute)xAttributeTypeRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXAttributeType()
- {
- return xAttributeTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_BaseAttributeType()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXAttributeType_Override()
- {
- return (EReference)xAttributeTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_DataProvider()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_Min()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_Max()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_TaggerId()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXAttributeType_EnumType()
- {
- return (EReference)xAttributeTypeEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_Description()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_DefaultValue()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXAttributeType_FileExtension()
- {
- return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXOseeEnumType()
- {
- return xOseeEnumTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXOseeEnumType_EnumEntries()
- {
- return (EReference)xOseeEnumTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXOseeEnumEntry()
- {
- return xOseeEnumEntryEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXOseeEnumEntry_Name()
- {
- return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXOseeEnumEntry_Ordinal()
- {
- return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXOseeEnumEntry_EntryGuid()
- {
- return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXOseeEnumOverride()
- {
- return xOseeEnumOverrideEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXOseeEnumOverride_OverridenEnumType()
- {
- return (EReference)xOseeEnumOverrideEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXOseeEnumOverride_InheritAll()
- {
- return (EAttribute)xOseeEnumOverrideEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXOseeEnumOverride_OverrideOptions()
- {
- return (EReference)xOseeEnumOverrideEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getOverrideOption()
- {
- return overrideOptionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAddEnum()
- {
- return addEnumEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAddEnum_EnumEntry()
- {
- return (EAttribute)addEnumEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAddEnum_Ordinal()
- {
- return (EAttribute)addEnumEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAddEnum_EntryGuid()
- {
- return (EAttribute)addEnumEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getRemoveEnum()
- {
- return removeEnumEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRemoveEnum_EnumEntry()
- {
- return (EReference)removeEnumEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXRelationType()
- {
- return xRelationTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXRelationType_SideAName()
- {
- return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXRelationType_SideAArtifactType()
- {
- return (EReference)xRelationTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXRelationType_SideBName()
- {
- return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getXRelationType_SideBArtifactType()
- {
- return (EReference)xRelationTypeEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXRelationType_DefaultOrderType()
- {
- return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXRelationType_Multiplicity()
- {
- return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXArtifactRef()
- {
- return xArtifactRefEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXArtifactRef_Name()
- {
- return (EAttribute)xArtifactRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXArtifactRef_Guid()
- {
- return (EAttribute)xArtifactRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getXBranchRef()
- {
- return xBranchRefEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXBranchRef_Name()
- {
- return (EAttribute)xBranchRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getXBranchRef_Guid()
- {
- return (EAttribute)xBranchRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAccessContext()
- {
- return accessContextEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAccessContext_Name()
- {
- return (EAttribute)accessContextEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAccessContext_SuperAccessContexts()
- {
- return (EReference)accessContextEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAccessContext_Guid()
- {
- return (EAttribute)accessContextEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAccessContext_AccessRules()
- {
- return (EReference)accessContextEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAccessContext_HierarchyRestrictions()
- {
- return (EReference)accessContextEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getHierarchyRestriction()
- {
- return hierarchyRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getHierarchyRestriction_Artifact()
- {
- return (EReference)hierarchyRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getHierarchyRestriction_AccessRules()
- {
- return (EReference)hierarchyRestrictionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getObjectRestriction()
- {
- return objectRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getObjectRestriction_Permission()
- {
- return (EAttribute)objectRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getArtifactInstanceRestriction()
- {
- return artifactInstanceRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getArtifactInstanceRestriction_ArtifactRef()
- {
- return (EReference)artifactInstanceRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getArtifactTypeRestriction()
- {
- return artifactTypeRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getArtifactTypeRestriction_ArtifactTypeRef()
- {
- return (EReference)artifactTypeRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAttributeTypeRestriction()
- {
- return attributeTypeRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAttributeTypeRestriction_AttributeTypeRef()
- {
- return (EReference)attributeTypeRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAttributeTypeRestriction_ArtifactTypeRef()
- {
- return (EReference)attributeTypeRestrictionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getRelationTypeRestriction()
- {
- return relationTypeRestrictionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRelationTypeRestriction_RelationTypeRef()
- {
- return (EReference)relationTypeRestrictionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRelationTypeRestriction_RestrictedToSide()
- {
- return (EAttribute)relationTypeRestrictionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getRelationMultiplicityEnum()
- {
- return relationMultiplicityEnumEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getAccessPermissionEnum()
- {
- return accessPermissionEnumEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getXRelationSideEnum()
- {
- return xRelationSideEnumEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDslFactory getOseeDslFactory()
- {
- return (OseeDslFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- oseeDslEClass = createEClass(OSEE_DSL);
- createEReference(oseeDslEClass, OSEE_DSL__IMPORTS);
- createEReference(oseeDslEClass, OSEE_DSL__ARTIFACT_TYPES);
- createEReference(oseeDslEClass, OSEE_DSL__RELATION_TYPES);
- createEReference(oseeDslEClass, OSEE_DSL__ATTRIBUTE_TYPES);
- createEReference(oseeDslEClass, OSEE_DSL__ENUM_TYPES);
- createEReference(oseeDslEClass, OSEE_DSL__ENUM_OVERRIDES);
- createEReference(oseeDslEClass, OSEE_DSL__BRANCH_REFS);
- createEReference(oseeDslEClass, OSEE_DSL__ARTIFACT_REFS);
- createEReference(oseeDslEClass, OSEE_DSL__ACCESS_DECLARATIONS);
-
- importEClass = createEClass(IMPORT);
- createEAttribute(importEClass, IMPORT__IMPORT_URI);
-
- oseeElementEClass = createEClass(OSEE_ELEMENT);
-
- oseeTypeEClass = createEClass(OSEE_TYPE);
- createEAttribute(oseeTypeEClass, OSEE_TYPE__NAME);
- createEAttribute(oseeTypeEClass, OSEE_TYPE__TYPE_GUID);
-
- xArtifactTypeEClass = createEClass(XARTIFACT_TYPE);
- createEAttribute(xArtifactTypeEClass, XARTIFACT_TYPE__ABSTRACT);
- createEReference(xArtifactTypeEClass, XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES);
- createEReference(xArtifactTypeEClass, XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES);
-
- xAttributeTypeRefEClass = createEClass(XATTRIBUTE_TYPE_REF);
- createEReference(xAttributeTypeRefEClass, XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE);
- createEAttribute(xAttributeTypeRefEClass, XATTRIBUTE_TYPE_REF__BRANCH_GUID);
-
- xAttributeTypeEClass = createEClass(XATTRIBUTE_TYPE);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE);
- createEReference(xAttributeTypeEClass, XATTRIBUTE_TYPE__OVERRIDE);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DATA_PROVIDER);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__MIN);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__MAX);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__TAGGER_ID);
- createEReference(xAttributeTypeEClass, XATTRIBUTE_TYPE__ENUM_TYPE);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DESCRIPTION);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DEFAULT_VALUE);
- createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__FILE_EXTENSION);
-
- xOseeEnumTypeEClass = createEClass(XOSEE_ENUM_TYPE);
- createEReference(xOseeEnumTypeEClass, XOSEE_ENUM_TYPE__ENUM_ENTRIES);
-
- xOseeEnumEntryEClass = createEClass(XOSEE_ENUM_ENTRY);
- createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__NAME);
- createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__ORDINAL);
- createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__ENTRY_GUID);
-
- xOseeEnumOverrideEClass = createEClass(XOSEE_ENUM_OVERRIDE);
- createEReference(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE);
- createEAttribute(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__INHERIT_ALL);
- createEReference(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS);
-
- overrideOptionEClass = createEClass(OVERRIDE_OPTION);
-
- addEnumEClass = createEClass(ADD_ENUM);
- createEAttribute(addEnumEClass, ADD_ENUM__ENUM_ENTRY);
- createEAttribute(addEnumEClass, ADD_ENUM__ORDINAL);
- createEAttribute(addEnumEClass, ADD_ENUM__ENTRY_GUID);
-
- removeEnumEClass = createEClass(REMOVE_ENUM);
- createEReference(removeEnumEClass, REMOVE_ENUM__ENUM_ENTRY);
-
- xRelationTypeEClass = createEClass(XRELATION_TYPE);
- createEAttribute(xRelationTypeEClass, XRELATION_TYPE__SIDE_ANAME);
- createEReference(xRelationTypeEClass, XRELATION_TYPE__SIDE_AARTIFACT_TYPE);
- createEAttribute(xRelationTypeEClass, XRELATION_TYPE__SIDE_BNAME);
- createEReference(xRelationTypeEClass, XRELATION_TYPE__SIDE_BARTIFACT_TYPE);
- createEAttribute(xRelationTypeEClass, XRELATION_TYPE__DEFAULT_ORDER_TYPE);
- createEAttribute(xRelationTypeEClass, XRELATION_TYPE__MULTIPLICITY);
-
- xArtifactRefEClass = createEClass(XARTIFACT_REF);
- createEAttribute(xArtifactRefEClass, XARTIFACT_REF__NAME);
- createEAttribute(xArtifactRefEClass, XARTIFACT_REF__GUID);
-
- xBranchRefEClass = createEClass(XBRANCH_REF);
- createEAttribute(xBranchRefEClass, XBRANCH_REF__NAME);
- createEAttribute(xBranchRefEClass, XBRANCH_REF__GUID);
-
- accessContextEClass = createEClass(ACCESS_CONTEXT);
- createEAttribute(accessContextEClass, ACCESS_CONTEXT__NAME);
- createEReference(accessContextEClass, ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS);
- createEAttribute(accessContextEClass, ACCESS_CONTEXT__GUID);
- createEReference(accessContextEClass, ACCESS_CONTEXT__ACCESS_RULES);
- createEReference(accessContextEClass, ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS);
-
- hierarchyRestrictionEClass = createEClass(HIERARCHY_RESTRICTION);
- createEReference(hierarchyRestrictionEClass, HIERARCHY_RESTRICTION__ARTIFACT);
- createEReference(hierarchyRestrictionEClass, HIERARCHY_RESTRICTION__ACCESS_RULES);
-
- objectRestrictionEClass = createEClass(OBJECT_RESTRICTION);
- createEAttribute(objectRestrictionEClass, OBJECT_RESTRICTION__PERMISSION);
-
- artifactInstanceRestrictionEClass = createEClass(ARTIFACT_INSTANCE_RESTRICTION);
- createEReference(artifactInstanceRestrictionEClass, ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF);
-
- artifactTypeRestrictionEClass = createEClass(ARTIFACT_TYPE_RESTRICTION);
- createEReference(artifactTypeRestrictionEClass, ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF);
-
- attributeTypeRestrictionEClass = createEClass(ATTRIBUTE_TYPE_RESTRICTION);
- createEReference(attributeTypeRestrictionEClass, ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF);
- createEReference(attributeTypeRestrictionEClass, ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF);
-
- relationTypeRestrictionEClass = createEClass(RELATION_TYPE_RESTRICTION);
- createEReference(relationTypeRestrictionEClass, RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF);
- createEAttribute(relationTypeRestrictionEClass, RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE);
-
- // Create enums
- relationMultiplicityEnumEEnum = createEEnum(RELATION_MULTIPLICITY_ENUM);
- accessPermissionEnumEEnum = createEEnum(ACCESS_PERMISSION_ENUM);
- xRelationSideEnumEEnum = createEEnum(XRELATION_SIDE_ENUM);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- oseeTypeEClass.getESuperTypes().add(this.getOseeElement());
- xArtifactTypeEClass.getESuperTypes().add(this.getOseeType());
- xAttributeTypeEClass.getESuperTypes().add(this.getOseeType());
- xOseeEnumTypeEClass.getESuperTypes().add(this.getOseeType());
- xOseeEnumOverrideEClass.getESuperTypes().add(this.getOseeElement());
- addEnumEClass.getESuperTypes().add(this.getOverrideOption());
- removeEnumEClass.getESuperTypes().add(this.getOverrideOption());
- xRelationTypeEClass.getESuperTypes().add(this.getOseeType());
- artifactInstanceRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
- artifactTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
- attributeTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
- relationTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
-
- // Initialize classes and features; add operations and parameters
- initEClass(oseeDslEClass, OseeDsl.class, "OseeDsl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getOseeDsl_Imports(), this.getImport(), null, "imports", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_ArtifactTypes(), this.getXArtifactType(), null, "artifactTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_RelationTypes(), this.getXRelationType(), null, "relationTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_AttributeTypes(), this.getXAttributeType(), null, "attributeTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_EnumTypes(), this.getXOseeEnumType(), null, "enumTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_EnumOverrides(), this.getXOseeEnumOverride(), null, "enumOverrides", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_BranchRefs(), this.getXBranchRef(), null, "branchRefs", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_ArtifactRefs(), this.getXArtifactRef(), null, "artifactRefs", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOseeDsl_AccessDeclarations(), this.getAccessContext(), null, "accessDeclarations", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getImport_ImportURI(), ecorePackage.getEString(), "importURI", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(oseeElementEClass, OseeElement.class, "OseeElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(oseeTypeEClass, OseeType.class, "OseeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getOseeType_Name(), ecorePackage.getEString(), "name", null, 0, 1, OseeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOseeType_TypeGuid(), ecorePackage.getEString(), "typeGuid", null, 0, 1, OseeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xArtifactTypeEClass, XArtifactType.class, "XArtifactType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXArtifactType_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXArtifactType_SuperArtifactTypes(), this.getXArtifactType(), null, "superArtifactTypes", null, 0, -1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXArtifactType_ValidAttributeTypes(), this.getXAttributeTypeRef(), null, "validAttributeTypes", null, 0, -1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xAttributeTypeRefEClass, XAttributeTypeRef.class, "XAttributeTypeRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getXAttributeTypeRef_ValidAttributeType(), this.getXAttributeType(), null, "validAttributeType", null, 0, 1, XAttributeTypeRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeTypeRef_BranchGuid(), ecorePackage.getEString(), "branchGuid", null, 0, 1, XAttributeTypeRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xAttributeTypeEClass, XAttributeType.class, "XAttributeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXAttributeType_BaseAttributeType(), ecorePackage.getEString(), "baseAttributeType", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXAttributeType_Override(), this.getXAttributeType(), null, "override", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_DataProvider(), ecorePackage.getEString(), "dataProvider", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_Min(), ecorePackage.getEString(), "min", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_Max(), ecorePackage.getEString(), "max", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_TaggerId(), ecorePackage.getEString(), "taggerId", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXAttributeType_EnumType(), this.getXOseeEnumType(), null, "enumType", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_Description(), ecorePackage.getEString(), "description", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXAttributeType_FileExtension(), ecorePackage.getEString(), "fileExtension", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xOseeEnumTypeEClass, XOseeEnumType.class, "XOseeEnumType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getXOseeEnumType_EnumEntries(), this.getXOseeEnumEntry(), null, "enumEntries", null, 0, -1, XOseeEnumType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xOseeEnumEntryEClass, XOseeEnumEntry.class, "XOseeEnumEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXOseeEnumEntry_Name(), ecorePackage.getEString(), "name", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXOseeEnumEntry_Ordinal(), ecorePackage.getEString(), "ordinal", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXOseeEnumEntry_EntryGuid(), ecorePackage.getEString(), "entryGuid", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xOseeEnumOverrideEClass, XOseeEnumOverride.class, "XOseeEnumOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getXOseeEnumOverride_OverridenEnumType(), this.getXOseeEnumType(), null, "overridenEnumType", null, 0, 1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXOseeEnumOverride_InheritAll(), ecorePackage.getEBoolean(), "inheritAll", null, 0, 1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXOseeEnumOverride_OverrideOptions(), this.getOverrideOption(), null, "overrideOptions", null, 0, -1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(overrideOptionEClass, OverrideOption.class, "OverrideOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(addEnumEClass, AddEnum.class, "AddEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAddEnum_EnumEntry(), ecorePackage.getEString(), "enumEntry", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAddEnum_Ordinal(), ecorePackage.getEString(), "ordinal", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAddEnum_EntryGuid(), ecorePackage.getEString(), "entryGuid", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(removeEnumEClass, RemoveEnum.class, "RemoveEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRemoveEnum_EnumEntry(), this.getXOseeEnumEntry(), null, "enumEntry", null, 0, 1, RemoveEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xRelationTypeEClass, XRelationType.class, "XRelationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXRelationType_SideAName(), ecorePackage.getEString(), "sideAName", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXRelationType_SideAArtifactType(), this.getXArtifactType(), null, "sideAArtifactType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXRelationType_SideBName(), ecorePackage.getEString(), "sideBName", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getXRelationType_SideBArtifactType(), this.getXArtifactType(), null, "sideBArtifactType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXRelationType_DefaultOrderType(), ecorePackage.getEString(), "defaultOrderType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXRelationType_Multiplicity(), this.getRelationMultiplicityEnum(), "multiplicity", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xArtifactRefEClass, XArtifactRef.class, "XArtifactRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXArtifactRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, XArtifactRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXArtifactRef_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, XArtifactRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(xBranchRefEClass, XBranchRef.class, "XBranchRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getXBranchRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, XBranchRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getXBranchRef_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, XBranchRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(accessContextEClass, AccessContext.class, "AccessContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAccessContext_Name(), ecorePackage.getEString(), "name", null, 0, 1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAccessContext_SuperAccessContexts(), this.getAccessContext(), null, "superAccessContexts", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAccessContext_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAccessContext_AccessRules(), this.getObjectRestriction(), null, "accessRules", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAccessContext_HierarchyRestrictions(), this.getHierarchyRestriction(), null, "hierarchyRestrictions", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(hierarchyRestrictionEClass, HierarchyRestriction.class, "HierarchyRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getHierarchyRestriction_Artifact(), this.getXArtifactRef(), null, "artifact", null, 0, 1, HierarchyRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getHierarchyRestriction_AccessRules(), this.getObjectRestriction(), null, "accessRules", null, 0, -1, HierarchyRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(objectRestrictionEClass, ObjectRestriction.class, "ObjectRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getObjectRestriction_Permission(), this.getAccessPermissionEnum(), "permission", null, 0, 1, ObjectRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(artifactInstanceRestrictionEClass, ArtifactInstanceRestriction.class, "ArtifactInstanceRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getArtifactInstanceRestriction_ArtifactRef(), this.getXArtifactRef(), null, "artifactRef", null, 0, 1, ArtifactInstanceRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(artifactTypeRestrictionEClass, ArtifactTypeRestriction.class, "ArtifactTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getArtifactTypeRestriction_ArtifactTypeRef(), this.getXArtifactType(), null, "artifactTypeRef", null, 0, 1, ArtifactTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(attributeTypeRestrictionEClass, AttributeTypeRestriction.class, "AttributeTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAttributeTypeRestriction_AttributeTypeRef(), this.getXAttributeType(), null, "attributeTypeRef", null, 0, 1, AttributeTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAttributeTypeRestriction_ArtifactTypeRef(), this.getXArtifactType(), null, "artifactTypeRef", null, 0, 1, AttributeTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(relationTypeRestrictionEClass, RelationTypeRestriction.class, "RelationTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRelationTypeRestriction_RelationTypeRef(), this.getXRelationType(), null, "relationTypeRef", null, 0, 1, RelationTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRelationTypeRestriction_RestrictedToSide(), this.getXRelationSideEnum(), "restrictedToSide", null, 0, 1, RelationTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.class, "RelationMultiplicityEnum");
- addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.ONE_TO_ONE);
- addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.ONE_TO_MANY);
- addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.MANY_TO_ONE);
- addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.MANY_TO_MANY);
-
- initEEnum(accessPermissionEnumEEnum, AccessPermissionEnum.class, "AccessPermissionEnum");
- addEEnumLiteral(accessPermissionEnumEEnum, AccessPermissionEnum.ALLOW);
- addEEnumLiteral(accessPermissionEnumEEnum, AccessPermissionEnum.DENY);
-
- initEEnum(xRelationSideEnumEEnum, XRelationSideEnum.class, "XRelationSideEnum");
- addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.SIDE_A);
- addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.SIDE_B);
- addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.BOTH);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //OseeDslPackageImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.Import;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslFactory;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class OseeDslPackageImpl extends EPackageImpl implements OseeDslPackage
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass oseeDslEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass importEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass oseeElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass oseeTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xArtifactTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xAttributeTypeRefEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xAttributeTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xOseeEnumTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xOseeEnumEntryEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xOseeEnumOverrideEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass overrideOptionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass addEnumEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass removeEnumEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xRelationTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xArtifactRefEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass xBranchRefEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass accessContextEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass hierarchyRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass objectRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass artifactInstanceRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass artifactTypeRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass attributeTypeRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass relationTypeRestrictionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum relationMultiplicityEnumEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum accessPermissionEnumEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum xRelationSideEnumEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private OseeDslPackageImpl()
+ {
+ super(eNS_URI, OseeDslFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link OseeDslPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static OseeDslPackage init()
+ {
+ if (isInited) return (OseeDslPackage)EPackage.Registry.INSTANCE.getEPackage(OseeDslPackage.eNS_URI);
+
+ // Obtain or create and register package
+ OseeDslPackageImpl theOseeDslPackage = (OseeDslPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OseeDslPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OseeDslPackageImpl());
+
+ isInited = true;
+
+ // Create package meta-data objects
+ theOseeDslPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theOseeDslPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theOseeDslPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(OseeDslPackage.eNS_URI, theOseeDslPackage);
+ return theOseeDslPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOseeDsl()
+ {
+ return oseeDslEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_Imports()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_ArtifactTypes()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_RelationTypes()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_AttributeTypes()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_EnumTypes()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_EnumOverrides()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_BranchRefs()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_ArtifactRefs()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOseeDsl_AccessDeclarations()
+ {
+ return (EReference)oseeDslEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getImport()
+ {
+ return importEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getImport_ImportURI()
+ {
+ return (EAttribute)importEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOseeElement()
+ {
+ return oseeElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOseeType()
+ {
+ return oseeTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOseeType_Name()
+ {
+ return (EAttribute)oseeTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOseeType_TypeGuid()
+ {
+ return (EAttribute)oseeTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXArtifactType()
+ {
+ return xArtifactTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXArtifactType_Abstract()
+ {
+ return (EAttribute)xArtifactTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXArtifactType_SuperArtifactTypes()
+ {
+ return (EReference)xArtifactTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXArtifactType_ValidAttributeTypes()
+ {
+ return (EReference)xArtifactTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXAttributeTypeRef()
+ {
+ return xAttributeTypeRefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXAttributeTypeRef_ValidAttributeType()
+ {
+ return (EReference)xAttributeTypeRefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeTypeRef_BranchGuid()
+ {
+ return (EAttribute)xAttributeTypeRefEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXAttributeType()
+ {
+ return xAttributeTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_BaseAttributeType()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXAttributeType_Override()
+ {
+ return (EReference)xAttributeTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_DataProvider()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_Min()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_Max()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_TaggerId()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXAttributeType_EnumType()
+ {
+ return (EReference)xAttributeTypeEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_Description()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_DefaultValue()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXAttributeType_FileExtension()
+ {
+ return (EAttribute)xAttributeTypeEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXOseeEnumType()
+ {
+ return xOseeEnumTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXOseeEnumType_EnumEntries()
+ {
+ return (EReference)xOseeEnumTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXOseeEnumEntry()
+ {
+ return xOseeEnumEntryEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXOseeEnumEntry_Name()
+ {
+ return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXOseeEnumEntry_Ordinal()
+ {
+ return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXOseeEnumEntry_EntryGuid()
+ {
+ return (EAttribute)xOseeEnumEntryEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXOseeEnumOverride()
+ {
+ return xOseeEnumOverrideEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXOseeEnumOverride_OverridenEnumType()
+ {
+ return (EReference)xOseeEnumOverrideEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXOseeEnumOverride_InheritAll()
+ {
+ return (EAttribute)xOseeEnumOverrideEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXOseeEnumOverride_OverrideOptions()
+ {
+ return (EReference)xOseeEnumOverrideEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOverrideOption()
+ {
+ return overrideOptionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAddEnum()
+ {
+ return addEnumEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAddEnum_EnumEntry()
+ {
+ return (EAttribute)addEnumEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAddEnum_Ordinal()
+ {
+ return (EAttribute)addEnumEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAddEnum_EntryGuid()
+ {
+ return (EAttribute)addEnumEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRemoveEnum()
+ {
+ return removeEnumEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRemoveEnum_EnumEntry()
+ {
+ return (EReference)removeEnumEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXRelationType()
+ {
+ return xRelationTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXRelationType_SideAName()
+ {
+ return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXRelationType_SideAArtifactType()
+ {
+ return (EReference)xRelationTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXRelationType_SideBName()
+ {
+ return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getXRelationType_SideBArtifactType()
+ {
+ return (EReference)xRelationTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXRelationType_DefaultOrderType()
+ {
+ return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXRelationType_Multiplicity()
+ {
+ return (EAttribute)xRelationTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXArtifactRef()
+ {
+ return xArtifactRefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXArtifactRef_Name()
+ {
+ return (EAttribute)xArtifactRefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXArtifactRef_Guid()
+ {
+ return (EAttribute)xArtifactRefEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getXBranchRef()
+ {
+ return xBranchRefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXBranchRef_Name()
+ {
+ return (EAttribute)xBranchRefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getXBranchRef_Guid()
+ {
+ return (EAttribute)xBranchRefEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAccessContext()
+ {
+ return accessContextEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAccessContext_Name()
+ {
+ return (EAttribute)accessContextEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAccessContext_SuperAccessContexts()
+ {
+ return (EReference)accessContextEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAccessContext_Guid()
+ {
+ return (EAttribute)accessContextEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAccessContext_AccessRules()
+ {
+ return (EReference)accessContextEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAccessContext_HierarchyRestrictions()
+ {
+ return (EReference)accessContextEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHierarchyRestriction()
+ {
+ return hierarchyRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getHierarchyRestriction_Artifact()
+ {
+ return (EReference)hierarchyRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getHierarchyRestriction_AccessRules()
+ {
+ return (EReference)hierarchyRestrictionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getObjectRestriction()
+ {
+ return objectRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getObjectRestriction_Permission()
+ {
+ return (EAttribute)objectRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getArtifactInstanceRestriction()
+ {
+ return artifactInstanceRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getArtifactInstanceRestriction_ArtifactRef()
+ {
+ return (EReference)artifactInstanceRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getArtifactTypeRestriction()
+ {
+ return artifactTypeRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getArtifactTypeRestriction_ArtifactTypeRef()
+ {
+ return (EReference)artifactTypeRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAttributeTypeRestriction()
+ {
+ return attributeTypeRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAttributeTypeRestriction_AttributeTypeRef()
+ {
+ return (EReference)attributeTypeRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAttributeTypeRestriction_ArtifactTypeRef()
+ {
+ return (EReference)attributeTypeRestrictionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRelationTypeRestriction()
+ {
+ return relationTypeRestrictionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRelationTypeRestriction_RelationTypeRef()
+ {
+ return (EReference)relationTypeRestrictionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRelationTypeRestriction_RestrictedToSide()
+ {
+ return (EAttribute)relationTypeRestrictionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getRelationMultiplicityEnum()
+ {
+ return relationMultiplicityEnumEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getAccessPermissionEnum()
+ {
+ return accessPermissionEnumEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getXRelationSideEnum()
+ {
+ return xRelationSideEnumEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDslFactory getOseeDslFactory()
+ {
+ return (OseeDslFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ oseeDslEClass = createEClass(OSEE_DSL);
+ createEReference(oseeDslEClass, OSEE_DSL__IMPORTS);
+ createEReference(oseeDslEClass, OSEE_DSL__ARTIFACT_TYPES);
+ createEReference(oseeDslEClass, OSEE_DSL__RELATION_TYPES);
+ createEReference(oseeDslEClass, OSEE_DSL__ATTRIBUTE_TYPES);
+ createEReference(oseeDslEClass, OSEE_DSL__ENUM_TYPES);
+ createEReference(oseeDslEClass, OSEE_DSL__ENUM_OVERRIDES);
+ createEReference(oseeDslEClass, OSEE_DSL__BRANCH_REFS);
+ createEReference(oseeDslEClass, OSEE_DSL__ARTIFACT_REFS);
+ createEReference(oseeDslEClass, OSEE_DSL__ACCESS_DECLARATIONS);
+
+ importEClass = createEClass(IMPORT);
+ createEAttribute(importEClass, IMPORT__IMPORT_URI);
+
+ oseeElementEClass = createEClass(OSEE_ELEMENT);
+
+ oseeTypeEClass = createEClass(OSEE_TYPE);
+ createEAttribute(oseeTypeEClass, OSEE_TYPE__NAME);
+ createEAttribute(oseeTypeEClass, OSEE_TYPE__TYPE_GUID);
+
+ xArtifactTypeEClass = createEClass(XARTIFACT_TYPE);
+ createEAttribute(xArtifactTypeEClass, XARTIFACT_TYPE__ABSTRACT);
+ createEReference(xArtifactTypeEClass, XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES);
+ createEReference(xArtifactTypeEClass, XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES);
+
+ xAttributeTypeRefEClass = createEClass(XATTRIBUTE_TYPE_REF);
+ createEReference(xAttributeTypeRefEClass, XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE);
+ createEAttribute(xAttributeTypeRefEClass, XATTRIBUTE_TYPE_REF__BRANCH_GUID);
+
+ xAttributeTypeEClass = createEClass(XATTRIBUTE_TYPE);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE);
+ createEReference(xAttributeTypeEClass, XATTRIBUTE_TYPE__OVERRIDE);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DATA_PROVIDER);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__MIN);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__MAX);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__TAGGER_ID);
+ createEReference(xAttributeTypeEClass, XATTRIBUTE_TYPE__ENUM_TYPE);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DESCRIPTION);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__DEFAULT_VALUE);
+ createEAttribute(xAttributeTypeEClass, XATTRIBUTE_TYPE__FILE_EXTENSION);
+
+ xOseeEnumTypeEClass = createEClass(XOSEE_ENUM_TYPE);
+ createEReference(xOseeEnumTypeEClass, XOSEE_ENUM_TYPE__ENUM_ENTRIES);
+
+ xOseeEnumEntryEClass = createEClass(XOSEE_ENUM_ENTRY);
+ createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__NAME);
+ createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__ORDINAL);
+ createEAttribute(xOseeEnumEntryEClass, XOSEE_ENUM_ENTRY__ENTRY_GUID);
+
+ xOseeEnumOverrideEClass = createEClass(XOSEE_ENUM_OVERRIDE);
+ createEReference(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE);
+ createEAttribute(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__INHERIT_ALL);
+ createEReference(xOseeEnumOverrideEClass, XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS);
+
+ overrideOptionEClass = createEClass(OVERRIDE_OPTION);
+
+ addEnumEClass = createEClass(ADD_ENUM);
+ createEAttribute(addEnumEClass, ADD_ENUM__ENUM_ENTRY);
+ createEAttribute(addEnumEClass, ADD_ENUM__ORDINAL);
+ createEAttribute(addEnumEClass, ADD_ENUM__ENTRY_GUID);
+
+ removeEnumEClass = createEClass(REMOVE_ENUM);
+ createEReference(removeEnumEClass, REMOVE_ENUM__ENUM_ENTRY);
+
+ xRelationTypeEClass = createEClass(XRELATION_TYPE);
+ createEAttribute(xRelationTypeEClass, XRELATION_TYPE__SIDE_ANAME);
+ createEReference(xRelationTypeEClass, XRELATION_TYPE__SIDE_AARTIFACT_TYPE);
+ createEAttribute(xRelationTypeEClass, XRELATION_TYPE__SIDE_BNAME);
+ createEReference(xRelationTypeEClass, XRELATION_TYPE__SIDE_BARTIFACT_TYPE);
+ createEAttribute(xRelationTypeEClass, XRELATION_TYPE__DEFAULT_ORDER_TYPE);
+ createEAttribute(xRelationTypeEClass, XRELATION_TYPE__MULTIPLICITY);
+
+ xArtifactRefEClass = createEClass(XARTIFACT_REF);
+ createEAttribute(xArtifactRefEClass, XARTIFACT_REF__NAME);
+ createEAttribute(xArtifactRefEClass, XARTIFACT_REF__GUID);
+
+ xBranchRefEClass = createEClass(XBRANCH_REF);
+ createEAttribute(xBranchRefEClass, XBRANCH_REF__NAME);
+ createEAttribute(xBranchRefEClass, XBRANCH_REF__GUID);
+
+ accessContextEClass = createEClass(ACCESS_CONTEXT);
+ createEAttribute(accessContextEClass, ACCESS_CONTEXT__NAME);
+ createEReference(accessContextEClass, ACCESS_CONTEXT__SUPER_ACCESS_CONTEXTS);
+ createEAttribute(accessContextEClass, ACCESS_CONTEXT__GUID);
+ createEReference(accessContextEClass, ACCESS_CONTEXT__ACCESS_RULES);
+ createEReference(accessContextEClass, ACCESS_CONTEXT__HIERARCHY_RESTRICTIONS);
+
+ hierarchyRestrictionEClass = createEClass(HIERARCHY_RESTRICTION);
+ createEReference(hierarchyRestrictionEClass, HIERARCHY_RESTRICTION__ARTIFACT);
+ createEReference(hierarchyRestrictionEClass, HIERARCHY_RESTRICTION__ACCESS_RULES);
+
+ objectRestrictionEClass = createEClass(OBJECT_RESTRICTION);
+ createEAttribute(objectRestrictionEClass, OBJECT_RESTRICTION__PERMISSION);
+
+ artifactInstanceRestrictionEClass = createEClass(ARTIFACT_INSTANCE_RESTRICTION);
+ createEReference(artifactInstanceRestrictionEClass, ARTIFACT_INSTANCE_RESTRICTION__ARTIFACT_REF);
+
+ artifactTypeRestrictionEClass = createEClass(ARTIFACT_TYPE_RESTRICTION);
+ createEReference(artifactTypeRestrictionEClass, ARTIFACT_TYPE_RESTRICTION__ARTIFACT_TYPE_REF);
+
+ attributeTypeRestrictionEClass = createEClass(ATTRIBUTE_TYPE_RESTRICTION);
+ createEReference(attributeTypeRestrictionEClass, ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF);
+ createEReference(attributeTypeRestrictionEClass, ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF);
+
+ relationTypeRestrictionEClass = createEClass(RELATION_TYPE_RESTRICTION);
+ createEReference(relationTypeRestrictionEClass, RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF);
+ createEAttribute(relationTypeRestrictionEClass, RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE);
+
+ // Create enums
+ relationMultiplicityEnumEEnum = createEEnum(RELATION_MULTIPLICITY_ENUM);
+ accessPermissionEnumEEnum = createEEnum(ACCESS_PERMISSION_ENUM);
+ xRelationSideEnumEEnum = createEEnum(XRELATION_SIDE_ENUM);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ oseeTypeEClass.getESuperTypes().add(this.getOseeElement());
+ xArtifactTypeEClass.getESuperTypes().add(this.getOseeType());
+ xAttributeTypeEClass.getESuperTypes().add(this.getOseeType());
+ xOseeEnumTypeEClass.getESuperTypes().add(this.getOseeType());
+ xOseeEnumOverrideEClass.getESuperTypes().add(this.getOseeElement());
+ addEnumEClass.getESuperTypes().add(this.getOverrideOption());
+ removeEnumEClass.getESuperTypes().add(this.getOverrideOption());
+ xRelationTypeEClass.getESuperTypes().add(this.getOseeType());
+ artifactInstanceRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
+ artifactTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
+ attributeTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
+ relationTypeRestrictionEClass.getESuperTypes().add(this.getObjectRestriction());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(oseeDslEClass, OseeDsl.class, "OseeDsl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getOseeDsl_Imports(), this.getImport(), null, "imports", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_ArtifactTypes(), this.getXArtifactType(), null, "artifactTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_RelationTypes(), this.getXRelationType(), null, "relationTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_AttributeTypes(), this.getXAttributeType(), null, "attributeTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_EnumTypes(), this.getXOseeEnumType(), null, "enumTypes", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_EnumOverrides(), this.getXOseeEnumOverride(), null, "enumOverrides", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_BranchRefs(), this.getXBranchRef(), null, "branchRefs", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_ArtifactRefs(), this.getXArtifactRef(), null, "artifactRefs", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOseeDsl_AccessDeclarations(), this.getAccessContext(), null, "accessDeclarations", null, 0, -1, OseeDsl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImport_ImportURI(), ecorePackage.getEString(), "importURI", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(oseeElementEClass, OseeElement.class, "OseeElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(oseeTypeEClass, OseeType.class, "OseeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOseeType_Name(), ecorePackage.getEString(), "name", null, 0, 1, OseeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOseeType_TypeGuid(), ecorePackage.getEString(), "typeGuid", null, 0, 1, OseeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xArtifactTypeEClass, XArtifactType.class, "XArtifactType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXArtifactType_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXArtifactType_SuperArtifactTypes(), this.getXArtifactType(), null, "superArtifactTypes", null, 0, -1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXArtifactType_ValidAttributeTypes(), this.getXAttributeTypeRef(), null, "validAttributeTypes", null, 0, -1, XArtifactType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xAttributeTypeRefEClass, XAttributeTypeRef.class, "XAttributeTypeRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getXAttributeTypeRef_ValidAttributeType(), this.getXAttributeType(), null, "validAttributeType", null, 0, 1, XAttributeTypeRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeTypeRef_BranchGuid(), ecorePackage.getEString(), "branchGuid", null, 0, 1, XAttributeTypeRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xAttributeTypeEClass, XAttributeType.class, "XAttributeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXAttributeType_BaseAttributeType(), ecorePackage.getEString(), "baseAttributeType", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXAttributeType_Override(), this.getXAttributeType(), null, "override", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_DataProvider(), ecorePackage.getEString(), "dataProvider", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_Min(), ecorePackage.getEString(), "min", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_Max(), ecorePackage.getEString(), "max", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_TaggerId(), ecorePackage.getEString(), "taggerId", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXAttributeType_EnumType(), this.getXOseeEnumType(), null, "enumType", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_Description(), ecorePackage.getEString(), "description", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXAttributeType_FileExtension(), ecorePackage.getEString(), "fileExtension", null, 0, 1, XAttributeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xOseeEnumTypeEClass, XOseeEnumType.class, "XOseeEnumType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getXOseeEnumType_EnumEntries(), this.getXOseeEnumEntry(), null, "enumEntries", null, 0, -1, XOseeEnumType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xOseeEnumEntryEClass, XOseeEnumEntry.class, "XOseeEnumEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXOseeEnumEntry_Name(), ecorePackage.getEString(), "name", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXOseeEnumEntry_Ordinal(), ecorePackage.getEString(), "ordinal", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXOseeEnumEntry_EntryGuid(), ecorePackage.getEString(), "entryGuid", null, 0, 1, XOseeEnumEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xOseeEnumOverrideEClass, XOseeEnumOverride.class, "XOseeEnumOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getXOseeEnumOverride_OverridenEnumType(), this.getXOseeEnumType(), null, "overridenEnumType", null, 0, 1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXOseeEnumOverride_InheritAll(), ecorePackage.getEBoolean(), "inheritAll", null, 0, 1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXOseeEnumOverride_OverrideOptions(), this.getOverrideOption(), null, "overrideOptions", null, 0, -1, XOseeEnumOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(overrideOptionEClass, OverrideOption.class, "OverrideOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(addEnumEClass, AddEnum.class, "AddEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getAddEnum_EnumEntry(), ecorePackage.getEString(), "enumEntry", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAddEnum_Ordinal(), ecorePackage.getEString(), "ordinal", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAddEnum_EntryGuid(), ecorePackage.getEString(), "entryGuid", null, 0, 1, AddEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(removeEnumEClass, RemoveEnum.class, "RemoveEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRemoveEnum_EnumEntry(), this.getXOseeEnumEntry(), null, "enumEntry", null, 0, 1, RemoveEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xRelationTypeEClass, XRelationType.class, "XRelationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXRelationType_SideAName(), ecorePackage.getEString(), "sideAName", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXRelationType_SideAArtifactType(), this.getXArtifactType(), null, "sideAArtifactType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXRelationType_SideBName(), ecorePackage.getEString(), "sideBName", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getXRelationType_SideBArtifactType(), this.getXArtifactType(), null, "sideBArtifactType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXRelationType_DefaultOrderType(), ecorePackage.getEString(), "defaultOrderType", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXRelationType_Multiplicity(), this.getRelationMultiplicityEnum(), "multiplicity", null, 0, 1, XRelationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xArtifactRefEClass, XArtifactRef.class, "XArtifactRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXArtifactRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, XArtifactRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXArtifactRef_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, XArtifactRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(xBranchRefEClass, XBranchRef.class, "XBranchRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getXBranchRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, XBranchRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getXBranchRef_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, XBranchRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(accessContextEClass, AccessContext.class, "AccessContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getAccessContext_Name(), ecorePackage.getEString(), "name", null, 0, 1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAccessContext_SuperAccessContexts(), this.getAccessContext(), null, "superAccessContexts", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAccessContext_Guid(), ecorePackage.getEString(), "guid", null, 0, 1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAccessContext_AccessRules(), this.getObjectRestriction(), null, "accessRules", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAccessContext_HierarchyRestrictions(), this.getHierarchyRestriction(), null, "hierarchyRestrictions", null, 0, -1, AccessContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(hierarchyRestrictionEClass, HierarchyRestriction.class, "HierarchyRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getHierarchyRestriction_Artifact(), this.getXArtifactRef(), null, "artifact", null, 0, 1, HierarchyRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getHierarchyRestriction_AccessRules(), this.getObjectRestriction(), null, "accessRules", null, 0, -1, HierarchyRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(objectRestrictionEClass, ObjectRestriction.class, "ObjectRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getObjectRestriction_Permission(), this.getAccessPermissionEnum(), "permission", null, 0, 1, ObjectRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(artifactInstanceRestrictionEClass, ArtifactInstanceRestriction.class, "ArtifactInstanceRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getArtifactInstanceRestriction_ArtifactRef(), this.getXArtifactRef(), null, "artifactRef", null, 0, 1, ArtifactInstanceRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(artifactTypeRestrictionEClass, ArtifactTypeRestriction.class, "ArtifactTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getArtifactTypeRestriction_ArtifactTypeRef(), this.getXArtifactType(), null, "artifactTypeRef", null, 0, 1, ArtifactTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(attributeTypeRestrictionEClass, AttributeTypeRestriction.class, "AttributeTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getAttributeTypeRestriction_AttributeTypeRef(), this.getXAttributeType(), null, "attributeTypeRef", null, 0, 1, AttributeTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAttributeTypeRestriction_ArtifactTypeRef(), this.getXArtifactType(), null, "artifactTypeRef", null, 0, 1, AttributeTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(relationTypeRestrictionEClass, RelationTypeRestriction.class, "RelationTypeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRelationTypeRestriction_RelationTypeRef(), this.getXRelationType(), null, "relationTypeRef", null, 0, 1, RelationTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRelationTypeRestriction_RestrictedToSide(), this.getXRelationSideEnum(), "restrictedToSide", null, 0, 1, RelationTypeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.class, "RelationMultiplicityEnum");
+ addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.ONE_TO_ONE);
+ addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.ONE_TO_MANY);
+ addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.MANY_TO_ONE);
+ addEEnumLiteral(relationMultiplicityEnumEEnum, RelationMultiplicityEnum.MANY_TO_MANY);
+
+ initEEnum(accessPermissionEnumEEnum, AccessPermissionEnum.class, "AccessPermissionEnum");
+ addEEnumLiteral(accessPermissionEnumEEnum, AccessPermissionEnum.ALLOW);
+ addEEnumLiteral(accessPermissionEnumEEnum, AccessPermissionEnum.DENY);
+
+ initEEnum(xRelationSideEnumEEnum, XRelationSideEnum.class, "XRelationSideEnum");
+ addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.SIDE_A);
+ addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.SIDE_B);
+ addEEnumLiteral(xRelationSideEnumEEnum, XRelationSideEnum.BOTH);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //OseeDslPackageImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java
index 9e2666c8b51..16350560fa3 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeElementImpl.java
@@ -1,48 +1,48 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Osee Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class OseeElementImpl extends MinimalEObjectImpl.Container implements OseeElement
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OseeElementImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.OSEE_ELEMENT;
- }
-
-} //OseeElementImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Osee Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class OseeElementImpl extends MinimalEObjectImpl.Container implements OseeElement
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OseeElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.OSEE_ELEMENT;
+ }
+
+} //OseeElementImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java
index 98bad15b84c..62a888d91d9 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OseeTypeImpl.java
@@ -1,236 +1,236 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Osee Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl#getTypeGuid <em>Type Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OseeTypeImpl extends OseeElementImpl implements OseeType
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTypeGuid() <em>Type Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypeGuid()
- * @generated
- * @ordered
- */
- protected static final String TYPE_GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTypeGuid() <em>Type Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTypeGuid()
- * @generated
- * @ordered
- */
- protected String typeGuid = TYPE_GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OseeTypeImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.OSEE_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OSEE_TYPE__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTypeGuid()
- {
- return typeGuid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTypeGuid(String newTypeGuid)
- {
- String oldTypeGuid = typeGuid;
- typeGuid = newTypeGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OSEE_TYPE__TYPE_GUID, oldTypeGuid, typeGuid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_TYPE__NAME:
- return getName();
- case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
- return getTypeGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_TYPE__NAME:
- setName((String)newValue);
- return;
- case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
- setTypeGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_TYPE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
- setTypeGuid(TYPE_GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.OSEE_TYPE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
- return TYPE_GUID_EDEFAULT == null ? typeGuid != null : !TYPE_GUID_EDEFAULT.equals(typeGuid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", typeGuid: ");
- result.append(typeGuid);
- result.append(')');
- return result.toString();
- }
-
-} //OseeTypeImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Osee Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.OseeTypeImpl#getTypeGuid <em>Type Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OseeTypeImpl extends OseeElementImpl implements OseeType
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTypeGuid() <em>Type Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypeGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypeGuid() <em>Type Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypeGuid()
+ * @generated
+ * @ordered
+ */
+ protected String typeGuid = TYPE_GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OseeTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.OSEE_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OSEE_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTypeGuid()
+ {
+ return typeGuid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypeGuid(String newTypeGuid)
+ {
+ String oldTypeGuid = typeGuid;
+ typeGuid = newTypeGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.OSEE_TYPE__TYPE_GUID, oldTypeGuid, typeGuid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_TYPE__NAME:
+ return getName();
+ case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
+ return getTypeGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
+ setTypeGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
+ setTypeGuid(TYPE_GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.OSEE_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case OseeDslPackage.OSEE_TYPE__TYPE_GUID:
+ return TYPE_GUID_EDEFAULT == null ? typeGuid != null : !TYPE_GUID_EDEFAULT.equals(typeGuid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", typeGuid: ");
+ result.append(typeGuid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //OseeTypeImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java
index a1a507a2ee6..beb8bf2e23b 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/OverrideOptionImpl.java
@@ -1,48 +1,48 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Override Option</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class OverrideOptionImpl extends MinimalEObjectImpl.Container implements OverrideOption
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OverrideOptionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.OVERRIDE_OPTION;
- }
-
-} //OverrideOptionImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Override Option</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class OverrideOptionImpl extends MinimalEObjectImpl.Container implements OverrideOption
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OverrideOptionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.OVERRIDE_OPTION;
+ }
+
+} //OverrideOptionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java
index 4707ea08a25..557f725e319 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RelationTypeRestrictionImpl.java
@@ -1,248 +1,248 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Relation Type Restriction</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl#getRelationTypeRef <em>Relation Type Ref</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl#getRestrictedToSide <em>Restricted To Side</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RelationTypeRestrictionImpl extends ObjectRestrictionImpl implements RelationTypeRestriction
-{
- /**
- * The cached value of the '{@link #getRelationTypeRef() <em>Relation Type Ref</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRelationTypeRef()
- * @generated
- * @ordered
- */
- protected XRelationType relationTypeRef;
-
- /**
- * The default value of the '{@link #getRestrictedToSide() <em>Restricted To Side</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRestrictedToSide()
- * @generated
- * @ordered
- */
- protected static final XRelationSideEnum RESTRICTED_TO_SIDE_EDEFAULT = XRelationSideEnum.SIDE_A;
-
- /**
- * The cached value of the '{@link #getRestrictedToSide() <em>Restricted To Side</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRestrictedToSide()
- * @generated
- * @ordered
- */
- protected XRelationSideEnum restrictedToSide = RESTRICTED_TO_SIDE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected RelationTypeRestrictionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.RELATION_TYPE_RESTRICTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XRelationType getRelationTypeRef()
- {
- if (relationTypeRef != null && relationTypeRef.eIsProxy())
- {
- InternalEObject oldRelationTypeRef = (InternalEObject)relationTypeRef;
- relationTypeRef = (XRelationType)eResolveProxy(oldRelationTypeRef);
- if (relationTypeRef != oldRelationTypeRef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF, oldRelationTypeRef, relationTypeRef));
- }
- }
- return relationTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XRelationType basicGetRelationTypeRef()
- {
- return relationTypeRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setRelationTypeRef(XRelationType newRelationTypeRef)
- {
- XRelationType oldRelationTypeRef = relationTypeRef;
- relationTypeRef = newRelationTypeRef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF, oldRelationTypeRef, relationTypeRef));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XRelationSideEnum getRestrictedToSide()
- {
- return restrictedToSide;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setRestrictedToSide(XRelationSideEnum newRestrictedToSide)
- {
- XRelationSideEnum oldRestrictedToSide = restrictedToSide;
- restrictedToSide = newRestrictedToSide == null ? RESTRICTED_TO_SIDE_EDEFAULT : newRestrictedToSide;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE, oldRestrictedToSide, restrictedToSide));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
- if (resolve) return getRelationTypeRef();
- return basicGetRelationTypeRef();
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
- return getRestrictedToSide();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
- setRelationTypeRef((XRelationType)newValue);
- return;
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
- setRestrictedToSide((XRelationSideEnum)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
- setRelationTypeRef((XRelationType)null);
- return;
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
- setRestrictedToSide(RESTRICTED_TO_SIDE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
- return relationTypeRef != null;
- case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
- return restrictedToSide != RESTRICTED_TO_SIDE_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (restrictedToSide: ");
- result.append(restrictedToSide);
- result.append(')');
- return result.toString();
- }
-
-} //RelationTypeRestrictionImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationSideEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Relation Type Restriction</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl#getRelationTypeRef <em>Relation Type Ref</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RelationTypeRestrictionImpl#getRestrictedToSide <em>Restricted To Side</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RelationTypeRestrictionImpl extends ObjectRestrictionImpl implements RelationTypeRestriction
+{
+ /**
+ * The cached value of the '{@link #getRelationTypeRef() <em>Relation Type Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRelationTypeRef()
+ * @generated
+ * @ordered
+ */
+ protected XRelationType relationTypeRef;
+
+ /**
+ * The default value of the '{@link #getRestrictedToSide() <em>Restricted To Side</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRestrictedToSide()
+ * @generated
+ * @ordered
+ */
+ protected static final XRelationSideEnum RESTRICTED_TO_SIDE_EDEFAULT = XRelationSideEnum.SIDE_A;
+
+ /**
+ * The cached value of the '{@link #getRestrictedToSide() <em>Restricted To Side</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRestrictedToSide()
+ * @generated
+ * @ordered
+ */
+ protected XRelationSideEnum restrictedToSide = RESTRICTED_TO_SIDE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RelationTypeRestrictionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.RELATION_TYPE_RESTRICTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XRelationType getRelationTypeRef()
+ {
+ if (relationTypeRef != null && relationTypeRef.eIsProxy())
+ {
+ InternalEObject oldRelationTypeRef = (InternalEObject)relationTypeRef;
+ relationTypeRef = (XRelationType)eResolveProxy(oldRelationTypeRef);
+ if (relationTypeRef != oldRelationTypeRef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF, oldRelationTypeRef, relationTypeRef));
+ }
+ }
+ return relationTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XRelationType basicGetRelationTypeRef()
+ {
+ return relationTypeRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRelationTypeRef(XRelationType newRelationTypeRef)
+ {
+ XRelationType oldRelationTypeRef = relationTypeRef;
+ relationTypeRef = newRelationTypeRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF, oldRelationTypeRef, relationTypeRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XRelationSideEnum getRestrictedToSide()
+ {
+ return restrictedToSide;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRestrictedToSide(XRelationSideEnum newRestrictedToSide)
+ {
+ XRelationSideEnum oldRestrictedToSide = restrictedToSide;
+ restrictedToSide = newRestrictedToSide == null ? RESTRICTED_TO_SIDE_EDEFAULT : newRestrictedToSide;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE, oldRestrictedToSide, restrictedToSide));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
+ if (resolve) return getRelationTypeRef();
+ return basicGetRelationTypeRef();
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
+ return getRestrictedToSide();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
+ setRelationTypeRef((XRelationType)newValue);
+ return;
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
+ setRestrictedToSide((XRelationSideEnum)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
+ setRelationTypeRef((XRelationType)null);
+ return;
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
+ setRestrictedToSide(RESTRICTED_TO_SIDE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RELATION_TYPE_REF:
+ return relationTypeRef != null;
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION__RESTRICTED_TO_SIDE:
+ return restrictedToSide != RESTRICTED_TO_SIDE_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (restrictedToSide: ");
+ result.append(restrictedToSide);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RelationTypeRestrictionImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java
index c4b623c2549..cd4fba33204 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/RemoveEnumImpl.java
@@ -1,176 +1,176 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Remove Enum</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl#getEnumEntry <em>Enum Entry</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RemoveEnumImpl extends OverrideOptionImpl implements RemoveEnum
-{
- /**
- * The cached value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumEntry()
- * @generated
- * @ordered
- */
- protected XOseeEnumEntry enumEntry;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected RemoveEnumImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.REMOVE_ENUM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumEntry getEnumEntry()
- {
- if (enumEntry != null && enumEntry.eIsProxy())
- {
- InternalEObject oldEnumEntry = (InternalEObject)enumEntry;
- enumEntry = (XOseeEnumEntry)eResolveProxy(oldEnumEntry);
- if (enumEntry != oldEnumEntry)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
- }
- }
- return enumEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumEntry basicGetEnumEntry()
- {
- return enumEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEnumEntry(XOseeEnumEntry newEnumEntry)
- {
- XOseeEnumEntry oldEnumEntry = enumEntry;
- enumEntry = newEnumEntry;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
- if (resolve) return getEnumEntry();
- return basicGetEnumEntry();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
- setEnumEntry((XOseeEnumEntry)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
- setEnumEntry((XOseeEnumEntry)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
- return enumEntry != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //RemoveEnumImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Remove Enum</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.RemoveEnumImpl#getEnumEntry <em>Enum Entry</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RemoveEnumImpl extends OverrideOptionImpl implements RemoveEnum
+{
+ /**
+ * The cached value of the '{@link #getEnumEntry() <em>Enum Entry</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumEntry()
+ * @generated
+ * @ordered
+ */
+ protected XOseeEnumEntry enumEntry;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RemoveEnumImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.REMOVE_ENUM;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumEntry getEnumEntry()
+ {
+ if (enumEntry != null && enumEntry.eIsProxy())
+ {
+ InternalEObject oldEnumEntry = (InternalEObject)enumEntry;
+ enumEntry = (XOseeEnumEntry)eResolveProxy(oldEnumEntry);
+ if (enumEntry != oldEnumEntry)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
+ }
+ }
+ return enumEntry;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumEntry basicGetEnumEntry()
+ {
+ return enumEntry;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnumEntry(XOseeEnumEntry newEnumEntry)
+ {
+ XOseeEnumEntry oldEnumEntry = enumEntry;
+ enumEntry = newEnumEntry;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY, oldEnumEntry, enumEntry));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
+ if (resolve) return getEnumEntry();
+ return basicGetEnumEntry();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
+ setEnumEntry((XOseeEnumEntry)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
+ setEnumEntry((XOseeEnumEntry)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.REMOVE_ENUM__ENUM_ENTRY:
+ return enumEntry != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //RemoveEnumImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java
index 84a15da97ff..b4061afbf19 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactRefImpl.java
@@ -1,237 +1,237 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XArtifact Ref</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl#getGuid <em>Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XArtifactRefImpl extends MinimalEObjectImpl.Container implements XArtifactRef
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected static final String GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected String guid = GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XArtifactRefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XARTIFACT_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_REF__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getGuid()
- {
- return guid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setGuid(String newGuid)
- {
- String oldGuid = guid;
- guid = newGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_REF__GUID, oldGuid, guid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_REF__NAME:
- return getName();
- case OseeDslPackage.XARTIFACT_REF__GUID:
- return getGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_REF__NAME:
- setName((String)newValue);
- return;
- case OseeDslPackage.XARTIFACT_REF__GUID:
- setGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case OseeDslPackage.XARTIFACT_REF__GUID:
- setGuid(GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case OseeDslPackage.XARTIFACT_REF__GUID:
- return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", guid: ");
- result.append(guid);
- result.append(')');
- return result.toString();
- }
-
-} //XArtifactRefImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XArtifact Ref</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactRefImpl#getGuid <em>Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XArtifactRefImpl extends MinimalEObjectImpl.Container implements XArtifactRef
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected String guid = GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XArtifactRefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XARTIFACT_REF;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_REF__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGuid()
+ {
+ return guid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGuid(String newGuid)
+ {
+ String oldGuid = guid;
+ guid = newGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_REF__GUID, oldGuid, guid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_REF__NAME:
+ return getName();
+ case OseeDslPackage.XARTIFACT_REF__GUID:
+ return getGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_REF__NAME:
+ setName((String)newValue);
+ return;
+ case OseeDslPackage.XARTIFACT_REF__GUID:
+ setGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_REF__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case OseeDslPackage.XARTIFACT_REF__GUID:
+ setGuid(GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_REF__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case OseeDslPackage.XARTIFACT_REF__GUID:
+ return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", guid: ");
+ result.append(guid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XArtifactRefImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java
index 283b728bf7e..e07e2b6a813 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XArtifactTypeImpl.java
@@ -1,280 +1,280 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XArtifact Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#isAbstract <em>Abstract</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#getSuperArtifactTypes <em>Super Artifact Types</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#getValidAttributeTypes <em>Valid Attribute Types</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XArtifactTypeImpl extends OseeTypeImpl implements XArtifactType
-{
- /**
- * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isAbstract()
- * @generated
- * @ordered
- */
- protected static final boolean ABSTRACT_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isAbstract()
- * @generated
- * @ordered
- */
- protected boolean abstract_ = ABSTRACT_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getSuperArtifactTypes() <em>Super Artifact Types</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSuperArtifactTypes()
- * @generated
- * @ordered
- */
- protected EList<XArtifactType> superArtifactTypes;
-
- /**
- * The cached value of the '{@link #getValidAttributeTypes() <em>Valid Attribute Types</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValidAttributeTypes()
- * @generated
- * @ordered
- */
- protected EList<XAttributeTypeRef> validAttributeTypes;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XArtifactTypeImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XARTIFACT_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isAbstract()
- {
- return abstract_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAbstract(boolean newAbstract)
- {
- boolean oldAbstract = abstract_;
- abstract_ = newAbstract;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_TYPE__ABSTRACT, oldAbstract, abstract_));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XArtifactType> getSuperArtifactTypes()
- {
- if (superArtifactTypes == null)
- {
- superArtifactTypes = new EObjectResolvingEList<XArtifactType>(XArtifactType.class, this, OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES);
- }
- return superArtifactTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XAttributeTypeRef> getValidAttributeTypes()
- {
- if (validAttributeTypes == null)
- {
- validAttributeTypes = new EObjectContainmentEList<XAttributeTypeRef>(XAttributeTypeRef.class, this, OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES);
- }
- return validAttributeTypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
- return ((InternalEList<?>)getValidAttributeTypes()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
- return isAbstract();
- case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
- return getSuperArtifactTypes();
- case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
- return getValidAttributeTypes();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
- setAbstract((Boolean)newValue);
- return;
- case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
- getSuperArtifactTypes().clear();
- getSuperArtifactTypes().addAll((Collection<? extends XArtifactType>)newValue);
- return;
- case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
- getValidAttributeTypes().clear();
- getValidAttributeTypes().addAll((Collection<? extends XAttributeTypeRef>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
- setAbstract(ABSTRACT_EDEFAULT);
- return;
- case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
- getSuperArtifactTypes().clear();
- return;
- case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
- getValidAttributeTypes().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
- return abstract_ != ABSTRACT_EDEFAULT;
- case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
- return superArtifactTypes != null && !superArtifactTypes.isEmpty();
- case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
- return validAttributeTypes != null && !validAttributeTypes.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (abstract: ");
- result.append(abstract_);
- result.append(')');
- return result.toString();
- }
-
-} //XArtifactTypeImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XArtifact Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#isAbstract <em>Abstract</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#getSuperArtifactTypes <em>Super Artifact Types</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XArtifactTypeImpl#getValidAttributeTypes <em>Valid Attribute Types</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XArtifactTypeImpl extends OseeTypeImpl implements XArtifactType
+{
+ /**
+ * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isAbstract()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean ABSTRACT_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isAbstract()
+ * @generated
+ * @ordered
+ */
+ protected boolean abstract_ = ABSTRACT_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSuperArtifactTypes() <em>Super Artifact Types</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSuperArtifactTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XArtifactType> superArtifactTypes;
+
+ /**
+ * The cached value of the '{@link #getValidAttributeTypes() <em>Valid Attribute Types</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValidAttributeTypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<XAttributeTypeRef> validAttributeTypes;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XArtifactTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XARTIFACT_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isAbstract()
+ {
+ return abstract_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAbstract(boolean newAbstract)
+ {
+ boolean oldAbstract = abstract_;
+ abstract_ = newAbstract;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XARTIFACT_TYPE__ABSTRACT, oldAbstract, abstract_));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XArtifactType> getSuperArtifactTypes()
+ {
+ if (superArtifactTypes == null)
+ {
+ superArtifactTypes = new EObjectResolvingEList<XArtifactType>(XArtifactType.class, this, OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES);
+ }
+ return superArtifactTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XAttributeTypeRef> getValidAttributeTypes()
+ {
+ if (validAttributeTypes == null)
+ {
+ validAttributeTypes = new EObjectContainmentEList<XAttributeTypeRef>(XAttributeTypeRef.class, this, OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES);
+ }
+ return validAttributeTypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
+ return ((InternalEList<?>)getValidAttributeTypes()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
+ return isAbstract();
+ case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
+ return getSuperArtifactTypes();
+ case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
+ return getValidAttributeTypes();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
+ setAbstract((Boolean)newValue);
+ return;
+ case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
+ getSuperArtifactTypes().clear();
+ getSuperArtifactTypes().addAll((Collection<? extends XArtifactType>)newValue);
+ return;
+ case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
+ getValidAttributeTypes().clear();
+ getValidAttributeTypes().addAll((Collection<? extends XAttributeTypeRef>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
+ setAbstract(ABSTRACT_EDEFAULT);
+ return;
+ case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
+ getSuperArtifactTypes().clear();
+ return;
+ case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
+ getValidAttributeTypes().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XARTIFACT_TYPE__ABSTRACT:
+ return abstract_ != ABSTRACT_EDEFAULT;
+ case OseeDslPackage.XARTIFACT_TYPE__SUPER_ARTIFACT_TYPES:
+ return superArtifactTypes != null && !superArtifactTypes.isEmpty();
+ case OseeDslPackage.XARTIFACT_TYPE__VALID_ATTRIBUTE_TYPES:
+ return validAttributeTypes != null && !validAttributeTypes.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (abstract: ");
+ result.append(abstract_);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XArtifactTypeImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java
index a7b9494fda5..f0cd91eb0c4 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeImpl.java
@@ -1,704 +1,704 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XAttribute Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getBaseAttributeType <em>Base Attribute Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getOverride <em>Override</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDataProvider <em>Data Provider</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getMin <em>Min</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getMax <em>Max</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getTaggerId <em>Tagger Id</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getEnumType <em>Enum Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDefaultValue <em>Default Value</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getFileExtension <em>File Extension</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XAttributeTypeImpl extends OseeTypeImpl implements XAttributeType
-{
- /**
- * The default value of the '{@link #getBaseAttributeType() <em>Base Attribute Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBaseAttributeType()
- * @generated
- * @ordered
- */
- protected static final String BASE_ATTRIBUTE_TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getBaseAttributeType() <em>Base Attribute Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBaseAttributeType()
- * @generated
- * @ordered
- */
- protected String baseAttributeType = BASE_ATTRIBUTE_TYPE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getOverride() <em>Override</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOverride()
- * @generated
- * @ordered
- */
- protected XAttributeType override;
-
- /**
- * The default value of the '{@link #getDataProvider() <em>Data Provider</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDataProvider()
- * @generated
- * @ordered
- */
- protected static final String DATA_PROVIDER_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDataProvider() <em>Data Provider</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDataProvider()
- * @generated
- * @ordered
- */
- protected String dataProvider = DATA_PROVIDER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getMin() <em>Min</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMin()
- * @generated
- * @ordered
- */
- protected static final String MIN_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMin() <em>Min</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMin()
- * @generated
- * @ordered
- */
- protected String min = MIN_EDEFAULT;
-
- /**
- * The default value of the '{@link #getMax() <em>Max</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMax()
- * @generated
- * @ordered
- */
- protected static final String MAX_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMax() <em>Max</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMax()
- * @generated
- * @ordered
- */
- protected String max = MAX_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTaggerId() <em>Tagger Id</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTaggerId()
- * @generated
- * @ordered
- */
- protected static final String TAGGER_ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTaggerId() <em>Tagger Id</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTaggerId()
- * @generated
- * @ordered
- */
- protected String taggerId = TAGGER_ID_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getEnumType() <em>Enum Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumType()
- * @generated
- * @ordered
- */
- protected XOseeEnumType enumType;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDefaultValue()
- * @generated
- * @ordered
- */
- protected static final String DEFAULT_VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDefaultValue()
- * @generated
- * @ordered
- */
- protected String defaultValue = DEFAULT_VALUE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFileExtension() <em>File Extension</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFileExtension()
- * @generated
- * @ordered
- */
- protected static final String FILE_EXTENSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getFileExtension() <em>File Extension</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFileExtension()
- * @generated
- * @ordered
- */
- protected String fileExtension = FILE_EXTENSION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XAttributeTypeImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XATTRIBUTE_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getBaseAttributeType()
- {
- return baseAttributeType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBaseAttributeType(String newBaseAttributeType)
- {
- String oldBaseAttributeType = baseAttributeType;
- baseAttributeType = newBaseAttributeType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE, oldBaseAttributeType, baseAttributeType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType getOverride()
- {
- if (override != null && override.eIsProxy())
- {
- InternalEObject oldOverride = (InternalEObject)override;
- override = (XAttributeType)eResolveProxy(oldOverride);
- if (override != oldOverride)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE, oldOverride, override));
- }
- }
- return override;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType basicGetOverride()
- {
- return override;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOverride(XAttributeType newOverride)
- {
- XAttributeType oldOverride = override;
- override = newOverride;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE, oldOverride, override));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDataProvider()
- {
- return dataProvider;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDataProvider(String newDataProvider)
- {
- String oldDataProvider = dataProvider;
- dataProvider = newDataProvider;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER, oldDataProvider, dataProvider));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMin()
- {
- return min;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMin(String newMin)
- {
- String oldMin = min;
- min = newMin;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__MIN, oldMin, min));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMax()
- {
- return max;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMax(String newMax)
- {
- String oldMax = max;
- max = newMax;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__MAX, oldMax, max));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTaggerId()
- {
- return taggerId;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTaggerId(String newTaggerId)
- {
- String oldTaggerId = taggerId;
- taggerId = newTaggerId;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID, oldTaggerId, taggerId));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumType getEnumType()
- {
- if (enumType != null && enumType.eIsProxy())
- {
- InternalEObject oldEnumType = (InternalEObject)enumType;
- enumType = (XOseeEnumType)eResolveProxy(oldEnumType);
- if (enumType != oldEnumType)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE, oldEnumType, enumType));
- }
- }
- return enumType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumType basicGetEnumType()
- {
- return enumType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEnumType(XOseeEnumType newEnumType)
- {
- XOseeEnumType oldEnumType = enumType;
- enumType = newEnumType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE, oldEnumType, enumType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDescription()
- {
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDescription(String newDescription)
- {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDefaultValue()
- {
- return defaultValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDefaultValue(String newDefaultValue)
- {
- String oldDefaultValue = defaultValue;
- defaultValue = newDefaultValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE, oldDefaultValue, defaultValue));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getFileExtension()
- {
- return fileExtension;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setFileExtension(String newFileExtension)
- {
- String oldFileExtension = fileExtension;
- fileExtension = newFileExtension;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION, oldFileExtension, fileExtension));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
- return getBaseAttributeType();
- case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
- if (resolve) return getOverride();
- return basicGetOverride();
- case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
- return getDataProvider();
- case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
- return getMin();
- case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
- return getMax();
- case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
- return getTaggerId();
- case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
- if (resolve) return getEnumType();
- return basicGetEnumType();
- case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
- return getDescription();
- case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
- return getDefaultValue();
- case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
- return getFileExtension();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
- setBaseAttributeType((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
- setOverride((XAttributeType)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
- setDataProvider((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
- setMin((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
- setMax((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
- setTaggerId((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
- setEnumType((XOseeEnumType)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
- setDefaultValue((String)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
- setFileExtension((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
- setBaseAttributeType(BASE_ATTRIBUTE_TYPE_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
- setOverride((XAttributeType)null);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
- setDataProvider(DATA_PROVIDER_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
- setMin(MIN_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
- setMax(MAX_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
- setTaggerId(TAGGER_ID_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
- setEnumType((XOseeEnumType)null);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
- setDefaultValue(DEFAULT_VALUE_EDEFAULT);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
- setFileExtension(FILE_EXTENSION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
- return BASE_ATTRIBUTE_TYPE_EDEFAULT == null ? baseAttributeType != null : !BASE_ATTRIBUTE_TYPE_EDEFAULT.equals(baseAttributeType);
- case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
- return override != null;
- case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
- return DATA_PROVIDER_EDEFAULT == null ? dataProvider != null : !DATA_PROVIDER_EDEFAULT.equals(dataProvider);
- case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
- return MIN_EDEFAULT == null ? min != null : !MIN_EDEFAULT.equals(min);
- case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
- return MAX_EDEFAULT == null ? max != null : !MAX_EDEFAULT.equals(max);
- case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
- return TAGGER_ID_EDEFAULT == null ? taggerId != null : !TAGGER_ID_EDEFAULT.equals(taggerId);
- case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
- return enumType != null;
- case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
- return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue);
- case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
- return FILE_EXTENSION_EDEFAULT == null ? fileExtension != null : !FILE_EXTENSION_EDEFAULT.equals(fileExtension);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (baseAttributeType: ");
- result.append(baseAttributeType);
- result.append(", dataProvider: ");
- result.append(dataProvider);
- result.append(", min: ");
- result.append(min);
- result.append(", max: ");
- result.append(max);
- result.append(", taggerId: ");
- result.append(taggerId);
- result.append(", description: ");
- result.append(description);
- result.append(", defaultValue: ");
- result.append(defaultValue);
- result.append(", fileExtension: ");
- result.append(fileExtension);
- result.append(')');
- return result.toString();
- }
-
-} //XAttributeTypeImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XAttribute Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getBaseAttributeType <em>Base Attribute Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getOverride <em>Override</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDataProvider <em>Data Provider</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getMin <em>Min</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getMax <em>Max</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getTaggerId <em>Tagger Id</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getEnumType <em>Enum Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getDefaultValue <em>Default Value</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeImpl#getFileExtension <em>File Extension</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XAttributeTypeImpl extends OseeTypeImpl implements XAttributeType
+{
+ /**
+ * The default value of the '{@link #getBaseAttributeType() <em>Base Attribute Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBaseAttributeType()
+ * @generated
+ * @ordered
+ */
+ protected static final String BASE_ATTRIBUTE_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBaseAttributeType() <em>Base Attribute Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBaseAttributeType()
+ * @generated
+ * @ordered
+ */
+ protected String baseAttributeType = BASE_ATTRIBUTE_TYPE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getOverride() <em>Override</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOverride()
+ * @generated
+ * @ordered
+ */
+ protected XAttributeType override;
+
+ /**
+ * The default value of the '{@link #getDataProvider() <em>Data Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDataProvider()
+ * @generated
+ * @ordered
+ */
+ protected static final String DATA_PROVIDER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDataProvider() <em>Data Provider</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDataProvider()
+ * @generated
+ * @ordered
+ */
+ protected String dataProvider = DATA_PROVIDER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMin() <em>Min</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMin()
+ * @generated
+ * @ordered
+ */
+ protected static final String MIN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMin() <em>Min</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMin()
+ * @generated
+ * @ordered
+ */
+ protected String min = MIN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMax() <em>Max</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMax()
+ * @generated
+ * @ordered
+ */
+ protected static final String MAX_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMax() <em>Max</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMax()
+ * @generated
+ * @ordered
+ */
+ protected String max = MAX_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTaggerId() <em>Tagger Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTaggerId()
+ * @generated
+ * @ordered
+ */
+ protected static final String TAGGER_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTaggerId() <em>Tagger Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTaggerId()
+ * @generated
+ * @ordered
+ */
+ protected String taggerId = TAGGER_ID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getEnumType() <em>Enum Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumType()
+ * @generated
+ * @ordered
+ */
+ protected XOseeEnumType enumType;
+
+ /**
+ * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESCRIPTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected String description = DESCRIPTION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefaultValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEFAULT_VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefaultValue()
+ * @generated
+ * @ordered
+ */
+ protected String defaultValue = DEFAULT_VALUE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFileExtension() <em>File Extension</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileExtension()
+ * @generated
+ * @ordered
+ */
+ protected static final String FILE_EXTENSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFileExtension() <em>File Extension</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileExtension()
+ * @generated
+ * @ordered
+ */
+ protected String fileExtension = FILE_EXTENSION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XAttributeTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XATTRIBUTE_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBaseAttributeType()
+ {
+ return baseAttributeType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBaseAttributeType(String newBaseAttributeType)
+ {
+ String oldBaseAttributeType = baseAttributeType;
+ baseAttributeType = newBaseAttributeType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE, oldBaseAttributeType, baseAttributeType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType getOverride()
+ {
+ if (override != null && override.eIsProxy())
+ {
+ InternalEObject oldOverride = (InternalEObject)override;
+ override = (XAttributeType)eResolveProxy(oldOverride);
+ if (override != oldOverride)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE, oldOverride, override));
+ }
+ }
+ return override;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType basicGetOverride()
+ {
+ return override;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOverride(XAttributeType newOverride)
+ {
+ XAttributeType oldOverride = override;
+ override = newOverride;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE, oldOverride, override));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDataProvider()
+ {
+ return dataProvider;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDataProvider(String newDataProvider)
+ {
+ String oldDataProvider = dataProvider;
+ dataProvider = newDataProvider;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER, oldDataProvider, dataProvider));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMin()
+ {
+ return min;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMin(String newMin)
+ {
+ String oldMin = min;
+ min = newMin;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__MIN, oldMin, min));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMax()
+ {
+ return max;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMax(String newMax)
+ {
+ String oldMax = max;
+ max = newMax;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__MAX, oldMax, max));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTaggerId()
+ {
+ return taggerId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTaggerId(String newTaggerId)
+ {
+ String oldTaggerId = taggerId;
+ taggerId = newTaggerId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID, oldTaggerId, taggerId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumType getEnumType()
+ {
+ if (enumType != null && enumType.eIsProxy())
+ {
+ InternalEObject oldEnumType = (InternalEObject)enumType;
+ enumType = (XOseeEnumType)eResolveProxy(oldEnumType);
+ if (enumType != oldEnumType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE, oldEnumType, enumType));
+ }
+ }
+ return enumType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumType basicGetEnumType()
+ {
+ return enumType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnumType(XOseeEnumType newEnumType)
+ {
+ XOseeEnumType oldEnumType = enumType;
+ enumType = newEnumType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE, oldEnumType, enumType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDescription(String newDescription)
+ {
+ String oldDescription = description;
+ description = newDescription;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION, oldDescription, description));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDefaultValue()
+ {
+ return defaultValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefaultValue(String newDefaultValue)
+ {
+ String oldDefaultValue = defaultValue;
+ defaultValue = newDefaultValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE, oldDefaultValue, defaultValue));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFileExtension()
+ {
+ return fileExtension;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFileExtension(String newFileExtension)
+ {
+ String oldFileExtension = fileExtension;
+ fileExtension = newFileExtension;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION, oldFileExtension, fileExtension));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
+ return getBaseAttributeType();
+ case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
+ if (resolve) return getOverride();
+ return basicGetOverride();
+ case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
+ return getDataProvider();
+ case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
+ return getMin();
+ case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
+ return getMax();
+ case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
+ return getTaggerId();
+ case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
+ if (resolve) return getEnumType();
+ return basicGetEnumType();
+ case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
+ return getDescription();
+ case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
+ return getDefaultValue();
+ case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
+ return getFileExtension();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
+ setBaseAttributeType((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
+ setOverride((XAttributeType)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
+ setDataProvider((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
+ setMin((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
+ setMax((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
+ setTaggerId((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
+ setEnumType((XOseeEnumType)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
+ setDescription((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
+ setDefaultValue((String)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
+ setFileExtension((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
+ setBaseAttributeType(BASE_ATTRIBUTE_TYPE_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
+ setOverride((XAttributeType)null);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
+ setDataProvider(DATA_PROVIDER_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
+ setMin(MIN_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
+ setMax(MAX_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
+ setTaggerId(TAGGER_ID_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
+ setEnumType((XOseeEnumType)null);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
+ setDescription(DESCRIPTION_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
+ setDefaultValue(DEFAULT_VALUE_EDEFAULT);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
+ setFileExtension(FILE_EXTENSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE__BASE_ATTRIBUTE_TYPE:
+ return BASE_ATTRIBUTE_TYPE_EDEFAULT == null ? baseAttributeType != null : !BASE_ATTRIBUTE_TYPE_EDEFAULT.equals(baseAttributeType);
+ case OseeDslPackage.XATTRIBUTE_TYPE__OVERRIDE:
+ return override != null;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DATA_PROVIDER:
+ return DATA_PROVIDER_EDEFAULT == null ? dataProvider != null : !DATA_PROVIDER_EDEFAULT.equals(dataProvider);
+ case OseeDslPackage.XATTRIBUTE_TYPE__MIN:
+ return MIN_EDEFAULT == null ? min != null : !MIN_EDEFAULT.equals(min);
+ case OseeDslPackage.XATTRIBUTE_TYPE__MAX:
+ return MAX_EDEFAULT == null ? max != null : !MAX_EDEFAULT.equals(max);
+ case OseeDslPackage.XATTRIBUTE_TYPE__TAGGER_ID:
+ return TAGGER_ID_EDEFAULT == null ? taggerId != null : !TAGGER_ID_EDEFAULT.equals(taggerId);
+ case OseeDslPackage.XATTRIBUTE_TYPE__ENUM_TYPE:
+ return enumType != null;
+ case OseeDslPackage.XATTRIBUTE_TYPE__DESCRIPTION:
+ return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case OseeDslPackage.XATTRIBUTE_TYPE__DEFAULT_VALUE:
+ return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue);
+ case OseeDslPackage.XATTRIBUTE_TYPE__FILE_EXTENSION:
+ return FILE_EXTENSION_EDEFAULT == null ? fileExtension != null : !FILE_EXTENSION_EDEFAULT.equals(fileExtension);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (baseAttributeType: ");
+ result.append(baseAttributeType);
+ result.append(", dataProvider: ");
+ result.append(dataProvider);
+ result.append(", min: ");
+ result.append(min);
+ result.append(", max: ");
+ result.append(max);
+ result.append(", taggerId: ");
+ result.append(taggerId);
+ result.append(", description: ");
+ result.append(description);
+ result.append(", defaultValue: ");
+ result.append(defaultValue);
+ result.append(", fileExtension: ");
+ result.append(fileExtension);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XAttributeTypeImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java
index cf3b03f6c94..cb9acaea600 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XAttributeTypeRefImpl.java
@@ -1,248 +1,248 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XAttribute Type Ref</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl#getValidAttributeType <em>Valid Attribute Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl#getBranchGuid <em>Branch Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XAttributeTypeRefImpl extends MinimalEObjectImpl.Container implements XAttributeTypeRef
-{
- /**
- * The cached value of the '{@link #getValidAttributeType() <em>Valid Attribute Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValidAttributeType()
- * @generated
- * @ordered
- */
- protected XAttributeType validAttributeType;
-
- /**
- * The default value of the '{@link #getBranchGuid() <em>Branch Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBranchGuid()
- * @generated
- * @ordered
- */
- protected static final String BRANCH_GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getBranchGuid() <em>Branch Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBranchGuid()
- * @generated
- * @ordered
- */
- protected String branchGuid = BRANCH_GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XAttributeTypeRefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XATTRIBUTE_TYPE_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType getValidAttributeType()
- {
- if (validAttributeType != null && validAttributeType.eIsProxy())
- {
- InternalEObject oldValidAttributeType = (InternalEObject)validAttributeType;
- validAttributeType = (XAttributeType)eResolveProxy(oldValidAttributeType);
- if (validAttributeType != oldValidAttributeType)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE, oldValidAttributeType, validAttributeType));
- }
- }
- return validAttributeType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XAttributeType basicGetValidAttributeType()
- {
- return validAttributeType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValidAttributeType(XAttributeType newValidAttributeType)
- {
- XAttributeType oldValidAttributeType = validAttributeType;
- validAttributeType = newValidAttributeType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE, oldValidAttributeType, validAttributeType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getBranchGuid()
- {
- return branchGuid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBranchGuid(String newBranchGuid)
- {
- String oldBranchGuid = branchGuid;
- branchGuid = newBranchGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID, oldBranchGuid, branchGuid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
- if (resolve) return getValidAttributeType();
- return basicGetValidAttributeType();
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
- return getBranchGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
- setValidAttributeType((XAttributeType)newValue);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
- setBranchGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
- setValidAttributeType((XAttributeType)null);
- return;
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
- setBranchGuid(BRANCH_GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
- return validAttributeType != null;
- case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
- return BRANCH_GUID_EDEFAULT == null ? branchGuid != null : !BRANCH_GUID_EDEFAULT.equals(branchGuid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (branchGuid: ");
- result.append(branchGuid);
- result.append(')');
- return result.toString();
- }
-
-} //XAttributeTypeRefImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XAttribute Type Ref</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl#getValidAttributeType <em>Valid Attribute Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XAttributeTypeRefImpl#getBranchGuid <em>Branch Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XAttributeTypeRefImpl extends MinimalEObjectImpl.Container implements XAttributeTypeRef
+{
+ /**
+ * The cached value of the '{@link #getValidAttributeType() <em>Valid Attribute Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValidAttributeType()
+ * @generated
+ * @ordered
+ */
+ protected XAttributeType validAttributeType;
+
+ /**
+ * The default value of the '{@link #getBranchGuid() <em>Branch Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBranchGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String BRANCH_GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBranchGuid() <em>Branch Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBranchGuid()
+ * @generated
+ * @ordered
+ */
+ protected String branchGuid = BRANCH_GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XAttributeTypeRefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XATTRIBUTE_TYPE_REF;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType getValidAttributeType()
+ {
+ if (validAttributeType != null && validAttributeType.eIsProxy())
+ {
+ InternalEObject oldValidAttributeType = (InternalEObject)validAttributeType;
+ validAttributeType = (XAttributeType)eResolveProxy(oldValidAttributeType);
+ if (validAttributeType != oldValidAttributeType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE, oldValidAttributeType, validAttributeType));
+ }
+ }
+ return validAttributeType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XAttributeType basicGetValidAttributeType()
+ {
+ return validAttributeType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValidAttributeType(XAttributeType newValidAttributeType)
+ {
+ XAttributeType oldValidAttributeType = validAttributeType;
+ validAttributeType = newValidAttributeType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE, oldValidAttributeType, validAttributeType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBranchGuid()
+ {
+ return branchGuid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBranchGuid(String newBranchGuid)
+ {
+ String oldBranchGuid = branchGuid;
+ branchGuid = newBranchGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID, oldBranchGuid, branchGuid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
+ if (resolve) return getValidAttributeType();
+ return basicGetValidAttributeType();
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
+ return getBranchGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
+ setValidAttributeType((XAttributeType)newValue);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
+ setBranchGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
+ setValidAttributeType((XAttributeType)null);
+ return;
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
+ setBranchGuid(BRANCH_GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__VALID_ATTRIBUTE_TYPE:
+ return validAttributeType != null;
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF__BRANCH_GUID:
+ return BRANCH_GUID_EDEFAULT == null ? branchGuid != null : !BRANCH_GUID_EDEFAULT.equals(branchGuid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (branchGuid: ");
+ result.append(branchGuid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XAttributeTypeRefImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java
index 66c172b0eae..89329339d82 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XBranchRefImpl.java
@@ -1,237 +1,237 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XBranch Ref</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl#getGuid <em>Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XBranchRefImpl extends MinimalEObjectImpl.Container implements XBranchRef
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected static final String GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getGuid()
- * @generated
- * @ordered
- */
- protected String guid = GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XBranchRefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XBRANCH_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XBRANCH_REF__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getGuid()
- {
- return guid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setGuid(String newGuid)
- {
- String oldGuid = guid;
- guid = newGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XBRANCH_REF__GUID, oldGuid, guid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XBRANCH_REF__NAME:
- return getName();
- case OseeDslPackage.XBRANCH_REF__GUID:
- return getGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XBRANCH_REF__NAME:
- setName((String)newValue);
- return;
- case OseeDslPackage.XBRANCH_REF__GUID:
- setGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XBRANCH_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case OseeDslPackage.XBRANCH_REF__GUID:
- setGuid(GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XBRANCH_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case OseeDslPackage.XBRANCH_REF__GUID:
- return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", guid: ");
- result.append(guid);
- result.append(')');
- return result.toString();
- }
-
-} //XBranchRefImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XBranch Ref</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XBranchRefImpl#getGuid <em>Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XBranchRefImpl extends MinimalEObjectImpl.Container implements XBranchRef
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGuid() <em>Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGuid()
+ * @generated
+ * @ordered
+ */
+ protected String guid = GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XBranchRefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XBRANCH_REF;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XBRANCH_REF__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGuid()
+ {
+ return guid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGuid(String newGuid)
+ {
+ String oldGuid = guid;
+ guid = newGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XBRANCH_REF__GUID, oldGuid, guid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XBRANCH_REF__NAME:
+ return getName();
+ case OseeDslPackage.XBRANCH_REF__GUID:
+ return getGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XBRANCH_REF__NAME:
+ setName((String)newValue);
+ return;
+ case OseeDslPackage.XBRANCH_REF__GUID:
+ setGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XBRANCH_REF__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case OseeDslPackage.XBRANCH_REF__GUID:
+ setGuid(GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XBRANCH_REF__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case OseeDslPackage.XBRANCH_REF__GUID:
+ return GUID_EDEFAULT == null ? guid != null : !GUID_EDEFAULT.equals(guid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", guid: ");
+ result.append(guid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XBranchRefImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java
index 5448de6a903..836de4fddba 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumEntryImpl.java
@@ -1,293 +1,293 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XOsee Enum Entry</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getOrdinal <em>Ordinal</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getEntryGuid <em>Entry Guid</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XOseeEnumEntryImpl extends MinimalEObjectImpl.Container implements XOseeEnumEntry
-{
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOrdinal()
- * @generated
- * @ordered
- */
- protected static final String ORDINAL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOrdinal()
- * @generated
- * @ordered
- */
- protected String ordinal = ORDINAL_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEntryGuid()
- * @generated
- * @ordered
- */
- protected static final String ENTRY_GUID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEntryGuid()
- * @generated
- * @ordered
- */
- protected String entryGuid = ENTRY_GUID_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XOseeEnumEntryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XOSEE_ENUM_ENTRY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getOrdinal()
- {
- return ordinal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOrdinal(String newOrdinal)
- {
- String oldOrdinal = ordinal;
- ordinal = newOrdinal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL, oldOrdinal, ordinal));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getEntryGuid()
- {
- return entryGuid;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEntryGuid(String newEntryGuid)
- {
- String oldEntryGuid = entryGuid;
- entryGuid = newEntryGuid;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID, oldEntryGuid, entryGuid));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
- return getName();
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
- return getOrdinal();
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
- return getEntryGuid();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
- setName((String)newValue);
- return;
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
- setOrdinal((String)newValue);
- return;
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
- setEntryGuid((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
- setOrdinal(ORDINAL_EDEFAULT);
- return;
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
- setEntryGuid(ENTRY_GUID_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
- return ORDINAL_EDEFAULT == null ? ordinal != null : !ORDINAL_EDEFAULT.equals(ordinal);
- case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
- return ENTRY_GUID_EDEFAULT == null ? entryGuid != null : !ENTRY_GUID_EDEFAULT.equals(entryGuid);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ordinal: ");
- result.append(ordinal);
- result.append(", entryGuid: ");
- result.append(entryGuid);
- result.append(')');
- return result.toString();
- }
-
-} //XOseeEnumEntryImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XOsee Enum Entry</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getOrdinal <em>Ordinal</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumEntryImpl#getEntryGuid <em>Entry Guid</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XOseeEnumEntryImpl extends MinimalEObjectImpl.Container implements XOseeEnumEntry
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOrdinal()
+ * @generated
+ * @ordered
+ */
+ protected static final String ORDINAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOrdinal() <em>Ordinal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOrdinal()
+ * @generated
+ * @ordered
+ */
+ protected String ordinal = ORDINAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEntryGuid()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENTRY_GUID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEntryGuid() <em>Entry Guid</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEntryGuid()
+ * @generated
+ * @ordered
+ */
+ protected String entryGuid = ENTRY_GUID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XOseeEnumEntryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XOSEE_ENUM_ENTRY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOrdinal()
+ {
+ return ordinal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOrdinal(String newOrdinal)
+ {
+ String oldOrdinal = ordinal;
+ ordinal = newOrdinal;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL, oldOrdinal, ordinal));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEntryGuid()
+ {
+ return entryGuid;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEntryGuid(String newEntryGuid)
+ {
+ String oldEntryGuid = entryGuid;
+ entryGuid = newEntryGuid;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID, oldEntryGuid, entryGuid));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
+ return getName();
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
+ return getOrdinal();
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
+ return getEntryGuid();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
+ setName((String)newValue);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
+ setOrdinal((String)newValue);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
+ setEntryGuid((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
+ setOrdinal(ORDINAL_EDEFAULT);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
+ setEntryGuid(ENTRY_GUID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ORDINAL:
+ return ORDINAL_EDEFAULT == null ? ordinal != null : !ORDINAL_EDEFAULT.equals(ordinal);
+ case OseeDslPackage.XOSEE_ENUM_ENTRY__ENTRY_GUID:
+ return ENTRY_GUID_EDEFAULT == null ? entryGuid != null : !ENTRY_GUID_EDEFAULT.equals(entryGuid);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", ordinal: ");
+ result.append(ordinal);
+ result.append(", entryGuid: ");
+ result.append(entryGuid);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XOseeEnumEntryImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java
index 160448b7d51..30c14cc80ca 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumOverrideImpl.java
@@ -1,309 +1,309 @@
-/**
- * <copyright>
- * </copyright>
- *
+/**
+ * <copyright>
+ * </copyright>
+ *
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XOsee Enum Override</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#getOverridenEnumType <em>Overriden Enum Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#isInheritAll <em>Inherit All</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#getOverrideOptions <em>Override Options</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XOseeEnumOverrideImpl extends OseeElementImpl implements XOseeEnumOverride
-{
- /**
- * The cached value of the '{@link #getOverridenEnumType() <em>Overriden Enum Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOverridenEnumType()
- * @generated
- * @ordered
- */
- protected XOseeEnumType overridenEnumType;
-
- /**
- * The default value of the '{@link #isInheritAll() <em>Inherit All</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isInheritAll()
- * @generated
- * @ordered
- */
- protected static final boolean INHERIT_ALL_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isInheritAll() <em>Inherit All</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isInheritAll()
- * @generated
- * @ordered
- */
- protected boolean inheritAll = INHERIT_ALL_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getOverrideOptions() <em>Override Options</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOverrideOptions()
- * @generated
- * @ordered
- */
- protected EList<OverrideOption> overrideOptions;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XOseeEnumOverrideImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XOSEE_ENUM_OVERRIDE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumType getOverridenEnumType()
- {
- if (overridenEnumType != null && overridenEnumType.eIsProxy())
- {
- InternalEObject oldOverridenEnumType = (InternalEObject)overridenEnumType;
- overridenEnumType = (XOseeEnumType)eResolveProxy(oldOverridenEnumType);
- if (overridenEnumType != oldOverridenEnumType)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE, oldOverridenEnumType, overridenEnumType));
- }
- }
- return overridenEnumType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XOseeEnumType basicGetOverridenEnumType()
- {
- return overridenEnumType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOverridenEnumType(XOseeEnumType newOverridenEnumType)
- {
- XOseeEnumType oldOverridenEnumType = overridenEnumType;
- overridenEnumType = newOverridenEnumType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE, oldOverridenEnumType, overridenEnumType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isInheritAll()
- {
- return inheritAll;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setInheritAll(boolean newInheritAll)
- {
- boolean oldInheritAll = inheritAll;
- inheritAll = newInheritAll;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL, oldInheritAll, inheritAll));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<OverrideOption> getOverrideOptions()
- {
- if (overrideOptions == null)
- {
- overrideOptions = new EObjectContainmentEList<OverrideOption>(OverrideOption.class, this, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS);
- }
- return overrideOptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
- return ((InternalEList<?>)getOverrideOptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
- if (resolve) return getOverridenEnumType();
- return basicGetOverridenEnumType();
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
- return isInheritAll();
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
- return getOverrideOptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
- setOverridenEnumType((XOseeEnumType)newValue);
- return;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
- setInheritAll((Boolean)newValue);
- return;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
- getOverrideOptions().clear();
- getOverrideOptions().addAll((Collection<? extends OverrideOption>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
- setOverridenEnumType((XOseeEnumType)null);
- return;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
- setInheritAll(INHERIT_ALL_EDEFAULT);
- return;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
- getOverrideOptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
- return overridenEnumType != null;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
- return inheritAll != INHERIT_ALL_EDEFAULT;
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
- return overrideOptions != null && !overrideOptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (inheritAll: ");
- result.append(inheritAll);
- result.append(')');
- return result.toString();
- }
-
-} //XOseeEnumOverrideImpl
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XOsee Enum Override</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#getOverridenEnumType <em>Overriden Enum Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#isInheritAll <em>Inherit All</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumOverrideImpl#getOverrideOptions <em>Override Options</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XOseeEnumOverrideImpl extends OseeElementImpl implements XOseeEnumOverride
+{
+ /**
+ * The cached value of the '{@link #getOverridenEnumType() <em>Overriden Enum Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOverridenEnumType()
+ * @generated
+ * @ordered
+ */
+ protected XOseeEnumType overridenEnumType;
+
+ /**
+ * The default value of the '{@link #isInheritAll() <em>Inherit All</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isInheritAll()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean INHERIT_ALL_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isInheritAll() <em>Inherit All</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isInheritAll()
+ * @generated
+ * @ordered
+ */
+ protected boolean inheritAll = INHERIT_ALL_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getOverrideOptions() <em>Override Options</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOverrideOptions()
+ * @generated
+ * @ordered
+ */
+ protected EList<OverrideOption> overrideOptions;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XOseeEnumOverrideImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XOSEE_ENUM_OVERRIDE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumType getOverridenEnumType()
+ {
+ if (overridenEnumType != null && overridenEnumType.eIsProxy())
+ {
+ InternalEObject oldOverridenEnumType = (InternalEObject)overridenEnumType;
+ overridenEnumType = (XOseeEnumType)eResolveProxy(oldOverridenEnumType);
+ if (overridenEnumType != oldOverridenEnumType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE, oldOverridenEnumType, overridenEnumType));
+ }
+ }
+ return overridenEnumType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XOseeEnumType basicGetOverridenEnumType()
+ {
+ return overridenEnumType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOverridenEnumType(XOseeEnumType newOverridenEnumType)
+ {
+ XOseeEnumType oldOverridenEnumType = overridenEnumType;
+ overridenEnumType = newOverridenEnumType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE, oldOverridenEnumType, overridenEnumType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isInheritAll()
+ {
+ return inheritAll;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInheritAll(boolean newInheritAll)
+ {
+ boolean oldInheritAll = inheritAll;
+ inheritAll = newInheritAll;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL, oldInheritAll, inheritAll));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<OverrideOption> getOverrideOptions()
+ {
+ if (overrideOptions == null)
+ {
+ overrideOptions = new EObjectContainmentEList<OverrideOption>(OverrideOption.class, this, OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS);
+ }
+ return overrideOptions;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
+ return ((InternalEList<?>)getOverrideOptions()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
+ if (resolve) return getOverridenEnumType();
+ return basicGetOverridenEnumType();
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
+ return isInheritAll();
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
+ return getOverrideOptions();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
+ setOverridenEnumType((XOseeEnumType)newValue);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
+ setInheritAll((Boolean)newValue);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
+ getOverrideOptions().clear();
+ getOverrideOptions().addAll((Collection<? extends OverrideOption>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
+ setOverridenEnumType((XOseeEnumType)null);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
+ setInheritAll(INHERIT_ALL_EDEFAULT);
+ return;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
+ getOverrideOptions().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDEN_ENUM_TYPE:
+ return overridenEnumType != null;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__INHERIT_ALL:
+ return inheritAll != INHERIT_ALL_EDEFAULT;
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE__OVERRIDE_OPTIONS:
+ return overrideOptions != null && !overrideOptions.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (inheritAll: ");
+ result.append(inheritAll);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XOseeEnumOverrideImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java
index 925fb93469d..9f6deff0e97 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XOseeEnumTypeImpl.java
@@ -1,169 +1,169 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XOsee Enum Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl#getEnumEntries <em>Enum Entries</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XOseeEnumTypeImpl extends OseeTypeImpl implements XOseeEnumType
-{
- /**
- * The cached value of the '{@link #getEnumEntries() <em>Enum Entries</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnumEntries()
- * @generated
- * @ordered
- */
- protected EList<XOseeEnumEntry> enumEntries;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XOseeEnumTypeImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XOSEE_ENUM_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<XOseeEnumEntry> getEnumEntries()
- {
- if (enumEntries == null)
- {
- enumEntries = new EObjectContainmentEList<XOseeEnumEntry>(XOseeEnumEntry.class, this, OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES);
- }
- return enumEntries;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
- return ((InternalEList<?>)getEnumEntries()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
- return getEnumEntries();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
- getEnumEntries().clear();
- getEnumEntries().addAll((Collection<? extends XOseeEnumEntry>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
- getEnumEntries().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
- return enumEntries != null && !enumEntries.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //XOseeEnumTypeImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XOsee Enum Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XOseeEnumTypeImpl#getEnumEntries <em>Enum Entries</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XOseeEnumTypeImpl extends OseeTypeImpl implements XOseeEnumType
+{
+ /**
+ * The cached value of the '{@link #getEnumEntries() <em>Enum Entries</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnumEntries()
+ * @generated
+ * @ordered
+ */
+ protected EList<XOseeEnumEntry> enumEntries;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XOseeEnumTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XOSEE_ENUM_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<XOseeEnumEntry> getEnumEntries()
+ {
+ if (enumEntries == null)
+ {
+ enumEntries = new EObjectContainmentEList<XOseeEnumEntry>(XOseeEnumEntry.class, this, OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES);
+ }
+ return enumEntries;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
+ return ((InternalEList<?>)getEnumEntries()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
+ return getEnumEntries();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
+ getEnumEntries().clear();
+ getEnumEntries().addAll((Collection<? extends XOseeEnumEntry>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
+ getEnumEntries().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XOSEE_ENUM_TYPE__ENUM_ENTRIES:
+ return enumEntries != null && !enumEntries.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //XOseeEnumTypeImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java
index c00eb83d42d..f5c6605e109 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/XRelationTypeImpl.java
@@ -1,481 +1,481 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>XRelation Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideAName <em>Side AName</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideAArtifactType <em>Side AArtifact Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideBName <em>Side BName</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideBArtifactType <em>Side BArtifact Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getDefaultOrderType <em>Default Order Type</em>}</li>
- * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getMultiplicity <em>Multiplicity</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class XRelationTypeImpl extends OseeTypeImpl implements XRelationType
-{
- /**
- * The default value of the '{@link #getSideAName() <em>Side AName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideAName()
- * @generated
- * @ordered
- */
- protected static final String SIDE_ANAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSideAName() <em>Side AName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideAName()
- * @generated
- * @ordered
- */
- protected String sideAName = SIDE_ANAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getSideAArtifactType() <em>Side AArtifact Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideAArtifactType()
- * @generated
- * @ordered
- */
- protected XArtifactType sideAArtifactType;
-
- /**
- * The default value of the '{@link #getSideBName() <em>Side BName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideBName()
- * @generated
- * @ordered
- */
- protected static final String SIDE_BNAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSideBName() <em>Side BName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideBName()
- * @generated
- * @ordered
- */
- protected String sideBName = SIDE_BNAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getSideBArtifactType() <em>Side BArtifact Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSideBArtifactType()
- * @generated
- * @ordered
- */
- protected XArtifactType sideBArtifactType;
-
- /**
- * The default value of the '{@link #getDefaultOrderType() <em>Default Order Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDefaultOrderType()
- * @generated
- * @ordered
- */
- protected static final String DEFAULT_ORDER_TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDefaultOrderType() <em>Default Order Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDefaultOrderType()
- * @generated
- * @ordered
- */
- protected String defaultOrderType = DEFAULT_ORDER_TYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMultiplicity()
- * @generated
- * @ordered
- */
- protected static final RelationMultiplicityEnum MULTIPLICITY_EDEFAULT = RelationMultiplicityEnum.ONE_TO_ONE;
-
- /**
- * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMultiplicity()
- * @generated
- * @ordered
- */
- protected RelationMultiplicityEnum multiplicity = MULTIPLICITY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected XRelationTypeImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return OseeDslPackage.Literals.XRELATION_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSideAName()
- {
- return sideAName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSideAName(String newSideAName)
- {
- String oldSideAName = sideAName;
- sideAName = newSideAName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_ANAME, oldSideAName, sideAName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType getSideAArtifactType()
- {
- if (sideAArtifactType != null && sideAArtifactType.eIsProxy())
- {
- InternalEObject oldSideAArtifactType = (InternalEObject)sideAArtifactType;
- sideAArtifactType = (XArtifactType)eResolveProxy(oldSideAArtifactType);
- if (sideAArtifactType != oldSideAArtifactType)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE, oldSideAArtifactType, sideAArtifactType));
- }
- }
- return sideAArtifactType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType basicGetSideAArtifactType()
- {
- return sideAArtifactType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSideAArtifactType(XArtifactType newSideAArtifactType)
- {
- XArtifactType oldSideAArtifactType = sideAArtifactType;
- sideAArtifactType = newSideAArtifactType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE, oldSideAArtifactType, sideAArtifactType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSideBName()
- {
- return sideBName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSideBName(String newSideBName)
- {
- String oldSideBName = sideBName;
- sideBName = newSideBName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_BNAME, oldSideBName, sideBName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType getSideBArtifactType()
- {
- if (sideBArtifactType != null && sideBArtifactType.eIsProxy())
- {
- InternalEObject oldSideBArtifactType = (InternalEObject)sideBArtifactType;
- sideBArtifactType = (XArtifactType)eResolveProxy(oldSideBArtifactType);
- if (sideBArtifactType != oldSideBArtifactType)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE, oldSideBArtifactType, sideBArtifactType));
- }
- }
- return sideBArtifactType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public XArtifactType basicGetSideBArtifactType()
- {
- return sideBArtifactType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSideBArtifactType(XArtifactType newSideBArtifactType)
- {
- XArtifactType oldSideBArtifactType = sideBArtifactType;
- sideBArtifactType = newSideBArtifactType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE, oldSideBArtifactType, sideBArtifactType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDefaultOrderType()
- {
- return defaultOrderType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDefaultOrderType(String newDefaultOrderType)
- {
- String oldDefaultOrderType = defaultOrderType;
- defaultOrderType = newDefaultOrderType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE, oldDefaultOrderType, defaultOrderType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RelationMultiplicityEnum getMultiplicity()
- {
- return multiplicity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMultiplicity(RelationMultiplicityEnum newMultiplicity)
- {
- RelationMultiplicityEnum oldMultiplicity = multiplicity;
- multiplicity = newMultiplicity == null ? MULTIPLICITY_EDEFAULT : newMultiplicity;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__MULTIPLICITY, oldMultiplicity, multiplicity));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
- return getSideAName();
- case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
- if (resolve) return getSideAArtifactType();
- return basicGetSideAArtifactType();
- case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
- return getSideBName();
- case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
- if (resolve) return getSideBArtifactType();
- return basicGetSideBArtifactType();
- case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
- return getDefaultOrderType();
- case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
- return getMultiplicity();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
- setSideAName((String)newValue);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
- setSideAArtifactType((XArtifactType)newValue);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
- setSideBName((String)newValue);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
- setSideBArtifactType((XArtifactType)newValue);
- return;
- case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
- setDefaultOrderType((String)newValue);
- return;
- case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
- setMultiplicity((RelationMultiplicityEnum)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
- setSideAName(SIDE_ANAME_EDEFAULT);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
- setSideAArtifactType((XArtifactType)null);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
- setSideBName(SIDE_BNAME_EDEFAULT);
- return;
- case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
- setSideBArtifactType((XArtifactType)null);
- return;
- case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
- setDefaultOrderType(DEFAULT_ORDER_TYPE_EDEFAULT);
- return;
- case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
- setMultiplicity(MULTIPLICITY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
- return SIDE_ANAME_EDEFAULT == null ? sideAName != null : !SIDE_ANAME_EDEFAULT.equals(sideAName);
- case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
- return sideAArtifactType != null;
- case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
- return SIDE_BNAME_EDEFAULT == null ? sideBName != null : !SIDE_BNAME_EDEFAULT.equals(sideBName);
- case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
- return sideBArtifactType != null;
- case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
- return DEFAULT_ORDER_TYPE_EDEFAULT == null ? defaultOrderType != null : !DEFAULT_ORDER_TYPE_EDEFAULT.equals(defaultOrderType);
- case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
- return multiplicity != MULTIPLICITY_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (sideAName: ");
- result.append(sideAName);
- result.append(", sideBName: ");
- result.append(sideBName);
- result.append(", defaultOrderType: ");
- result.append(defaultOrderType);
- result.append(", multiplicity: ");
- result.append(multiplicity);
- result.append(')');
- return result.toString();
- }
-
-} //XRelationTypeImpl
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationMultiplicityEnum;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>XRelation Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideAName <em>Side AName</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideAArtifactType <em>Side AArtifact Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideBName <em>Side BName</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getSideBArtifactType <em>Side BArtifact Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getDefaultOrderType <em>Default Order Type</em>}</li>
+ * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.XRelationTypeImpl#getMultiplicity <em>Multiplicity</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class XRelationTypeImpl extends OseeTypeImpl implements XRelationType
+{
+ /**
+ * The default value of the '{@link #getSideAName() <em>Side AName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideAName()
+ * @generated
+ * @ordered
+ */
+ protected static final String SIDE_ANAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSideAName() <em>Side AName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideAName()
+ * @generated
+ * @ordered
+ */
+ protected String sideAName = SIDE_ANAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSideAArtifactType() <em>Side AArtifact Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideAArtifactType()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactType sideAArtifactType;
+
+ /**
+ * The default value of the '{@link #getSideBName() <em>Side BName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideBName()
+ * @generated
+ * @ordered
+ */
+ protected static final String SIDE_BNAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSideBName() <em>Side BName</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideBName()
+ * @generated
+ * @ordered
+ */
+ protected String sideBName = SIDE_BNAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSideBArtifactType() <em>Side BArtifact Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSideBArtifactType()
+ * @generated
+ * @ordered
+ */
+ protected XArtifactType sideBArtifactType;
+
+ /**
+ * The default value of the '{@link #getDefaultOrderType() <em>Default Order Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefaultOrderType()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEFAULT_ORDER_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDefaultOrderType() <em>Default Order Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefaultOrderType()
+ * @generated
+ * @ordered
+ */
+ protected String defaultOrderType = DEFAULT_ORDER_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected static final RelationMultiplicityEnum MULTIPLICITY_EDEFAULT = RelationMultiplicityEnum.ONE_TO_ONE;
+
+ /**
+ * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected RelationMultiplicityEnum multiplicity = MULTIPLICITY_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XRelationTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return OseeDslPackage.Literals.XRELATION_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSideAName()
+ {
+ return sideAName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSideAName(String newSideAName)
+ {
+ String oldSideAName = sideAName;
+ sideAName = newSideAName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_ANAME, oldSideAName, sideAName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType getSideAArtifactType()
+ {
+ if (sideAArtifactType != null && sideAArtifactType.eIsProxy())
+ {
+ InternalEObject oldSideAArtifactType = (InternalEObject)sideAArtifactType;
+ sideAArtifactType = (XArtifactType)eResolveProxy(oldSideAArtifactType);
+ if (sideAArtifactType != oldSideAArtifactType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE, oldSideAArtifactType, sideAArtifactType));
+ }
+ }
+ return sideAArtifactType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType basicGetSideAArtifactType()
+ {
+ return sideAArtifactType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSideAArtifactType(XArtifactType newSideAArtifactType)
+ {
+ XArtifactType oldSideAArtifactType = sideAArtifactType;
+ sideAArtifactType = newSideAArtifactType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE, oldSideAArtifactType, sideAArtifactType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSideBName()
+ {
+ return sideBName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSideBName(String newSideBName)
+ {
+ String oldSideBName = sideBName;
+ sideBName = newSideBName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_BNAME, oldSideBName, sideBName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType getSideBArtifactType()
+ {
+ if (sideBArtifactType != null && sideBArtifactType.eIsProxy())
+ {
+ InternalEObject oldSideBArtifactType = (InternalEObject)sideBArtifactType;
+ sideBArtifactType = (XArtifactType)eResolveProxy(oldSideBArtifactType);
+ if (sideBArtifactType != oldSideBArtifactType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE, oldSideBArtifactType, sideBArtifactType));
+ }
+ }
+ return sideBArtifactType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public XArtifactType basicGetSideBArtifactType()
+ {
+ return sideBArtifactType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSideBArtifactType(XArtifactType newSideBArtifactType)
+ {
+ XArtifactType oldSideBArtifactType = sideBArtifactType;
+ sideBArtifactType = newSideBArtifactType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE, oldSideBArtifactType, sideBArtifactType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDefaultOrderType()
+ {
+ return defaultOrderType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefaultOrderType(String newDefaultOrderType)
+ {
+ String oldDefaultOrderType = defaultOrderType;
+ defaultOrderType = newDefaultOrderType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE, oldDefaultOrderType, defaultOrderType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RelationMultiplicityEnum getMultiplicity()
+ {
+ return multiplicity;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMultiplicity(RelationMultiplicityEnum newMultiplicity)
+ {
+ RelationMultiplicityEnum oldMultiplicity = multiplicity;
+ multiplicity = newMultiplicity == null ? MULTIPLICITY_EDEFAULT : newMultiplicity;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.XRELATION_TYPE__MULTIPLICITY, oldMultiplicity, multiplicity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
+ return getSideAName();
+ case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
+ if (resolve) return getSideAArtifactType();
+ return basicGetSideAArtifactType();
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
+ return getSideBName();
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
+ if (resolve) return getSideBArtifactType();
+ return basicGetSideBArtifactType();
+ case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
+ return getDefaultOrderType();
+ case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
+ return getMultiplicity();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
+ setSideAName((String)newValue);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
+ setSideAArtifactType((XArtifactType)newValue);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
+ setSideBName((String)newValue);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
+ setSideBArtifactType((XArtifactType)newValue);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
+ setDefaultOrderType((String)newValue);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
+ setMultiplicity((RelationMultiplicityEnum)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
+ setSideAName(SIDE_ANAME_EDEFAULT);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
+ setSideAArtifactType((XArtifactType)null);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
+ setSideBName(SIDE_BNAME_EDEFAULT);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
+ setSideBArtifactType((XArtifactType)null);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
+ setDefaultOrderType(DEFAULT_ORDER_TYPE_EDEFAULT);
+ return;
+ case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
+ setMultiplicity(MULTIPLICITY_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case OseeDslPackage.XRELATION_TYPE__SIDE_ANAME:
+ return SIDE_ANAME_EDEFAULT == null ? sideAName != null : !SIDE_ANAME_EDEFAULT.equals(sideAName);
+ case OseeDslPackage.XRELATION_TYPE__SIDE_AARTIFACT_TYPE:
+ return sideAArtifactType != null;
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BNAME:
+ return SIDE_BNAME_EDEFAULT == null ? sideBName != null : !SIDE_BNAME_EDEFAULT.equals(sideBName);
+ case OseeDslPackage.XRELATION_TYPE__SIDE_BARTIFACT_TYPE:
+ return sideBArtifactType != null;
+ case OseeDslPackage.XRELATION_TYPE__DEFAULT_ORDER_TYPE:
+ return DEFAULT_ORDER_TYPE_EDEFAULT == null ? defaultOrderType != null : !DEFAULT_ORDER_TYPE_EDEFAULT.equals(defaultOrderType);
+ case OseeDslPackage.XRELATION_TYPE__MULTIPLICITY:
+ return multiplicity != MULTIPLICITY_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (sideAName: ");
+ result.append(sideAName);
+ result.append(", sideBName: ");
+ result.append(sideBName);
+ result.append(", defaultOrderType: ");
+ result.append(defaultOrderType);
+ result.append(", multiplicity: ");
+ result.append(multiplicity);
+ result.append(')');
+ return result.toString();
+ }
+
+} //XRelationTypeImpl
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java
index 0895ef8945b..3fd3c9685b8 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslAdapterFactory.java
@@ -1,576 +1,576 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
- * @generated
- */
-public class OseeDslAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static OseeDslPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDslAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = OseeDslPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OseeDslSwitch<Adapter> modelSwitch =
- new OseeDslSwitch<Adapter>()
- {
- @Override
- public Adapter caseOseeDsl(OseeDsl object)
- {
- return createOseeDslAdapter();
- }
- @Override
- public Adapter caseImport(Import object)
- {
- return createImportAdapter();
- }
- @Override
- public Adapter caseOseeElement(OseeElement object)
- {
- return createOseeElementAdapter();
- }
- @Override
- public Adapter caseOseeType(OseeType object)
- {
- return createOseeTypeAdapter();
- }
- @Override
- public Adapter caseXArtifactType(XArtifactType object)
- {
- return createXArtifactTypeAdapter();
- }
- @Override
- public Adapter caseXAttributeTypeRef(XAttributeTypeRef object)
- {
- return createXAttributeTypeRefAdapter();
- }
- @Override
- public Adapter caseXAttributeType(XAttributeType object)
- {
- return createXAttributeTypeAdapter();
- }
- @Override
- public Adapter caseXOseeEnumType(XOseeEnumType object)
- {
- return createXOseeEnumTypeAdapter();
- }
- @Override
- public Adapter caseXOseeEnumEntry(XOseeEnumEntry object)
- {
- return createXOseeEnumEntryAdapter();
- }
- @Override
- public Adapter caseXOseeEnumOverride(XOseeEnumOverride object)
- {
- return createXOseeEnumOverrideAdapter();
- }
- @Override
- public Adapter caseOverrideOption(OverrideOption object)
- {
- return createOverrideOptionAdapter();
- }
- @Override
- public Adapter caseAddEnum(AddEnum object)
- {
- return createAddEnumAdapter();
- }
- @Override
- public Adapter caseRemoveEnum(RemoveEnum object)
- {
- return createRemoveEnumAdapter();
- }
- @Override
- public Adapter caseXRelationType(XRelationType object)
- {
- return createXRelationTypeAdapter();
- }
- @Override
- public Adapter caseXArtifactRef(XArtifactRef object)
- {
- return createXArtifactRefAdapter();
- }
- @Override
- public Adapter caseXBranchRef(XBranchRef object)
- {
- return createXBranchRefAdapter();
- }
- @Override
- public Adapter caseAccessContext(AccessContext object)
- {
- return createAccessContextAdapter();
- }
- @Override
- public Adapter caseHierarchyRestriction(HierarchyRestriction object)
- {
- return createHierarchyRestrictionAdapter();
- }
- @Override
- public Adapter caseObjectRestriction(ObjectRestriction object)
- {
- return createObjectRestrictionAdapter();
- }
- @Override
- public Adapter caseArtifactInstanceRestriction(ArtifactInstanceRestriction object)
- {
- return createArtifactInstanceRestrictionAdapter();
- }
- @Override
- public Adapter caseArtifactTypeRestriction(ArtifactTypeRestriction object)
- {
- return createArtifactTypeRestrictionAdapter();
- }
- @Override
- public Adapter caseAttributeTypeRestriction(AttributeTypeRestriction object)
- {
- return createAttributeTypeRestrictionAdapter();
- }
- @Override
- public Adapter caseRelationTypeRestriction(RelationTypeRestriction object)
- {
- return createRelationTypeRestrictionAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl <em>Osee Dsl</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl
- * @generated
- */
- public Adapter createOseeDslAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import <em>Import</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import
- * @generated
- */
- public Adapter createImportAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement <em>Osee Element</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement
- * @generated
- */
- public Adapter createOseeElementAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType <em>Osee Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType
- * @generated
- */
- public Adapter createOseeTypeAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType <em>XArtifact Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType
- * @generated
- */
- public Adapter createXArtifactTypeAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef <em>XAttribute Type Ref</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef
- * @generated
- */
- public Adapter createXAttributeTypeRefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType <em>XAttribute Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType
- * @generated
- */
- public Adapter createXAttributeTypeAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType <em>XOsee Enum Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType
- * @generated
- */
- public Adapter createXOseeEnumTypeAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry <em>XOsee Enum Entry</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry
- * @generated
- */
- public Adapter createXOseeEnumEntryAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride <em>XOsee Enum Override</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride
- * @generated
- */
- public Adapter createXOseeEnumOverrideAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption <em>Override Option</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption
- * @generated
- */
- public Adapter createOverrideOptionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum <em>Add Enum</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum
- * @generated
- */
- public Adapter createAddEnumAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum <em>Remove Enum</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum
- * @generated
- */
- public Adapter createRemoveEnumAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType <em>XRelation Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType
- * @generated
- */
- public Adapter createXRelationTypeAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef <em>XArtifact Ref</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef
- * @generated
- */
- public Adapter createXArtifactRefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef <em>XBranch Ref</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef
- * @generated
- */
- public Adapter createXBranchRefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext <em>Access Context</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext
- * @generated
- */
- public Adapter createAccessContextAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction <em>Hierarchy Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction
- * @generated
- */
- public Adapter createHierarchyRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction <em>Object Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction
- * @generated
- */
- public Adapter createObjectRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction <em>Artifact Instance Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction
- * @generated
- */
- public Adapter createArtifactInstanceRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction <em>Artifact Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction
- * @generated
- */
- public Adapter createArtifactTypeRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction <em>Attribute Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction
- * @generated
- */
- public Adapter createAttributeTypeRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction <em>Relation Type Restriction</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction
- * @generated
- */
- public Adapter createRelationTypeRestrictionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} //OseeDslAdapterFactory
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
+ * @generated
+ */
+public class OseeDslAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static OseeDslPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDslAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = OseeDslPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OseeDslSwitch<Adapter> modelSwitch =
+ new OseeDslSwitch<Adapter>()
+ {
+ @Override
+ public Adapter caseOseeDsl(OseeDsl object)
+ {
+ return createOseeDslAdapter();
+ }
+ @Override
+ public Adapter caseImport(Import object)
+ {
+ return createImportAdapter();
+ }
+ @Override
+ public Adapter caseOseeElement(OseeElement object)
+ {
+ return createOseeElementAdapter();
+ }
+ @Override
+ public Adapter caseOseeType(OseeType object)
+ {
+ return createOseeTypeAdapter();
+ }
+ @Override
+ public Adapter caseXArtifactType(XArtifactType object)
+ {
+ return createXArtifactTypeAdapter();
+ }
+ @Override
+ public Adapter caseXAttributeTypeRef(XAttributeTypeRef object)
+ {
+ return createXAttributeTypeRefAdapter();
+ }
+ @Override
+ public Adapter caseXAttributeType(XAttributeType object)
+ {
+ return createXAttributeTypeAdapter();
+ }
+ @Override
+ public Adapter caseXOseeEnumType(XOseeEnumType object)
+ {
+ return createXOseeEnumTypeAdapter();
+ }
+ @Override
+ public Adapter caseXOseeEnumEntry(XOseeEnumEntry object)
+ {
+ return createXOseeEnumEntryAdapter();
+ }
+ @Override
+ public Adapter caseXOseeEnumOverride(XOseeEnumOverride object)
+ {
+ return createXOseeEnumOverrideAdapter();
+ }
+ @Override
+ public Adapter caseOverrideOption(OverrideOption object)
+ {
+ return createOverrideOptionAdapter();
+ }
+ @Override
+ public Adapter caseAddEnum(AddEnum object)
+ {
+ return createAddEnumAdapter();
+ }
+ @Override
+ public Adapter caseRemoveEnum(RemoveEnum object)
+ {
+ return createRemoveEnumAdapter();
+ }
+ @Override
+ public Adapter caseXRelationType(XRelationType object)
+ {
+ return createXRelationTypeAdapter();
+ }
+ @Override
+ public Adapter caseXArtifactRef(XArtifactRef object)
+ {
+ return createXArtifactRefAdapter();
+ }
+ @Override
+ public Adapter caseXBranchRef(XBranchRef object)
+ {
+ return createXBranchRefAdapter();
+ }
+ @Override
+ public Adapter caseAccessContext(AccessContext object)
+ {
+ return createAccessContextAdapter();
+ }
+ @Override
+ public Adapter caseHierarchyRestriction(HierarchyRestriction object)
+ {
+ return createHierarchyRestrictionAdapter();
+ }
+ @Override
+ public Adapter caseObjectRestriction(ObjectRestriction object)
+ {
+ return createObjectRestrictionAdapter();
+ }
+ @Override
+ public Adapter caseArtifactInstanceRestriction(ArtifactInstanceRestriction object)
+ {
+ return createArtifactInstanceRestrictionAdapter();
+ }
+ @Override
+ public Adapter caseArtifactTypeRestriction(ArtifactTypeRestriction object)
+ {
+ return createArtifactTypeRestrictionAdapter();
+ }
+ @Override
+ public Adapter caseAttributeTypeRestriction(AttributeTypeRestriction object)
+ {
+ return createAttributeTypeRestrictionAdapter();
+ }
+ @Override
+ public Adapter caseRelationTypeRestriction(RelationTypeRestriction object)
+ {
+ return createRelationTypeRestrictionAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl <em>Osee Dsl</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl
+ * @generated
+ */
+ public Adapter createOseeDslAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.Import <em>Import</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.Import
+ * @generated
+ */
+ public Adapter createImportAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement <em>Osee Element</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeElement
+ * @generated
+ */
+ public Adapter createOseeElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType <em>Osee Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType
+ * @generated
+ */
+ public Adapter createOseeTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType <em>XArtifact Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactType
+ * @generated
+ */
+ public Adapter createXArtifactTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef <em>XAttribute Type Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef
+ * @generated
+ */
+ public Adapter createXAttributeTypeRefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType <em>XAttribute Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeType
+ * @generated
+ */
+ public Adapter createXAttributeTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType <em>XOsee Enum Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumType
+ * @generated
+ */
+ public Adapter createXOseeEnumTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry <em>XOsee Enum Entry</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumEntry
+ * @generated
+ */
+ public Adapter createXOseeEnumEntryAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride <em>XOsee Enum Override</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XOseeEnumOverride
+ * @generated
+ */
+ public Adapter createXOseeEnumOverrideAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption <em>Override Option</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OverrideOption
+ * @generated
+ */
+ public Adapter createOverrideOptionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum <em>Add Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AddEnum
+ * @generated
+ */
+ public Adapter createAddEnumAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum <em>Remove Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RemoveEnum
+ * @generated
+ */
+ public Adapter createRemoveEnumAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType <em>XRelation Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XRelationType
+ * @generated
+ */
+ public Adapter createXRelationTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef <em>XArtifact Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactRef
+ * @generated
+ */
+ public Adapter createXArtifactRefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef <em>XBranch Ref</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.XBranchRef
+ * @generated
+ */
+ public Adapter createXBranchRefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext <em>Access Context</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AccessContext
+ * @generated
+ */
+ public Adapter createAccessContextAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction <em>Hierarchy Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.HierarchyRestriction
+ * @generated
+ */
+ public Adapter createHierarchyRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction <em>Object Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction
+ * @generated
+ */
+ public Adapter createObjectRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction <em>Artifact Instance Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactInstanceRestriction
+ * @generated
+ */
+ public Adapter createArtifactInstanceRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction <em>Artifact Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.ArtifactTypeRestriction
+ * @generated
+ */
+ public Adapter createArtifactTypeRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction <em>Attribute Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction
+ * @generated
+ */
+ public Adapter createAttributeTypeRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction <em>Relation Type Restriction</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction
+ * @generated
+ */
+ public Adapter createRelationTypeRestrictionAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} //OseeDslAdapterFactory
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java
index d4d97a156ca..b85db5d4858 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/util/OseeDslSwitch.java
@@ -1,664 +1,664 @@
-/**
- * <copyright>
- * </copyright>
- *
-
- */
-package org.eclipse.osee.framework.core.dsl.oseeDsl.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
- * @generated
- */
-public class OseeDslSwitch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static OseeDslPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OseeDslSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = OseeDslPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject)
- {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject)
- {
- if (theEClass.eContainer() == modelPackage)
- {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else
- {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case OseeDslPackage.OSEE_DSL:
- {
- OseeDsl oseeDsl = (OseeDsl)theEObject;
- T result = caseOseeDsl(oseeDsl);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.IMPORT:
- {
- Import import_ = (Import)theEObject;
- T result = caseImport(import_);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.OSEE_ELEMENT:
- {
- OseeElement oseeElement = (OseeElement)theEObject;
- T result = caseOseeElement(oseeElement);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.OSEE_TYPE:
- {
- OseeType oseeType = (OseeType)theEObject;
- T result = caseOseeType(oseeType);
- if (result == null) result = caseOseeElement(oseeType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XARTIFACT_TYPE:
- {
- XArtifactType xArtifactType = (XArtifactType)theEObject;
- T result = caseXArtifactType(xArtifactType);
- if (result == null) result = caseOseeType(xArtifactType);
- if (result == null) result = caseOseeElement(xArtifactType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XATTRIBUTE_TYPE_REF:
- {
- XAttributeTypeRef xAttributeTypeRef = (XAttributeTypeRef)theEObject;
- T result = caseXAttributeTypeRef(xAttributeTypeRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XATTRIBUTE_TYPE:
- {
- XAttributeType xAttributeType = (XAttributeType)theEObject;
- T result = caseXAttributeType(xAttributeType);
- if (result == null) result = caseOseeType(xAttributeType);
- if (result == null) result = caseOseeElement(xAttributeType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XOSEE_ENUM_TYPE:
- {
- XOseeEnumType xOseeEnumType = (XOseeEnumType)theEObject;
- T result = caseXOseeEnumType(xOseeEnumType);
- if (result == null) result = caseOseeType(xOseeEnumType);
- if (result == null) result = caseOseeElement(xOseeEnumType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XOSEE_ENUM_ENTRY:
- {
- XOseeEnumEntry xOseeEnumEntry = (XOseeEnumEntry)theEObject;
- T result = caseXOseeEnumEntry(xOseeEnumEntry);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XOSEE_ENUM_OVERRIDE:
- {
- XOseeEnumOverride xOseeEnumOverride = (XOseeEnumOverride)theEObject;
- T result = caseXOseeEnumOverride(xOseeEnumOverride);
- if (result == null) result = caseOseeElement(xOseeEnumOverride);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.OVERRIDE_OPTION:
- {
- OverrideOption overrideOption = (OverrideOption)theEObject;
- T result = caseOverrideOption(overrideOption);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.ADD_ENUM:
- {
- AddEnum addEnum = (AddEnum)theEObject;
- T result = caseAddEnum(addEnum);
- if (result == null) result = caseOverrideOption(addEnum);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.REMOVE_ENUM:
- {
- RemoveEnum removeEnum = (RemoveEnum)theEObject;
- T result = caseRemoveEnum(removeEnum);
- if (result == null) result = caseOverrideOption(removeEnum);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XRELATION_TYPE:
- {
- XRelationType xRelationType = (XRelationType)theEObject;
- T result = caseXRelationType(xRelationType);
- if (result == null) result = caseOseeType(xRelationType);
- if (result == null) result = caseOseeElement(xRelationType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XARTIFACT_REF:
- {
- XArtifactRef xArtifactRef = (XArtifactRef)theEObject;
- T result = caseXArtifactRef(xArtifactRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.XBRANCH_REF:
- {
- XBranchRef xBranchRef = (XBranchRef)theEObject;
- T result = caseXBranchRef(xBranchRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.ACCESS_CONTEXT:
- {
- AccessContext accessContext = (AccessContext)theEObject;
- T result = caseAccessContext(accessContext);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.HIERARCHY_RESTRICTION:
- {
- HierarchyRestriction hierarchyRestriction = (HierarchyRestriction)theEObject;
- T result = caseHierarchyRestriction(hierarchyRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.OBJECT_RESTRICTION:
- {
- ObjectRestriction objectRestriction = (ObjectRestriction)theEObject;
- T result = caseObjectRestriction(objectRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION:
- {
- ArtifactInstanceRestriction artifactInstanceRestriction = (ArtifactInstanceRestriction)theEObject;
- T result = caseArtifactInstanceRestriction(artifactInstanceRestriction);
- if (result == null) result = caseObjectRestriction(artifactInstanceRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION:
- {
- ArtifactTypeRestriction artifactTypeRestriction = (ArtifactTypeRestriction)theEObject;
- T result = caseArtifactTypeRestriction(artifactTypeRestriction);
- if (result == null) result = caseObjectRestriction(artifactTypeRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION:
- {
- AttributeTypeRestriction attributeTypeRestriction = (AttributeTypeRestriction)theEObject;
- T result = caseAttributeTypeRestriction(attributeTypeRestriction);
- if (result == null) result = caseObjectRestriction(attributeTypeRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case OseeDslPackage.RELATION_TYPE_RESTRICTION:
- {
- RelationTypeRestriction relationTypeRestriction = (RelationTypeRestriction)theEObject;
- T result = caseRelationTypeRestriction(relationTypeRestriction);
- if (result == null) result = caseObjectRestriction(relationTypeRestriction);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Osee Dsl</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Osee Dsl</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOseeDsl(OseeDsl object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Import</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Import</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseImport(Import object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Osee Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Osee Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOseeElement(OseeElement object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Osee Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Osee Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOseeType(OseeType object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XArtifact Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XArtifact Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXArtifactType(XArtifactType object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XAttribute Type Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XAttribute Type Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXAttributeTypeRef(XAttributeTypeRef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XAttribute Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XAttribute Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXAttributeType(XAttributeType object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XOsee Enum Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXOseeEnumType(XOseeEnumType object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Entry</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XOsee Enum Entry</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXOseeEnumEntry(XOseeEnumEntry object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Override</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XOsee Enum Override</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXOseeEnumOverride(XOseeEnumOverride object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Override Option</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Override Option</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOverrideOption(OverrideOption object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Add Enum</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Add Enum</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAddEnum(AddEnum object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Remove Enum</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Remove Enum</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRemoveEnum(RemoveEnum object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XRelation Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XRelation Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXRelationType(XRelationType object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XArtifact Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XArtifact Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXArtifactRef(XArtifactRef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>XBranch Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>XBranch Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseXBranchRef(XBranchRef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Access Context</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Access Context</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAccessContext(AccessContext object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Hierarchy Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Hierarchy Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseHierarchyRestriction(HierarchyRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Object Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Object Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseObjectRestriction(ObjectRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Artifact Instance Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Artifact Instance Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseArtifactInstanceRestriction(ArtifactInstanceRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Artifact Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Artifact Type Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseArtifactTypeRestriction(ArtifactTypeRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Attribute Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Attribute Type Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAttributeTypeRestriction(AttributeTypeRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Relation Type Restriction</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Relation Type Restriction</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRelationTypeRestriction(RelationTypeRestriction object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} //OseeDslSwitch
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.osee.framework.core.dsl.oseeDsl.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.osee.framework.core.dsl.oseeDsl.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage
+ * @generated
+ */
+public class OseeDslSwitch<T>
+{
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static OseeDslPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OseeDslSwitch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = OseeDslPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case OseeDslPackage.OSEE_DSL:
+ {
+ OseeDsl oseeDsl = (OseeDsl)theEObject;
+ T result = caseOseeDsl(oseeDsl);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.IMPORT:
+ {
+ Import import_ = (Import)theEObject;
+ T result = caseImport(import_);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.OSEE_ELEMENT:
+ {
+ OseeElement oseeElement = (OseeElement)theEObject;
+ T result = caseOseeElement(oseeElement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.OSEE_TYPE:
+ {
+ OseeType oseeType = (OseeType)theEObject;
+ T result = caseOseeType(oseeType);
+ if (result == null) result = caseOseeElement(oseeType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XARTIFACT_TYPE:
+ {
+ XArtifactType xArtifactType = (XArtifactType)theEObject;
+ T result = caseXArtifactType(xArtifactType);
+ if (result == null) result = caseOseeType(xArtifactType);
+ if (result == null) result = caseOseeElement(xArtifactType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XATTRIBUTE_TYPE_REF:
+ {
+ XAttributeTypeRef xAttributeTypeRef = (XAttributeTypeRef)theEObject;
+ T result = caseXAttributeTypeRef(xAttributeTypeRef);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XATTRIBUTE_TYPE:
+ {
+ XAttributeType xAttributeType = (XAttributeType)theEObject;
+ T result = caseXAttributeType(xAttributeType);
+ if (result == null) result = caseOseeType(xAttributeType);
+ if (result == null) result = caseOseeElement(xAttributeType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XOSEE_ENUM_TYPE:
+ {
+ XOseeEnumType xOseeEnumType = (XOseeEnumType)theEObject;
+ T result = caseXOseeEnumType(xOseeEnumType);
+ if (result == null) result = caseOseeType(xOseeEnumType);
+ if (result == null) result = caseOseeElement(xOseeEnumType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XOSEE_ENUM_ENTRY:
+ {
+ XOseeEnumEntry xOseeEnumEntry = (XOseeEnumEntry)theEObject;
+ T result = caseXOseeEnumEntry(xOseeEnumEntry);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XOSEE_ENUM_OVERRIDE:
+ {
+ XOseeEnumOverride xOseeEnumOverride = (XOseeEnumOverride)theEObject;
+ T result = caseXOseeEnumOverride(xOseeEnumOverride);
+ if (result == null) result = caseOseeElement(xOseeEnumOverride);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.OVERRIDE_OPTION:
+ {
+ OverrideOption overrideOption = (OverrideOption)theEObject;
+ T result = caseOverrideOption(overrideOption);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.ADD_ENUM:
+ {
+ AddEnum addEnum = (AddEnum)theEObject;
+ T result = caseAddEnum(addEnum);
+ if (result == null) result = caseOverrideOption(addEnum);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.REMOVE_ENUM:
+ {
+ RemoveEnum removeEnum = (RemoveEnum)theEObject;
+ T result = caseRemoveEnum(removeEnum);
+ if (result == null) result = caseOverrideOption(removeEnum);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XRELATION_TYPE:
+ {
+ XRelationType xRelationType = (XRelationType)theEObject;
+ T result = caseXRelationType(xRelationType);
+ if (result == null) result = caseOseeType(xRelationType);
+ if (result == null) result = caseOseeElement(xRelationType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XARTIFACT_REF:
+ {
+ XArtifactRef xArtifactRef = (XArtifactRef)theEObject;
+ T result = caseXArtifactRef(xArtifactRef);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.XBRANCH_REF:
+ {
+ XBranchRef xBranchRef = (XBranchRef)theEObject;
+ T result = caseXBranchRef(xBranchRef);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.ACCESS_CONTEXT:
+ {
+ AccessContext accessContext = (AccessContext)theEObject;
+ T result = caseAccessContext(accessContext);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.HIERARCHY_RESTRICTION:
+ {
+ HierarchyRestriction hierarchyRestriction = (HierarchyRestriction)theEObject;
+ T result = caseHierarchyRestriction(hierarchyRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.OBJECT_RESTRICTION:
+ {
+ ObjectRestriction objectRestriction = (ObjectRestriction)theEObject;
+ T result = caseObjectRestriction(objectRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.ARTIFACT_INSTANCE_RESTRICTION:
+ {
+ ArtifactInstanceRestriction artifactInstanceRestriction = (ArtifactInstanceRestriction)theEObject;
+ T result = caseArtifactInstanceRestriction(artifactInstanceRestriction);
+ if (result == null) result = caseObjectRestriction(artifactInstanceRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.ARTIFACT_TYPE_RESTRICTION:
+ {
+ ArtifactTypeRestriction artifactTypeRestriction = (ArtifactTypeRestriction)theEObject;
+ T result = caseArtifactTypeRestriction(artifactTypeRestriction);
+ if (result == null) result = caseObjectRestriction(artifactTypeRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.ATTRIBUTE_TYPE_RESTRICTION:
+ {
+ AttributeTypeRestriction attributeTypeRestriction = (AttributeTypeRestriction)theEObject;
+ T result = caseAttributeTypeRestriction(attributeTypeRestriction);
+ if (result == null) result = caseObjectRestriction(attributeTypeRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case OseeDslPackage.RELATION_TYPE_RESTRICTION:
+ {
+ RelationTypeRestriction relationTypeRestriction = (RelationTypeRestriction)theEObject;
+ T result = caseRelationTypeRestriction(relationTypeRestriction);
+ if (result == null) result = caseObjectRestriction(relationTypeRestriction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Osee Dsl</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Osee Dsl</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOseeDsl(OseeDsl object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Import</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Import</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImport(Import object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Osee Element</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Osee Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOseeElement(OseeElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Osee Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Osee Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOseeType(OseeType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XArtifact Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XArtifact Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXArtifactType(XArtifactType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XAttribute Type Ref</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XAttribute Type Ref</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXAttributeTypeRef(XAttributeTypeRef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XAttribute Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XAttribute Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXAttributeType(XAttributeType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XOsee Enum Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXOseeEnumType(XOseeEnumType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Entry</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XOsee Enum Entry</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXOseeEnumEntry(XOseeEnumEntry object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XOsee Enum Override</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XOsee Enum Override</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXOseeEnumOverride(XOseeEnumOverride object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Override Option</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Override Option</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOverrideOption(OverrideOption object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Add Enum</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Add Enum</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAddEnum(AddEnum object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Remove Enum</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Remove Enum</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRemoveEnum(RemoveEnum object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XRelation Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XRelation Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXRelationType(XRelationType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XArtifact Ref</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XArtifact Ref</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXArtifactRef(XArtifactRef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>XBranch Ref</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>XBranch Ref</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseXBranchRef(XBranchRef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Access Context</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Access Context</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAccessContext(AccessContext object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Hierarchy Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Hierarchy Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHierarchyRestriction(HierarchyRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Object Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Object Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseObjectRestriction(ObjectRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Artifact Instance Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Artifact Instance Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseArtifactInstanceRestriction(ArtifactInstanceRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Artifact Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Artifact Type Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseArtifactTypeRestriction(ArtifactTypeRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Attribute Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Attribute Type Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAttributeTypeRestriction(AttributeTypeRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Relation Type Restriction</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Relation Type Restriction</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRelationTypeRestriction(RelationTypeRestriction object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} //OseeDslSwitch
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/mocks/MockAccessDetailCollector.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/mocks/MockAccessDetailCollector.java
index c2d9125ce4d..15179f5ed04 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/mocks/MockAccessDetailCollector.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/test/mocks/MockAccessDetailCollector.java
@@ -1,35 +1,35 @@
-/*******************************************************************************
- * 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.framework.core.model.test.mocks;
-
-import org.eclipse.osee.framework.core.model.access.AccessDetail;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockAccessDetailCollector implements AccessDetailCollector {
-
- private AccessDetail<?> actualAccessDetail;
-
- public AccessDetail<?> getAccessDetails() {
- return actualAccessDetail;
- }
-
- public void clear() {
- collect(null);
- }
-
- @Override
- public void collect(AccessDetail<?> accessDetail) {
- this.actualAccessDetail = accessDetail;
- }
+/*******************************************************************************
+ * 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.framework.core.model.test.mocks;
+
+import org.eclipse.osee.framework.core.model.access.AccessDetail;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockAccessDetailCollector implements AccessDetailCollector {
+
+ private AccessDetail<?> actualAccessDetail;
+
+ public AccessDetail<?> getAccessDetails() {
+ return actualAccessDetail;
+ }
+
+ public void clear() {
+ collect(null);
+ }
+
+ @Override
+ public void collect(AccessDetail<?> accessDetail) {
+ this.actualAccessDetail = accessDetail;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java
index 369fc57bdd2..b75f2423ff1 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessDetailCollector.java
@@ -1,21 +1,21 @@
-/*******************************************************************************
- * 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.framework.core.model.access;
-
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.access.AccessDetail;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface AccessDetailCollector {
- void collect(AccessDetail<?> accessDetail) 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.framework.core.model.access;
+
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.access.AccessDetail;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface AccessDetailCollector {
+ void collect(AccessDetail<?> accessDetail) throws OseeCoreException;
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessModel.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessModel.java
index b8a310f16b4..7d156be169e 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessModel.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/access/AccessModel.java
@@ -1,23 +1,23 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.framework.core.model.access;
-
-import java.util.Collection;
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface AccessModel {
-
- void computeAccess(AccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) throws OseeCoreException;
+/*******************************************************************************
+ * Copyright (c) 2010 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.framework.core.model.access;
+
+import java.util.Collection;
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface AccessModel {
+
+ void computeAccess(AccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) throws OseeCoreException;
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockBundleContext.java b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockBundleContext.java
index 764b7c0b325..9f1a169a36a 100644
--- a/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockBundleContext.java
+++ b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockBundleContext.java
@@ -1,150 +1,150 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.framework.core.test.mocks;
-
-import java.io.File;
-import java.io.InputStream;
-import java.util.Dictionary;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.BundleException;
-import org.osgi.framework.BundleListener;
-import org.osgi.framework.Filter;
-import org.osgi.framework.FrameworkListener;
-import org.osgi.framework.InvalidSyntaxException;
-import org.osgi.framework.ServiceListener;
-import org.osgi.framework.ServiceReference;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockBundleContext implements BundleContext {
-
- @Override
- public String getProperty(String key) {
- return null;
- }
-
- @Override
- public Bundle getBundle() {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public Bundle installBundle(String location, InputStream input) throws BundleException {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public Bundle installBundle(String location) throws BundleException {
- return null;
- }
-
- @Override
- public Bundle getBundle(long id) {
- return null;
- }
-
- @Override
- public Bundle[] getBundles() {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public void addServiceListener(ServiceListener listener, String filter) throws InvalidSyntaxException {
- //
- }
-
- @Override
- public void addServiceListener(ServiceListener listener) {
- //
- }
-
- @Override
- public void removeServiceListener(ServiceListener listener) {
- //
- }
-
- @Override
- public void addBundleListener(BundleListener listener) {
- //
- }
-
- @Override
- public void removeBundleListener(BundleListener listener) {
- //
- }
-
- @Override
- public void addFrameworkListener(FrameworkListener listener) {
- //
- }
-
- @Override
- public void removeFrameworkListener(FrameworkListener listener) {
- //
- }
-
- @SuppressWarnings("rawtypes")
- @Override
- public ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties) {
- return null;
- }
-
- @SuppressWarnings("rawtypes")
- @Override
- public ServiceRegistration registerService(String clazz, Object service, Dictionary properties) {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public ServiceReference[] getAllServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
- return null;
- }
-
- @Override
- public ServiceReference getServiceReference(String clazz) {
- return null;
- }
-
- @Override
- public Object getService(ServiceReference reference) {
- return null;
- }
-
- @Override
- public boolean ungetService(ServiceReference reference) {
- return false;
- }
-
- @Override
- public File getDataFile(String filename) {
- return null;
- }
-
- @SuppressWarnings("unused")
- @Override
- public Filter createFilter(String filter) throws InvalidSyntaxException {
- return null;
- }
-
+/*******************************************************************************
+ * Copyright (c) 2009 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.framework.core.test.mocks;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Dictionary;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.BundleException;
+import org.osgi.framework.BundleListener;
+import org.osgi.framework.Filter;
+import org.osgi.framework.FrameworkListener;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockBundleContext implements BundleContext {
+
+ @Override
+ public String getProperty(String key) {
+ return null;
+ }
+
+ @Override
+ public Bundle getBundle() {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public Bundle installBundle(String location, InputStream input) throws BundleException {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public Bundle installBundle(String location) throws BundleException {
+ return null;
+ }
+
+ @Override
+ public Bundle getBundle(long id) {
+ return null;
+ }
+
+ @Override
+ public Bundle[] getBundles() {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void addServiceListener(ServiceListener listener, String filter) throws InvalidSyntaxException {
+ //
+ }
+
+ @Override
+ public void addServiceListener(ServiceListener listener) {
+ //
+ }
+
+ @Override
+ public void removeServiceListener(ServiceListener listener) {
+ //
+ }
+
+ @Override
+ public void addBundleListener(BundleListener listener) {
+ //
+ }
+
+ @Override
+ public void removeBundleListener(BundleListener listener) {
+ //
+ }
+
+ @Override
+ public void addFrameworkListener(FrameworkListener listener) {
+ //
+ }
+
+ @Override
+ public void removeFrameworkListener(FrameworkListener listener) {
+ //
+ }
+
+ @SuppressWarnings("rawtypes")
+ @Override
+ public ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties) {
+ return null;
+ }
+
+ @SuppressWarnings("rawtypes")
+ @Override
+ public ServiceRegistration registerService(String clazz, Object service, Dictionary properties) {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public ServiceReference[] getAllServiceReferences(String clazz, String filter) throws InvalidSyntaxException {
+ return null;
+ }
+
+ @Override
+ public ServiceReference getServiceReference(String clazz) {
+ return null;
+ }
+
+ @Override
+ public Object getService(ServiceReference reference) {
+ return null;
+ }
+
+ @Override
+ public boolean ungetService(ServiceReference reference) {
+ return false;
+ }
+
+ @Override
+ public File getDataFile(String filename) {
+ return null;
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public Filter createFilter(String filter) throws InvalidSyntaxException {
+ return null;
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockServiceReference.java b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockServiceReference.java
index bbeade2f692..6272afd9831 100644
--- a/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockServiceReference.java
+++ b/plugins/org.eclipse.osee.framework.core.test/src/org/eclipse/osee/framework/core/test/mocks/MockServiceReference.java
@@ -1,38 +1,38 @@
-package org.eclipse.osee.framework.core.test.mocks;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceReference;
-
-public class MockServiceReference implements ServiceReference {
-
- @Override
- public Object getProperty(String key) {
- return null;
- }
-
- @Override
- public String[] getPropertyKeys() {
- return null;
- }
-
- @Override
- public Bundle getBundle() {
- return null;
- }
-
- @Override
- public Bundle[] getUsingBundles() {
- return null;
- }
-
- @Override
- public boolean isAssignableTo(Bundle bundle, String className) {
- return false;
- }
-
- @Override
- public int compareTo(Object reference) {
- return 0;
- }
-
+package org.eclipse.osee.framework.core.test.mocks;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceReference;
+
+public class MockServiceReference implements ServiceReference {
+
+ @Override
+ public Object getProperty(String key) {
+ return null;
+ }
+
+ @Override
+ public String[] getPropertyKeys() {
+ return null;
+ }
+
+ @Override
+ public Bundle getBundle() {
+ return null;
+ }
+
+ @Override
+ public Bundle[] getUsingBundles() {
+ return null;
+ }
+
+ @Override
+ public boolean isAssignableTo(Bundle bundle, String className) {
+ return false;
+ }
+
+ @Override
+ public int compareTo(Object reference) {
+ return 0;
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/AbstractServiceBinder.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/AbstractServiceBinder.java
index a87768612e2..3c6fdb8d558 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/AbstractServiceBinder.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/AbstractServiceBinder.java
@@ -1,134 +1,134 @@
-/*******************************************************************************
- * 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.framework.core.internal;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.concurrent.CopyOnWriteArraySet;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
-import org.osgi.util.tracker.ServiceTracker;
-
-/**
- * @author Roberto E. Escobar
- */
-public abstract class AbstractServiceBinder {
-
- private final Map<Class<?>, Collection<Object>> serviceMap;
- private final BundleContext bundleContext;
- private final AbstractTrackingHandler handler;
-
- private boolean isReady;
-
- protected AbstractServiceBinder(Map<Class<?>, Collection<Object>> serviceMap, BundleContext bundleContext, AbstractTrackingHandler handler) {
- super();
- this.serviceMap = serviceMap;
- this.bundleContext = bundleContext;
- this.handler = handler;
- }
-
- protected AbstractTrackingHandler getHandler() {
- return handler;
- }
-
- protected BundleContext getBundleContext() {
- return bundleContext;
- }
-
- public ServiceTracker createTracker(Class<?> clazz) {
- serviceMap.put(clazz, new CopyOnWriteArraySet<Object>());
- return new InternalServiceTracker(this, getBundleContext(), clazz);
- }
-
- protected abstract void doAdd(Collection<Object> associatedServices, Object service);
-
- public void onAddingService(Class<?> classKey, Object service) {
- Collection<Object> associatedServices = serviceMap.get(classKey);
- doAdd(associatedServices, service);
- if (!isReady) {
- if (areServicesReady()) {
- isReady = true;
-
- Set<Object> servicesReported = new HashSet<Object>();
- Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();
- for (Entry<Class<?>, Collection<Object>> entry : serviceMap.entrySet()) {
- Object serviceObject = entry.getValue().iterator().next();
- servicesReported.add(serviceObject);
- services.put(entry.getKey(), serviceObject);
- }
-
- getHandler().onActivate(getBundleContext(), services);
-
- for (Entry<Class<?>, Collection<Object>> entry : serviceMap.entrySet()) {
- for (Object serviceObject : entry.getValue()) {
- if (!servicesReported.contains(serviceObject)) {
- getHandler().onServiceAdded(getBundleContext(), entry.getKey(), serviceObject);
- }
- }
- }
- }
- } else {
- getHandler().onServiceAdded(getBundleContext(), classKey, service);
- }
- }
-
- public void onRemovingService(Class<?> classKey, Object service) {
- Collection<Object> associatedServices = serviceMap.get(classKey);
- boolean wasRemoved = associatedServices.remove(service);
- if (!wasRemoved) {
- throw new IllegalStateException(String.format("Attempting to remove none managed service reference: [%s]",
- service.getClass().getName()));
- }
- getHandler().onServiceRemoved(getBundleContext(), classKey, service);
- if (associatedServices.isEmpty()) {
- isReady = false;
- getHandler().onDeActivate();
- }
- }
-
- protected boolean areServicesReady() {
- for (Collection<Object> services : serviceMap.values()) {
- if (services.isEmpty()) {
- return false;
- }
- }
- return true;
- }
-
- private final static class InternalServiceTracker extends ServiceTracker {
- private final AbstractServiceBinder listener;
- private final Class<?> serviceClass;
-
- public InternalServiceTracker(AbstractServiceBinder listener, BundleContext context, Class<?> serviceClass) {
- super(context, serviceClass.getName(), null);
- this.listener = listener;
- this.serviceClass = serviceClass;
- }
-
- @Override
- public Object addingService(ServiceReference reference) {
- Object object = super.addingService(reference);
- listener.onAddingService(serviceClass, object);
- return object;
- }
-
- @Override
- public void removedService(ServiceReference reference, Object service) {
- listener.onRemovingService(serviceClass, service);
- super.removedService(reference, service);
- }
- }
+/*******************************************************************************
+ * 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.framework.core.internal;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.concurrent.CopyOnWriteArraySet;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+import org.osgi.util.tracker.ServiceTracker;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public abstract class AbstractServiceBinder {
+
+ private final Map<Class<?>, Collection<Object>> serviceMap;
+ private final BundleContext bundleContext;
+ private final AbstractTrackingHandler handler;
+
+ private boolean isReady;
+
+ protected AbstractServiceBinder(Map<Class<?>, Collection<Object>> serviceMap, BundleContext bundleContext, AbstractTrackingHandler handler) {
+ super();
+ this.serviceMap = serviceMap;
+ this.bundleContext = bundleContext;
+ this.handler = handler;
+ }
+
+ protected AbstractTrackingHandler getHandler() {
+ return handler;
+ }
+
+ protected BundleContext getBundleContext() {
+ return bundleContext;
+ }
+
+ public ServiceTracker createTracker(Class<?> clazz) {
+ serviceMap.put(clazz, new CopyOnWriteArraySet<Object>());
+ return new InternalServiceTracker(this, getBundleContext(), clazz);
+ }
+
+ protected abstract void doAdd(Collection<Object> associatedServices, Object service);
+
+ public void onAddingService(Class<?> classKey, Object service) {
+ Collection<Object> associatedServices = serviceMap.get(classKey);
+ doAdd(associatedServices, service);
+ if (!isReady) {
+ if (areServicesReady()) {
+ isReady = true;
+
+ Set<Object> servicesReported = new HashSet<Object>();
+ Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();
+ for (Entry<Class<?>, Collection<Object>> entry : serviceMap.entrySet()) {
+ Object serviceObject = entry.getValue().iterator().next();
+ servicesReported.add(serviceObject);
+ services.put(entry.getKey(), serviceObject);
+ }
+
+ getHandler().onActivate(getBundleContext(), services);
+
+ for (Entry<Class<?>, Collection<Object>> entry : serviceMap.entrySet()) {
+ for (Object serviceObject : entry.getValue()) {
+ if (!servicesReported.contains(serviceObject)) {
+ getHandler().onServiceAdded(getBundleContext(), entry.getKey(), serviceObject);
+ }
+ }
+ }
+ }
+ } else {
+ getHandler().onServiceAdded(getBundleContext(), classKey, service);
+ }
+ }
+
+ public void onRemovingService(Class<?> classKey, Object service) {
+ Collection<Object> associatedServices = serviceMap.get(classKey);
+ boolean wasRemoved = associatedServices.remove(service);
+ if (!wasRemoved) {
+ throw new IllegalStateException(String.format("Attempting to remove none managed service reference: [%s]",
+ service.getClass().getName()));
+ }
+ getHandler().onServiceRemoved(getBundleContext(), classKey, service);
+ if (associatedServices.isEmpty()) {
+ isReady = false;
+ getHandler().onDeActivate();
+ }
+ }
+
+ protected boolean areServicesReady() {
+ for (Collection<Object> services : serviceMap.values()) {
+ if (services.isEmpty()) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ private final static class InternalServiceTracker extends ServiceTracker {
+ private final AbstractServiceBinder listener;
+ private final Class<?> serviceClass;
+
+ public InternalServiceTracker(AbstractServiceBinder listener, BundleContext context, Class<?> serviceClass) {
+ super(context, serviceClass.getName(), null);
+ this.listener = listener;
+ this.serviceClass = serviceClass;
+ }
+
+ @Override
+ public Object addingService(ServiceReference reference) {
+ Object object = super.addingService(reference);
+ listener.onAddingService(serviceClass, object);
+ return object;
+ }
+
+ @Override
+ public void removedService(ServiceReference reference, Object service) {
+ listener.onRemovingService(serviceClass, service);
+ super.removedService(reference, service);
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/MultiServiceBinder.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/MultiServiceBinder.java
index 7cc67cf04fa..aa4baec937f 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/MultiServiceBinder.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/MultiServiceBinder.java
@@ -1,31 +1,31 @@
-/*******************************************************************************
- * 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.framework.core.internal;
-
-import java.util.Collection;
-import java.util.Map;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.osgi.framework.BundleContext;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MultiServiceBinder extends AbstractServiceBinder {
-
- public MultiServiceBinder(Map<Class<?>, Collection<Object>> serviceMap, BundleContext bundleContext, AbstractTrackingHandler handler) {
- super(serviceMap, bundleContext, handler);
- }
-
- @Override
- protected void doAdd(Collection<Object> associatedServices, Object service) {
- associatedServices.add(service);
- }
+/*******************************************************************************
+ * 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.framework.core.internal;
+
+import java.util.Collection;
+import java.util.Map;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MultiServiceBinder extends AbstractServiceBinder {
+
+ public MultiServiceBinder(Map<Class<?>, Collection<Object>> serviceMap, BundleContext bundleContext, AbstractTrackingHandler handler) {
+ super(serviceMap, bundleContext, handler);
+ }
+
+ @Override
+ protected void doAdd(Collection<Object> associatedServices, Object service) {
+ associatedServices.add(service);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/ServiceBinderFactoryImpl.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/ServiceBinderFactoryImpl.java
index a2a7e1dddc7..1df5d3f1b85 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/ServiceBinderFactoryImpl.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/internal/ServiceBinderFactoryImpl.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.framework.core.internal;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.core.util.ServiceBindType;
-import org.eclipse.osee.framework.core.util.ServiceBinderFactory;
-import org.osgi.framework.BundleContext;
-import org.osgi.util.tracker.ServiceTracker;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class ServiceBinderFactoryImpl implements ServiceBinderFactory {
- private final AbstractServiceBinder singleBinder;
- private final AbstractServiceBinder multiBinder;
-
- public ServiceBinderFactoryImpl(BundleContext context, AbstractTrackingHandler handler) {
- super();
- Map<Class<?>, Collection<Object>> serviceMap = new ConcurrentHashMap<Class<?>, Collection<Object>>();
- singleBinder = new SingletonServiceBinder(serviceMap, context, handler);
- multiBinder = new MultiServiceBinder(serviceMap, context, handler);
- }
-
- @Override
- public ServiceTracker createTracker(ServiceBindType bindType, Class<?> clazz) {
- AbstractServiceBinder binder = null;
- if (ServiceBindType.SINGLETON == bindType) {
- binder = singleBinder;
- } else if (ServiceBindType.MANY == bindType) {
- binder = multiBinder;
- }
- if (binder == null) {
- throw new IllegalStateException(String.format("Unknown bind type: [%s:%s]", clazz.getName(), bindType));
- }
- return binder.createTracker(clazz);
- }
+/*******************************************************************************
+ * 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.framework.core.internal;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.core.util.ServiceBindType;
+import org.eclipse.osee.framework.core.util.ServiceBinderFactory;
+import org.osgi.framework.BundleContext;
+import org.osgi.util.tracker.ServiceTracker;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class ServiceBinderFactoryImpl implements ServiceBinderFactory {
+ private final AbstractServiceBinder singleBinder;
+ private final AbstractServiceBinder multiBinder;
+
+ public ServiceBinderFactoryImpl(BundleContext context, AbstractTrackingHandler handler) {
+ super();
+ Map<Class<?>, Collection<Object>> serviceMap = new ConcurrentHashMap<Class<?>, Collection<Object>>();
+ singleBinder = new SingletonServiceBinder(serviceMap, context, handler);
+ multiBinder = new MultiServiceBinder(serviceMap, context, handler);
+ }
+
+ @Override
+ public ServiceTracker createTracker(ServiceBindType bindType, Class<?> clazz) {
+ AbstractServiceBinder binder = null;
+ if (ServiceBindType.SINGLETON == bindType) {
+ binder = singleBinder;
+ } else if (ServiceBindType.MANY == bindType) {
+ binder = multiBinder;
+ }
+ if (binder == null) {
+ throw new IllegalStateException(String.format("Unknown bind type: [%s:%s]", clazz.getName(), bindType));
+ }
+ return binder.createTracker(clazz);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/OsgiUtil.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/OsgiUtil.java
index 9169a37adc4..6c419e4bde4 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/OsgiUtil.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/OsgiUtil.java
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.framework.core.util;
-
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.osgi.framework.ServiceRegistration;
-import org.osgi.util.tracker.ServiceTracker;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class OsgiUtil {
-
- private OsgiUtil() {
- // Utility Class;
- }
-
- public static void close(ServiceTracker tracker) {
- if (tracker != null) {
- tracker.close();
- }
- }
-
- public static void close(ServiceRegistration registration) {
- if (registration != null) {
- registration.unregister();
- }
- }
-
- public static void close(ServiceDependencyTracker tracker) {
- Lib.close(tracker);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2009 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.framework.core.util;
+
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.util.tracker.ServiceTracker;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class OsgiUtil {
+
+ private OsgiUtil() {
+ // Utility Class;
+ }
+
+ public static void close(ServiceTracker tracker) {
+ if (tracker != null) {
+ tracker.close();
+ }
+ }
+
+ public static void close(ServiceRegistration registration) {
+ if (registration != null) {
+ registration.unregister();
+ }
+ }
+
+ public static void close(ServiceDependencyTracker tracker) {
+ Lib.close(tracker);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBindType.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBindType.java
index b657f909c97..012351d70fc 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBindType.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBindType.java
@@ -1,19 +1,19 @@
-/*******************************************************************************
- * 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.framework.core.util;
-
-/**
- * @author Roberto E. Escobar
- */
-public enum ServiceBindType {
- SINGLETON,
- MANY;
+/*******************************************************************************
+ * 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.framework.core.util;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public enum ServiceBindType {
+ SINGLETON,
+ MANY;
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBinderFactory.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBinderFactory.java
index f697612bf48..23e4cd050e3 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBinderFactory.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/ServiceBinderFactory.java
@@ -1,20 +1,20 @@
-/*******************************************************************************
- * 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.framework.core.util;
-
-import org.osgi.util.tracker.ServiceTracker;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface ServiceBinderFactory {
- ServiceTracker createTracker(ServiceBindType bindType, Class<?> clazz);
+/*******************************************************************************
+ * 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.framework.core.util;
+
+import org.osgi.util.tracker.ServiceTracker;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface ServiceBinderFactory {
+ ServiceTracker createTracker(ServiceBindType bindType, Class<?> clazz);
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java b/plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java
index 72d715472f1..c91878063de 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core.test/src/org/eclipse/osee/framework/jdk/core/test/text/UtfReadingRuleTest.java
@@ -1,118 +1,118 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.framework.jdk.core.test.text;
-
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.net.URL;
-import java.nio.charset.UnsupportedCharsetException;
-import java.util.Stack;
-import junit.framework.TestCase;
-import org.eclipse.osee.framework.jdk.core.text.Rule;
-import org.eclipse.osee.framework.jdk.core.text.change.ChangeSet;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-/**
- * Tests ability to read files in charsets, particularly UTF8
- *
- * <pre>
- * {@link Rule}
- * {@link Lib}
- * </pre>
- *
- * @author Karol M. Wilk
- */
-public final class UtfReadingRuleTest extends TestCase {
-
- private static final String FILE_INPUT = "utf8_input.xml";
-
- @org.junit.Rule
- public TemporaryFolder tempFolder = new TemporaryFolder();
-
- private File getInputFile() throws IOException {
- File outfile = tempFolder.newFile("utf8_input_copy.xml");
- URL url = UtfReadingRuleTest.class.getResource(FILE_INPUT);
- InputStream inputStream = null;
- try {
- inputStream = new BufferedInputStream(url.openStream());
- Lib.inputStreamToFile(inputStream, outfile);
- } finally {
- Lib.close(inputStream);
- }
- return outfile;
- }
-
- private final Utf8TestRule rule = new Utf8TestRule();
-
- @Test(expected = NullPointerException.class)
- public void testWrongFileName() throws IOException {
- rule.process(new File("./notexistentFile.txt"));
- }
-
- @Test
- public void testCharset() {
- Stack<String> charsetStack = new Stack<String>();
- charsetStack.add("UnknownCharset");
- charsetStack.add("UTF-8");
-
- while (!charsetStack.isEmpty()) {
- try {
- File inputFile = getInputFile();
- rule.setCharsetString(charsetStack.pop());
- rule.process(inputFile);
- } catch (Exception ex) {
- Assert.assertTrue("unexpected/wrong exception thrown testCharset(), Exception: " + ex.toString(),
- ex instanceof UnsupportedCharsetException || ex instanceof UnsupportedEncodingException);
- }
- }
- }
-
- @Test
- public void testUtf8ReadData() throws IOException {
- try {
- File inputFile = getInputFile();
- rule.process(inputFile);
- } catch (UnsupportedCharsetException ex) {
- Assert.assertTrue(true);
- } catch (Exception ex) {
- Assert.fail("unexpected/wrong exception thrown testCharset()");
- }
-
- //trim off extra data
- String expectedUtf8String = Lib.fileToString(getInputFile());
- String actual = rule.getLastOutput().toString().trim();
- Assert.assertEquals(expectedUtf8String, actual);
- }
-
- private static final class Utf8TestRule extends Rule {
- private CharSequence lastOutput;
-
- public Utf8TestRule() {
- this.lastOutput = null;
- }
-
- @Override
- public ChangeSet computeChanges(final CharSequence seq) {
- lastOutput = seq;
- return new ChangeSet(seq);
- }
-
- public CharSequence getLastOutput() {
- return lastOutput;
- }
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2010 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.framework.jdk.core.test.text;
+
+import java.io.BufferedInputStream;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.net.URL;
+import java.nio.charset.UnsupportedCharsetException;
+import java.util.Stack;
+import junit.framework.TestCase;
+import org.eclipse.osee.framework.jdk.core.text.Rule;
+import org.eclipse.osee.framework.jdk.core.text.change.ChangeSet;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.rules.TemporaryFolder;
+
+/**
+ * Tests ability to read files in charsets, particularly UTF8
+ *
+ * <pre>
+ * {@link Rule}
+ * {@link Lib}
+ * </pre>
+ *
+ * @author Karol M. Wilk
+ */
+public final class UtfReadingRuleTest extends TestCase {
+
+ private static final String FILE_INPUT = "utf8_input.xml";
+
+ @org.junit.Rule
+ public TemporaryFolder tempFolder = new TemporaryFolder();
+
+ private File getInputFile() throws IOException {
+ File outfile = tempFolder.newFile("utf8_input_copy.xml");
+ URL url = UtfReadingRuleTest.class.getResource(FILE_INPUT);
+ InputStream inputStream = null;
+ try {
+ inputStream = new BufferedInputStream(url.openStream());
+ Lib.inputStreamToFile(inputStream, outfile);
+ } finally {
+ Lib.close(inputStream);
+ }
+ return outfile;
+ }
+
+ private final Utf8TestRule rule = new Utf8TestRule();
+
+ @Test(expected = NullPointerException.class)
+ public void testWrongFileName() throws IOException {
+ rule.process(new File("./notexistentFile.txt"));
+ }
+
+ @Test
+ public void testCharset() {
+ Stack<String> charsetStack = new Stack<String>();
+ charsetStack.add("UnknownCharset");
+ charsetStack.add("UTF-8");
+
+ while (!charsetStack.isEmpty()) {
+ try {
+ File inputFile = getInputFile();
+ rule.setCharsetString(charsetStack.pop());
+ rule.process(inputFile);
+ } catch (Exception ex) {
+ Assert.assertTrue("unexpected/wrong exception thrown testCharset(), Exception: " + ex.toString(),
+ ex instanceof UnsupportedCharsetException || ex instanceof UnsupportedEncodingException);
+ }
+ }
+ }
+
+ @Test
+ public void testUtf8ReadData() throws IOException {
+ try {
+ File inputFile = getInputFile();
+ rule.process(inputFile);
+ } catch (UnsupportedCharsetException ex) {
+ Assert.assertTrue(true);
+ } catch (Exception ex) {
+ Assert.fail("unexpected/wrong exception thrown testCharset()");
+ }
+
+ //trim off extra data
+ String expectedUtf8String = Lib.fileToString(getInputFile());
+ String actual = rule.getLastOutput().toString().trim();
+ Assert.assertEquals(expectedUtf8String, actual);
+ }
+
+ private static final class Utf8TestRule extends Rule {
+ private CharSequence lastOutput;
+
+ public Utf8TestRule() {
+ this.lastOutput = null;
+ }
+
+ @Override
+ public ChangeSet computeChanges(final CharSequence seq) {
+ lastOutput = seq;
+ return new ChangeSet(seq);
+ }
+
+ public CharSequence getLastOutput() {
+ return lastOutput;
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeDataTest.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeDataTest.java
index dd6a8fe2c69..b2be6da80c5 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeDataTest.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeDataTest.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.framework.search.engine.test.attribute;
-
-import junit.framework.Assert;
-import org.eclipse.osee.framework.search.engine.attribute.AttributeData;
-import org.junit.Test;
-
-/**
- * Test Case for {@link AttributeData}
- *
- * @author Roberto E. Escobar
- */
-public class AttributeDataTest {
-
- @Test
- public void testInvalidUriData() {
- AttributeData actual = new AttributeData(1, 4111, 2, "Hello", "myUri", 45);
-
- Assert.assertEquals(1, actual.getArtId());
- Assert.assertEquals(45, actual.getAttrTypeId());
- Assert.assertEquals(4111L, actual.getGammaId());
- Assert.assertEquals(2, actual.getBranchId());
- Assert.assertEquals("Hello", actual.getStringValue());
- Assert.assertEquals("myUri", actual.getUri());
- Assert.assertEquals(false, actual.isUriValid());
- Assert.assertEquals("artId:[1] branchId:[2] gammaId:[4111] uri:[myUri] attrTypeId:[45] isValidUri:[false]",
- actual.toString());
- }
-
- @Test
- public void testValidUriData() {
- AttributeData actual = new AttributeData(1, 4111, 2, "Hello", "attr://myUri", 45);
-
- Assert.assertEquals(1, actual.getArtId());
- Assert.assertEquals(45, actual.getAttrTypeId());
- Assert.assertEquals(4111L, actual.getGammaId());
- Assert.assertEquals(2, actual.getBranchId());
- Assert.assertEquals("Hello", actual.getStringValue());
- Assert.assertEquals("attr://myUri", actual.getUri());
- Assert.assertEquals(true, actual.isUriValid());
- Assert.assertEquals("artId:[1] branchId:[2] gammaId:[4111] uri:[attr://myUri] attrTypeId:[45] isValidUri:[true]",
- actual.toString());
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.attribute;
+
+import junit.framework.Assert;
+import org.eclipse.osee.framework.search.engine.attribute.AttributeData;
+import org.junit.Test;
+
+/**
+ * Test Case for {@link AttributeData}
+ *
+ * @author Roberto E. Escobar
+ */
+public class AttributeDataTest {
+
+ @Test
+ public void testInvalidUriData() {
+ AttributeData actual = new AttributeData(1, 4111, 2, "Hello", "myUri", 45);
+
+ Assert.assertEquals(1, actual.getArtId());
+ Assert.assertEquals(45, actual.getAttrTypeId());
+ Assert.assertEquals(4111L, actual.getGammaId());
+ Assert.assertEquals(2, actual.getBranchId());
+ Assert.assertEquals("Hello", actual.getStringValue());
+ Assert.assertEquals("myUri", actual.getUri());
+ Assert.assertEquals(false, actual.isUriValid());
+ Assert.assertEquals("artId:[1] branchId:[2] gammaId:[4111] uri:[myUri] attrTypeId:[45] isValidUri:[false]",
+ actual.toString());
+ }
+
+ @Test
+ public void testValidUriData() {
+ AttributeData actual = new AttributeData(1, 4111, 2, "Hello", "attr://myUri", 45);
+
+ Assert.assertEquals(1, actual.getArtId());
+ Assert.assertEquals(45, actual.getAttrTypeId());
+ Assert.assertEquals(4111L, actual.getGammaId());
+ Assert.assertEquals(2, actual.getBranchId());
+ Assert.assertEquals("Hello", actual.getStringValue());
+ Assert.assertEquals("attr://myUri", actual.getUri());
+ Assert.assertEquals(true, actual.isUriValid());
+ Assert.assertEquals("artId:[1] branchId:[2] gammaId:[4111] uri:[attr://myUri] attrTypeId:[45] isValidUri:[true]",
+ actual.toString());
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeTestSuite.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeTestSuite.java
index 480e45b2422..1b5915954ed 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/attribute/AttributeTestSuite.java
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.attribute;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-/**
- * @author Roberto E. Escobar
- */
-@RunWith(Suite.class)
-@Suite.SuiteClasses({ //
-AttributeDataTest.class //
-})
-public class AttributeTestSuite {
- // Test Suite Class
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.attribute;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * @author Roberto E. Escobar
+ */
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ //
+AttributeDataTest.class //
+})
+public class AttributeTestSuite {
+ // Test Suite Class
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/EnglishLanguageTest.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/EnglishLanguageTest.java
index 80de1e18f43..fd769f45409 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/EnglishLanguageTest.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/EnglishLanguageTest.java
@@ -1,106 +1,106 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.language;
-
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Scanner;
-import org.eclipse.osee.framework.search.engine.ILanguage;
-import org.eclipse.osee.framework.search.engine.language.EnglishLanguage;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * Test Case for {@link EnglishLanguage}
- *
- * @author Roberto E. Escobar
- */
-public class EnglishLanguageTest {
-
- private static ILanguage language;
-
- @BeforeClass
- public static void setup() {
- language = new EnglishLanguage();
- }
-
- @AfterClass
- public static void tearDown() {
- language = null;
- }
-
- private Map<String, String> getSingularToPluralData() {
- Map<String, String> testMap = new LinkedHashMap<String, String>();
- testMap.put("tries", "try");
- testMap.put("volcanoes", "volcano");
- testMap.put("geese", "goose");
- testMap.put("windows", "window");
- testMap.put("glasses", "glass");
- testMap.put("fishes", "fish");
- testMap.put("houses", "house");
- testMap.put("judges", "judge");
- testMap.put("dishes", "dish");
- testMap.put("phases", "phase");
- testMap.put("witches", "witch");
- testMap.put("baths", "bath");
- testMap.put("calves", "calf");
- testMap.put("lives", "life");
- testMap.put("proofs", "proof");
- testMap.put("boys", "boy");
- testMap.put("dwarfs", "dwarf");
- testMap.put("dwarves", "dwarf");
- testMap.put("hooves", "hoof");
- testMap.put("chairs", "chair");
- testMap.put("heroes", "hero");
- testMap.put("cantos", "canto");
- testMap.put("porticos", "portico");
- testMap.put("indices", "index");
- testMap.put("leaves", "leaf");
- testMap.put("hello", "hello");
- testMap.put("axes", "axis");
- testMap.put("boxes", "box");
- testMap.put("foxes", "fox");
- testMap.put("species", "species");
- testMap.put("series", "series");
- testMap.put("status", "status");
- testMap.put("as", "as");
- testMap.put("appendeces", "appendix");
- testMap.put("don't", "don't");
- testMap.put("yours", "yours");
- testMap.put("Larry's", "Larry");
- testMap.put("Joe's bag of tricks", "Joe bag of trick");
- testMap.put("What's that", "What that");
- testMap.put("Company's books", "Company book");
- testMap.put("Charles's cars", "Charles car");
- testMap.put("witches' brooms", "witch broom");
- testMap.put("babies' beds", "baby bed");
- testMap.put("children's books", "child book");
- return testMap;
- }
-
- @Test
- public void testSingularToPlural() {
- Map<String, String> testMap = getSingularToPluralData();
- for (String key : testMap.keySet()) {
- StringBuilder builder = new StringBuilder();
- Scanner scanner = new Scanner(key);
- while (scanner.hasNext()) {
- if (builder.length() > 0) {
- builder.append(" ");
- }
- builder.append(language.toSingular(scanner.next()));
- }
- Assert.assertEquals(String.format("Original: [%s] ", key), testMap.get(key).toLowerCase(), builder.toString());
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.language;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Scanner;
+import org.eclipse.osee.framework.search.engine.ILanguage;
+import org.eclipse.osee.framework.search.engine.language.EnglishLanguage;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Test Case for {@link EnglishLanguage}
+ *
+ * @author Roberto E. Escobar
+ */
+public class EnglishLanguageTest {
+
+ private static ILanguage language;
+
+ @BeforeClass
+ public static void setup() {
+ language = new EnglishLanguage();
+ }
+
+ @AfterClass
+ public static void tearDown() {
+ language = null;
+ }
+
+ private Map<String, String> getSingularToPluralData() {
+ Map<String, String> testMap = new LinkedHashMap<String, String>();
+ testMap.put("tries", "try");
+ testMap.put("volcanoes", "volcano");
+ testMap.put("geese", "goose");
+ testMap.put("windows", "window");
+ testMap.put("glasses", "glass");
+ testMap.put("fishes", "fish");
+ testMap.put("houses", "house");
+ testMap.put("judges", "judge");
+ testMap.put("dishes", "dish");
+ testMap.put("phases", "phase");
+ testMap.put("witches", "witch");
+ testMap.put("baths", "bath");
+ testMap.put("calves", "calf");
+ testMap.put("lives", "life");
+ testMap.put("proofs", "proof");
+ testMap.put("boys", "boy");
+ testMap.put("dwarfs", "dwarf");
+ testMap.put("dwarves", "dwarf");
+ testMap.put("hooves", "hoof");
+ testMap.put("chairs", "chair");
+ testMap.put("heroes", "hero");
+ testMap.put("cantos", "canto");
+ testMap.put("porticos", "portico");
+ testMap.put("indices", "index");
+ testMap.put("leaves", "leaf");
+ testMap.put("hello", "hello");
+ testMap.put("axes", "axis");
+ testMap.put("boxes", "box");
+ testMap.put("foxes", "fox");
+ testMap.put("species", "species");
+ testMap.put("series", "series");
+ testMap.put("status", "status");
+ testMap.put("as", "as");
+ testMap.put("appendeces", "appendix");
+ testMap.put("don't", "don't");
+ testMap.put("yours", "yours");
+ testMap.put("Larry's", "Larry");
+ testMap.put("Joe's bag of tricks", "Joe bag of trick");
+ testMap.put("What's that", "What that");
+ testMap.put("Company's books", "Company book");
+ testMap.put("Charles's cars", "Charles car");
+ testMap.put("witches' brooms", "witch broom");
+ testMap.put("babies' beds", "baby bed");
+ testMap.put("children's books", "child book");
+ return testMap;
+ }
+
+ @Test
+ public void testSingularToPlural() {
+ Map<String, String> testMap = getSingularToPluralData();
+ for (String key : testMap.keySet()) {
+ StringBuilder builder = new StringBuilder();
+ Scanner scanner = new Scanner(key);
+ while (scanner.hasNext()) {
+ if (builder.length() > 0) {
+ builder.append(" ");
+ }
+ builder.append(language.toSingular(scanner.next()));
+ }
+ Assert.assertEquals(String.format("Original: [%s] ", key), testMap.get(key).toLowerCase(), builder.toString());
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/LanguageTestSuite.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/LanguageTestSuite.java
index af7d0dd8de9..59dec9c4fca 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/LanguageTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/language/LanguageTestSuite.java
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.language;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-/**
- * @author Roberto E. Escobar
- */
-@RunWith(Suite.class)
-@Suite.SuiteClasses({ //
-EnglishLanguageTest.class,//
-})
-public class LanguageTestSuite {
- // Test Suite Class
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.language;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * @author Roberto E. Escobar
+ */
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ //
+EnglishLanguageTest.class,//
+})
+public class LanguageTestSuite {
+ // Test Suite Class
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/EngineAsserts.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/EngineAsserts.java
index fdd5bfb9af3..fa8755b6562 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/EngineAsserts.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/EngineAsserts.java
@@ -1,91 +1,91 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.mocks;
-
-import java.util.ArrayList;
-import java.util.List;
-import junit.framework.Assert;
-import org.eclipse.osee.framework.jdk.core.type.Pair;
-import org.eclipse.osee.framework.search.engine.MatchLocation;
-import org.eclipse.osee.framework.search.engine.attribute.AttributeData;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class EngineAsserts {
-
- private EngineAsserts() {
- // Test Utility Class
- }
-
- public static void assertTagsEqual(List<Pair<String, Long>> expected, List<Pair<String, Long>> actual) {
- Assert.assertEquals(expected.size(), actual.size());
-
- for (int index = 0; index < expected.size(); index++) {
- assertEquals(expected.get(index), actual.get(index));
- }
- }
-
- public static void assertEquals(List<MatchLocation> expected, List<MatchLocation> actual) {
- Assert.assertEquals(expected.size(), actual.size());
-
- for (int index = 0; index < expected.size(); index++) {
- assertEquals(expected.get(index), actual.get(index));
- }
- }
-
- public static final void assertEquals(AttributeData expected, AttributeData actual) {
- if (expected == null) {
- Assert.assertNull(actual);
- } else {
- Assert.assertEquals(expected.getArtId(), actual.getArtId());
- Assert.assertEquals(expected.getAttrTypeId(), actual.getAttrTypeId());
- Assert.assertEquals(expected.getGammaId(), actual.getGammaId());
- Assert.assertEquals(expected.getBranchId(), actual.getBranchId());
- Assert.assertEquals(expected.getStringValue(), actual.getStringValue());
- Assert.assertEquals(expected.getUri(), actual.getUri());
- Assert.assertEquals(expected.isUriValid(), actual.isUriValid());
- }
- }
-
- public static void assertEquals(Pair<String, Long> expected, Pair<String, Long> actual) {
- Assert.assertEquals(expected.getFirst(), actual.getFirst());
- Assert.assertEquals(expected.getSecond(), actual.getSecond());
- }
-
- public static void assertEquals(MatchLocation expected, MatchLocation actual) {
- if (expected == null) {
- Assert.assertNull(actual);
- } else {
- Assert.assertEquals(expected.getStartPosition(), actual.getStartPosition());
- Assert.assertEquals(expected.getEndPosition(), actual.getEndPosition());
- Assert.assertEquals(expected.toString(), actual.toString());
- }
- }
-
- public static List<Pair<String, Long>> asTags(String word, long... entries) {
- List<Pair<String, Long>> data = new ArrayList<Pair<String, Long>>();
- for (int index = 0; index < entries.length; index++) {
- data.add(new Pair<String, Long>(word, entries[index]));
- }
- return data;
- }
-
- public static List<MatchLocation> asLocations(int... data) {
- List<MatchLocation> locations = new ArrayList<MatchLocation>();
- if (data != null && data.length > 0) {
- for (int index = 0; index < data.length; index++) {
- locations.add(new MatchLocation(data[index], data[++index]));
- }
- }
- return locations;
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.mocks;
+
+import java.util.ArrayList;
+import java.util.List;
+import junit.framework.Assert;
+import org.eclipse.osee.framework.jdk.core.type.Pair;
+import org.eclipse.osee.framework.search.engine.MatchLocation;
+import org.eclipse.osee.framework.search.engine.attribute.AttributeData;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class EngineAsserts {
+
+ private EngineAsserts() {
+ // Test Utility Class
+ }
+
+ public static void assertTagsEqual(List<Pair<String, Long>> expected, List<Pair<String, Long>> actual) {
+ Assert.assertEquals(expected.size(), actual.size());
+
+ for (int index = 0; index < expected.size(); index++) {
+ assertEquals(expected.get(index), actual.get(index));
+ }
+ }
+
+ public static void assertEquals(List<MatchLocation> expected, List<MatchLocation> actual) {
+ Assert.assertEquals(expected.size(), actual.size());
+
+ for (int index = 0; index < expected.size(); index++) {
+ assertEquals(expected.get(index), actual.get(index));
+ }
+ }
+
+ public static final void assertEquals(AttributeData expected, AttributeData actual) {
+ if (expected == null) {
+ Assert.assertNull(actual);
+ } else {
+ Assert.assertEquals(expected.getArtId(), actual.getArtId());
+ Assert.assertEquals(expected.getAttrTypeId(), actual.getAttrTypeId());
+ Assert.assertEquals(expected.getGammaId(), actual.getGammaId());
+ Assert.assertEquals(expected.getBranchId(), actual.getBranchId());
+ Assert.assertEquals(expected.getStringValue(), actual.getStringValue());
+ Assert.assertEquals(expected.getUri(), actual.getUri());
+ Assert.assertEquals(expected.isUriValid(), actual.isUriValid());
+ }
+ }
+
+ public static void assertEquals(Pair<String, Long> expected, Pair<String, Long> actual) {
+ Assert.assertEquals(expected.getFirst(), actual.getFirst());
+ Assert.assertEquals(expected.getSecond(), actual.getSecond());
+ }
+
+ public static void assertEquals(MatchLocation expected, MatchLocation actual) {
+ if (expected == null) {
+ Assert.assertNull(actual);
+ } else {
+ Assert.assertEquals(expected.getStartPosition(), actual.getStartPosition());
+ Assert.assertEquals(expected.getEndPosition(), actual.getEndPosition());
+ Assert.assertEquals(expected.toString(), actual.toString());
+ }
+ }
+
+ public static List<Pair<String, Long>> asTags(String word, long... entries) {
+ List<Pair<String, Long>> data = new ArrayList<Pair<String, Long>>();
+ for (int index = 0; index < entries.length; index++) {
+ data.add(new Pair<String, Long>(word, entries[index]));
+ }
+ return data;
+ }
+
+ public static List<MatchLocation> asLocations(int... data) {
+ List<MatchLocation> locations = new ArrayList<MatchLocation>();
+ if (data != null && data.length > 0) {
+ for (int index = 0; index < data.length; index++) {
+ locations.add(new MatchLocation(data[index], data[++index]));
+ }
+ }
+ return locations;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/TagCollector.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/TagCollector.java
index a8ee3a0eb89..f7137f2cd8a 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/TagCollector.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/mocks/TagCollector.java
@@ -1,32 +1,32 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.mocks;
-
-import java.util.Collection;
-import org.eclipse.osee.framework.jdk.core.type.Pair;
-import org.eclipse.osee.framework.search.engine.utility.ITagCollector;
-
-/**
- * @author Roberto E. Escobar
- */
-public class TagCollector implements ITagCollector {
-
- private final Collection<Pair<String, Long>> actualTags;
-
- public TagCollector(Collection<Pair<String, Long>> actualTags) {
- this.actualTags = actualTags;
- }
-
- @Override
- public void addTag(String word, Long codedTag) {
- actualTags.add(new Pair<String, Long>(word, codedTag));
- }
+/*******************************************************************************
+ * 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.framework.search.engine.test.mocks;
+
+import java.util.Collection;
+import org.eclipse.osee.framework.jdk.core.type.Pair;
+import org.eclipse.osee.framework.search.engine.utility.ITagCollector;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class TagCollector implements ITagCollector {
+
+ private final Collection<Pair<String, Long>> actualTags;
+
+ public TagCollector(Collection<Pair<String, Long>> actualTags) {
+ this.actualTags = actualTags;
+ }
+
+ @Override
+ public void addTag(String word, Long codedTag) {
+ actualTags.add(new Pair<String, Long>(word, codedTag));
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.java
index bdc1853fcc0..45c233fc4bb 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/TagEncoderTest.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.framework.search.engine.test.utility;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.jdk.core.type.Pair;
-import org.eclipse.osee.framework.search.engine.test.mocks.EngineAsserts;
-import org.eclipse.osee.framework.search.engine.test.mocks.TagCollector;
-import org.eclipse.osee.framework.search.engine.utility.TagEncoder;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameters;
-
-/**
- * Test Case for {@link TagEncoder}
- *
- * @author Roberto E. Escobar
- */
-@RunWith(Parameterized.class)
-public class TagEncoderTest {
-
- private final List<Pair<String, Long>> expected;
- private final String toEncode;
-
- public TagEncoderTest(String toEncode, List<Pair<String, Long>> expected) {
- this.toEncode = toEncode;
- this.expected = expected;
- }
-
- @Test
- public void testTagEncoder() {
- List<Pair<String, Long>> actualTags = new ArrayList<Pair<String, Long>>();
- TagEncoder.encode(toEncode, new TagCollector(actualTags));
- EngineAsserts.assertTagsEqual(expected, actualTags);
- }
-
- @Parameters
- public static Collection<Object[]> data() {
- List<Object[]> data = new ArrayList<Object[]>();
- data.add(new Object[] {"hello", EngineAsserts.asTags("hello", 1520625)});
- data.add(new Object[] {"what happens when we have a long string",
- EngineAsserts.asTags("what happens when we have a long string", 2080358399, -545259521, 290692031)});
- return data;
- }
-
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.utility;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.osee.framework.jdk.core.type.Pair;
+import org.eclipse.osee.framework.search.engine.test.mocks.EngineAsserts;
+import org.eclipse.osee.framework.search.engine.test.mocks.TagCollector;
+import org.eclipse.osee.framework.search.engine.utility.TagEncoder;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+
+/**
+ * Test Case for {@link TagEncoder}
+ *
+ * @author Roberto E. Escobar
+ */
+@RunWith(Parameterized.class)
+public class TagEncoderTest {
+
+ private final List<Pair<String, Long>> expected;
+ private final String toEncode;
+
+ public TagEncoderTest(String toEncode, List<Pair<String, Long>> expected) {
+ this.toEncode = toEncode;
+ this.expected = expected;
+ }
+
+ @Test
+ public void testTagEncoder() {
+ List<Pair<String, Long>> actualTags = new ArrayList<Pair<String, Long>>();
+ TagEncoder.encode(toEncode, new TagCollector(actualTags));
+ EngineAsserts.assertTagsEqual(expected, actualTags);
+ }
+
+ @Parameters
+ public static Collection<Object[]> data() {
+ List<Object[]> data = new ArrayList<Object[]>();
+ data.add(new Object[] {"hello", EngineAsserts.asTags("hello", 1520625)});
+ data.add(new Object[] {"what happens when we have a long string",
+ EngineAsserts.asTags("what happens when we have a long string", 2080358399, -545259521, 290692031)});
+ return data;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/WordOrderMatcherTest.java b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/WordOrderMatcherTest.java
index 0d7c3b79959..aee9c5a9faf 100644
--- a/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/WordOrderMatcherTest.java
+++ b/plugins/org.eclipse.osee.framework.search.engine.test/src/org/eclipse/osee/framework/search/engine/test/utility/WordOrderMatcherTest.java
@@ -1,79 +1,79 @@
-/*******************************************************************************
- * 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.framework.search.engine.test.utility;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.search.engine.MatchLocation;
-import org.eclipse.osee.framework.search.engine.SearchOptions;
-import org.eclipse.osee.framework.search.engine.SearchOptions.SearchOptionsEnum;
-import org.eclipse.osee.framework.search.engine.test.mocks.EngineAsserts;
-import org.eclipse.osee.framework.search.engine.utility.WordOrderMatcher;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameters;
-
-/**
- * Test Case for {@link WordOrderMatcher}
- *
- * @author Roberto E. Escobar
- */
-@RunWith(Parameterized.class)
-public class WordOrderMatcherTest {
-
- private final String toSearch;
- private final String data;
- private final List<MatchLocation> expected;
- private final SearchOptions options;
-
- public WordOrderMatcherTest(String data, String toSearch, boolean caseSensitive, boolean allLocations, List<MatchLocation> expected) {
- super();
- this.toSearch = toSearch;
- this.data = data;
- this.expected = expected;
- this.options = new SearchOptions();
- options.put(SearchOptionsEnum.case_sensitive.asStringOption(), caseSensitive);
- options.put(SearchOptionsEnum.find_all_locations.asStringOption(), allLocations);
- }
-
- @Test
- public void testWordOrderMatcher() throws UnsupportedEncodingException, OseeCoreException {
- InputStream inputStream = toStream(data);
- List<MatchLocation> actual = WordOrderMatcher.findInStream(inputStream, toSearch, options);
- EngineAsserts.assertEquals(expected, actual);
- }
-
- @Parameters
- public static Collection<Object[]> data() {
- List<Object[]> data = new ArrayList<Object[]>();
- data.add(new Object[] {"Why is this here again.", "THIS", false, false, getLocs(8, 11)});
- data.add(new Object[] {"Why is this here again.", "THIS", true, false, getLocs()});
- data.add(new Object[] {"Why is this here this again.", "THIS", false, false, getLocs(8, 11)});
- data.add(new Object[] {"Why is this here this again.", "THIS", false, true, getLocs(8, 11, 18, 21)});
- data.add(new Object[] {"hello #@!@$$%'- again.", "hello again", false, false, getLocs(1, 21)});
- data.add(new Object[] {"hello word again.", "hello again", false, false, getLocs()});
- return data;
- }
-
- private static List<MatchLocation> getLocs(int... data) {
- return EngineAsserts.asLocations(data);
- }
-
- private InputStream toStream(String value) throws UnsupportedEncodingException {
- return new ByteArrayInputStream(value.getBytes("utf-8"));
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.test.utility;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.search.engine.MatchLocation;
+import org.eclipse.osee.framework.search.engine.SearchOptions;
+import org.eclipse.osee.framework.search.engine.SearchOptions.SearchOptionsEnum;
+import org.eclipse.osee.framework.search.engine.test.mocks.EngineAsserts;
+import org.eclipse.osee.framework.search.engine.utility.WordOrderMatcher;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+
+/**
+ * Test Case for {@link WordOrderMatcher}
+ *
+ * @author Roberto E. Escobar
+ */
+@RunWith(Parameterized.class)
+public class WordOrderMatcherTest {
+
+ private final String toSearch;
+ private final String data;
+ private final List<MatchLocation> expected;
+ private final SearchOptions options;
+
+ public WordOrderMatcherTest(String data, String toSearch, boolean caseSensitive, boolean allLocations, List<MatchLocation> expected) {
+ super();
+ this.toSearch = toSearch;
+ this.data = data;
+ this.expected = expected;
+ this.options = new SearchOptions();
+ options.put(SearchOptionsEnum.case_sensitive.asStringOption(), caseSensitive);
+ options.put(SearchOptionsEnum.find_all_locations.asStringOption(), allLocations);
+ }
+
+ @Test
+ public void testWordOrderMatcher() throws UnsupportedEncodingException, OseeCoreException {
+ InputStream inputStream = toStream(data);
+ List<MatchLocation> actual = WordOrderMatcher.findInStream(inputStream, toSearch, options);
+ EngineAsserts.assertEquals(expected, actual);
+ }
+
+ @Parameters
+ public static Collection<Object[]> data() {
+ List<Object[]> data = new ArrayList<Object[]>();
+ data.add(new Object[] {"Why is this here again.", "THIS", false, false, getLocs(8, 11)});
+ data.add(new Object[] {"Why is this here again.", "THIS", true, false, getLocs()});
+ data.add(new Object[] {"Why is this here this again.", "THIS", false, false, getLocs(8, 11)});
+ data.add(new Object[] {"Why is this here this again.", "THIS", false, true, getLocs(8, 11, 18, 21)});
+ data.add(new Object[] {"hello #@!@$$%'- again.", "hello again", false, false, getLocs(1, 21)});
+ data.add(new Object[] {"hello word again.", "hello again", false, false, getLocs()});
+ return data;
+ }
+
+ private static List<MatchLocation> getLocs(int... data) {
+ return EngineAsserts.asLocations(data);
+ }
+
+ private InputStream toStream(String value) throws UnsupportedEncodingException {
+ return new ByteArrayInputStream(value.getBytes("utf-8"));
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/ILanguage.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/ILanguage.java
index 79df521ca2a..181c6a21616 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/ILanguage.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/ILanguage.java
@@ -1,21 +1,21 @@
-/*******************************************************************************
- * 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.framework.search.engine;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface ILanguage {
-
- public boolean isWord(String rawText);
-
- public String toSingular(String rawText);
-}
+/*******************************************************************************
+ * 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.framework.search.engine;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface ILanguage {
+
+ public boolean isWord(String rawText);
+
+ public String toSingular(String rawText);
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java
index aa4a594ccd8..f673fe32636 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggerProviderServiceRegHandler.java
@@ -1,69 +1,69 @@
-/*******************************************************************************
- * 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.framework.search.engine.internal.services;
-
-import java.util.Map;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.core.util.OsgiUtil;
-import org.eclipse.osee.framework.resource.management.IResourceLocatorManager;
-import org.eclipse.osee.framework.resource.management.IResourceManager;
-import org.eclipse.osee.framework.search.engine.IAttributeTaggerProvider;
-import org.eclipse.osee.framework.search.engine.tagger.DefaultAttributeTaggerProvider;
-import org.eclipse.osee.framework.search.engine.tagger.XmlAttributeTaggerProvider;
-import org.eclipse.osee.framework.search.engine.utility.TagProcessor;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AttributeTaggerProviderServiceRegHandler extends AbstractTrackingHandler {
-
- //@formatter:off
- private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
- IResourceLocatorManager.class,
- IResourceManager.class
- };
- //@formatter:on
-
- private final TagProcessor tagProcess;
- private ServiceRegistration serviceRegistration1;
- private ServiceRegistration serviceRegistration2;
-
- public AttributeTaggerProviderServiceRegHandler(TagProcessor tagProcess) {
- super();
- this.tagProcess = tagProcess;
- }
-
- @Override
- public Class<?>[] getDependencies() {
- return SERVICE_DEPENDENCIES;
- }
-
- @Override
- public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
- IResourceLocatorManager locatorManager = getService(IResourceLocatorManager.class, services);
- IResourceManager resourceManager = getService(IResourceManager.class, services);
-
- IAttributeTaggerProvider tagger1 =
- new DefaultAttributeTaggerProvider(tagProcess, locatorManager, resourceManager);
- IAttributeTaggerProvider tagger2 = new XmlAttributeTaggerProvider(tagProcess, locatorManager, resourceManager);
-
- serviceRegistration1 = context.registerService(IAttributeTaggerProvider.class.getName(), tagger1, null);
- serviceRegistration2 = context.registerService(IAttributeTaggerProvider.class.getName(), tagger2, null);
- }
-
- @Override
- public void onDeActivate() {
- OsgiUtil.close(serviceRegistration1);
- OsgiUtil.close(serviceRegistration2);
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.internal.services;
+
+import java.util.Map;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.core.util.OsgiUtil;
+import org.eclipse.osee.framework.resource.management.IResourceLocatorManager;
+import org.eclipse.osee.framework.resource.management.IResourceManager;
+import org.eclipse.osee.framework.search.engine.IAttributeTaggerProvider;
+import org.eclipse.osee.framework.search.engine.tagger.DefaultAttributeTaggerProvider;
+import org.eclipse.osee.framework.search.engine.tagger.XmlAttributeTaggerProvider;
+import org.eclipse.osee.framework.search.engine.utility.TagProcessor;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AttributeTaggerProviderServiceRegHandler extends AbstractTrackingHandler {
+
+ //@formatter:off
+ private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
+ IResourceLocatorManager.class,
+ IResourceManager.class
+ };
+ //@formatter:on
+
+ private final TagProcessor tagProcess;
+ private ServiceRegistration serviceRegistration1;
+ private ServiceRegistration serviceRegistration2;
+
+ public AttributeTaggerProviderServiceRegHandler(TagProcessor tagProcess) {
+ super();
+ this.tagProcess = tagProcess;
+ }
+
+ @Override
+ public Class<?>[] getDependencies() {
+ return SERVICE_DEPENDENCIES;
+ }
+
+ @Override
+ public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
+ IResourceLocatorManager locatorManager = getService(IResourceLocatorManager.class, services);
+ IResourceManager resourceManager = getService(IResourceManager.class, services);
+
+ IAttributeTaggerProvider tagger1 =
+ new DefaultAttributeTaggerProvider(tagProcess, locatorManager, resourceManager);
+ IAttributeTaggerProvider tagger2 = new XmlAttributeTaggerProvider(tagProcess, locatorManager, resourceManager);
+
+ serviceRegistration1 = context.registerService(IAttributeTaggerProvider.class.getName(), tagger1, null);
+ serviceRegistration2 = context.registerService(IAttributeTaggerProvider.class.getName(), tagger2, null);
+ }
+
+ @Override
+ public void onDeActivate() {
+ OsgiUtil.close(serviceRegistration1);
+ OsgiUtil.close(serviceRegistration2);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggingManagerServiceRegHandler.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggingManagerServiceRegHandler.java
index c48c95b1bb9..c6d27cc0a03 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggingManagerServiceRegHandler.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/AttributeTaggingManagerServiceRegHandler.java
@@ -1,79 +1,79 @@
-/*******************************************************************************
- * 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.framework.search.engine.internal.services;
-
-import java.util.HashMap;
-import java.util.Map;
-import org.eclipse.osee.framework.core.model.cache.AttributeTypeCache;
-import org.eclipse.osee.framework.core.services.IOseeCachingService;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.core.util.OsgiUtil;
-import org.eclipse.osee.framework.core.util.ServiceBindType;
-import org.eclipse.osee.framework.search.engine.IAttributeTaggerProvider;
-import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
-import org.eclipse.osee.framework.search.engine.internal.AttributeTaggerProviderManagerImpl;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AttributeTaggingManagerServiceRegHandler extends AbstractTrackingHandler {
-
- private final Map<Class<?>, ServiceBindType> serviceDependencies = new HashMap<Class<?>, ServiceBindType>();
-
- private IAttributeTaggerProviderManager attributeTaggerManager;
- private ServiceRegistration serviceRegistration;
-
- public AttributeTaggingManagerServiceRegHandler() {
- super();
- this.serviceDependencies.put(IOseeCachingService.class, ServiceBindType.SINGLETON);
- this.serviceDependencies.put(IAttributeTaggerProvider.class, ServiceBindType.MANY);
- }
-
- @Override
- public Class<?>[] getDependencies() {
- return null;
- }
-
- @Override
- public Map<Class<?>, ServiceBindType> getConfiguredDependencies() {
- return serviceDependencies;
- }
-
- @Override
- public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
- IOseeCachingService cachingService = getService(IOseeCachingService.class, services);
- IAttributeTaggerProvider attributeTaggerProvider = getService(IAttributeTaggerProvider.class, services);
-
- AttributeTypeCache attributeTypeCache = cachingService.getAttributeTypeCache();
-
- attributeTaggerManager = new AttributeTaggerProviderManagerImpl(attributeTypeCache);
- attributeTaggerManager.addAttributeTaggerProvider(attributeTaggerProvider);
- serviceRegistration =
- context.registerService(IAttributeTaggerProviderManager.class.getName(), attributeTaggerManager, null);
- }
-
- @Override
- public void onServiceAdded(BundleContext context, Class<?> clazz, Object services) {
- attributeTaggerManager.addAttributeTaggerProvider((IAttributeTaggerProvider) services);
- }
-
- @Override
- public void onServiceRemoved(BundleContext context, Class<?> clazz, Object services) {
- attributeTaggerManager.removeAttributeTaggerProvider((IAttributeTaggerProvider) services);
- }
-
- @Override
- public void onDeActivate() {
- OsgiUtil.close(serviceRegistration);
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.internal.services;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.eclipse.osee.framework.core.model.cache.AttributeTypeCache;
+import org.eclipse.osee.framework.core.services.IOseeCachingService;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.core.util.OsgiUtil;
+import org.eclipse.osee.framework.core.util.ServiceBindType;
+import org.eclipse.osee.framework.search.engine.IAttributeTaggerProvider;
+import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
+import org.eclipse.osee.framework.search.engine.internal.AttributeTaggerProviderManagerImpl;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AttributeTaggingManagerServiceRegHandler extends AbstractTrackingHandler {
+
+ private final Map<Class<?>, ServiceBindType> serviceDependencies = new HashMap<Class<?>, ServiceBindType>();
+
+ private IAttributeTaggerProviderManager attributeTaggerManager;
+ private ServiceRegistration serviceRegistration;
+
+ public AttributeTaggingManagerServiceRegHandler() {
+ super();
+ this.serviceDependencies.put(IOseeCachingService.class, ServiceBindType.SINGLETON);
+ this.serviceDependencies.put(IAttributeTaggerProvider.class, ServiceBindType.MANY);
+ }
+
+ @Override
+ public Class<?>[] getDependencies() {
+ return null;
+ }
+
+ @Override
+ public Map<Class<?>, ServiceBindType> getConfiguredDependencies() {
+ return serviceDependencies;
+ }
+
+ @Override
+ public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
+ IOseeCachingService cachingService = getService(IOseeCachingService.class, services);
+ IAttributeTaggerProvider attributeTaggerProvider = getService(IAttributeTaggerProvider.class, services);
+
+ AttributeTypeCache attributeTypeCache = cachingService.getAttributeTypeCache();
+
+ attributeTaggerManager = new AttributeTaggerProviderManagerImpl(attributeTypeCache);
+ attributeTaggerManager.addAttributeTaggerProvider(attributeTaggerProvider);
+ serviceRegistration =
+ context.registerService(IAttributeTaggerProviderManager.class.getName(), attributeTaggerManager, null);
+ }
+
+ @Override
+ public void onServiceAdded(BundleContext context, Class<?> clazz, Object services) {
+ attributeTaggerManager.addAttributeTaggerProvider((IAttributeTaggerProvider) services);
+ }
+
+ @Override
+ public void onServiceRemoved(BundleContext context, Class<?> clazz, Object services) {
+ attributeTaggerManager.removeAttributeTaggerProvider((IAttributeTaggerProvider) services);
+ }
+
+ @Override
+ public void onDeActivate() {
+ OsgiUtil.close(serviceRegistration);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineRegHandler.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineRegHandler.java
index 46d36f1c4c5..1fb74af1b4c 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineRegHandler.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineRegHandler.java
@@ -1,65 +1,65 @@
-/*******************************************************************************
- * 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.framework.search.engine.internal.services;
-
-import java.util.Map;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.core.util.OsgiUtil;
-import org.eclipse.osee.framework.database.IOseeDatabaseService;
-import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
-import org.eclipse.osee.framework.search.engine.ISearchEngine;
-import org.eclipse.osee.framework.search.engine.internal.search.SearchEngine;
-import org.eclipse.osee.framework.search.engine.internal.search.SearchStatistics;
-import org.eclipse.osee.framework.search.engine.utility.TagProcessor;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class SearchEngineRegHandler extends AbstractTrackingHandler {
-
- //@formatter:off
- private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
- IAttributeTaggerProviderManager.class,
- IOseeDatabaseService.class
- };
- //@formatter:on
-
- private ServiceRegistration serviceRegistration;
- private final TagProcessor processor;
-
- public SearchEngineRegHandler(TagProcessor processor) {
- this.processor = processor;
- }
-
- @Override
- public Class<?>[] getDependencies() {
- return SERVICE_DEPENDENCIES;
- }
-
- @Override
- public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
- // IOseeDatabaseService databaseService = getService(IOseeDatabaseService.class, services);
- IAttributeTaggerProviderManager taggingManager = getService(IAttributeTaggerProviderManager.class, services);
-
- SearchStatistics searchStatistics = new SearchStatistics();
-
- ISearchEngine searchEngine = new SearchEngine(searchStatistics, processor, taggingManager);
- serviceRegistration = context.registerService(ISearchEngine.class.getName(), searchEngine, null);
- }
-
- @Override
- public void onDeActivate() {
- OsgiUtil.close(serviceRegistration);
- }
-
-}
+/*******************************************************************************
+ * 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.framework.search.engine.internal.services;
+
+import java.util.Map;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.core.util.OsgiUtil;
+import org.eclipse.osee.framework.database.IOseeDatabaseService;
+import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
+import org.eclipse.osee.framework.search.engine.ISearchEngine;
+import org.eclipse.osee.framework.search.engine.internal.search.SearchEngine;
+import org.eclipse.osee.framework.search.engine.internal.search.SearchStatistics;
+import org.eclipse.osee.framework.search.engine.utility.TagProcessor;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class SearchEngineRegHandler extends AbstractTrackingHandler {
+
+ //@formatter:off
+ private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
+ IAttributeTaggerProviderManager.class,
+ IOseeDatabaseService.class
+ };
+ //@formatter:on
+
+ private ServiceRegistration serviceRegistration;
+ private final TagProcessor processor;
+
+ public SearchEngineRegHandler(TagProcessor processor) {
+ this.processor = processor;
+ }
+
+ @Override
+ public Class<?>[] getDependencies() {
+ return SERVICE_DEPENDENCIES;
+ }
+
+ @Override
+ public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
+ // IOseeDatabaseService databaseService = getService(IOseeDatabaseService.class, services);
+ IAttributeTaggerProviderManager taggingManager = getService(IAttributeTaggerProviderManager.class, services);
+
+ SearchStatistics searchStatistics = new SearchStatistics();
+
+ ISearchEngine searchEngine = new SearchEngine(searchStatistics, processor, taggingManager);
+ serviceRegistration = context.registerService(ISearchEngine.class.getName(), searchEngine, null);
+ }
+
+ @Override
+ public void onDeActivate() {
+ OsgiUtil.close(serviceRegistration);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.java
index 5f91f90a71e..51757a22836 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/internal/services/SearchEngineTaggerRegHandler.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.framework.search.engine.internal.services;
-
-import java.util.Map;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ThreadFactory;
-import org.eclipse.osee.framework.core.server.IApplicationServerManager;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.core.util.OsgiUtil;
-import org.eclipse.osee.framework.database.IOseeDatabaseService;
-import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
-import org.eclipse.osee.framework.search.engine.ISearchEngineTagger;
-import org.eclipse.osee.framework.search.engine.internal.tagger.SearchEngineTagger;
-import org.eclipse.osee.framework.search.engine.utility.SearchTagDataStore;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class SearchEngineTaggerRegHandler extends AbstractTrackingHandler {
-
- //@formatter:off
- private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
- IApplicationServerManager.class,
- IOseeDatabaseService.class,
- IAttributeTaggerProviderManager.class
- };
- //@formatter:on
-
- private ServiceRegistration serviceRegistration;
-
- @Override
- public Class<?>[] getDependencies() {
- return SERVICE_DEPENDENCIES;
- }
-
- @Override
- public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
- IOseeDatabaseService databaseService = getService(IOseeDatabaseService.class, services);
- IApplicationServerManager serverManager = getService(IApplicationServerManager.class, services);
- IAttributeTaggerProviderManager taggingManager = getService(IAttributeTaggerProviderManager.class, services);
-
- ThreadFactory threadFactory = serverManager.createNewThreadFactory("tagger.worker", Thread.NORM_PRIORITY);
- ExecutorService executorService = Executors.newFixedThreadPool(3, threadFactory);
-
- SearchTagDataStore dataStore = new SearchTagDataStore(databaseService);
- ISearchEngineTagger tagger = new SearchEngineTagger(executorService, dataStore, taggingManager);
-
- serviceRegistration = context.registerService(ISearchEngineTagger.class.getName(), tagger, null);
- }
-
- @Override
- public void onDeActivate() {
- OsgiUtil.close(serviceRegistration);
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.internal.services;
+
+import java.util.Map;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ThreadFactory;
+import org.eclipse.osee.framework.core.server.IApplicationServerManager;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.core.util.OsgiUtil;
+import org.eclipse.osee.framework.database.IOseeDatabaseService;
+import org.eclipse.osee.framework.search.engine.IAttributeTaggerProviderManager;
+import org.eclipse.osee.framework.search.engine.ISearchEngineTagger;
+import org.eclipse.osee.framework.search.engine.internal.tagger.SearchEngineTagger;
+import org.eclipse.osee.framework.search.engine.utility.SearchTagDataStore;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class SearchEngineTaggerRegHandler extends AbstractTrackingHandler {
+
+ //@formatter:off
+ private static final Class<?>[] SERVICE_DEPENDENCIES = new Class<?>[] {
+ IApplicationServerManager.class,
+ IOseeDatabaseService.class,
+ IAttributeTaggerProviderManager.class
+ };
+ //@formatter:on
+
+ private ServiceRegistration serviceRegistration;
+
+ @Override
+ public Class<?>[] getDependencies() {
+ return SERVICE_DEPENDENCIES;
+ }
+
+ @Override
+ public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
+ IOseeDatabaseService databaseService = getService(IOseeDatabaseService.class, services);
+ IApplicationServerManager serverManager = getService(IApplicationServerManager.class, services);
+ IAttributeTaggerProviderManager taggingManager = getService(IAttributeTaggerProviderManager.class, services);
+
+ ThreadFactory threadFactory = serverManager.createNewThreadFactory("tagger.worker", Thread.NORM_PRIORITY);
+ ExecutorService executorService = Executors.newFixedThreadPool(3, threadFactory);
+
+ SearchTagDataStore dataStore = new SearchTagDataStore(databaseService);
+ ISearchEngineTagger tagger = new SearchEngineTagger(executorService, dataStore, taggingManager);
+
+ serviceRegistration = context.registerService(ISearchEngineTagger.class.getName(), tagger, null);
+ }
+
+ @Override
+ public void onDeActivate() {
+ OsgiUtil.close(serviceRegistration);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/language/EnglishLanguage.java b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/language/EnglishLanguage.java
index 476d62e68d5..6b4a37c6347 100644
--- a/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/language/EnglishLanguage.java
+++ b/plugins/org.eclipse.osee.framework.search.engine/src/org/eclipse/osee/framework/search/engine/language/EnglishLanguage.java
@@ -1,131 +1,131 @@
-/*******************************************************************************
- * 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.framework.search.engine.language;
-
-import java.io.BufferedInputStream;
-import java.io.InputStream;
-import java.net.URL;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.search.engine.ILanguage;
-import org.eclipse.osee.framework.search.engine.internal.Activator;
-
-/**
- * @author Roberto E. Escobar
- */
-public class EnglishLanguage implements ILanguage {
-
- private static final String VOWELS = "aeiou";
- private static final String IES_ENDING = "ies";
- private static final String OES_ENDING = "oes";
- private static final String ES_ENDING = "es";
- private static final String S_ENDING = "s";
- private static final String VES_ENDING = "ves";
- private static final String[] SPECIAL_ES_ENDING_CASES = new String[] {"ss", "sh", "ch", "x"};
- private static final Collection<String> wordsToSkip = Arrays.asList("ies", "s", "oes", "es");
-
- private final Properties dictionary = new Properties();
- private boolean isInitialized = false;
-
- private boolean hasConstantBeforeEnding(String word, String ending) {
- if (!word.equals(ending)) {
- String remainder = word.substring(word.length() - (ending.length() + 1));
- return VOWELS.indexOf(remainder, 1) < 0;
- } else {
- return false;
- }
- }
-
- private boolean hasEitherSequenceBeforeEnding(String word, String ending, String... sequences) {
- boolean toReturn = false;
- String remainder = word.substring(0, word.length() - ending.length());
- for (String sequence : sequences) {
- toReturn |= remainder.endsWith(sequence);
- }
- return toReturn;
- }
-
- private static String replaceEndingWith(String word, String ending, String replaceWith) {
- return word.substring(0, word.length() - ending.length()) + replaceWith;
- }
-
- private String stripPossesive(String original) {
- String toReturn = original;
- if (original != null && original.length() > 0) {
- if (original.lastIndexOf('\'') == original.length() - 1) {
- toReturn = replaceEndingWith(original, "'", "");
- } else if (original.endsWith("'s")) {
- toReturn = replaceEndingWith(original, "'s", "");
- }
- }
- return toReturn;
- }
-
- @Override
- public boolean isWord(String rawText) {
- return !wordsToSkip.contains(rawText);
- }
-
- @Override
- public String toSingular(String rawText) {
- String word = stripPossesive(rawText);
- word = word.toLowerCase();
- String toReturn = getSingular(word);
- if (toReturn == null) {
- if (word.endsWith(IES_ENDING) && hasConstantBeforeEnding(word, IES_ENDING)) {
- toReturn = replaceEndingWith(word, IES_ENDING, "y");
- } else if (word.endsWith(OES_ENDING) && hasConstantBeforeEnding(word, OES_ENDING)) {
- toReturn = replaceEndingWith(word, OES_ENDING, "o");
- } else if (word.endsWith(ES_ENDING) && hasConstantBeforeEnding(word, ES_ENDING)) {
- String replaceWith = "e";
- String ending = ES_ENDING;
- if (hasEitherSequenceBeforeEnding(word, ES_ENDING, SPECIAL_ES_ENDING_CASES)) {
- replaceWith = Strings.emptyString();
- } else if (hasEitherSequenceBeforeEnding(word, ES_ENDING, "v")) {
- ending = VES_ENDING;
- replaceWith = "f";
- }
- toReturn = replaceEndingWith(word, ending, replaceWith);
- } else if (word.endsWith(S_ENDING)) {
- toReturn = word.substring(0, word.length() - 1);
- } else {
- toReturn = word;
- }
- }
- return toReturn;
- }
-
- public String getSingular(String word) {
- ensureIntialized();
- return dictionary.getProperty(word);
- }
-
- private synchronized void ensureIntialized() {
- if (!isInitialized) {
- isInitialized = true;
- InputStream inputStream = null;
- try {
- URL url = this.getClass().getResource("pluralToSingularExceptions.xml");
- inputStream = new BufferedInputStream(url.openStream());
- dictionary.loadFromXML(inputStream);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, "Unable to process plural to singular exceptions file.", ex);
- } finally {
- Lib.close(inputStream);
- }
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.search.engine.language;
+
+import java.io.BufferedInputStream;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Properties;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.search.engine.ILanguage;
+import org.eclipse.osee.framework.search.engine.internal.Activator;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class EnglishLanguage implements ILanguage {
+
+ private static final String VOWELS = "aeiou";
+ private static final String IES_ENDING = "ies";
+ private static final String OES_ENDING = "oes";
+ private static final String ES_ENDING = "es";
+ private static final String S_ENDING = "s";
+ private static final String VES_ENDING = "ves";
+ private static final String[] SPECIAL_ES_ENDING_CASES = new String[] {"ss", "sh", "ch", "x"};
+ private static final Collection<String> wordsToSkip = Arrays.asList("ies", "s", "oes", "es");
+
+ private final Properties dictionary = new Properties();
+ private boolean isInitialized = false;
+
+ private boolean hasConstantBeforeEnding(String word, String ending) {
+ if (!word.equals(ending)) {
+ String remainder = word.substring(word.length() - (ending.length() + 1));
+ return VOWELS.indexOf(remainder, 1) < 0;
+ } else {
+ return false;
+ }
+ }
+
+ private boolean hasEitherSequenceBeforeEnding(String word, String ending, String... sequences) {
+ boolean toReturn = false;
+ String remainder = word.substring(0, word.length() - ending.length());
+ for (String sequence : sequences) {
+ toReturn |= remainder.endsWith(sequence);
+ }
+ return toReturn;
+ }
+
+ private static String replaceEndingWith(String word, String ending, String replaceWith) {
+ return word.substring(0, word.length() - ending.length()) + replaceWith;
+ }
+
+ private String stripPossesive(String original) {
+ String toReturn = original;
+ if (original != null && original.length() > 0) {
+ if (original.lastIndexOf('\'') == original.length() - 1) {
+ toReturn = replaceEndingWith(original, "'", "");
+ } else if (original.endsWith("'s")) {
+ toReturn = replaceEndingWith(original, "'s", "");
+ }
+ }
+ return toReturn;
+ }
+
+ @Override
+ public boolean isWord(String rawText) {
+ return !wordsToSkip.contains(rawText);
+ }
+
+ @Override
+ public String toSingular(String rawText) {
+ String word = stripPossesive(rawText);
+ word = word.toLowerCase();
+ String toReturn = getSingular(word);
+ if (toReturn == null) {
+ if (word.endsWith(IES_ENDING) && hasConstantBeforeEnding(word, IES_ENDING)) {
+ toReturn = replaceEndingWith(word, IES_ENDING, "y");
+ } else if (word.endsWith(OES_ENDING) && hasConstantBeforeEnding(word, OES_ENDING)) {
+ toReturn = replaceEndingWith(word, OES_ENDING, "o");
+ } else if (word.endsWith(ES_ENDING) && hasConstantBeforeEnding(word, ES_ENDING)) {
+ String replaceWith = "e";
+ String ending = ES_ENDING;
+ if (hasEitherSequenceBeforeEnding(word, ES_ENDING, SPECIAL_ES_ENDING_CASES)) {
+ replaceWith = Strings.emptyString();
+ } else if (hasEitherSequenceBeforeEnding(word, ES_ENDING, "v")) {
+ ending = VES_ENDING;
+ replaceWith = "f";
+ }
+ toReturn = replaceEndingWith(word, ending, replaceWith);
+ } else if (word.endsWith(S_ENDING)) {
+ toReturn = word.substring(0, word.length() - 1);
+ } else {
+ toReturn = word;
+ }
+ }
+ return toReturn;
+ }
+
+ public String getSingular(String word) {
+ ensureIntialized();
+ return dictionary.getProperty(word);
+ }
+
+ private synchronized void ensureIntialized() {
+ if (!isInitialized) {
+ isInitialized = true;
+ InputStream inputStream = null;
+ try {
+ URL url = this.getClass().getResource("pluralToSingularExceptions.xml");
+ inputStream = new BufferedInputStream(url.openStream());
+ dictionary.loadFromXML(inputStream);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, "Unable to process plural to singular exceptions file.", ex);
+ } finally {
+ Lib.close(inputStream);
+ }
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/EventSystemPreferences.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/EventSystemPreferences.java
index f0ede4ee6f7..7b582eccaca 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/EventSystemPreferences.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/EventSystemPreferences.java
@@ -1,97 +1,97 @@
-/*******************************************************************************
- * 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.framework.skynet.core.event;
-
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.database.core.OseeInfo;
-import org.eclipse.osee.framework.jdk.core.util.OseeProperties;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class EventSystemPreferences {
- // This will disable all Local TransactionEvents and enable loop-back routing of Remote TransactionEvents back
- // through the RemoteEventService as if they came from another client. This is for testing purposes only and
- // should be reset to false before release.
- private boolean enableRemoteEventLoopback = false;
- private boolean disableEvents = false;
- private boolean pendRunning = false;
-
- public boolean isDisableEvents() {
- return disableEvents;
- }
-
- public void setDisableEvents(boolean disableEvents) {
- this.disableEvents = disableEvents;
- }
-
- public boolean isEnableRemoteEventLoopback() {
- return enableRemoteEventLoopback;
- }
-
- public void setEnableRemoteEventLoopback(boolean enableRemoteEventLoopback) {
- this.enableRemoteEventLoopback = enableRemoteEventLoopback;
- }
-
- /**
- * If true, all listeners will be called back in main thread. For testing purposes only.
- */
- public void setPendRunning(boolean pendRunning) {
- this.pendRunning = pendRunning;
- }
-
- public boolean isPendRunning() {
- return pendRunning;
- }
-
- public boolean isNewEvents() {
- try {
- String dbProperty = OseeInfo.getCachedValue("eventSystem");
- if (Strings.isValid(dbProperty)) {
- return dbProperty.equals("new");
- }
- } catch (OseeDataStoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- if (!Strings.isValid(getEventSystemType())) {
- return false;
- }
- return getEventSystemType().equals("new");
- }
-
- public void setNewEvents(boolean enabled) {
- System.setProperty("eventSystem", enabled ? "new" : "old");
- }
-
- public boolean isOldEvents() {
- return !isNewEvents();
- }
-
- public String getEventSystemType() {
- return System.getProperty("eventSystem");
- }
-
- public String getEventDebug() {
- return System.getProperty("eventDebug");
- }
-
- public String getOseeEventBrokerUri() {
- return OseeProperties.getOseeDefaultBrokerUri();
- }
-
- public boolean isOseeEventBrokerValid() {
- return Strings.isValid(getOseeEventBrokerUri());
- }
+/*******************************************************************************
+ * 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.framework.skynet.core.event;
+
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
+import org.eclipse.osee.framework.database.core.OseeInfo;
+import org.eclipse.osee.framework.jdk.core.util.OseeProperties;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class EventSystemPreferences {
+ // This will disable all Local TransactionEvents and enable loop-back routing of Remote TransactionEvents back
+ // through the RemoteEventService as if they came from another client. This is for testing purposes only and
+ // should be reset to false before release.
+ private boolean enableRemoteEventLoopback = false;
+ private boolean disableEvents = false;
+ private boolean pendRunning = false;
+
+ public boolean isDisableEvents() {
+ return disableEvents;
+ }
+
+ public void setDisableEvents(boolean disableEvents) {
+ this.disableEvents = disableEvents;
+ }
+
+ public boolean isEnableRemoteEventLoopback() {
+ return enableRemoteEventLoopback;
+ }
+
+ public void setEnableRemoteEventLoopback(boolean enableRemoteEventLoopback) {
+ this.enableRemoteEventLoopback = enableRemoteEventLoopback;
+ }
+
+ /**
+ * If true, all listeners will be called back in main thread. For testing purposes only.
+ */
+ public void setPendRunning(boolean pendRunning) {
+ this.pendRunning = pendRunning;
+ }
+
+ public boolean isPendRunning() {
+ return pendRunning;
+ }
+
+ public boolean isNewEvents() {
+ try {
+ String dbProperty = OseeInfo.getCachedValue("eventSystem");
+ if (Strings.isValid(dbProperty)) {
+ return dbProperty.equals("new");
+ }
+ } catch (OseeDataStoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ if (!Strings.isValid(getEventSystemType())) {
+ return false;
+ }
+ return getEventSystemType().equals("new");
+ }
+
+ public void setNewEvents(boolean enabled) {
+ System.setProperty("eventSystem", enabled ? "new" : "old");
+ }
+
+ public boolean isOldEvents() {
+ return !isNewEvents();
+ }
+
+ public String getEventSystemType() {
+ return System.getProperty("eventSystem");
+ }
+
+ public String getEventDebug() {
+ return System.getProperty("eventDebug");
+ }
+
+ public String getOseeEventBrokerUri() {
+ return OseeProperties.getOseeDefaultBrokerUri();
+ }
+
+ public boolean isOseeEventBrokerValid() {
+ return Strings.isValid(getOseeEventBrokerUri());
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/FrameworkEventToRemoteEvent2Listener.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/FrameworkEventToRemoteEvent2Listener.java
index 8a2d8d7172c..417891e10dc 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/FrameworkEventToRemoteEvent2Listener.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/FrameworkEventToRemoteEvent2Listener.java
@@ -1,354 +1,354 @@
-/*******************************************************************************
- * 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.framework.skynet.core.event.systems;
-
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.osee.framework.core.enums.ModificationType;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.event.DefaultBasicGuidArtifact;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-import org.eclipse.osee.framework.core.model.type.RelationType;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.messaging.event.res.AttributeEventModificationType;
-import org.eclipse.osee.framework.messaging.event.res.IFrameworkEventListener;
-import org.eclipse.osee.framework.messaging.event.res.RemoteEvent;
-import org.eclipse.osee.framework.messaging.event.res.msgs.RemoteBranchEvent1;
-import org.eclipse.osee.framework.messaging.event.res.msgs.RemotePersistEvent1;
-import org.eclipse.osee.framework.messaging.event.res.msgs.RemoteTransactionEvent1;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactCache;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.skynet.core.artifact.ChangeArtifactType;
-import org.eclipse.osee.framework.skynet.core.artifact.PurgeTransactionOperation;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
-import org.eclipse.osee.framework.skynet.core.event.EventUtil;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.event2.ArtifactEvent;
-import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
-import org.eclipse.osee.framework.skynet.core.event2.FrameworkEventUtil;
-import org.eclipse.osee.framework.skynet.core.event2.TransactionEvent;
-import org.eclipse.osee.framework.skynet.core.event2.TransactionEventType;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.AttributeChange;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventBasicGuidArtifact;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventBasicGuidRelation;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventChangeTypeBasicGuidArtifact;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModType;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModifiedBasicGuidArtifact;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-import org.eclipse.osee.framework.skynet.core.relation.RelationEventType;
-import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
-import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
-import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
-import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
-
-/**
- * @author Donald G. Dunne
- */
-public final class FrameworkEventToRemoteEvent2Listener implements IFrameworkEventListener {
-
- private final ISchedulingRule mutexRule;
- private InternalEventManager2 eventManager;
-
- public FrameworkEventToRemoteEvent2Listener(InternalEventManager2 eventManager) {
- this.eventManager = eventManager;
- this.mutexRule = new ISchedulingRule() {
-
- @Override
- public boolean contains(ISchedulingRule rule) {
- return rule == this;
- }
-
- @Override
- public boolean isConflicting(ISchedulingRule rule) {
- return rule == this;
- }
- };
- }
-
- @Override
- public void onEvent(final RemoteEvent remoteEvent) {
- final Runnable runnable = new Runnable() {
- private void handleTransactionEvent(Sender sender, TransactionEvent transEvent) {
- try {
- if (transEvent.getEventType() == TransactionEventType.Purged) {
- PurgeTransactionOperation.handleRemotePurgeTransactionEvent(transEvent);
- eventManager.kickTransactionEvent(sender, transEvent);
- } else {
- EventUtil.eventLog("REM2: handleTransactionEvent - unhandled mod type " + transEvent.getEventType());
- }
- } catch (Exception ex) {
- EventUtil.eventLog("REM2: handleTransactionEvent", ex);
- }
- }
-
- @Override
- public void run() {
- Sender sender = new Sender(remoteEvent.getNetworkSender());
- // If the sender's sessionId is the same as this client, then this event was
- // created in this client and returned by remote event manager; ignore and continue
- if (sender.isLocal()) {
- return;
- }
- // Handles TransactionEvents, ArtifactChangeTypeEvents, ArtifactPurgeEvents
- if (remoteEvent instanceof RemotePersistEvent1) {
- try {
- RemotePersistEvent1 event1 = (RemotePersistEvent1) remoteEvent;
- ArtifactEvent transEvent = FrameworkEventUtil.getPersistEvent(event1);
- updateArtifacts(sender, transEvent);
- updateRelations(sender, transEvent);
- eventManager.kickArtifactEvent(sender, transEvent);
- } catch (Exception ex) {
- EventUtil.eventLog("REM2: RemoteTransactionEvent1", ex);
- }
- } else if (remoteEvent instanceof RemoteBranchEvent1) {
- try {
- BranchEvent branchEvent = FrameworkEventUtil.getBranchEvent((RemoteBranchEvent1) remoteEvent);
- updateBranches(sender, branchEvent);
- eventManager.kickBranchEvent(sender, branchEvent);
- } catch (Exception ex) {
- EventUtil.eventLog("REM2: RemoteBranchEvent1", ex);
- }
- } else if (remoteEvent instanceof RemoteTransactionEvent1) {
- try {
- TransactionEvent transEvent =
- FrameworkEventUtil.getTransactionEvent((RemoteTransactionEvent1) remoteEvent);
- handleTransactionEvent(sender, transEvent);
- } catch (Exception ex) {
- EventUtil.eventLog("REM2: RemoteBranchEvent1", ex);
- }
- }
- }
- };
-
- if (OseeEventManager.getPreferences().isPendRunning()) {
- runnable.run();
- } else {
- Job job =
- new Job(String.format("[%s] - receiving [%s]", getClass().getSimpleName(),
- remoteEvent.getClass().getSimpleName())) {
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
-
- try {
- runnable.run();
- } catch (Exception ex) {
- // don't want exceptions poping up; just log and return nicely
- OseeLog.log(Activator.class, Level.SEVERE, "REM2 Receive Event Exception", ex);
- }
- monitor.done();
- return Status.OK_STATUS;
- }
- };
- job.setSystem(true);
- job.setRule(mutexRule);
- job.setUser(false);
- job.schedule();
- }
- }
-
- /**
- * Updates local cache
- **/
- private void updateArtifacts(Sender sender, ArtifactEvent transEvent) {
- // Don't crash on any one artifact update problem (no update method throughs exceptions)
- for (EventBasicGuidArtifact guidArt : transEvent.getArtifacts()) {
- EventUtil.eventLog(String.format("REM2: updateArtifact -> [%s]", guidArt));
- // Handle Added Artifacts
- // Nothing to do for added cause they're not in cache yet. Apps will load if they need them.
- if (guidArt.getModType() == EventModType.Added) {
- // do nothing cause not in cache
- }
- // Handle Deleted Artifacts
- else if (guidArt.getModType() == EventModType.Deleted || guidArt.getModType() == EventModType.Purged) {
- updateDeletedArtifact(guidArt);
- }
- // Handle Modified Artifacts
- else if (guidArt.getModType() == EventModType.Modified) {
- updateModifiedArtifact((EventModifiedBasicGuidArtifact) guidArt);
- }
- // Handle Change Type Artifacts
- else if (guidArt.getModType() == EventModType.ChangeType) {
- ChangeArtifactType.handleRemoteChangeType((EventChangeTypeBasicGuidArtifact) guidArt);
- }
- // Unknown mod type
- else {
- EventUtil.eventLog(String.format("REM2: updateArtifacts - Unhandled mod type [%s]", guidArt.getModType()));
- }
- }
- }
-
- /**
- * Updates local cache
- */
- private void updateBranches(Sender sender, BranchEvent branchEvent) {
- BranchEventType eventType = branchEvent.getEventType();
- try {
- if (eventType == BranchEventType.Committed) {
- TransactionManager.clearCommitArtifactCacheForAssociatedArtifact(BranchManager.getAssociatedArtifact(BranchManager.getBranchByGuid(branchEvent.getBranchGuid())));
- }
- BranchManager.refreshBranches();
- } catch (Exception ex) {
- EventUtil.eventLog("REM2: updateBranches", ex);
- }
- }
-
- private void updateRelations(Sender sender, ArtifactEvent transEvent) {
- for (EventBasicGuidRelation guidArt : transEvent.getRelations()) {
- // Don't crash on any one relation update problem
- try {
- EventUtil.eventLog(String.format("REM2: updateRelation -> [%s]", guidArt));
- RelationEventType eventType = guidArt.getModType();
- Branch branch = BranchManager.getBranch(guidArt.getArtA());
- RelationType relationType = RelationTypeManager.getTypeByGuid(guidArt.getRelTypeGuid());
- Artifact aArtifact = ArtifactCache.getActive(guidArt.getArtA());
- Artifact bArtifact = ArtifactCache.getActive(guidArt.getArtB());
- // Nothing in cache, ignore
- if (aArtifact == null && bArtifact == null) {
- return;
- }
- boolean aArtifactLoaded = aArtifact != null;
- boolean bArtifactLoaded = bArtifact != null;
-
- if (aArtifactLoaded || bArtifactLoaded) {
- if (eventType == RelationEventType.Added) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
- guidArt.getArtBId(), branch, branch);
-
- if (relation == null || relation.getModificationType() == ModificationType.DELETED || relation.getModificationType() == ModificationType.ARTIFACT_DELETED) {
- relation =
- RelationLink.getOrCreate(guidArt.getArtAId(), guidArt.getArtBId(), branch, branch,
- relationType, guidArt.getRelationId(), guidArt.getGammaId(), guidArt.getRationale(),
- ModificationType.NEW);
-
- }
- } else if (eventType == RelationEventType.Deleted || eventType == RelationEventType.Purged) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
- guidArt.getArtBId(), branch, branch);
- if (relation != null) {
- relation.internalRemoteEventDelete();
- }
- } else if (eventType == RelationEventType.ModifiedRationale) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
- guidArt.getArtBId(), branch, branch);
- if (relation != null) {
- relation.internalSetRationale(guidArt.getRationale());
- relation.setNotDirty();
- }
- } else if (eventType == RelationEventType.Undeleted) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
- guidArt.getArtBId(), branch, branch);
- if (relation != null) {
- relation.undelete();
- relation.setNotDirty();
- }
- } else {
- EventUtil.eventLog(String.format("REM2: updateRelations - Unhandled mod type [%s]", eventType));
- }
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("REM2: updateRelations", ex);
- }
- }
- }
-
- private void updateDeletedArtifact(DefaultBasicGuidArtifact guidArt) {
- try {
- Artifact artifact = ArtifactCache.getActive(guidArt);
- if (artifact == null) {
- // do nothing, artifact not in cache, so don't need to update
- } else if (!artifact.isHistorical()) {
- artifact.internalSetDeletedFromRemoteEvent();
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("REM2: updateDeletedArtifact", ex);
- }
- }
-
- private void updateModifiedArtifact(EventModifiedBasicGuidArtifact guidArt) {
- try {
- Artifact artifact = ArtifactCache.getActive(guidArt);
- if (artifact == null) {
- // do nothing, artifact not in cache, so don't need to update
- } else if (!artifact.isHistorical()) {
- for (AttributeChange attrChange : guidArt.getAttributeChanges()) {
- if (!OseeEventManager.getPreferences().isEnableRemoteEventLoopback()) {
- ModificationType modificationType =
- AttributeEventModificationType.getType(attrChange.getModTypeGuid()).getModificationType();
- AttributeType attributeType = AttributeTypeManager.getTypeByGuid(attrChange.getAttrTypeGuid());
- try {
- Attribute<?> attribute = artifact.getAttributeById(attrChange.getAttributeId(), true);
- // Attribute already exists (but may be deleted), process update
- // Process MODIFIED / DELETED attribute
- if (attribute != null) {
- if (attribute.isDirty()) {
- EventUtil.eventLog(String.format("%s's attribute %d [/n%s/n] has been overwritten.",
- artifact.getSafeName(), attribute.getId(), attribute.toString()));
- }
- try {
- if (modificationType == null) {
- EventUtil.eventLog(String.format(
- "REM2: updateModifiedArtifact - Can't get mod type for %s's attribute %d.",
- artifact.getArtifactTypeName(), attrChange.getAttributeId()));
- continue;
- }
- if (modificationType.isDeleted()) {
- attribute.internalSetModificationType(modificationType);
- } else {
- attribute.getAttributeDataProvider().loadData(
- attrChange.getData().toArray(new Object[attrChange.getData().size()]));
- }
- attribute.internalSetGammaId(attrChange.getGammaId());
- attribute.setNotDirty();
- } catch (OseeCoreException ex) {
- EventUtil.eventLog(
- String.format("REM2: Exception updating %s's attribute %d [/n%s/n].",
- artifact.getSafeName(), attribute.getId(), attribute.toString()), ex);
- }
- }
- // Otherwise, attribute needs creation
- // Process NEW attribute
- else {
- if (modificationType == null) {
- EventUtil.eventLog(String.format("REM2: Can't get mod type for %s's attribute %d.",
- artifact.getArtifactTypeName(), attrChange.getAttributeId()));
- continue;
- }
- artifact.internalInitializeAttribute(attributeType, attrChange.getAttributeId(),
- attrChange.getGammaId(), modificationType, false,
- attrChange.getData().toArray(new Object[attrChange.getData().size()]));
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog(String.format(
- "REM2: Exception updating %s's attribute change for attributeTypeId %d.",
- artifact.getSafeName(), attributeType.getId()), ex);
- }
- }
- }
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("REM2: updateModifiedArtifact", 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.framework.skynet.core.event.systems;
+
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.osee.framework.core.enums.ModificationType;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.event.DefaultBasicGuidArtifact;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+import org.eclipse.osee.framework.core.model.type.RelationType;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.messaging.event.res.AttributeEventModificationType;
+import org.eclipse.osee.framework.messaging.event.res.IFrameworkEventListener;
+import org.eclipse.osee.framework.messaging.event.res.RemoteEvent;
+import org.eclipse.osee.framework.messaging.event.res.msgs.RemoteBranchEvent1;
+import org.eclipse.osee.framework.messaging.event.res.msgs.RemotePersistEvent1;
+import org.eclipse.osee.framework.messaging.event.res.msgs.RemoteTransactionEvent1;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactCache;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.skynet.core.artifact.ChangeArtifactType;
+import org.eclipse.osee.framework.skynet.core.artifact.PurgeTransactionOperation;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
+import org.eclipse.osee.framework.skynet.core.event.EventUtil;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.event2.ArtifactEvent;
+import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
+import org.eclipse.osee.framework.skynet.core.event2.FrameworkEventUtil;
+import org.eclipse.osee.framework.skynet.core.event2.TransactionEvent;
+import org.eclipse.osee.framework.skynet.core.event2.TransactionEventType;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.AttributeChange;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventBasicGuidArtifact;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventBasicGuidRelation;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventChangeTypeBasicGuidArtifact;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModType;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModifiedBasicGuidArtifact;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+import org.eclipse.osee.framework.skynet.core.relation.RelationEventType;
+import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
+import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
+import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
+import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public final class FrameworkEventToRemoteEvent2Listener implements IFrameworkEventListener {
+
+ private final ISchedulingRule mutexRule;
+ private InternalEventManager2 eventManager;
+
+ public FrameworkEventToRemoteEvent2Listener(InternalEventManager2 eventManager) {
+ this.eventManager = eventManager;
+ this.mutexRule = new ISchedulingRule() {
+
+ @Override
+ public boolean contains(ISchedulingRule rule) {
+ return rule == this;
+ }
+
+ @Override
+ public boolean isConflicting(ISchedulingRule rule) {
+ return rule == this;
+ }
+ };
+ }
+
+ @Override
+ public void onEvent(final RemoteEvent remoteEvent) {
+ final Runnable runnable = new Runnable() {
+ private void handleTransactionEvent(Sender sender, TransactionEvent transEvent) {
+ try {
+ if (transEvent.getEventType() == TransactionEventType.Purged) {
+ PurgeTransactionOperation.handleRemotePurgeTransactionEvent(transEvent);
+ eventManager.kickTransactionEvent(sender, transEvent);
+ } else {
+ EventUtil.eventLog("REM2: handleTransactionEvent - unhandled mod type " + transEvent.getEventType());
+ }
+ } catch (Exception ex) {
+ EventUtil.eventLog("REM2: handleTransactionEvent", ex);
+ }
+ }
+
+ @Override
+ public void run() {
+ Sender sender = new Sender(remoteEvent.getNetworkSender());
+ // If the sender's sessionId is the same as this client, then this event was
+ // created in this client and returned by remote event manager; ignore and continue
+ if (sender.isLocal()) {
+ return;
+ }
+ // Handles TransactionEvents, ArtifactChangeTypeEvents, ArtifactPurgeEvents
+ if (remoteEvent instanceof RemotePersistEvent1) {
+ try {
+ RemotePersistEvent1 event1 = (RemotePersistEvent1) remoteEvent;
+ ArtifactEvent transEvent = FrameworkEventUtil.getPersistEvent(event1);
+ updateArtifacts(sender, transEvent);
+ updateRelations(sender, transEvent);
+ eventManager.kickArtifactEvent(sender, transEvent);
+ } catch (Exception ex) {
+ EventUtil.eventLog("REM2: RemoteTransactionEvent1", ex);
+ }
+ } else if (remoteEvent instanceof RemoteBranchEvent1) {
+ try {
+ BranchEvent branchEvent = FrameworkEventUtil.getBranchEvent((RemoteBranchEvent1) remoteEvent);
+ updateBranches(sender, branchEvent);
+ eventManager.kickBranchEvent(sender, branchEvent);
+ } catch (Exception ex) {
+ EventUtil.eventLog("REM2: RemoteBranchEvent1", ex);
+ }
+ } else if (remoteEvent instanceof RemoteTransactionEvent1) {
+ try {
+ TransactionEvent transEvent =
+ FrameworkEventUtil.getTransactionEvent((RemoteTransactionEvent1) remoteEvent);
+ handleTransactionEvent(sender, transEvent);
+ } catch (Exception ex) {
+ EventUtil.eventLog("REM2: RemoteBranchEvent1", ex);
+ }
+ }
+ }
+ };
+
+ if (OseeEventManager.getPreferences().isPendRunning()) {
+ runnable.run();
+ } else {
+ Job job =
+ new Job(String.format("[%s] - receiving [%s]", getClass().getSimpleName(),
+ remoteEvent.getClass().getSimpleName())) {
+
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
+
+ try {
+ runnable.run();
+ } catch (Exception ex) {
+ // don't want exceptions poping up; just log and return nicely
+ OseeLog.log(Activator.class, Level.SEVERE, "REM2 Receive Event Exception", ex);
+ }
+ monitor.done();
+ return Status.OK_STATUS;
+ }
+ };
+ job.setSystem(true);
+ job.setRule(mutexRule);
+ job.setUser(false);
+ job.schedule();
+ }
+ }
+
+ /**
+ * Updates local cache
+ **/
+ private void updateArtifacts(Sender sender, ArtifactEvent transEvent) {
+ // Don't crash on any one artifact update problem (no update method throughs exceptions)
+ for (EventBasicGuidArtifact guidArt : transEvent.getArtifacts()) {
+ EventUtil.eventLog(String.format("REM2: updateArtifact -> [%s]", guidArt));
+ // Handle Added Artifacts
+ // Nothing to do for added cause they're not in cache yet. Apps will load if they need them.
+ if (guidArt.getModType() == EventModType.Added) {
+ // do nothing cause not in cache
+ }
+ // Handle Deleted Artifacts
+ else if (guidArt.getModType() == EventModType.Deleted || guidArt.getModType() == EventModType.Purged) {
+ updateDeletedArtifact(guidArt);
+ }
+ // Handle Modified Artifacts
+ else if (guidArt.getModType() == EventModType.Modified) {
+ updateModifiedArtifact((EventModifiedBasicGuidArtifact) guidArt);
+ }
+ // Handle Change Type Artifacts
+ else if (guidArt.getModType() == EventModType.ChangeType) {
+ ChangeArtifactType.handleRemoteChangeType((EventChangeTypeBasicGuidArtifact) guidArt);
+ }
+ // Unknown mod type
+ else {
+ EventUtil.eventLog(String.format("REM2: updateArtifacts - Unhandled mod type [%s]", guidArt.getModType()));
+ }
+ }
+ }
+
+ /**
+ * Updates local cache
+ */
+ private void updateBranches(Sender sender, BranchEvent branchEvent) {
+ BranchEventType eventType = branchEvent.getEventType();
+ try {
+ if (eventType == BranchEventType.Committed) {
+ TransactionManager.clearCommitArtifactCacheForAssociatedArtifact(BranchManager.getAssociatedArtifact(BranchManager.getBranchByGuid(branchEvent.getBranchGuid())));
+ }
+ BranchManager.refreshBranches();
+ } catch (Exception ex) {
+ EventUtil.eventLog("REM2: updateBranches", ex);
+ }
+ }
+
+ private void updateRelations(Sender sender, ArtifactEvent transEvent) {
+ for (EventBasicGuidRelation guidArt : transEvent.getRelations()) {
+ // Don't crash on any one relation update problem
+ try {
+ EventUtil.eventLog(String.format("REM2: updateRelation -> [%s]", guidArt));
+ RelationEventType eventType = guidArt.getModType();
+ Branch branch = BranchManager.getBranch(guidArt.getArtA());
+ RelationType relationType = RelationTypeManager.getTypeByGuid(guidArt.getRelTypeGuid());
+ Artifact aArtifact = ArtifactCache.getActive(guidArt.getArtA());
+ Artifact bArtifact = ArtifactCache.getActive(guidArt.getArtB());
+ // Nothing in cache, ignore
+ if (aArtifact == null && bArtifact == null) {
+ return;
+ }
+ boolean aArtifactLoaded = aArtifact != null;
+ boolean bArtifactLoaded = bArtifact != null;
+
+ if (aArtifactLoaded || bArtifactLoaded) {
+ if (eventType == RelationEventType.Added) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
+ guidArt.getArtBId(), branch, branch);
+
+ if (relation == null || relation.getModificationType() == ModificationType.DELETED || relation.getModificationType() == ModificationType.ARTIFACT_DELETED) {
+ relation =
+ RelationLink.getOrCreate(guidArt.getArtAId(), guidArt.getArtBId(), branch, branch,
+ relationType, guidArt.getRelationId(), guidArt.getGammaId(), guidArt.getRationale(),
+ ModificationType.NEW);
+
+ }
+ } else if (eventType == RelationEventType.Deleted || eventType == RelationEventType.Purged) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
+ guidArt.getArtBId(), branch, branch);
+ if (relation != null) {
+ relation.internalRemoteEventDelete();
+ }
+ } else if (eventType == RelationEventType.ModifiedRationale) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
+ guidArt.getArtBId(), branch, branch);
+ if (relation != null) {
+ relation.internalSetRationale(guidArt.getRationale());
+ relation.setNotDirty();
+ }
+ } else if (eventType == RelationEventType.Undeleted) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(guidArt.getRelationId(), guidArt.getArtAId(),
+ guidArt.getArtBId(), branch, branch);
+ if (relation != null) {
+ relation.undelete();
+ relation.setNotDirty();
+ }
+ } else {
+ EventUtil.eventLog(String.format("REM2: updateRelations - Unhandled mod type [%s]", eventType));
+ }
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("REM2: updateRelations", ex);
+ }
+ }
+ }
+
+ private void updateDeletedArtifact(DefaultBasicGuidArtifact guidArt) {
+ try {
+ Artifact artifact = ArtifactCache.getActive(guidArt);
+ if (artifact == null) {
+ // do nothing, artifact not in cache, so don't need to update
+ } else if (!artifact.isHistorical()) {
+ artifact.internalSetDeletedFromRemoteEvent();
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("REM2: updateDeletedArtifact", ex);
+ }
+ }
+
+ private void updateModifiedArtifact(EventModifiedBasicGuidArtifact guidArt) {
+ try {
+ Artifact artifact = ArtifactCache.getActive(guidArt);
+ if (artifact == null) {
+ // do nothing, artifact not in cache, so don't need to update
+ } else if (!artifact.isHistorical()) {
+ for (AttributeChange attrChange : guidArt.getAttributeChanges()) {
+ if (!OseeEventManager.getPreferences().isEnableRemoteEventLoopback()) {
+ ModificationType modificationType =
+ AttributeEventModificationType.getType(attrChange.getModTypeGuid()).getModificationType();
+ AttributeType attributeType = AttributeTypeManager.getTypeByGuid(attrChange.getAttrTypeGuid());
+ try {
+ Attribute<?> attribute = artifact.getAttributeById(attrChange.getAttributeId(), true);
+ // Attribute already exists (but may be deleted), process update
+ // Process MODIFIED / DELETED attribute
+ if (attribute != null) {
+ if (attribute.isDirty()) {
+ EventUtil.eventLog(String.format("%s's attribute %d [/n%s/n] has been overwritten.",
+ artifact.getSafeName(), attribute.getId(), attribute.toString()));
+ }
+ try {
+ if (modificationType == null) {
+ EventUtil.eventLog(String.format(
+ "REM2: updateModifiedArtifact - Can't get mod type for %s's attribute %d.",
+ artifact.getArtifactTypeName(), attrChange.getAttributeId()));
+ continue;
+ }
+ if (modificationType.isDeleted()) {
+ attribute.internalSetModificationType(modificationType);
+ } else {
+ attribute.getAttributeDataProvider().loadData(
+ attrChange.getData().toArray(new Object[attrChange.getData().size()]));
+ }
+ attribute.internalSetGammaId(attrChange.getGammaId());
+ attribute.setNotDirty();
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog(
+ String.format("REM2: Exception updating %s's attribute %d [/n%s/n].",
+ artifact.getSafeName(), attribute.getId(), attribute.toString()), ex);
+ }
+ }
+ // Otherwise, attribute needs creation
+ // Process NEW attribute
+ else {
+ if (modificationType == null) {
+ EventUtil.eventLog(String.format("REM2: Can't get mod type for %s's attribute %d.",
+ artifact.getArtifactTypeName(), attrChange.getAttributeId()));
+ continue;
+ }
+ artifact.internalInitializeAttribute(attributeType, attrChange.getAttributeId(),
+ attrChange.getGammaId(), modificationType, false,
+ attrChange.getData().toArray(new Object[attrChange.getData().size()]));
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog(String.format(
+ "REM2: Exception updating %s's attribute change for attributeTypeId %d.",
+ artifact.getSafeName(), attributeType.getId()), ex);
+ }
+ }
+ }
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("REM2: updateModifiedArtifact", ex);
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/JiniSkynetEventServiceLookup.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/JiniSkynetEventServiceLookup.java
index e3bca76dfee..8619d24566d 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/JiniSkynetEventServiceLookup.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/JiniSkynetEventServiceLookup.java
@@ -1,208 +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.framework.skynet.core.event.systems;
-
-import java.rmi.RemoteException;
-import java.rmi.server.ExportException;
-import java.util.logging.Level;
-import net.jini.core.entry.Entry;
-import net.jini.core.lookup.ServiceItem;
-import org.eclipse.osee.framework.core.client.ClientSessionManager;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.jini.discovery.EclipseJiniClassloader;
-import org.eclipse.osee.framework.jini.discovery.IServiceLookupListener;
-import org.eclipse.osee.framework.jini.discovery.ServiceDataStore;
-import org.eclipse.osee.framework.jini.service.core.SimpleFormattedEntry;
-import org.eclipse.osee.framework.jini.util.OseeJini;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEventListener;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEventService;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.event.EventSystemPreferences;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.RemoteEventServiceEventType;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-
-/**
- * @author Donald G. Dunne
- */
-public final class JiniSkynetEventServiceLookup implements IServiceLookupListener {
-
- private final ISkynetEventListener clientEventListener;
- private String acceptableServiceName;
- private ISkynetEventService currentEventService;
- private ISkynetEventListener clientEventListenerRemoteReference;
- private final EventSystemPreferences preferences;
-
- public JiniSkynetEventServiceLookup(EventSystemPreferences preferences, ISkynetEventListener clientEventListener) {
- this.preferences = preferences;
- this.clientEventListener = clientEventListener;
- clear();
- }
-
- private void clear() {
- currentEventService = null;
- clientEventListenerRemoteReference = null;
- acceptableServiceName = null;
- }
-
- public void start() {
- getClientEventListenerRemoteReference();
- }
-
- public void stop() {
- if (clientEventListenerRemoteReference != null) {
- ServiceDataStore.getEclipseInstance(EclipseJiniClassloader.getInstance()).removeListener(this);
- }
- reset();
- }
-
- public ISkynetEventListener getClientEventListenerRemoteReference() {
- checkJiniRegistration();
- return clientEventListenerRemoteReference;
- }
-
- public void checkJiniRegistration() {
- if (preferences.isNewEvents()) {
- return;
- }
- if (clientEventListenerRemoteReference == null) {
- try {
- // We need to trigger authentication before attempting to get database information from client session manager.
- UserManager.getUser();
- acceptableServiceName =
- ClientSessionManager.getDataStoreName() + ":" + ClientSessionManager.getDataStoreLoginName();
- clientEventListenerRemoteReference =
- (ISkynetEventListener) OseeJini.getRemoteReference(clientEventListener);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- clientEventListenerRemoteReference = null;
- }
-
- if (clientEventListenerRemoteReference != null) {
- ServiceDataStore.getEclipseInstance(EclipseJiniClassloader.getInstance()).addListener(this,
- ISkynetEventService.class);
- }
- }
- }
-
- private ISkynetEventService getReference() {
- return currentEventService;
- }
-
- public boolean isValid() {
- return isValidService(currentEventService);
- }
-
- public void reset() {
- setEventService(null);
- }
-
- public void kick(ISkynetEvent[] events, ISkynetEventListener... except) {
- try {
- getReference().kick(events, except);
- } catch (ExportException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- } catch (RemoteException ex) {
- disconnectService(ex);
- }
- }
-
- private boolean isValidService(ISkynetEventService service) {
- boolean result = false;
- try {
- if (service != null) {
- result = service.isAlive();
- }
- } catch (Exception ex) {
- // Do Nothing
- result = false;
- }
- return result;
- }
-
- private synchronized void setEventService(ISkynetEventService service) {
- if (isValidService(currentEventService)) {
- try {
- currentEventService.deregister(getClientEventListenerRemoteReference());
- } catch (RemoteException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
- currentEventService = service;
- }
-
- private void disconnectService(Exception e) {
- if (preferences.isNewEvents()) {
- return;
- }
- OseeLog.log(Activator.class, Level.WARNING, "Skynet Event Service connection lost\n" + e.toString(), e);
- setEventService(null);
- try {
- OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem1_DisConnected);
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
-
- private void connectToService(ISkynetEventService service) {
- if (preferences.isNewEvents()) {
- return;
- }
- try {
- ISkynetEventListener clientListener = getClientEventListenerRemoteReference();
- if (clientListener != null) {
- service.register(clientListener);
- setEventService(service);
- OseeLog.log(Activator.class, Level.INFO,
- "Skynet Event Service connection established " + acceptableServiceName);
- OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem1_Connected);
- } else {
- OseeLog.log(Activator.class, Level.SEVERE, "Client listener reference was null");
- }
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void serviceAdded(ServiceItem serviceItem) {
- if (preferences.isNewEvents()) {
- return;
- }
- if (serviceItem.service instanceof ISkynetEventService) {
- ISkynetEventService service = (ISkynetEventService) serviceItem.service;
- if (isValidService(service)) {
- // Check if the service is for the database we are using
- for (Entry entry : serviceItem.attributeSets) {
- if (entry instanceof SimpleFormattedEntry) {
- SimpleFormattedEntry simpleEntry = (SimpleFormattedEntry) entry;
- if ("db".equals(simpleEntry.name) && acceptableServiceName.equals(simpleEntry.value)) {
- connectToService(service);
- break;
- }
- }
- }
- }
- }
- }
-
- @Override
- public void serviceChanged(ServiceItem serviceItem) {
- serviceAdded(serviceItem);
- }
-
- @Override
- public void serviceRemoved(ServiceItem serviceItem) {
- // 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.framework.skynet.core.event.systems;
+
+import java.rmi.RemoteException;
+import java.rmi.server.ExportException;
+import java.util.logging.Level;
+import net.jini.core.entry.Entry;
+import net.jini.core.lookup.ServiceItem;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.jini.discovery.EclipseJiniClassloader;
+import org.eclipse.osee.framework.jini.discovery.IServiceLookupListener;
+import org.eclipse.osee.framework.jini.discovery.ServiceDataStore;
+import org.eclipse.osee.framework.jini.service.core.SimpleFormattedEntry;
+import org.eclipse.osee.framework.jini.util.OseeJini;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEventListener;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEventService;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.event.EventSystemPreferences;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.RemoteEventServiceEventType;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+
+/**
+ * @author Donald G. Dunne
+ */
+public final class JiniSkynetEventServiceLookup implements IServiceLookupListener {
+
+ private final ISkynetEventListener clientEventListener;
+ private String acceptableServiceName;
+ private ISkynetEventService currentEventService;
+ private ISkynetEventListener clientEventListenerRemoteReference;
+ private final EventSystemPreferences preferences;
+
+ public JiniSkynetEventServiceLookup(EventSystemPreferences preferences, ISkynetEventListener clientEventListener) {
+ this.preferences = preferences;
+ this.clientEventListener = clientEventListener;
+ clear();
+ }
+
+ private void clear() {
+ currentEventService = null;
+ clientEventListenerRemoteReference = null;
+ acceptableServiceName = null;
+ }
+
+ public void start() {
+ getClientEventListenerRemoteReference();
+ }
+
+ public void stop() {
+ if (clientEventListenerRemoteReference != null) {
+ ServiceDataStore.getEclipseInstance(EclipseJiniClassloader.getInstance()).removeListener(this);
+ }
+ reset();
+ }
+
+ public ISkynetEventListener getClientEventListenerRemoteReference() {
+ checkJiniRegistration();
+ return clientEventListenerRemoteReference;
+ }
+
+ public void checkJiniRegistration() {
+ if (preferences.isNewEvents()) {
+ return;
+ }
+ if (clientEventListenerRemoteReference == null) {
+ try {
+ // We need to trigger authentication before attempting to get database information from client session manager.
+ UserManager.getUser();
+ acceptableServiceName =
+ ClientSessionManager.getDataStoreName() + ":" + ClientSessionManager.getDataStoreLoginName();
+ clientEventListenerRemoteReference =
+ (ISkynetEventListener) OseeJini.getRemoteReference(clientEventListener);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ clientEventListenerRemoteReference = null;
+ }
+
+ if (clientEventListenerRemoteReference != null) {
+ ServiceDataStore.getEclipseInstance(EclipseJiniClassloader.getInstance()).addListener(this,
+ ISkynetEventService.class);
+ }
+ }
+ }
+
+ private ISkynetEventService getReference() {
+ return currentEventService;
+ }
+
+ public boolean isValid() {
+ return isValidService(currentEventService);
+ }
+
+ public void reset() {
+ setEventService(null);
+ }
+
+ public void kick(ISkynetEvent[] events, ISkynetEventListener... except) {
+ try {
+ getReference().kick(events, except);
+ } catch (ExportException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ } catch (RemoteException ex) {
+ disconnectService(ex);
+ }
+ }
+
+ private boolean isValidService(ISkynetEventService service) {
+ boolean result = false;
+ try {
+ if (service != null) {
+ result = service.isAlive();
+ }
+ } catch (Exception ex) {
+ // Do Nothing
+ result = false;
+ }
+ return result;
+ }
+
+ private synchronized void setEventService(ISkynetEventService service) {
+ if (isValidService(currentEventService)) {
+ try {
+ currentEventService.deregister(getClientEventListenerRemoteReference());
+ } catch (RemoteException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+ currentEventService = service;
+ }
+
+ private void disconnectService(Exception e) {
+ if (preferences.isNewEvents()) {
+ return;
+ }
+ OseeLog.log(Activator.class, Level.WARNING, "Skynet Event Service connection lost\n" + e.toString(), e);
+ setEventService(null);
+ try {
+ OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem1_DisConnected);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+
+ private void connectToService(ISkynetEventService service) {
+ if (preferences.isNewEvents()) {
+ return;
+ }
+ try {
+ ISkynetEventListener clientListener = getClientEventListenerRemoteReference();
+ if (clientListener != null) {
+ service.register(clientListener);
+ setEventService(service);
+ OseeLog.log(Activator.class, Level.INFO,
+ "Skynet Event Service connection established " + acceptableServiceName);
+ OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem1_Connected);
+ } else {
+ OseeLog.log(Activator.class, Level.SEVERE, "Client listener reference was null");
+ }
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void serviceAdded(ServiceItem serviceItem) {
+ if (preferences.isNewEvents()) {
+ return;
+ }
+ if (serviceItem.service instanceof ISkynetEventService) {
+ ISkynetEventService service = (ISkynetEventService) serviceItem.service;
+ if (isValidService(service)) {
+ // Check if the service is for the database we are using
+ for (Entry entry : serviceItem.attributeSets) {
+ if (entry instanceof SimpleFormattedEntry) {
+ SimpleFormattedEntry simpleEntry = (SimpleFormattedEntry) entry;
+ if ("db".equals(simpleEntry.name) && acceptableServiceName.equals(simpleEntry.value)) {
+ connectToService(service);
+ break;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ @Override
+ public void serviceChanged(ServiceItem serviceItem) {
+ serviceAdded(serviceItem);
+ }
+
+ @Override
+ public void serviceRemoved(ServiceItem serviceItem) {
+ // do nothing
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/LegacyRemoteEventReceiver.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/LegacyRemoteEventReceiver.java
index fef0f35c4bf..6861073cd8c 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/LegacyRemoteEventReceiver.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/LegacyRemoteEventReceiver.java
@@ -1,476 +1,476 @@
-/*******************************************************************************
- * 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.framework.skynet.core.event.systems;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.osee.framework.core.enums.BranchState;
-import org.eclipse.osee.framework.core.enums.ModificationType;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.cache.BranchCache;
-import org.eclipse.osee.framework.core.model.type.RelationType;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.messaging.event.skynet.ASkynetEventListener;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetArtifactEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.ISkynetRelationLinkEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkAccessControlArtifactsEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactChangeTypeEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactDeletedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactModifiedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactPurgeEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkBroadcastEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkCommitBranchEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkDeletedBranchEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkNewBranchEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkPurgeBranchEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkCreatedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkDeletedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkRationalModifiedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRenameBranchEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkTransactionDeletedEvent;
-import org.eclipse.osee.framework.messaging.event.skynet.event.SkynetAttributeChange;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactCache;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactModType;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
-import org.eclipse.osee.framework.skynet.core.event.ArtifactTransactionModifiedEvent;
-import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
-import org.eclipse.osee.framework.skynet.core.event.BroadcastEventType;
-import org.eclipse.osee.framework.skynet.core.event.EventUtil;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-import org.eclipse.osee.framework.skynet.core.relation.RelationEventType;
-import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
-import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
-import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
-import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
-import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
-import org.eclipse.osee.framework.ui.plugin.event.UnloadedArtifact;
-import org.eclipse.osee.framework.ui.plugin.event.UnloadedRelation;
-
-/**
- * @author Donald G. Dunne
- */
-public final class LegacyRemoteEventReceiver extends ASkynetEventListener {
- private static final long serialVersionUID = -3017349745450262540L;
-
- private static final ISchedulingRule mutexRule = new ISchedulingRule() {
-
- @Override
- public boolean contains(ISchedulingRule rule) {
- return rule == this;
- }
-
- @Override
- public boolean isConflicting(ISchedulingRule rule) {
- return rule == this;
- }
- };
-
- private LegacyEventManager legacyEventManager;
-
- public LegacyRemoteEventReceiver() {
- super();
- }
-
- public void setInternalEventManager(LegacyEventManager legacyEventManager) {
- this.legacyEventManager = legacyEventManager;
- }
-
- @Override
- public void onEvent(final ISkynetEvent[] events) {
- final List<ArtifactTransactionModifiedEvent> xModifiedEvents = new LinkedList<ArtifactTransactionModifiedEvent>();
- Job job = new Job("Receive Event") {
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- try {
- Sender lastArtifactRelationModChangeSender = null;
-
- for (ISkynetEvent event : events) {
-
- Sender sender = new Sender(event.getNetworkSender());
- // If the sender's sessionId is the same as this client, then this event was
- // created in this client and returned by remote event manager; ignore and continue
- if (sender.isLocal()) {
- continue;
- }
-
- if (event instanceof NetworkAccessControlArtifactsEvent) {
- try {
- AccessControlEvent accessControlEvent = new AccessControlEvent();
- AccessControlEventType accessControlModType =
- AccessControlEventType.valueOf(((NetworkAccessControlArtifactsEvent) event).getAccessControlModTypeName());
- accessControlEvent.setEventType(accessControlModType);
- NetworkAccessControlArtifactsEvent accessEvent = (NetworkAccessControlArtifactsEvent) event;
- Integer[] artIds =
- accessEvent.getArtifactIds().toArray(new Integer[accessEvent.getArtifactIds().size()]);
- Branch branch = BranchManager.getBranch(accessEvent.getId());
- for (int x = 0; x < accessEvent.getArtifactIds().size(); x++) {
- Artifact cachedArt = ArtifactQuery.getArtifactFromId(artIds[x], branch);
- if (cachedArt != null) {
- accessControlEvent.getArtifacts().add(cachedArt.getBasicGuidArtifact());
- }
- }
- LoadedArtifacts loadedArtifacts =
- new LoadedArtifacts(accessEvent.getId(), accessEvent.getArtifactIds(),
- accessEvent.getArtifactTypeIds());
- OseeEventManager.kickAccessControlArtifactsEvent(sender, accessControlEvent, loadedArtifacts);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkRenameBranchEvent) {
- int branchId = ((NetworkRenameBranchEvent) event).getId();
- try {
- Branch branch = BranchManager.getBranch(branchId);
- branch.setName(((NetworkRenameBranchEvent) event).getBranchName());
- branch.clearDirty();
- try {
- legacyEventManager.kickBranchEvent(sender, BranchEventType.Renamed, branchId);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkNewBranchEvent) {
- int branchId = ((NetworkNewBranchEvent) event).getId();
- try {
- legacyEventManager.kickBranchEvent(sender, BranchEventType.Added, branchId);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkDeletedBranchEvent) {
- int branchId = ((NetworkDeletedBranchEvent) event).getId();
- try {
- Branch branch =
- Activator.getInstance().getOseeCacheService().getBranchCache().getById(branchId);
- if (branch != null) {
- branch.setBranchState(BranchState.DELETED);
- branch.clearDirty();
- }
- legacyEventManager.kickBranchEvent(sender, BranchEventType.Deleted, branchId);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkPurgeBranchEvent) {
- int branchId = ((NetworkPurgeBranchEvent) event).getId();
- try {
- BranchCache cache = Activator.getInstance().getOseeCacheService().getBranchCache();
- Branch branch = cache.getById(branchId);
- if (branch != null) {
- cache.decache(branch);
- }
- legacyEventManager.kickBranchEvent(sender, BranchEventType.Purged, branchId);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkCommitBranchEvent) {
- int branchId = ((NetworkCommitBranchEvent) event).getId();
- try {
- try {
- TransactionManager.clearCommitArtifactCacheForAssociatedArtifact(BranchManager.getAssociatedArtifact(BranchManager.getBranch(branchId)));
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- legacyEventManager.kickBranchEvent(sender, BranchEventType.Committed, branchId);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkBroadcastEvent) {
- try {
- final BroadcastEventType broadcastEventType =
- BroadcastEventType.valueOf(((NetworkBroadcastEvent) event).getBroadcastEventTypeName());
- if (broadcastEventType == null) {
- OseeLog.log(
- Activator.class,
- Level.SEVERE,
- "Unknown broadcast event type \"" + ((NetworkBroadcastEvent) event).getBroadcastEventTypeName() + "\"",
- new IllegalArgumentException());
- } else {
- legacyEventManager.kickBroadcastEvent(sender, broadcastEventType,
- ((NetworkBroadcastEvent) event).getUserIds(),
- ((NetworkBroadcastEvent) event).getMessage());
- }
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof ISkynetArtifactEvent) {
- try {
- updateArtifacts(sender, (ISkynetArtifactEvent) event, xModifiedEvents);
- lastArtifactRelationModChangeSender = sender;
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof ISkynetRelationLinkEvent) {
- try {
- updateRelations(sender, (ISkynetRelationLinkEvent) event, xModifiedEvents);
- lastArtifactRelationModChangeSender = sender;
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkArtifactChangeTypeEvent) {
- try {
- LoadedArtifacts loadedArtifacts =
- new LoadedArtifacts(((NetworkArtifactChangeTypeEvent) event).getId(),
- ((NetworkArtifactChangeTypeEvent) event).getArtifactIds(),
- ((NetworkArtifactChangeTypeEvent) event).getArtifactTypeIds());
- legacyEventManager.kickArtifactsChangeTypeEvent(sender,
- ((NetworkArtifactChangeTypeEvent) event).getToArtifactTypeId(), loadedArtifacts);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkArtifactPurgeEvent) {
- try {
- LoadedArtifacts loadedArtifacts =
- new LoadedArtifacts(((NetworkArtifactPurgeEvent) event).getId(),
- ((NetworkArtifactPurgeEvent) event).getArtifactIds(),
- ((NetworkArtifactPurgeEvent) event).getArtifactTypeIds());
- for (Artifact artifact : loadedArtifacts.getLoadedArtifacts()) {
- //This is because applications may still have a reference to the artifact
- for (RelationLink link : RelationManager.getRelationsAll(artifact.getArtId(),
- artifact.getBranch().getId(), false)) {
- link.internalRemoteEventDelete();
- }
- ArtifactCache.deCache(artifact);
- artifact.internalSetDeleted();
- }
- legacyEventManager.kickArtifactsPurgedEvent(sender, loadedArtifacts);
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- } else if (event instanceof NetworkTransactionDeletedEvent) {
- try {
- legacyEventManager.kickTransactionsPurgedEvent(sender,
- ((NetworkTransactionDeletedEvent) event).getTransactionIds());
- } catch (Exception ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
- }
-
- if (xModifiedEvents.size() > 0) {
- /*
- * Since transaction events are a collection of ArtifactModfied and RelationModified events, create a
- * new Sender based on the last sender for these events.
- */
- Sender transactionSender =
- new Sender("RemoteEventManager", lastArtifactRelationModChangeSender.getOseeSession());
- legacyEventManager.kickPersistEvent(transactionSender, xModifiedEvents);
- }
- } catch (Exception ex) {
- // don't want exceptions poping up; just log and return nicely
- OseeLog.log(Activator.class, Level.SEVERE, "REM Receive Event Exception", ex);
- }
- return Status.OK_STATUS;
- }
-
- };
- job.setSystem(true);
- job.setUser(false);
- job.setRule(mutexRule);
- job.schedule();
- }
-
- /**
- * Updates local cache
- *
- * @param event
- */
- private void updateArtifacts(Sender sender, ISkynetArtifactEvent event, Collection<ArtifactTransactionModifiedEvent> xModifiedEvents) {
- if (event == null) {
- return;
- }
-
- try {
- int artId = event.getArtId();
- int artTypeId = event.getArtTypeId();
- List<String> dirtyAttributeName = new LinkedList<String>();
-
- if (event instanceof NetworkArtifactModifiedEvent) {
- int branchId = ((NetworkArtifactModifiedEvent) event).getId();
- Artifact artifact = ArtifactCache.getActive(artId, branchId);
- if (artifact == null) {
- UnloadedArtifact unloadedArtifact = new UnloadedArtifact(branchId, artId, artTypeId);
- xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Changed, unloadedArtifact));
- } else if (!artifact.isHistorical()) {
- for (SkynetAttributeChange skynetAttributeChange : ((NetworkArtifactModifiedEvent) event).getAttributeChanges()) {
- if (!OseeEventManager.getPreferences().isEnableRemoteEventLoopback()) {
- try {
- Attribute<?> attribute =
- artifact.getAttributeById(skynetAttributeChange.getAttributeId(), true);
- // Attribute already exists (but may be deleted), process update
- // Process MODIFIED / DELETED attribute
- if (attribute != null) {
- if (attribute.isDirty()) {
- dirtyAttributeName.add(attribute.getNameValueDescription());
- EventUtil.eventLog(String.format("%s's attribute %d [/n%s/n] has been overwritten.",
- artifact.getSafeName(), attribute.getId(), attribute.toString()));
- }
- try {
- ModificationType modificationType = skynetAttributeChange.getModificationType();
- if (modificationType == null) {
- OseeLog.log(
- Activator.class,
- Level.SEVERE,
- String.format("MOD1: Can't get mod type for %s's attribute %d.",
- artifact.getArtifactTypeName(), skynetAttributeChange.getAttributeId()));
- continue;
- }
- if (modificationType.isDeleted()) {
- attribute.internalSetModificationType(modificationType);
- } else {
- attribute.getAttributeDataProvider().loadData(skynetAttributeChange.getData());
- }
- attribute.internalSetGammaId(skynetAttributeChange.getGammaId());
- attribute.setNotDirty();
- } catch (OseeCoreException ex) {
- EventUtil.eventLog(String.format("Exception updating %s's attribute %d [/n%s/n].",
- artifact.getSafeName(), attribute.getId(), attribute.toString()), ex);
- }
- }
- // Otherwise, attribute needs creation
- // Process NEW attribute
- else {
- ModificationType modificationType = skynetAttributeChange.getModificationType();
- if (modificationType == null) {
- OseeLog.log(
- Activator.class,
- Level.SEVERE,
- String.format("MOD2: Can't get mod type for %s's attribute %d.",
- artifact.getArtifactTypeName(), skynetAttributeChange.getAttributeId()));
- continue;
- }
- artifact.internalInitializeAttribute(
- AttributeTypeManager.getType(skynetAttributeChange.getTypeId()),
- skynetAttributeChange.getAttributeId(), skynetAttributeChange.getGammaId(),
- modificationType, false, skynetAttributeChange.getData());
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog(
- String.format("Exception updating %s's attribute change for attributeTypeId %d.",
- artifact.getSafeName(), skynetAttributeChange.getTypeId()), ex);
- }
- }
- }
-
- xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Changed, artifact,
- ((NetworkArtifactModifiedEvent) event).getTransactionId(),
- ((NetworkArtifactModifiedEvent) event).getAttributeChanges()));
-
- }
- } else if (event instanceof NetworkArtifactDeletedEvent) {
- int branchId = ((NetworkArtifactDeletedEvent) event).getId();
- Artifact artifact = ArtifactCache.getActive(artId, branchId);
- if (artifact == null) {
- UnloadedArtifact unloadedArtifact = new UnloadedArtifact(branchId, artId, artTypeId);
- xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Deleted, unloadedArtifact));
- } else if (!artifact.isHistorical()) {
- internalHandleRemoteArtifactDeleted(artifact);
-
- xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Deleted, artifact,
- ((NetworkArtifactDeletedEvent) event).getTransactionId(), new ArrayList<SkynetAttributeChange>()));
- }
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("Update Artifacts", ex);
- }
- }
-
- private void updateRelations(Sender sender, ISkynetRelationLinkEvent event, Collection<ArtifactTransactionModifiedEvent> xModifiedEvents) {
- if (event == null) {
- return;
- }
-
- try {
- RelationType relationType = RelationTypeManager.getType(event.getRelTypeId());
- Branch branch = BranchManager.getBranch(event.getId());
- Artifact aArtifact = ArtifactCache.getActive(event.getArtAId(), branch.getId());
- Artifact bArtifact = ArtifactCache.getActive(event.getArtBId(), branch.getId());
- boolean aArtifactLoaded = aArtifact != null;
- boolean bArtifactLoaded = bArtifact != null;
-
- if (!aArtifactLoaded && !bArtifactLoaded) {
- if (event instanceof NetworkRelationLinkDeletedEvent) {
- UnloadedRelation unloadedRelation =
- new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
- event.getArtBTypeId(), event.getRelTypeId());
- xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Deleted, unloadedRelation));
- } else if (event instanceof NetworkRelationLinkRationalModifiedEvent) {
- UnloadedRelation unloadedRelation =
- new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
- event.getArtBTypeId(), event.getRelTypeId());
- xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.ModifiedRationale,
- unloadedRelation));
- } else if (event instanceof NetworkRelationLinkCreatedEvent) {
- UnloadedRelation unloadedRelation =
- new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
- event.getArtBTypeId(), event.getRelTypeId());
- xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Added, unloadedRelation));
- }
- }
- if (aArtifactLoaded || bArtifactLoaded) {
- if (event instanceof NetworkRelationLinkDeletedEvent) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(event.getRelId(), event.getArtAId(), event.getArtBId(), branch,
- branch);
- if (relation != null) {
- relation.internalRemoteEventDelete();
-
- xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Deleted, relation,
- relation.getBranch(), relation.getRelationType().getName()));
- }
- } else if (event instanceof NetworkRelationLinkCreatedEvent) {
- RelationLink relation =
- RelationManager.getLoadedRelationById(event.getRelId(), event.getArtAId(), event.getArtBId(), branch,
- branch);
-
- if (relation == null || relation.getModificationType() == ModificationType.DELETED) {
- relation =
- RelationLink.getOrCreate(event.getArtAId(), event.getArtBId(), branch, branch, relationType,
- event.getRelId(), event.getGammaId(), ((NetworkRelationLinkCreatedEvent) event).getRationale(),
- ModificationType.NEW);
-
- xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Added, relation,
- relation.getBranch(), relation.getRelationType().getName()));
- }
- }
- }
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("Update Relations", ex);
- }
- }
-
- private void internalHandleRemoteArtifactDeleted(Artifact artifact) throws OseeCoreException {
- if (artifact == null) {
- return;
- } else {
- artifact.internalSetDeletedFromRemoteEvent();
- }
- }
-
-}
+/*******************************************************************************
+ * 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.framework.skynet.core.event.systems;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.osee.framework.core.enums.BranchState;
+import org.eclipse.osee.framework.core.enums.ModificationType;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.cache.BranchCache;
+import org.eclipse.osee.framework.core.model.type.RelationType;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.messaging.event.skynet.ASkynetEventListener;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetArtifactEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.ISkynetRelationLinkEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkAccessControlArtifactsEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactChangeTypeEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactDeletedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactModifiedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkArtifactPurgeEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkBroadcastEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkCommitBranchEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkDeletedBranchEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkNewBranchEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkPurgeBranchEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkCreatedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkDeletedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRelationLinkRationalModifiedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkRenameBranchEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.NetworkTransactionDeletedEvent;
+import org.eclipse.osee.framework.messaging.event.skynet.event.SkynetAttributeChange;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactCache;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactModType;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
+import org.eclipse.osee.framework.skynet.core.event.ArtifactTransactionModifiedEvent;
+import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
+import org.eclipse.osee.framework.skynet.core.event.BroadcastEventType;
+import org.eclipse.osee.framework.skynet.core.event.EventUtil;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+import org.eclipse.osee.framework.skynet.core.relation.RelationEventType;
+import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
+import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
+import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
+import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
+import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
+import org.eclipse.osee.framework.ui.plugin.event.UnloadedArtifact;
+import org.eclipse.osee.framework.ui.plugin.event.UnloadedRelation;
+
+/**
+ * @author Donald G. Dunne
+ */
+public final class LegacyRemoteEventReceiver extends ASkynetEventListener {
+ private static final long serialVersionUID = -3017349745450262540L;
+
+ private static final ISchedulingRule mutexRule = new ISchedulingRule() {
+
+ @Override
+ public boolean contains(ISchedulingRule rule) {
+ return rule == this;
+ }
+
+ @Override
+ public boolean isConflicting(ISchedulingRule rule) {
+ return rule == this;
+ }
+ };
+
+ private LegacyEventManager legacyEventManager;
+
+ public LegacyRemoteEventReceiver() {
+ super();
+ }
+
+ public void setInternalEventManager(LegacyEventManager legacyEventManager) {
+ this.legacyEventManager = legacyEventManager;
+ }
+
+ @Override
+ public void onEvent(final ISkynetEvent[] events) {
+ final List<ArtifactTransactionModifiedEvent> xModifiedEvents = new LinkedList<ArtifactTransactionModifiedEvent>();
+ Job job = new Job("Receive Event") {
+
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
+ try {
+ Sender lastArtifactRelationModChangeSender = null;
+
+ for (ISkynetEvent event : events) {
+
+ Sender sender = new Sender(event.getNetworkSender());
+ // If the sender's sessionId is the same as this client, then this event was
+ // created in this client and returned by remote event manager; ignore and continue
+ if (sender.isLocal()) {
+ continue;
+ }
+
+ if (event instanceof NetworkAccessControlArtifactsEvent) {
+ try {
+ AccessControlEvent accessControlEvent = new AccessControlEvent();
+ AccessControlEventType accessControlModType =
+ AccessControlEventType.valueOf(((NetworkAccessControlArtifactsEvent) event).getAccessControlModTypeName());
+ accessControlEvent.setEventType(accessControlModType);
+ NetworkAccessControlArtifactsEvent accessEvent = (NetworkAccessControlArtifactsEvent) event;
+ Integer[] artIds =
+ accessEvent.getArtifactIds().toArray(new Integer[accessEvent.getArtifactIds().size()]);
+ Branch branch = BranchManager.getBranch(accessEvent.getId());
+ for (int x = 0; x < accessEvent.getArtifactIds().size(); x++) {
+ Artifact cachedArt = ArtifactQuery.getArtifactFromId(artIds[x], branch);
+ if (cachedArt != null) {
+ accessControlEvent.getArtifacts().add(cachedArt.getBasicGuidArtifact());
+ }
+ }
+ LoadedArtifacts loadedArtifacts =
+ new LoadedArtifacts(accessEvent.getId(), accessEvent.getArtifactIds(),
+ accessEvent.getArtifactTypeIds());
+ OseeEventManager.kickAccessControlArtifactsEvent(sender, accessControlEvent, loadedArtifacts);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkRenameBranchEvent) {
+ int branchId = ((NetworkRenameBranchEvent) event).getId();
+ try {
+ Branch branch = BranchManager.getBranch(branchId);
+ branch.setName(((NetworkRenameBranchEvent) event).getBranchName());
+ branch.clearDirty();
+ try {
+ legacyEventManager.kickBranchEvent(sender, BranchEventType.Renamed, branchId);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkNewBranchEvent) {
+ int branchId = ((NetworkNewBranchEvent) event).getId();
+ try {
+ legacyEventManager.kickBranchEvent(sender, BranchEventType.Added, branchId);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkDeletedBranchEvent) {
+ int branchId = ((NetworkDeletedBranchEvent) event).getId();
+ try {
+ Branch branch =
+ Activator.getInstance().getOseeCacheService().getBranchCache().getById(branchId);
+ if (branch != null) {
+ branch.setBranchState(BranchState.DELETED);
+ branch.clearDirty();
+ }
+ legacyEventManager.kickBranchEvent(sender, BranchEventType.Deleted, branchId);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkPurgeBranchEvent) {
+ int branchId = ((NetworkPurgeBranchEvent) event).getId();
+ try {
+ BranchCache cache = Activator.getInstance().getOseeCacheService().getBranchCache();
+ Branch branch = cache.getById(branchId);
+ if (branch != null) {
+ cache.decache(branch);
+ }
+ legacyEventManager.kickBranchEvent(sender, BranchEventType.Purged, branchId);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkCommitBranchEvent) {
+ int branchId = ((NetworkCommitBranchEvent) event).getId();
+ try {
+ try {
+ TransactionManager.clearCommitArtifactCacheForAssociatedArtifact(BranchManager.getAssociatedArtifact(BranchManager.getBranch(branchId)));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ legacyEventManager.kickBranchEvent(sender, BranchEventType.Committed, branchId);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkBroadcastEvent) {
+ try {
+ final BroadcastEventType broadcastEventType =
+ BroadcastEventType.valueOf(((NetworkBroadcastEvent) event).getBroadcastEventTypeName());
+ if (broadcastEventType == null) {
+ OseeLog.log(
+ Activator.class,
+ Level.SEVERE,
+ "Unknown broadcast event type \"" + ((NetworkBroadcastEvent) event).getBroadcastEventTypeName() + "\"",
+ new IllegalArgumentException());
+ } else {
+ legacyEventManager.kickBroadcastEvent(sender, broadcastEventType,
+ ((NetworkBroadcastEvent) event).getUserIds(),
+ ((NetworkBroadcastEvent) event).getMessage());
+ }
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof ISkynetArtifactEvent) {
+ try {
+ updateArtifacts(sender, (ISkynetArtifactEvent) event, xModifiedEvents);
+ lastArtifactRelationModChangeSender = sender;
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof ISkynetRelationLinkEvent) {
+ try {
+ updateRelations(sender, (ISkynetRelationLinkEvent) event, xModifiedEvents);
+ lastArtifactRelationModChangeSender = sender;
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkArtifactChangeTypeEvent) {
+ try {
+ LoadedArtifacts loadedArtifacts =
+ new LoadedArtifacts(((NetworkArtifactChangeTypeEvent) event).getId(),
+ ((NetworkArtifactChangeTypeEvent) event).getArtifactIds(),
+ ((NetworkArtifactChangeTypeEvent) event).getArtifactTypeIds());
+ legacyEventManager.kickArtifactsChangeTypeEvent(sender,
+ ((NetworkArtifactChangeTypeEvent) event).getToArtifactTypeId(), loadedArtifacts);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkArtifactPurgeEvent) {
+ try {
+ LoadedArtifacts loadedArtifacts =
+ new LoadedArtifacts(((NetworkArtifactPurgeEvent) event).getId(),
+ ((NetworkArtifactPurgeEvent) event).getArtifactIds(),
+ ((NetworkArtifactPurgeEvent) event).getArtifactTypeIds());
+ for (Artifact artifact : loadedArtifacts.getLoadedArtifacts()) {
+ //This is because applications may still have a reference to the artifact
+ for (RelationLink link : RelationManager.getRelationsAll(artifact.getArtId(),
+ artifact.getBranch().getId(), false)) {
+ link.internalRemoteEventDelete();
+ }
+ ArtifactCache.deCache(artifact);
+ artifact.internalSetDeleted();
+ }
+ legacyEventManager.kickArtifactsPurgedEvent(sender, loadedArtifacts);
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ } else if (event instanceof NetworkTransactionDeletedEvent) {
+ try {
+ legacyEventManager.kickTransactionsPurgedEvent(sender,
+ ((NetworkTransactionDeletedEvent) event).getTransactionIds());
+ } catch (Exception ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ if (xModifiedEvents.size() > 0) {
+ /*
+ * Since transaction events are a collection of ArtifactModfied and RelationModified events, create a
+ * new Sender based on the last sender for these events.
+ */
+ Sender transactionSender =
+ new Sender("RemoteEventManager", lastArtifactRelationModChangeSender.getOseeSession());
+ legacyEventManager.kickPersistEvent(transactionSender, xModifiedEvents);
+ }
+ } catch (Exception ex) {
+ // don't want exceptions poping up; just log and return nicely
+ OseeLog.log(Activator.class, Level.SEVERE, "REM Receive Event Exception", ex);
+ }
+ return Status.OK_STATUS;
+ }
+
+ };
+ job.setSystem(true);
+ job.setUser(false);
+ job.setRule(mutexRule);
+ job.schedule();
+ }
+
+ /**
+ * Updates local cache
+ *
+ * @param event
+ */
+ private void updateArtifacts(Sender sender, ISkynetArtifactEvent event, Collection<ArtifactTransactionModifiedEvent> xModifiedEvents) {
+ if (event == null) {
+ return;
+ }
+
+ try {
+ int artId = event.getArtId();
+ int artTypeId = event.getArtTypeId();
+ List<String> dirtyAttributeName = new LinkedList<String>();
+
+ if (event instanceof NetworkArtifactModifiedEvent) {
+ int branchId = ((NetworkArtifactModifiedEvent) event).getId();
+ Artifact artifact = ArtifactCache.getActive(artId, branchId);
+ if (artifact == null) {
+ UnloadedArtifact unloadedArtifact = new UnloadedArtifact(branchId, artId, artTypeId);
+ xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Changed, unloadedArtifact));
+ } else if (!artifact.isHistorical()) {
+ for (SkynetAttributeChange skynetAttributeChange : ((NetworkArtifactModifiedEvent) event).getAttributeChanges()) {
+ if (!OseeEventManager.getPreferences().isEnableRemoteEventLoopback()) {
+ try {
+ Attribute<?> attribute =
+ artifact.getAttributeById(skynetAttributeChange.getAttributeId(), true);
+ // Attribute already exists (but may be deleted), process update
+ // Process MODIFIED / DELETED attribute
+ if (attribute != null) {
+ if (attribute.isDirty()) {
+ dirtyAttributeName.add(attribute.getNameValueDescription());
+ EventUtil.eventLog(String.format("%s's attribute %d [/n%s/n] has been overwritten.",
+ artifact.getSafeName(), attribute.getId(), attribute.toString()));
+ }
+ try {
+ ModificationType modificationType = skynetAttributeChange.getModificationType();
+ if (modificationType == null) {
+ OseeLog.log(
+ Activator.class,
+ Level.SEVERE,
+ String.format("MOD1: Can't get mod type for %s's attribute %d.",
+ artifact.getArtifactTypeName(), skynetAttributeChange.getAttributeId()));
+ continue;
+ }
+ if (modificationType.isDeleted()) {
+ attribute.internalSetModificationType(modificationType);
+ } else {
+ attribute.getAttributeDataProvider().loadData(skynetAttributeChange.getData());
+ }
+ attribute.internalSetGammaId(skynetAttributeChange.getGammaId());
+ attribute.setNotDirty();
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog(String.format("Exception updating %s's attribute %d [/n%s/n].",
+ artifact.getSafeName(), attribute.getId(), attribute.toString()), ex);
+ }
+ }
+ // Otherwise, attribute needs creation
+ // Process NEW attribute
+ else {
+ ModificationType modificationType = skynetAttributeChange.getModificationType();
+ if (modificationType == null) {
+ OseeLog.log(
+ Activator.class,
+ Level.SEVERE,
+ String.format("MOD2: Can't get mod type for %s's attribute %d.",
+ artifact.getArtifactTypeName(), skynetAttributeChange.getAttributeId()));
+ continue;
+ }
+ artifact.internalInitializeAttribute(
+ AttributeTypeManager.getType(skynetAttributeChange.getTypeId()),
+ skynetAttributeChange.getAttributeId(), skynetAttributeChange.getGammaId(),
+ modificationType, false, skynetAttributeChange.getData());
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog(
+ String.format("Exception updating %s's attribute change for attributeTypeId %d.",
+ artifact.getSafeName(), skynetAttributeChange.getTypeId()), ex);
+ }
+ }
+ }
+
+ xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Changed, artifact,
+ ((NetworkArtifactModifiedEvent) event).getTransactionId(),
+ ((NetworkArtifactModifiedEvent) event).getAttributeChanges()));
+
+ }
+ } else if (event instanceof NetworkArtifactDeletedEvent) {
+ int branchId = ((NetworkArtifactDeletedEvent) event).getId();
+ Artifact artifact = ArtifactCache.getActive(artId, branchId);
+ if (artifact == null) {
+ UnloadedArtifact unloadedArtifact = new UnloadedArtifact(branchId, artId, artTypeId);
+ xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Deleted, unloadedArtifact));
+ } else if (!artifact.isHistorical()) {
+ internalHandleRemoteArtifactDeleted(artifact);
+
+ xModifiedEvents.add(new ArtifactModifiedEvent(sender, ArtifactModType.Deleted, artifact,
+ ((NetworkArtifactDeletedEvent) event).getTransactionId(), new ArrayList<SkynetAttributeChange>()));
+ }
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("Update Artifacts", ex);
+ }
+ }
+
+ private void updateRelations(Sender sender, ISkynetRelationLinkEvent event, Collection<ArtifactTransactionModifiedEvent> xModifiedEvents) {
+ if (event == null) {
+ return;
+ }
+
+ try {
+ RelationType relationType = RelationTypeManager.getType(event.getRelTypeId());
+ Branch branch = BranchManager.getBranch(event.getId());
+ Artifact aArtifact = ArtifactCache.getActive(event.getArtAId(), branch.getId());
+ Artifact bArtifact = ArtifactCache.getActive(event.getArtBId(), branch.getId());
+ boolean aArtifactLoaded = aArtifact != null;
+ boolean bArtifactLoaded = bArtifact != null;
+
+ if (!aArtifactLoaded && !bArtifactLoaded) {
+ if (event instanceof NetworkRelationLinkDeletedEvent) {
+ UnloadedRelation unloadedRelation =
+ new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
+ event.getArtBTypeId(), event.getRelTypeId());
+ xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Deleted, unloadedRelation));
+ } else if (event instanceof NetworkRelationLinkRationalModifiedEvent) {
+ UnloadedRelation unloadedRelation =
+ new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
+ event.getArtBTypeId(), event.getRelTypeId());
+ xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.ModifiedRationale,
+ unloadedRelation));
+ } else if (event instanceof NetworkRelationLinkCreatedEvent) {
+ UnloadedRelation unloadedRelation =
+ new UnloadedRelation(branch.getId(), event.getArtAId(), event.getArtATypeId(), event.getArtBId(),
+ event.getArtBTypeId(), event.getRelTypeId());
+ xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Added, unloadedRelation));
+ }
+ }
+ if (aArtifactLoaded || bArtifactLoaded) {
+ if (event instanceof NetworkRelationLinkDeletedEvent) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(event.getRelId(), event.getArtAId(), event.getArtBId(), branch,
+ branch);
+ if (relation != null) {
+ relation.internalRemoteEventDelete();
+
+ xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Deleted, relation,
+ relation.getBranch(), relation.getRelationType().getName()));
+ }
+ } else if (event instanceof NetworkRelationLinkCreatedEvent) {
+ RelationLink relation =
+ RelationManager.getLoadedRelationById(event.getRelId(), event.getArtAId(), event.getArtBId(), branch,
+ branch);
+
+ if (relation == null || relation.getModificationType() == ModificationType.DELETED) {
+ relation =
+ RelationLink.getOrCreate(event.getArtAId(), event.getArtBId(), branch, branch, relationType,
+ event.getRelId(), event.getGammaId(), ((NetworkRelationLinkCreatedEvent) event).getRationale(),
+ ModificationType.NEW);
+
+ xModifiedEvents.add(new RelationModifiedEvent(sender, RelationEventType.Added, relation,
+ relation.getBranch(), relation.getRelationType().getName()));
+ }
+ }
+ }
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("Update Relations", ex);
+ }
+ }
+
+ private void internalHandleRemoteArtifactDeleted(Artifact artifact) throws OseeCoreException {
+ if (artifact == null) {
+ return;
+ } else {
+ artifact.internalSetDeletedFromRemoteEvent();
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/ResMessagingConnectionListener.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/ResMessagingConnectionListener.java
index ac504ede2a6..a9c75eb1a7f 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/ResMessagingConnectionListener.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/event/systems/ResMessagingConnectionListener.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.framework.skynet.core.event.systems;
-
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.messaging.ConnectionListener;
-import org.eclipse.osee.framework.messaging.ConnectionNode;
-import org.eclipse.osee.framework.skynet.core.event.EventSystemPreferences;
-import org.eclipse.osee.framework.skynet.core.event.EventUtil;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.RemoteEventServiceEventType;
-import org.eclipse.osee.framework.skynet.core.event.systems.InternalEventManager2.ConnectionStatus;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-
-/**
- * @author Donald G. Dunne
- */
-public final class ResMessagingConnectionListener implements ConnectionListener, ConnectionStatus {
-
- private final EventSystemPreferences preferences;
- private boolean connectionStatus;
-
- public ResMessagingConnectionListener(EventSystemPreferences preferences) {
- this.preferences = preferences;
- }
-
- @Override
- public void connected(ConnectionNode node) {
- connectionStatus = preferences.isOseeEventBrokerValid();
- try {
- OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem2_Connected);
- OseeLog.log(Activator.class, Level.INFO, "RES2 Connected");
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("REM2: ResConnectionListener", ex);
- }
- }
-
- @Override
- public void notConnected(ConnectionNode node) {
- connectionStatus = false;
- try {
- OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem2_DisConnected);
- OseeLog.log(Activator.class, Level.INFO, "RES2 Dis-Connected");
- } catch (OseeCoreException ex) {
- EventUtil.eventLog("REM2: ResConnectionListener", ex);
- }
- }
-
- @Override
- public boolean isConnected() {
- return connectionStatus;
- }
+/*******************************************************************************
+ * 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.framework.skynet.core.event.systems;
+
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.messaging.ConnectionListener;
+import org.eclipse.osee.framework.messaging.ConnectionNode;
+import org.eclipse.osee.framework.skynet.core.event.EventSystemPreferences;
+import org.eclipse.osee.framework.skynet.core.event.EventUtil;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.RemoteEventServiceEventType;
+import org.eclipse.osee.framework.skynet.core.event.systems.InternalEventManager2.ConnectionStatus;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+
+/**
+ * @author Donald G. Dunne
+ */
+public final class ResMessagingConnectionListener implements ConnectionListener, ConnectionStatus {
+
+ private final EventSystemPreferences preferences;
+ private boolean connectionStatus;
+
+ public ResMessagingConnectionListener(EventSystemPreferences preferences) {
+ this.preferences = preferences;
+ }
+
+ @Override
+ public void connected(ConnectionNode node) {
+ connectionStatus = preferences.isOseeEventBrokerValid();
+ try {
+ OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem2_Connected);
+ OseeLog.log(Activator.class, Level.INFO, "RES2 Connected");
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("REM2: ResConnectionListener", ex);
+ }
+ }
+
+ @Override
+ public void notConnected(ConnectionNode node) {
+ connectionStatus = false;
+ try {
+ OseeEventManager.kickLocalRemEvent(this, RemoteEventServiceEventType.Rem2_DisConnected);
+ OseeLog.log(Activator.class, Level.INFO, "RES2 Dis-Connected");
+ } catch (OseeCoreException ex) {
+ EventUtil.eventLog("REM2: ResConnectionListener", ex);
+ }
+ }
+
+ @Override
+ public boolean isConnected() {
+ return connectionStatus;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/SkynetTransactionAccessServiceHandler.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/SkynetTransactionAccessServiceHandler.java
index 464a6bddb49..28be6654ea3 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/SkynetTransactionAccessServiceHandler.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/SkynetTransactionAccessServiceHandler.java
@@ -1,65 +1,65 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.framework.skynet.core.internal;
-
-import java.util.Map;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.services.IAccessControlService;
-import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionAccessHandler;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionCheckPoint;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionHandler;
-import org.osgi.framework.BundleContext;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class SkynetTransactionAccessServiceHandler extends AbstractTrackingHandler {
-
- private static final Class<?>[] DEPENDENCIES = new Class[] {//
- ILifecycleService.class, //
- IAccessControlService.class,//
- };
-
- private SkynetTransactionHandler handler;
- private ILifecycleService lifecycleService;
-
- @Override
- public Class<?>[] getDependencies() {
- return DEPENDENCIES;
- }
-
- @Override
- public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
- IAccessControlService accessService = getService(IAccessControlService.class, services);
- lifecycleService = getService(ILifecycleService.class, services);
- try {
- handler = new SkynetTransactionAccessHandler(accessService);
- lifecycleService.addHandler(SkynetTransactionCheckPoint.TYPE, handler);
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void onDeActivate() {
- if (handler != null) {
- try {
- lifecycleService.removeHandler(SkynetTransactionCheckPoint.TYPE, handler);
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
- }
- }
- }
+/*******************************************************************************
+ * Copyright (c) 2009 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.framework.skynet.core.internal;
+
+import java.util.Map;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.services.IAccessControlService;
+import org.eclipse.osee.framework.core.util.AbstractTrackingHandler;
+import org.eclipse.osee.framework.lifecycle.ILifecycleService;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionAccessHandler;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionCheckPoint;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionHandler;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class SkynetTransactionAccessServiceHandler extends AbstractTrackingHandler {
+
+ private static final Class<?>[] DEPENDENCIES = new Class[] {//
+ ILifecycleService.class, //
+ IAccessControlService.class,//
+ };
+
+ private SkynetTransactionHandler handler;
+ private ILifecycleService lifecycleService;
+
+ @Override
+ public Class<?>[] getDependencies() {
+ return DEPENDENCIES;
+ }
+
+ @Override
+ public void onActivate(BundleContext context, Map<Class<?>, Object> services) {
+ IAccessControlService accessService = getService(IAccessControlService.class, services);
+ lifecycleService = getService(ILifecycleService.class, services);
+ try {
+ handler = new SkynetTransactionAccessHandler(accessService);
+ lifecycleService.addHandler(SkynetTransactionCheckPoint.TYPE, handler);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void onDeActivate() {
+ if (handler != null) {
+ try {
+ lifecycleService.removeHandler(SkynetTransactionCheckPoint.TYPE, handler);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/StoreSkynetTransactionOperation.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/StoreSkynetTransactionOperation.java
index 424e47f1333..53a1c4917ec 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/StoreSkynetTransactionOperation.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/StoreSkynetTransactionOperation.java
@@ -1,210 +1,210 @@
-/*******************************************************************************
- * 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.framework.skynet.core.transaction;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.client.ClientSessionManager;
-import org.eclipse.osee.framework.core.enums.BranchState;
-import org.eclipse.osee.framework.core.enums.TxChange;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.TransactionRecord;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.DatabaseTransactions;
-import org.eclipse.osee.framework.database.core.IDbTransactionWork;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.database.core.OseeConnection;
-import org.eclipse.osee.framework.jdk.core.type.HashCollection;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecyclePoint;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactModType;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.event.systems.ArtifactModifiedEvent;
-import org.eclipse.osee.framework.skynet.core.event2.ArtifactEvent;
-import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModifiedBasicGuidArtifact;
-import org.eclipse.osee.framework.skynet.core.internal.Activator;
-import org.eclipse.osee.framework.skynet.core.transaction.BaseTransactionData.InsertDataCollector;
-
-/**
- * @author Roberto E. Escobar
- * @author Ryan D. Brooks
- * @author Jeff C. Phillips
- */
-public final class StoreSkynetTransactionOperation extends AbstractLifecycleOperation implements IDbTransactionWork, InsertDataCollector {
- private static final String UPDATE_TXS_NOT_CURRENT =
- "UPDATE osee_txs txs1 SET tx_current = " + TxChange.NOT_CURRENT.getValue() + " WHERE txs1.transaction_id = ? AND txs1.gamma_id = ?";
-
- private final HashCollection<String, Object[]> dataItemInserts = new HashCollection<String, Object[]>();
- private final Map<Integer, String> dataInsertOrder = new HashMap<Integer, String>();
-
- private final Branch branch;
- private final TransactionRecord transactionRecord;
- private final Collection<BaseTransactionData> txDatas;
- private final Collection<Artifact> artifactReferences;
-
- private boolean executedWithException;
-
- public StoreSkynetTransactionOperation(String name, ILifecycleService service, AbstractLifecyclePoint<?> lifecyclePoint, Branch branch, TransactionRecord transactionRecord, Collection<BaseTransactionData> txDatas, Collection<Artifact> artifactReferences) {
- super(service, lifecyclePoint, name, Activator.PLUGIN_ID);
- this.branch = branch;
- this.transactionRecord = transactionRecord;
- this.txDatas = txDatas;
- this.artifactReferences = artifactReferences;
- }
-
- @Override
- public int getTransactionNumber() {
- return transactionRecord.getId();
- }
-
- @Override
- public int getBranchId() {
- return branch.getId();
- }
-
- @Override
- public void internalAddInsertToBatch(int insertPriority, String insertSql, Object... data) {
- dataItemInserts.put(insertSql, data);
- dataInsertOrder.put(insertPriority, insertSql);
- }
-
- @Override
- protected void doCoreWork(IProgressMonitor monitor) throws Exception {
- DatabaseTransactions.execute(this);
- }
-
- @Override
- public void handleTxWork(OseeConnection connection) throws OseeCoreException {
- executedWithException = false;
- TransactionManager.internalPersist(connection, transactionRecord);
- if (!txDatas.isEmpty()) {
- executeTransactionDataItems(connection);
- }
- if (branch.getBranchState() == BranchState.CREATED) {
- branch.setBranchState(BranchState.MODIFIED);
- BranchManager.persist(branch);
- }
- }
-
- @Override
- public void handleTxException(Exception ex) {
- executedWithException = true;
- for (BaseTransactionData transactionData : txDatas) {
- try {
- transactionData.internalOnRollBack();
- } catch (OseeCoreException ex1) {
- OseeLog.log(Activator.class, Level.SEVERE, ex1);
- }
- }
- }
-
- @Override
- public void handleTxFinally() throws OseeCoreException {
- if (!executedWithException) {
- updateModifiedCachedObject();
- }
- }
-
- private void executeTransactionDataItems(OseeConnection connection) throws OseeCoreException {
- List<Object[]> txNotCurrentData = new ArrayList<Object[]>();
- for (BaseTransactionData transactionData : txDatas) {
- // Collect inserts for attribute, relation, artifact, and artifact version tables
- transactionData.addInsertToBatch(this);
-
- // Collect stale tx currents for batch update
- fetchTxNotCurrent(connection, branch, transactionData, txNotCurrentData);
- }
-
- // Insert into data tables - i.e. attribute, relation and artifact version tables
- List<Integer> keys = new ArrayList<Integer>(dataInsertOrder.keySet());
- Collections.sort(keys);
- for (int priority : keys) {
- String sqlKey = dataInsertOrder.get(priority);
- ConnectionHandler.runBatchUpdate(connection, sqlKey, (List<Object[]>) dataItemInserts.getValues(sqlKey));
- }
-
- // Set stale tx currents in txs table
- ConnectionHandler.runBatchUpdate(connection, UPDATE_TXS_NOT_CURRENT, txNotCurrentData);
- }
-
- private static void fetchTxNotCurrent(OseeConnection connection, Branch branch, BaseTransactionData transactionData, List<Object[]> results) throws OseeCoreException {
- IOseeStatement chStmt = ConnectionHandler.getStatement(connection);
- try {
- String query = ClientSessionManager.getSql(transactionData.getSelectTxNotCurrentSql());
-
- chStmt.runPreparedQuery(query, transactionData.getItemId(), branch.getId());
- while (chStmt.next()) {
- results.add(new Object[] {chStmt.getInt("transaction_id"), chStmt.getLong("gamma_id")});
- }
- } finally {
- chStmt.close();
- }
- }
-
- private void updateModifiedCachedObject() throws OseeCoreException {
- ArtifactEvent artifactEvent = new ArtifactEvent(transactionRecord.getBranch());
- artifactEvent.setTransactionId(getTransactionNumber());
-
- // Update all transaction items before collecting events
- for (BaseTransactionData transactionData : txDatas) {
- transactionData.internalUpdate(transactionRecord);
- }
-
- // Collect events before clearing any dirty flags
- for (BaseTransactionData transactionData : txDatas) {
- transactionData.internalAddToEvents(artifactEvent);
- }
-
- // Collect attribute events
- for (Artifact artifact : artifactReferences) {
- if (artifact.hasDirtyAttributes()) {
- artifactEvent.getSkynetTransactionDetails().add(
- new ArtifactModifiedEvent(new Sender(this.getClass().getName()), ArtifactModType.Changed, artifact,
- artifact.getTransactionNumber(), artifact.getDirtySkynetAttributeChanges()));
- EventModifiedBasicGuidArtifact guidArt =
- new EventModifiedBasicGuidArtifact(artifact.getBranch().getGuid(), artifact.getArtifactType().getGuid(),
- artifact.getGuid(), artifact.getDirtyFrameworkAttributeChanges());
- artifactEvent.getArtifacts().add(guidArt);
-
- // Collection relation reorder records for events
- if (!artifact.getRelationOrderRecords().isEmpty()) {
- artifactEvent.getRelationOrderRecords().addAll(artifact.getRelationOrderRecords());
- }
- }
- }
-
- // Clear all dirty flags
- for (BaseTransactionData transactionData : txDatas) {
- transactionData.internalClearDirtyState();
- }
-
- // Clear all relation order records
- for (Artifact artifact : artifactReferences) {
- artifact.getRelationOrderRecords().clear();
- }
-
- if (!artifactEvent.getSkynetTransactionDetails().isEmpty()) {
- OseeEventManager.kickPersistEvent(this, artifactEvent);
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.skynet.core.transaction;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.core.enums.BranchState;
+import org.eclipse.osee.framework.core.enums.TxChange;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.TransactionRecord;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.DatabaseTransactions;
+import org.eclipse.osee.framework.database.core.IDbTransactionWork;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.database.core.OseeConnection;
+import org.eclipse.osee.framework.jdk.core.type.HashCollection;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecyclePoint;
+import org.eclipse.osee.framework.lifecycle.ILifecycleService;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactModType;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.event.systems.ArtifactModifiedEvent;
+import org.eclipse.osee.framework.skynet.core.event2.ArtifactEvent;
+import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModifiedBasicGuidArtifact;
+import org.eclipse.osee.framework.skynet.core.internal.Activator;
+import org.eclipse.osee.framework.skynet.core.transaction.BaseTransactionData.InsertDataCollector;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Ryan D. Brooks
+ * @author Jeff C. Phillips
+ */
+public final class StoreSkynetTransactionOperation extends AbstractLifecycleOperation implements IDbTransactionWork, InsertDataCollector {
+ private static final String UPDATE_TXS_NOT_CURRENT =
+ "UPDATE osee_txs txs1 SET tx_current = " + TxChange.NOT_CURRENT.getValue() + " WHERE txs1.transaction_id = ? AND txs1.gamma_id = ?";
+
+ private final HashCollection<String, Object[]> dataItemInserts = new HashCollection<String, Object[]>();
+ private final Map<Integer, String> dataInsertOrder = new HashMap<Integer, String>();
+
+ private final Branch branch;
+ private final TransactionRecord transactionRecord;
+ private final Collection<BaseTransactionData> txDatas;
+ private final Collection<Artifact> artifactReferences;
+
+ private boolean executedWithException;
+
+ public StoreSkynetTransactionOperation(String name, ILifecycleService service, AbstractLifecyclePoint<?> lifecyclePoint, Branch branch, TransactionRecord transactionRecord, Collection<BaseTransactionData> txDatas, Collection<Artifact> artifactReferences) {
+ super(service, lifecyclePoint, name, Activator.PLUGIN_ID);
+ this.branch = branch;
+ this.transactionRecord = transactionRecord;
+ this.txDatas = txDatas;
+ this.artifactReferences = artifactReferences;
+ }
+
+ @Override
+ public int getTransactionNumber() {
+ return transactionRecord.getId();
+ }
+
+ @Override
+ public int getBranchId() {
+ return branch.getId();
+ }
+
+ @Override
+ public void internalAddInsertToBatch(int insertPriority, String insertSql, Object... data) {
+ dataItemInserts.put(insertSql, data);
+ dataInsertOrder.put(insertPriority, insertSql);
+ }
+
+ @Override
+ protected void doCoreWork(IProgressMonitor monitor) throws Exception {
+ DatabaseTransactions.execute(this);
+ }
+
+ @Override
+ public void handleTxWork(OseeConnection connection) throws OseeCoreException {
+ executedWithException = false;
+ TransactionManager.internalPersist(connection, transactionRecord);
+ if (!txDatas.isEmpty()) {
+ executeTransactionDataItems(connection);
+ }
+ if (branch.getBranchState() == BranchState.CREATED) {
+ branch.setBranchState(BranchState.MODIFIED);
+ BranchManager.persist(branch);
+ }
+ }
+
+ @Override
+ public void handleTxException(Exception ex) {
+ executedWithException = true;
+ for (BaseTransactionData transactionData : txDatas) {
+ try {
+ transactionData.internalOnRollBack();
+ } catch (OseeCoreException ex1) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex1);
+ }
+ }
+ }
+
+ @Override
+ public void handleTxFinally() throws OseeCoreException {
+ if (!executedWithException) {
+ updateModifiedCachedObject();
+ }
+ }
+
+ private void executeTransactionDataItems(OseeConnection connection) throws OseeCoreException {
+ List<Object[]> txNotCurrentData = new ArrayList<Object[]>();
+ for (BaseTransactionData transactionData : txDatas) {
+ // Collect inserts for attribute, relation, artifact, and artifact version tables
+ transactionData.addInsertToBatch(this);
+
+ // Collect stale tx currents for batch update
+ fetchTxNotCurrent(connection, branch, transactionData, txNotCurrentData);
+ }
+
+ // Insert into data tables - i.e. attribute, relation and artifact version tables
+ List<Integer> keys = new ArrayList<Integer>(dataInsertOrder.keySet());
+ Collections.sort(keys);
+ for (int priority : keys) {
+ String sqlKey = dataInsertOrder.get(priority);
+ ConnectionHandler.runBatchUpdate(connection, sqlKey, (List<Object[]>) dataItemInserts.getValues(sqlKey));
+ }
+
+ // Set stale tx currents in txs table
+ ConnectionHandler.runBatchUpdate(connection, UPDATE_TXS_NOT_CURRENT, txNotCurrentData);
+ }
+
+ private static void fetchTxNotCurrent(OseeConnection connection, Branch branch, BaseTransactionData transactionData, List<Object[]> results) throws OseeCoreException {
+ IOseeStatement chStmt = ConnectionHandler.getStatement(connection);
+ try {
+ String query = ClientSessionManager.getSql(transactionData.getSelectTxNotCurrentSql());
+
+ chStmt.runPreparedQuery(query, transactionData.getItemId(), branch.getId());
+ while (chStmt.next()) {
+ results.add(new Object[] {chStmt.getInt("transaction_id"), chStmt.getLong("gamma_id")});
+ }
+ } finally {
+ chStmt.close();
+ }
+ }
+
+ private void updateModifiedCachedObject() throws OseeCoreException {
+ ArtifactEvent artifactEvent = new ArtifactEvent(transactionRecord.getBranch());
+ artifactEvent.setTransactionId(getTransactionNumber());
+
+ // Update all transaction items before collecting events
+ for (BaseTransactionData transactionData : txDatas) {
+ transactionData.internalUpdate(transactionRecord);
+ }
+
+ // Collect events before clearing any dirty flags
+ for (BaseTransactionData transactionData : txDatas) {
+ transactionData.internalAddToEvents(artifactEvent);
+ }
+
+ // Collect attribute events
+ for (Artifact artifact : artifactReferences) {
+ if (artifact.hasDirtyAttributes()) {
+ artifactEvent.getSkynetTransactionDetails().add(
+ new ArtifactModifiedEvent(new Sender(this.getClass().getName()), ArtifactModType.Changed, artifact,
+ artifact.getTransactionNumber(), artifact.getDirtySkynetAttributeChanges()));
+ EventModifiedBasicGuidArtifact guidArt =
+ new EventModifiedBasicGuidArtifact(artifact.getBranch().getGuid(), artifact.getArtifactType().getGuid(),
+ artifact.getGuid(), artifact.getDirtyFrameworkAttributeChanges());
+ artifactEvent.getArtifacts().add(guidArt);
+
+ // Collection relation reorder records for events
+ if (!artifact.getRelationOrderRecords().isEmpty()) {
+ artifactEvent.getRelationOrderRecords().addAll(artifact.getRelationOrderRecords());
+ }
+ }
+ }
+
+ // Clear all dirty flags
+ for (BaseTransactionData transactionData : txDatas) {
+ transactionData.internalClearDirtyState();
+ }
+
+ // Clear all relation order records
+ for (Artifact artifact : artifactReferences) {
+ artifact.getRelationOrderRecords().clear();
+ }
+
+ if (!artifactEvent.getSkynetTransactionDetails().isEmpty()) {
+ OseeEventManager.kickPersistEvent(this, artifactEvent);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AlphabeticalRelationComparator.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AlphabeticalRelationComparator.java
index 51863744da0..9199fb729d6 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AlphabeticalRelationComparator.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AlphabeticalRelationComparator.java
@@ -1,43 +1,43 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.Comparator;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.enums.RelationSide;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
-
-/**
- * @author Ryan D. Brooks
- */
-public class AlphabeticalRelationComparator implements Comparator<RelationLink> {
- private final RelationSide relationSide;
-
- /**
- * @param relationSide
- */
- public AlphabeticalRelationComparator(RelationSide relationSide) {
- super();
- this.relationSide = relationSide;
- }
-
- @Override
- public int compare(RelationLink relationLink1, RelationLink relationLink2) {
- try {
- return relationLink1.getArtifact(relationSide).compareTo(relationLink2.getArtifact(relationSide));
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- return 0;
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.util.Comparator;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.enums.RelationSide;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.relation.RelationLink;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class AlphabeticalRelationComparator implements Comparator<RelationLink> {
+ private final RelationSide relationSide;
+
+ /**
+ * @param relationSide
+ */
+ public AlphabeticalRelationComparator(RelationSide relationSide) {
+ super();
+ this.relationSide = relationSide;
+ }
+
+ @Override
+ public int compare(RelationLink relationLink1, RelationLink relationLink2) {
+ try {
+ return relationLink1.getArtifact(relationSide).compareTo(relationLink2.getArtifact(relationSide));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ return 0;
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactContentProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactContentProvider.java
index dade8c02274..7b37f8643ce 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactContentProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactContentProvider.java
@@ -1,150 +1,150 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.Collection;
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.IContentProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-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.skynet.core.artifact.ArtifactChangeListener;
-
-/**
- * The basis for the comments in this class can be found at
- * http://www.eclipse.org/articles/treeviewer-cg/TreeViewerArticle.htm
- *
- * @author Ryan D. Brooks
- */
-public class ArtifactContentProvider implements ITreeContentProvider, ArtifactChangeListener {
- private static Object[] EMPTY_ARRAY = new Object[0];
-
- @Override
- public void dispose() {
- // do nothing
- }
-
- /**
- * Notifies this content provider that the given viewer's input has been switched to a different element.
- * <p>
- * A typical use for this method is registering the content provider as a listener to changes on the new input (using
- * model-specific means), and deregistering the viewer from the old input. In response to these change notifications,
- * the content provider propagates the changes to the viewer.
- * </p>
- *
- * @param viewer the viewer
- * @param oldInput the old input element, or <code>null</code> if the viewer did not previously have an input
- * @param newInput the new input element, or <code>null</code> if the viewer does not have an input
- * @see IContentProvider#inputChanged(Viewer, Object, Object)
- */
- @Override
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- // do nothing
- }
-
- /**
- * The tree viewer calls its content provider&#8217;s getChildren method when it needs to create or display the child
- * elements of the domain object, <b>parent </b>. This method should answer an array of domain objects that represent
- * the unfiltered children of <b>parent </b>
- *
- * @see ITreeContentProvider#getChildren(Object)
- */
- @Override
- public Object[] getChildren(Object parentElement) {
- if (parentElement instanceof Artifact) {
- Artifact parentItem = (Artifact) parentElement;
- try {
- if (AccessControlManager.hasPermission(parentItem, PermissionEnum.READ)) {
- Collection<Artifact> children = parentItem.getChildren();
- if (children != null) {
- return children.toArray();
- }
- }
- } catch (OseeCoreException 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.framework.ui.skynet;
+
+import java.util.Collection;
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.IContentProvider;
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+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.skynet.core.artifact.ArtifactChangeListener;
+
+/**
+ * The basis for the comments in this class can be found at
+ * http://www.eclipse.org/articles/treeviewer-cg/TreeViewerArticle.htm
+ *
+ * @author Ryan D. Brooks
+ */
+public class ArtifactContentProvider implements ITreeContentProvider, ArtifactChangeListener {
+ private static Object[] EMPTY_ARRAY = new Object[0];
+
+ @Override
+ public void dispose() {
+ // do nothing
+ }
+
+ /**
+ * Notifies this content provider that the given viewer's input has been switched to a different element.
+ * <p>
+ * A typical use for this method is registering the content provider as a listener to changes on the new input (using
+ * model-specific means), and deregistering the viewer from the old input. In response to these change notifications,
+ * the content provider propagates the changes to the viewer.
+ * </p>
+ *
+ * @param viewer the viewer
+ * @param oldInput the old input element, or <code>null</code> if the viewer did not previously have an input
+ * @param newInput the new input element, or <code>null</code> if the viewer does not have an input
+ * @see IContentProvider#inputChanged(Viewer, Object, Object)
+ */
+ @Override
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ // do nothing
+ }
+
+ /**
+ * The tree viewer calls its content provider&#8217;s getChildren method when it needs to create or display the child
+ * elements of the domain object, <b>parent </b>. This method should answer an array of domain objects that represent
+ * the unfiltered children of <b>parent </b>
+ *
+ * @see ITreeContentProvider#getChildren(Object)
+ */
+ @Override
+ public Object[] getChildren(Object parentElement) {
+ if (parentElement instanceof Artifact) {
+ Artifact parentItem = (Artifact) parentElement;
+ try {
+ if (AccessControlManager.hasPermission(parentItem, PermissionEnum.READ)) {
+ Collection<Artifact> children = parentItem.getChildren();
+ if (children != null) {
+ return children.toArray();
+ }
+ }
+ } catch (OseeCoreException ex) {
OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- } else if (parentElement instanceof Collection) {
- return ((Collection<?>) parentElement).toArray();
- }
- return EMPTY_ARRAY;
- }
-
- /*
- * @see ITreeContentProvider#getParent(Object)
- */
- @Override
- public Object getParent(Object element) {
- if (element instanceof Artifact) {
- try {
- return ((Artifact) element).getParent();
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- return null;
- }
-
- /**
- * The tree viewer asks its content provider if the domain object represented by <b>element </b> has any children.
- * This method is used by the tree viewer to determine whether or not a plus or minus should appear on the tree
- * widget.
- *
- * @see ITreeContentProvider#hasChildren(Object)
- */
- @Override
- public boolean hasChildren(Object element) {
- /*
- * If the item is an artifact, then use it's optimized check. If it is not an artifact, then resort to asking the
- * general children
- */
- if (element instanceof Artifact) {
- Artifact artifact = (Artifact) element;
- try {
- if (AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
- if (artifact.isDeleted()) {
- return false;
- }
- return artifact.getRelatedArtifactsCount(CoreRelationTypes.Default_Hierarchical__Child) > 0;
- } else {
- return false;
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- // Assume it has children if an error happens
- return true;
- }
- } else {
- return getChildren(element).length > 0;
- }
- }
-
- /**
- * This is the method invoked by calling the <b>setInput </b> method on the tree viewer. In fact, the <b>getElements
- * </b> method is called only in response to the tree viewer's <b>setInput </b> method and should answer with the
- * appropriate domain objects of the inputElement. The <b>getElements </b> and <b>getChildren </b> methods operate in
- * a similar way. Depending on your domain objects, you may have the <b>getElements </b> simply return the result of
- * calling <b>getChildren </b>. The two methods are kept distinct because it provides a clean way to differentiate
- * between the root domain object and all other domain objects.
- *
- * @see IStructuredContentProvider#getElements(Object)
- */
- @Override
- public Object[] getElements(Object element) {
- return getChildren(element);
- }
+ }
+ } else if (parentElement instanceof Collection) {
+ return ((Collection<?>) parentElement).toArray();
+ }
+ return EMPTY_ARRAY;
+ }
+
+ /*
+ * @see ITreeContentProvider#getParent(Object)
+ */
+ @Override
+ public Object getParent(Object element) {
+ if (element instanceof Artifact) {
+ try {
+ return ((Artifact) element).getParent();
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ return null;
+ }
+
+ /**
+ * The tree viewer asks its content provider if the domain object represented by <b>element </b> has any children.
+ * This method is used by the tree viewer to determine whether or not a plus or minus should appear on the tree
+ * widget.
+ *
+ * @see ITreeContentProvider#hasChildren(Object)
+ */
+ @Override
+ public boolean hasChildren(Object element) {
+ /*
+ * If the item is an artifact, then use it's optimized check. If it is not an artifact, then resort to asking the
+ * general children
+ */
+ if (element instanceof Artifact) {
+ Artifact artifact = (Artifact) element;
+ try {
+ if (AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
+ if (artifact.isDeleted()) {
+ return false;
+ }
+ return artifact.getRelatedArtifactsCount(CoreRelationTypes.Default_Hierarchical__Child) > 0;
+ } else {
+ return false;
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ // Assume it has children if an error happens
+ return true;
+ }
+ } else {
+ return getChildren(element).length > 0;
+ }
+ }
+
+ /**
+ * This is the method invoked by calling the <b>setInput </b> method on the tree viewer. In fact, the <b>getElements
+ * </b> method is called only in response to the tree viewer's <b>setInput </b> method and should answer with the
+ * appropriate domain objects of the inputElement. The <b>getElements </b> and <b>getChildren </b> methods operate in
+ * a similar way. Depending on your domain objects, you may have the <b>getElements </b> simply return the result of
+ * calling <b>getChildren </b>. The two methods are kept distinct because it provides a clean way to differentiate
+ * between the root domain object and all other domain objects.
+ *
+ * @see IStructuredContentProvider#getElements(Object)
+ */
+ @Override
+ public Object[] getElements(Object element) {
+ return getChildren(element);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecorator.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecorator.java
index d56da746796..3c17ce8e991 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecorator.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecorator.java
@@ -1,404 +1,404 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.lang.ref.WeakReference;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.window.Window;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.data.IAttributeType;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.jdk.core.util.Collections;
-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.plugin.core.util.Jobs;
-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.IBranchProvider;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.AttributeTypeFilteredCheckTreeDialog;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.osee.framework.ui.swt.KeyedImage;
-import org.eclipse.ui.progress.UIJob;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactDecorator implements IArtifactDecoratorPreferences {
-
- private static final Collection<WeakReference<ArtifactDecorator>> DECORATOR_INSTANCES =
- new CopyOnWriteArrayList<WeakReference<ArtifactDecorator>>();
-
- private DecoratorAction showArtIds;
- private DecoratorAction showArtType;
- private DecoratorAction showArtVersion;
- private DecoratorAction showArtBranch;
- private ShowAttributeAction attributesAction;
- private SetSettingsAsDefault saveSettingsAction;
- private StructuredViewer viewer;
-
- private final String storageKey;
-
- public ArtifactDecorator(String storageKey) {
- this.viewer = null;
- this.storageKey = storageKey;
- addDecoratorInstance(this);
- }
-
- public void setViewer(StructuredViewer viewer) {
- this.viewer = viewer;
- }
-
- private String asKey(String prefix, String name) {
- return String.format("%s.%s", prefix, name);
- }
-
- private void storeState() {
- try {
- saveAction(showArtIds, "artifact.decorator.show.artId");
- saveAction(showArtType, "artifact.decorator.show.artType");
- saveAction(showArtBranch, "artifact.decorator.show.artBranch");
- saveAction(showArtVersion, "artifact.decorator.show.artVersion");
- if (attributesAction != null) {
- Collection<String> items = attributesAction.getSelected();
- UserManager.setSetting(asKey(storageKey, "artifact.decorator.attrTypes"), Collections.toString(",", items));
- saveAction(attributesAction, "artifact.decorator.show.attrTypes");
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- private void loadState() {
- try {
- loadAction(showArtIds, "artifact.decorator.show.artId");
- loadAction(showArtType, "artifact.decorator.show.artType");
- loadAction(showArtBranch, "artifact.decorator.show.artBranch");
- loadAction(showArtVersion, "artifact.decorator.show.artVersion");
- if (attributesAction != null) {
- String value = UserManager.getSetting("artifact.decorator.attrTypes");
- if (Strings.isValid(value)) {
- String[] entries = value.split(",");
- attributesAction.setSelected(Arrays.asList(entries));
- }
- loadAction(attributesAction, "artifact.decorator.show.attrTypes");
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- private void loadAction(Action action, String key) throws OseeCoreException {
- if (action != null) {
- boolean isChecked = UserManager.getBooleanSetting(asKey(storageKey, key));
- action.setChecked(isChecked);
- }
- }
-
- private void saveAction(Action action, String key) throws OseeCoreException {
- boolean isChecked = action != null && action.isChecked();
- UserManager.setSetting(asKey(storageKey, key), String.valueOf(isChecked));
- }
-
- private void checkActionsCreated(IBranchProvider branchProvider) {
- if (showArtType == null) {
- showArtType = new DecoratorAction("Artifact Type", FrameworkImage.FILTERS);
- }
- if (showArtBranch == null) {
- showArtBranch = new DecoratorAction("Artifact Branch", FrameworkImage.FILTERS);
- }
- if (showArtVersion == null) {
- showArtVersion = new DecoratorAction("Artifact Version", FrameworkImage.FILTERS);
- }
-
- if (attributesAction == null && branchProvider != null) {
- attributesAction = new ShowAttributeAction(branchProvider, FrameworkImage.FILTERS);
- }
-
- if (showArtIds == null && isAdmin()) {
- showArtIds = new DecoratorAction("Artifact Ids", FrameworkImage.FILTERS);
- }
- if (saveSettingsAction == null) {
- saveSettingsAction = new SetSettingsAsDefault();
- }
- }
-
- private boolean isAdmin() {
- boolean result = false;
- try {
- if (AccessControlManager.isOseeAdmin()) {
- result = true;
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- result = false;
- }
- return result;
- }
-
- public void addActions(IMenuManager manager, IBranchProvider provider) {
- checkActionsCreated(provider);
-
- if (showArtIds != null && isAdmin()) {
- if (manager != null) {
- manager.add(showArtIds);
- }
- showArtIds.updateText();
- }
-
- if (manager != null) {
- manager.add(showArtVersion);
- manager.add(showArtType);
- manager.add(showArtBranch);
- }
- showArtType.updateText();
- showArtVersion.updateText();
- showArtBranch.updateText();
-
- if (manager != null) {
- manager.add(attributesAction);
- manager.add(new Separator());
- manager.add(saveSettingsAction);
- }
-
- loadState();
- }
-
- @Override
- public String getSelectedAttributeData(Artifact artifact) throws OseeCoreException {
- String toReturn = null;
- if (attributesAction != null) {
- Conditions.checkNotNull(artifact, "artifact");
- Collection<String> selectedItems = attributesAction.getSelected();
-
- List<String> info = new ArrayList<String>();
- for (IAttributeType attributeType : artifact.getAttributeTypes()) {
- if (selectedItems.contains(attributeType.getGuid())) {
- String value = artifact.getAttributesToString(attributeType);
- if (Strings.isValid(value)) {
- info.add(value);
- } else {
- info.add("?");
- }
- }
- }
- if (!info.isEmpty()) {
- toReturn = "[" + Collections.toString(" | ", info) + "]";
- }
- }
- return toReturn != null ? toReturn : "";
- }
-
- @Override
- public boolean showArtIds() {
- return showArtIds != null && showArtIds.isChecked();
- }
-
- @Override
- public boolean showArtType() {
- return showArtType != null && showArtType.isChecked();
- }
-
- @Override
- public boolean showArtBranch() {
- return showArtBranch != null && showArtBranch.isChecked();
- }
-
- @Override
- public boolean showArtVersion() {
- return showArtVersion != null && showArtVersion.isChecked();
- }
-
- public void setShowArtType(boolean set) {
- if (showArtType != null) {
- showArtType.setChecked(set);
- }
- }
-
- public void setShowArtBranch(boolean set) {
- if (showArtBranch != null) {
- showArtBranch.setChecked(set);
- }
- }
-
- private void refreshView() {
- if (viewer != null) {
- viewer.refresh();
- }
- }
-
- private final class DecoratorAction extends Action {
- private final String name;
- private boolean isSelected;
-
- public DecoratorAction(String name, KeyedImage image) {
- super(name, IAction.AS_PUSH_BUTTON);
- this.name = name;
- this.isSelected = false;
- if (image != null) {
- setImageDescriptor(ImageManager.getImageDescriptor(image));
- }
- updateText();
- }
-
- @Override
- public void run() {
- setChecked(!isChecked());
- refreshView();
- }
-
- @Override
- public boolean isChecked() {
- return isSelected;
- }
-
- @Override
- public void setChecked(boolean checked) {
- isSelected = checked;
- updateText();
- }
-
- public void updateText() {
- String message = String.format("%s %s", isChecked() ? "Hide" : "Show", name);
- setText(message);
- }
- }
-
- private final class ShowAttributeAction extends Action {
-
- private final Set<String> selectedTypes;
- private final IBranchProvider branchProvider;
-
- public ShowAttributeAction(IBranchProvider branchProvider, KeyedImage image) {
- super("Show Attributes", IAction.AS_PUSH_BUTTON);
- this.branchProvider = branchProvider;
- this.selectedTypes = new HashSet<String>();
- if (image != null) {
- setImageDescriptor(ImageManager.getImageDescriptor(image));
- }
- }
-
- @Override
- public void run() {
- if (branchProvider != null) {
- Job job = new UIJob("Select Attribute Types") {
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- IStatus status = Status.OK_STATUS;
- try {
- Branch branch = branchProvider.getBranch(monitor);
- if (branch == null) {
- status = new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Branch not selected");
- } else {
- Collection<AttributeType> selectableTypes = AttributeTypeManager.getValidAttributeTypes(branch);
- AttributeTypeFilteredCheckTreeDialog dialog =
- new AttributeTypeFilteredCheckTreeDialog("Select Attribute Types",
- "Select attribute types to display.");
- dialog.setSelectableTypes(selectableTypes);
-
- List<IAttributeType> initSelection = new ArrayList<IAttributeType>();
- for (String entry : selectedTypes) {
- for (AttributeType type : selectableTypes) {
- if (type.getGuid().equals(entry)) {
- initSelection.add(type);
- }
- }
- }
- dialog.setInitialSelections(initSelection);
-
- int result = dialog.open();
- if (result == Window.OK) {
- selectedTypes.clear();
- for (Object object : dialog.getResult()) {
- if (object instanceof IAttributeType) {
- selectedTypes.add(((IAttributeType) object).getGuid());
- }
- }
- refreshView();
- }
- }
- } catch (OseeCoreException ex) {
- status =
- new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Error opening attribute types dialog", ex);
- }
- return status;
- }
- };
- Jobs.startJob(job);
- }
- }
-
- public Collection<String> getSelected() {
- return selectedTypes;
- }
-
- public void setSelected(Collection<String> selected) {
- selectedTypes.clear();
- selectedTypes.addAll(selected);
- }
- }
-
- private final class SetSettingsAsDefault extends Action {
-
- public SetSettingsAsDefault() {
- super("Store Label Settings", IAction.AS_PUSH_BUTTON);
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.SAVE));
- }
-
- @Override
- public void run() {
- storeState();
- notifySettingsChanged(ArtifactDecorator.this);
- }
- }
-
- private static void addDecoratorInstance(ArtifactDecorator source) {
- DECORATOR_INSTANCES.add(new WeakReference<ArtifactDecorator>(source));
- }
-
- private static void notifySettingsChanged(ArtifactDecorator source) {
- List<Object> toRemove = new ArrayList<Object>();
-
- for (WeakReference<ArtifactDecorator> ref : DECORATOR_INSTANCES) {
- ArtifactDecorator decorator = ref.get();
- if (decorator != null) {
- if (!source.equals(decorator)) {
- decorator.loadState();
- decorator.refreshView();
- }
- } else {
- toRemove.add(ref);
- }
- }
- DECORATOR_INSTANCES.removeAll(toRemove);
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.lang.ref.WeakReference;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.jface.window.Window;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.data.IAttributeType;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+import org.eclipse.osee.framework.core.util.Conditions;
+import org.eclipse.osee.framework.jdk.core.util.Collections;
+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.plugin.core.util.Jobs;
+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.IBranchProvider;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.AttributeTypeFilteredCheckTreeDialog;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.osee.framework.ui.swt.KeyedImage;
+import org.eclipse.ui.progress.UIJob;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactDecorator implements IArtifactDecoratorPreferences {
+
+ private static final Collection<WeakReference<ArtifactDecorator>> DECORATOR_INSTANCES =
+ new CopyOnWriteArrayList<WeakReference<ArtifactDecorator>>();
+
+ private DecoratorAction showArtIds;
+ private DecoratorAction showArtType;
+ private DecoratorAction showArtVersion;
+ private DecoratorAction showArtBranch;
+ private ShowAttributeAction attributesAction;
+ private SetSettingsAsDefault saveSettingsAction;
+ private StructuredViewer viewer;
+
+ private final String storageKey;
+
+ public ArtifactDecorator(String storageKey) {
+ this.viewer = null;
+ this.storageKey = storageKey;
+ addDecoratorInstance(this);
+ }
+
+ public void setViewer(StructuredViewer viewer) {
+ this.viewer = viewer;
+ }
+
+ private String asKey(String prefix, String name) {
+ return String.format("%s.%s", prefix, name);
+ }
+
+ private void storeState() {
+ try {
+ saveAction(showArtIds, "artifact.decorator.show.artId");
+ saveAction(showArtType, "artifact.decorator.show.artType");
+ saveAction(showArtBranch, "artifact.decorator.show.artBranch");
+ saveAction(showArtVersion, "artifact.decorator.show.artVersion");
+ if (attributesAction != null) {
+ Collection<String> items = attributesAction.getSelected();
+ UserManager.setSetting(asKey(storageKey, "artifact.decorator.attrTypes"), Collections.toString(",", items));
+ saveAction(attributesAction, "artifact.decorator.show.attrTypes");
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ private void loadState() {
+ try {
+ loadAction(showArtIds, "artifact.decorator.show.artId");
+ loadAction(showArtType, "artifact.decorator.show.artType");
+ loadAction(showArtBranch, "artifact.decorator.show.artBranch");
+ loadAction(showArtVersion, "artifact.decorator.show.artVersion");
+ if (attributesAction != null) {
+ String value = UserManager.getSetting("artifact.decorator.attrTypes");
+ if (Strings.isValid(value)) {
+ String[] entries = value.split(",");
+ attributesAction.setSelected(Arrays.asList(entries));
+ }
+ loadAction(attributesAction, "artifact.decorator.show.attrTypes");
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ private void loadAction(Action action, String key) throws OseeCoreException {
+ if (action != null) {
+ boolean isChecked = UserManager.getBooleanSetting(asKey(storageKey, key));
+ action.setChecked(isChecked);
+ }
+ }
+
+ private void saveAction(Action action, String key) throws OseeCoreException {
+ boolean isChecked = action != null && action.isChecked();
+ UserManager.setSetting(asKey(storageKey, key), String.valueOf(isChecked));
+ }
+
+ private void checkActionsCreated(IBranchProvider branchProvider) {
+ if (showArtType == null) {
+ showArtType = new DecoratorAction("Artifact Type", FrameworkImage.FILTERS);
+ }
+ if (showArtBranch == null) {
+ showArtBranch = new DecoratorAction("Artifact Branch", FrameworkImage.FILTERS);
+ }
+ if (showArtVersion == null) {
+ showArtVersion = new DecoratorAction("Artifact Version", FrameworkImage.FILTERS);
+ }
+
+ if (attributesAction == null && branchProvider != null) {
+ attributesAction = new ShowAttributeAction(branchProvider, FrameworkImage.FILTERS);
+ }
+
+ if (showArtIds == null && isAdmin()) {
+ showArtIds = new DecoratorAction("Artifact Ids", FrameworkImage.FILTERS);
+ }
+ if (saveSettingsAction == null) {
+ saveSettingsAction = new SetSettingsAsDefault();
+ }
+ }
+
+ private boolean isAdmin() {
+ boolean result = false;
+ try {
+ if (AccessControlManager.isOseeAdmin()) {
+ result = true;
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ result = false;
+ }
+ return result;
+ }
+
+ public void addActions(IMenuManager manager, IBranchProvider provider) {
+ checkActionsCreated(provider);
+
+ if (showArtIds != null && isAdmin()) {
+ if (manager != null) {
+ manager.add(showArtIds);
+ }
+ showArtIds.updateText();
+ }
+
+ if (manager != null) {
+ manager.add(showArtVersion);
+ manager.add(showArtType);
+ manager.add(showArtBranch);
+ }
+ showArtType.updateText();
+ showArtVersion.updateText();
+ showArtBranch.updateText();
+
+ if (manager != null) {
+ manager.add(attributesAction);
+ manager.add(new Separator());
+ manager.add(saveSettingsAction);
+ }
+
+ loadState();
+ }
+
+ @Override
+ public String getSelectedAttributeData(Artifact artifact) throws OseeCoreException {
+ String toReturn = null;
+ if (attributesAction != null) {
+ Conditions.checkNotNull(artifact, "artifact");
+ Collection<String> selectedItems = attributesAction.getSelected();
+
+ List<String> info = new ArrayList<String>();
+ for (IAttributeType attributeType : artifact.getAttributeTypes()) {
+ if (selectedItems.contains(attributeType.getGuid())) {
+ String value = artifact.getAttributesToString(attributeType);
+ if (Strings.isValid(value)) {
+ info.add(value);
+ } else {
+ info.add("?");
+ }
+ }
+ }
+ if (!info.isEmpty()) {
+ toReturn = "[" + Collections.toString(" | ", info) + "]";
+ }
+ }
+ return toReturn != null ? toReturn : "";
+ }
+
+ @Override
+ public boolean showArtIds() {
+ return showArtIds != null && showArtIds.isChecked();
+ }
+
+ @Override
+ public boolean showArtType() {
+ return showArtType != null && showArtType.isChecked();
+ }
+
+ @Override
+ public boolean showArtBranch() {
+ return showArtBranch != null && showArtBranch.isChecked();
+ }
+
+ @Override
+ public boolean showArtVersion() {
+ return showArtVersion != null && showArtVersion.isChecked();
+ }
+
+ public void setShowArtType(boolean set) {
+ if (showArtType != null) {
+ showArtType.setChecked(set);
+ }
+ }
+
+ public void setShowArtBranch(boolean set) {
+ if (showArtBranch != null) {
+ showArtBranch.setChecked(set);
+ }
+ }
+
+ private void refreshView() {
+ if (viewer != null) {
+ viewer.refresh();
+ }
+ }
+
+ private final class DecoratorAction extends Action {
+ private final String name;
+ private boolean isSelected;
+
+ public DecoratorAction(String name, KeyedImage image) {
+ super(name, IAction.AS_PUSH_BUTTON);
+ this.name = name;
+ this.isSelected = false;
+ if (image != null) {
+ setImageDescriptor(ImageManager.getImageDescriptor(image));
+ }
+ updateText();
+ }
+
+ @Override
+ public void run() {
+ setChecked(!isChecked());
+ refreshView();
+ }
+
+ @Override
+ public boolean isChecked() {
+ return isSelected;
+ }
+
+ @Override
+ public void setChecked(boolean checked) {
+ isSelected = checked;
+ updateText();
+ }
+
+ public void updateText() {
+ String message = String.format("%s %s", isChecked() ? "Hide" : "Show", name);
+ setText(message);
+ }
+ }
+
+ private final class ShowAttributeAction extends Action {
+
+ private final Set<String> selectedTypes;
+ private final IBranchProvider branchProvider;
+
+ public ShowAttributeAction(IBranchProvider branchProvider, KeyedImage image) {
+ super("Show Attributes", IAction.AS_PUSH_BUTTON);
+ this.branchProvider = branchProvider;
+ this.selectedTypes = new HashSet<String>();
+ if (image != null) {
+ setImageDescriptor(ImageManager.getImageDescriptor(image));
+ }
+ }
+
+ @Override
+ public void run() {
+ if (branchProvider != null) {
+ Job job = new UIJob("Select Attribute Types") {
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ IStatus status = Status.OK_STATUS;
+ try {
+ Branch branch = branchProvider.getBranch(monitor);
+ if (branch == null) {
+ status = new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Branch not selected");
+ } else {
+ Collection<AttributeType> selectableTypes = AttributeTypeManager.getValidAttributeTypes(branch);
+ AttributeTypeFilteredCheckTreeDialog dialog =
+ new AttributeTypeFilteredCheckTreeDialog("Select Attribute Types",
+ "Select attribute types to display.");
+ dialog.setSelectableTypes(selectableTypes);
+
+ List<IAttributeType> initSelection = new ArrayList<IAttributeType>();
+ for (String entry : selectedTypes) {
+ for (AttributeType type : selectableTypes) {
+ if (type.getGuid().equals(entry)) {
+ initSelection.add(type);
+ }
+ }
+ }
+ dialog.setInitialSelections(initSelection);
+
+ int result = dialog.open();
+ if (result == Window.OK) {
+ selectedTypes.clear();
+ for (Object object : dialog.getResult()) {
+ if (object instanceof IAttributeType) {
+ selectedTypes.add(((IAttributeType) object).getGuid());
+ }
+ }
+ refreshView();
+ }
+ }
+ } catch (OseeCoreException ex) {
+ status =
+ new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Error opening attribute types dialog", ex);
+ }
+ return status;
+ }
+ };
+ Jobs.startJob(job);
+ }
+ }
+
+ public Collection<String> getSelected() {
+ return selectedTypes;
+ }
+
+ public void setSelected(Collection<String> selected) {
+ selectedTypes.clear();
+ selectedTypes.addAll(selected);
+ }
+ }
+
+ private final class SetSettingsAsDefault extends Action {
+
+ public SetSettingsAsDefault() {
+ super("Store Label Settings", IAction.AS_PUSH_BUTTON);
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.SAVE));
+ }
+
+ @Override
+ public void run() {
+ storeState();
+ notifySettingsChanged(ArtifactDecorator.this);
+ }
+ }
+
+ private static void addDecoratorInstance(ArtifactDecorator source) {
+ DECORATOR_INSTANCES.add(new WeakReference<ArtifactDecorator>(source));
+ }
+
+ private static void notifySettingsChanged(ArtifactDecorator source) {
+ List<Object> toRemove = new ArrayList<Object>();
+
+ for (WeakReference<ArtifactDecorator> ref : DECORATOR_INSTANCES) {
+ ArtifactDecorator decorator = ref.get();
+ if (decorator != null) {
+ if (!source.equals(decorator)) {
+ decorator.loadState();
+ decorator.refreshView();
+ }
+ } else {
+ toRemove.add(ref);
+ }
+ }
+ DECORATOR_INSTANCES.removeAll(toRemove);
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecoratorPreferences.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecoratorPreferences.java
index 7c7c3106818..e27133f69bb 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecoratorPreferences.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDecoratorPreferences.java
@@ -1,66 +1,66 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactDecoratorPreferences implements IArtifactDecoratorPreferences {
-
- private boolean isShowArtIdsAllowed;
- private boolean isShowArtTypeAllowed;
- private boolean isShowBranchAllowed;
- private boolean isShowArtVersionAllowed;
-
- @Override
- public String getSelectedAttributeData(Artifact artifact) {
- return "";
- }
-
- public void setShowArtIds(boolean isShowArtIdsAllowed) {
- this.isShowArtIdsAllowed = isShowArtIdsAllowed;
- }
-
- public void setShowArtType(boolean isShowArtTypeAllowed) {
- this.isShowArtTypeAllowed = isShowArtTypeAllowed;
- }
-
- public void setShowArtBranch(boolean isShowBranchAllowed) {
- this.isShowBranchAllowed = isShowBranchAllowed;
- }
-
- public void setShowArtVersion(boolean isShowArtVersionAllowed) {
- this.isShowArtVersionAllowed = isShowArtVersionAllowed;
- }
-
- @Override
- public boolean showArtIds() {
- return isShowArtIdsAllowed;
- }
-
- @Override
- public boolean showArtType() {
- return isShowArtTypeAllowed;
- }
-
- @Override
- public boolean showArtBranch() {
- return isShowBranchAllowed;
- }
-
- @Override
- public boolean showArtVersion() {
- return isShowArtVersionAllowed;
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactDecoratorPreferences implements IArtifactDecoratorPreferences {
+
+ private boolean isShowArtIdsAllowed;
+ private boolean isShowArtTypeAllowed;
+ private boolean isShowBranchAllowed;
+ private boolean isShowArtVersionAllowed;
+
+ @Override
+ public String getSelectedAttributeData(Artifact artifact) {
+ return "";
+ }
+
+ public void setShowArtIds(boolean isShowArtIdsAllowed) {
+ this.isShowArtIdsAllowed = isShowArtIdsAllowed;
+ }
+
+ public void setShowArtType(boolean isShowArtTypeAllowed) {
+ this.isShowArtTypeAllowed = isShowArtTypeAllowed;
+ }
+
+ public void setShowArtBranch(boolean isShowBranchAllowed) {
+ this.isShowBranchAllowed = isShowBranchAllowed;
+ }
+
+ public void setShowArtVersion(boolean isShowArtVersionAllowed) {
+ this.isShowArtVersionAllowed = isShowArtVersionAllowed;
+ }
+
+ @Override
+ public boolean showArtIds() {
+ return isShowArtIdsAllowed;
+ }
+
+ @Override
+ public boolean showArtType() {
+ return isShowArtTypeAllowed;
+ }
+
+ @Override
+ public boolean showArtBranch() {
+ return isShowBranchAllowed;
+ }
+
+ @Override
+ public boolean showArtVersion() {
+ return isShowArtVersionAllowed;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDoubleClick.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDoubleClick.java
index 3a8748678c2..47d16afc263 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDoubleClick.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDoubleClick.java
@@ -1,68 +1,68 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-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.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
-import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
-import org.eclipse.search.ui.text.Match;
-
-/**
- * @author Ryan D. Brooks
- */
-public class ArtifactDoubleClick implements IDoubleClickListener {
- @Override
- public void doubleClick(DoubleClickEvent event) {
- openArtifact(event.getSelection());
- }
-
- public static void openArtifact(ISelection selection) {
- IStructuredSelection structSel = (IStructuredSelection) selection;
- Object object = structSel.getFirstElement();
- Artifact artifact = null;
- if (object instanceof Artifact) {
- artifact = (Artifact) structSel.getFirstElement();
- } else if (object instanceof Match) {
- Match match = (Match) object;
-
- if (match.getElement() instanceof Artifact) {
- artifact = (Artifact) match.getElement();
- }
- }
-
- if (artifact == null) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, "The artifact associated with the double-click was null");
- } else {
- try {
- if (AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
- RendererManager.openInJob(artifact, PresentationType.DEFAULT_OPEN);
- } else {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP,
- "The user " + UserManager.getUser() + " does not have read access to " + artifact);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, 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.framework.ui.skynet;
+
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.DoubleClickEvent;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+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.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
+import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
+import org.eclipse.search.ui.text.Match;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class ArtifactDoubleClick implements IDoubleClickListener {
+ @Override
+ public void doubleClick(DoubleClickEvent event) {
+ openArtifact(event.getSelection());
+ }
+
+ public static void openArtifact(ISelection selection) {
+ IStructuredSelection structSel = (IStructuredSelection) selection;
+ Object object = structSel.getFirstElement();
+ Artifact artifact = null;
+ if (object instanceof Artifact) {
+ artifact = (Artifact) structSel.getFirstElement();
+ } else if (object instanceof Match) {
+ Match match = (Match) object;
+
+ if (match.getElement() instanceof Artifact) {
+ artifact = (Artifact) match.getElement();
+ }
+ }
+
+ if (artifact == null) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, "The artifact associated with the double-click was null");
+ } else {
+ try {
+ if (AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
+ RendererManager.openInJob(artifact, PresentationType.DEFAULT_OPEN);
+ } else {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP,
+ "The user " + UserManager.getUser() + " does not have read access to " + artifact);
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDragDropSupport.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDragDropSupport.java
index 90215e662f2..845bca4c493 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDragDropSupport.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactDragDropSupport.java
@@ -1,202 +1,202 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Collection;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.window.Window;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.enums.RelationSide;
-import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.core.model.type.RelationType;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactData;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
-import org.eclipse.osee.framework.skynet.core.artifact.WorkspaceURL;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
-import org.eclipse.osee.framework.skynet.core.relation.RelationTypeSideSorter;
-import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactTransfer;
-import org.eclipse.osee.framework.ui.skynet.branch.BranchSelectionDialog;
-import org.eclipse.osee.framework.ui.skynet.relation.explorer.RelationExplorerWindow;
-import org.eclipse.osee.framework.ui.ws.AWorkspace;
-import org.eclipse.swt.dnd.DropTargetEvent;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * @author Michael S. Rodgers
- */
-public class ArtifactDragDropSupport {
-
- public static void performDragDrop(DropTargetEvent e, RelationExplorerWindow window, Shell shell) throws OseeCoreException {
- performDragDrop(e, null, window, shell);
- }
-
- private static void performDragDrop(DropTargetEvent e, Artifact[] artifacts, RelationExplorerWindow window, Shell shell) throws OseeCoreException {
-
- if (ArtifactTransfer.getInstance().isSupportedType(e.currentDataType)) {
-
- if (artifacts != null) {
- addArtifacts(artifacts, window);
- } else {
- ArtifactData artData = ArtifactTransfer.getInstance().nativeToJava(e.currentDataType);
- addArtifacts(artData.getArtifacts(), window);
- }
- } else if (e.data instanceof String[]) {
- addFiles((String[]) e.data, window, shell);
-
- } else if (e.data instanceof String) {
- addURL((String) e.data, window, shell);
- }
- }
-
- private static void ensureLinkValidity(RelationTypeSideSorter group, Artifact artifact) throws OseeCoreException {
- RelationType relationType = group.getRelationType();
- Artifact otherArtifact = group.getArtifact();
-
- Artifact artifactA = group.getSide() == RelationSide.SIDE_A ? artifact : otherArtifact;
- Artifact artifactB = group.getSide() == RelationSide.SIDE_A ? otherArtifact : artifact;
- RelationManager.ensureRelationCanBeAdded(relationType, artifactA, artifactB);
- }
-
- private static void addArtifacts(Artifact[] artifacts, RelationExplorerWindow window) throws OseeCoreException {
- RelationTypeSideSorter group = window.getRelationGroup();
- RelationSide relationSide = group.getSide();
- RelationType relationType = group.getRelationType();
-
- try {
- for (Artifact artifact : artifacts) {
- try {
- Artifact artA = null;
- Artifact artB = null;
- if (relationSide == RelationSide.SIDE_A) {
- artA = artifact;
- artB = group.getArtifact();
- } else {
- artA = group.getArtifact();
- artB = artifact;
- }
- RelationManager.ensureRelationCanBeAdded(relationType, artA, artB);
-
- window.addValid(artifact);
- } catch (IllegalArgumentException ex) {
- window.addInvalidArtifact(artifact, ex.getMessage());
- }
- }
- } catch (OseeArgumentException ex) {
- window.addInvalid("All", ex.getMessage());
- }
- }
-
- private static void addFiles(String[] fileNames, RelationExplorerWindow window, Shell shell) {
- RelationTypeSideSorter group = window.getRelationGroup();
- IFile iFile;
- Artifact artifact;
-
- for (int i = 0; i < fileNames.length; i++) {
- iFile = AWorkspace.getIFile(fileNames[i]);
- String location;
-
- if (iFile == null) {
- try {
- location = new File(fileNames[i]).toURI().toURL().toString();
- } catch (MalformedURLException e) {
- window.addInvalid(fileNames[i], "Malformed URL exception: " + e.getMessage());
- continue;
- }
- } else {
- location = WorkspaceURL.getURL(iFile);
- }
-
- try {
- artifact = getArtifactFromWorkspaceFile(location, shell);
- } catch (Exception ex) {
- window.addInvalid(location, "Runtime exception: " + ex.getMessage());
- continue;
- }
-
- if (artifact == null) {
- window.addInvalid(location, "Artifact has been cancelled");
- } else {
- try {
- ensureLinkValidity(group, artifact);
- window.addValid(artifact);
- } catch (OseeCoreException ex) {
- window.addInvalid(artifact.getName(), ex.getMessage());
- }
-
- }
- }
- }
-
- private static void addURL(String url, RelationExplorerWindow window, Shell shell) {
- RelationTypeSideSorter group = window.getRelationGroup();
- Artifact artifact;
- String location;
-
- try {
- location = new URL(url).toString();
- } catch (MalformedURLException e) {
- window.addInvalid(url, "Malformed Exception : " + e.getLocalizedMessage());
- return;
- }
-
- try {
- artifact = getArtifactFromWorkspaceFile(location, shell);
- } catch (Exception ex) {
- window.addInvalid(location, "Runtime exception: " + ex.getLocalizedMessage());
- return;
- }
-
- if (artifact == null) {
- window.addInvalid(location, "Artifact has been cancelled");
- }
- try {
- ensureLinkValidity(group, artifact);
- window.addValid(artifact);
- } catch (OseeCoreException ex) {
- window.addInvalid(artifact.getName(), ex.getMessage());
- }
- }
-
- public static Artifact getArtifactFromWorkspaceFile(String location, Shell shell) throws OseeCoreException {
- Artifact artifact = null;
- Branch branch = BranchSelectionDialog.getBranchFromUser();
- if (branch != null) {
- 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.framework.ui.skynet;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Collection;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.window.Window;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.enums.RelationSide;
+import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+import org.eclipse.osee.framework.core.model.type.RelationType;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactData;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeManager;
+import org.eclipse.osee.framework.skynet.core.artifact.WorkspaceURL;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
+import org.eclipse.osee.framework.skynet.core.relation.RelationTypeSideSorter;
+import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactTransfer;
+import org.eclipse.osee.framework.ui.skynet.branch.BranchSelectionDialog;
+import org.eclipse.osee.framework.ui.skynet.relation.explorer.RelationExplorerWindow;
+import org.eclipse.osee.framework.ui.ws.AWorkspace;
+import org.eclipse.swt.dnd.DropTargetEvent;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * @author Michael S. Rodgers
+ */
+public class ArtifactDragDropSupport {
+
+ public static void performDragDrop(DropTargetEvent e, RelationExplorerWindow window, Shell shell) throws OseeCoreException {
+ performDragDrop(e, null, window, shell);
+ }
+
+ private static void performDragDrop(DropTargetEvent e, Artifact[] artifacts, RelationExplorerWindow window, Shell shell) throws OseeCoreException {
+
+ if (ArtifactTransfer.getInstance().isSupportedType(e.currentDataType)) {
+
+ if (artifacts != null) {
+ addArtifacts(artifacts, window);
+ } else {
+ ArtifactData artData = ArtifactTransfer.getInstance().nativeToJava(e.currentDataType);
+ addArtifacts(artData.getArtifacts(), window);
+ }
+ } else if (e.data instanceof String[]) {
+ addFiles((String[]) e.data, window, shell);
+
+ } else if (e.data instanceof String) {
+ addURL((String) e.data, window, shell);
+ }
+ }
+
+ private static void ensureLinkValidity(RelationTypeSideSorter group, Artifact artifact) throws OseeCoreException {
+ RelationType relationType = group.getRelationType();
+ Artifact otherArtifact = group.getArtifact();
+
+ Artifact artifactA = group.getSide() == RelationSide.SIDE_A ? artifact : otherArtifact;
+ Artifact artifactB = group.getSide() == RelationSide.SIDE_A ? otherArtifact : artifact;
+ RelationManager.ensureRelationCanBeAdded(relationType, artifactA, artifactB);
+ }
+
+ private static void addArtifacts(Artifact[] artifacts, RelationExplorerWindow window) throws OseeCoreException {
+ RelationTypeSideSorter group = window.getRelationGroup();
+ RelationSide relationSide = group.getSide();
+ RelationType relationType = group.getRelationType();
+
+ try {
+ for (Artifact artifact : artifacts) {
+ try {
+ Artifact artA = null;
+ Artifact artB = null;
+ if (relationSide == RelationSide.SIDE_A) {
+ artA = artifact;
+ artB = group.getArtifact();
+ } else {
+ artA = group.getArtifact();
+ artB = artifact;
+ }
+ RelationManager.ensureRelationCanBeAdded(relationType, artA, artB);
+
+ window.addValid(artifact);
+ } catch (IllegalArgumentException ex) {
+ window.addInvalidArtifact(artifact, ex.getMessage());
+ }
+ }
+ } catch (OseeArgumentException ex) {
+ window.addInvalid("All", ex.getMessage());
+ }
+ }
+
+ private static void addFiles(String[] fileNames, RelationExplorerWindow window, Shell shell) {
+ RelationTypeSideSorter group = window.getRelationGroup();
+ IFile iFile;
+ Artifact artifact;
+
+ for (int i = 0; i < fileNames.length; i++) {
+ iFile = AWorkspace.getIFile(fileNames[i]);
+ String location;
+
+ if (iFile == null) {
+ try {
+ location = new File(fileNames[i]).toURI().toURL().toString();
+ } catch (MalformedURLException e) {
+ window.addInvalid(fileNames[i], "Malformed URL exception: " + e.getMessage());
+ continue;
+ }
+ } else {
+ location = WorkspaceURL.getURL(iFile);
+ }
+
+ try {
+ artifact = getArtifactFromWorkspaceFile(location, shell);
+ } catch (Exception ex) {
+ window.addInvalid(location, "Runtime exception: " + ex.getMessage());
+ continue;
+ }
+
+ if (artifact == null) {
+ window.addInvalid(location, "Artifact has been cancelled");
+ } else {
+ try {
+ ensureLinkValidity(group, artifact);
+ window.addValid(artifact);
+ } catch (OseeCoreException ex) {
+ window.addInvalid(artifact.getName(), ex.getMessage());
+ }
+
+ }
+ }
+ }
+
+ private static void addURL(String url, RelationExplorerWindow window, Shell shell) {
+ RelationTypeSideSorter group = window.getRelationGroup();
+ Artifact artifact;
+ String location;
+
+ try {
+ location = new URL(url).toString();
+ } catch (MalformedURLException e) {
+ window.addInvalid(url, "Malformed Exception : " + e.getLocalizedMessage());
+ return;
+ }
+
+ try {
+ artifact = getArtifactFromWorkspaceFile(location, shell);
+ } catch (Exception ex) {
+ window.addInvalid(location, "Runtime exception: " + ex.getLocalizedMessage());
+ return;
+ }
+
+ if (artifact == null) {
+ window.addInvalid(location, "Artifact has been cancelled");
+ }
+ try {
+ ensureLinkValidity(group, artifact);
+ window.addValid(artifact);
+ } catch (OseeCoreException ex) {
+ window.addInvalid(artifact.getName(), ex.getMessage());
+ }
+ }
+
+ public static Artifact getArtifactFromWorkspaceFile(String location, Shell shell) throws OseeCoreException {
+ Artifact artifact = null;
+ Branch branch = BranchSelectionDialog.getBranchFromUser();
+ if (branch != null) {
+ try {
artifact = ArtifactQuery.getArtifactFromAttribute(CoreAttributeTypes.ContentUrl, location, branch);
- } catch (ArtifactDoesNotExist ex) {
- Collection<ArtifactType> artifactTypes =
+ } catch (ArtifactDoesNotExist ex) {
+ Collection<ArtifactType> artifactTypes =
ArtifactTypeManager.getArtifactTypesFromAttributeType(CoreAttributeTypes.ContentUrl, branch);
- ArtifactTypeDialog dialog =
- new ArtifactTypeDialog(shell, "Artifact Types", null,
- "No Artifact could be found for this file. To create one, please select an artfact type.",
- MessageDialog.QUESTION, new String[] {"OK", "Cancel"}, 0, artifactTypes);
-
- if (dialog.open() == Window.OK) {
- artifact = ArtifactTypeManager.makeNewArtifact(dialog.getArtifactType(), branch);
+ ArtifactTypeDialog dialog =
+ new ArtifactTypeDialog(shell, "Artifact Types", null,
+ "No Artifact could be found for this file. To create one, please select an artfact type.",
+ MessageDialog.QUESTION, new String[] {"OK", "Cancel"}, 0, artifactTypes);
+
+ if (dialog.open() == Window.OK) {
+ artifact = ArtifactTypeManager.makeNewArtifact(dialog.getArtifactType(), branch);
artifact.setSoleAttributeValue(CoreAttributeTypes.ContentUrl, location);
artifact.setName(new File(location).getName());
- }
- }
- }
-
- return artifact;
- }
-}
+ }
+ }
+ }
+
+ return artifact;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
index e28cec23c1a..610f0b2ace4 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
@@ -1,1566 +1,1566 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import static org.eclipse.osee.framework.core.enums.CoreArtifactTypes.RootArtifact;
-import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.viewers.AbstractTreeViewer;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.window.Window;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-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.operation.AbstractOperation;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.jdk.core.type.HashCollection;
-import org.eclipse.osee.framework.jdk.core.util.GUID;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.IActionable;
-import org.eclipse.osee.framework.plugin.core.util.Jobs;
-import org.eclipse.osee.framework.skynet.core.OseeSystemArtifacts;
-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.ArtifactTypeManager;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.skynet.core.artifact.IBranchProvider;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
-import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
-import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
-import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData.ChangeType;
-import org.eclipse.osee.framework.skynet.core.event.IAccessControlEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IBranchEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
-import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
-import org.eclipse.osee.framework.skynet.core.event2.filter.IEventFilter;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
-import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActivator;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.plugin.util.SelectionCountChangeListener;
-import org.eclipse.osee.framework.ui.skynet.access.PolicyDialog;
-import org.eclipse.osee.framework.ui.skynet.action.OpenAssociatedArtifactFromBranchProvider;
-import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactNameConflictHandler;
-import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactPasteOperation;
-import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.branch.BranchSelectionDialog;
-import org.eclipse.osee.framework.ui.skynet.change.ChangeUiUtil;
-import org.eclipse.osee.framework.ui.skynet.dialogs.ArtifactPasteSpecialDialog;
-import org.eclipse.osee.framework.ui.skynet.listener.IRebuildMenuListener;
-import org.eclipse.osee.framework.ui.skynet.menu.ArtifactTreeViewerGlobalMenuHelper;
-import org.eclipse.osee.framework.ui.skynet.menu.GlobalMenu;
-import org.eclipse.osee.framework.ui.skynet.menu.GlobalMenuPermissions;
-import org.eclipse.osee.framework.ui.skynet.menu.IGlobalMenuHelper;
-import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
-import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
-import org.eclipse.osee.framework.ui.skynet.search.QuickSearchView;
-import org.eclipse.osee.framework.ui.skynet.skywalker.SkyWalkerView;
-import org.eclipse.osee.framework.ui.skynet.util.ArtifactClipboard;
-import org.eclipse.osee.framework.ui.skynet.util.ArtifactPasteConfiguration;
-import org.eclipse.osee.framework.ui.skynet.util.DbConnectionExceptionComposite;
-import org.eclipse.osee.framework.ui.skynet.util.SkynetViews;
-import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ArtifactTypeFilteredTreeEntryDialog;
-import org.eclipse.osee.framework.ui.skynet.widgets.xHistory.HistoryView;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.osee.framework.ui.swt.MenuItems;
-import org.eclipse.osee.framework.ui.swt.TreeViewerUtility;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.StackLayout;
-import org.eclipse.swt.custom.TreeEditor;
-import org.eclipse.swt.events.DisposeEvent;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.events.FocusAdapter;
-import org.eclipse.swt.events.FocusEvent;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.MenuEvent;
-import org.eclipse.swt.events.MenuListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.swt.widgets.TreeItem;
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IViewReference;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.ExportResourcesAction;
-import org.eclipse.ui.actions.ImportResourcesAction;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.ui.progress.UIJob;
-
-/**
- * <REM2>
- *
- * @author Ryan D. Brooks
- */
-public class ArtifactExplorer extends ViewPart implements IArtifactExplorerEventHandler, IRebuildMenuListener, IAccessControlEventListener, IFrameworkTransactionEventListener, IBranchEventListener, IArtifactsPurgedEventListener, IArtifactsChangeTypeEventListener, IActionable, ISelectionProvider, IBranchProvider {
- public static final String VIEW_ID = "org.eclipse.osee.framework.ui.skynet.ArtifactExplorer";
- private static final String ROOT_GUID = "artifact.explorer.last.root_guid";
- private static final String ROOT_BRANCH = "artifact.explorer.last.root_branch";
- private static final ArtifactClipboard artifactClipboard = new ArtifactClipboard(VIEW_ID);
- private static final LinkedList<Tree> trees = new LinkedList<Tree>();
-
- private TreeViewer treeViewer;
- private Action upAction;
- private Artifact explorerRoot;
- private MenuItem openMenuItem;
- private MenuItem massEditMenuItem;
- private MenuItem skywalkerMenuItem;
- private MenuItem createMenuItem;
- private MenuItem openWithMenuItem;
- private MenuItem accessControlMenuItem;
- private MenuItem lockMenuItem;
- private MenuItem goIntoMenuItem;
- private MenuItem copyMenuItem;
- private MenuItem pasteMenuItem;
- private MenuItem pasteSpecialMenuItem;
- private MenuItem renameArtifactMenuItem;
- private MenuItem refreshMenuItem;
- private MenuItem findOnAnotherBranch;
- private NeedArtifactMenuListener needArtifactListener;
- private NeedProjectMenuListener needProjectListener;
- private Tree myTree;
- private TreeEditor myTreeEditor;
- private Text myTextBeingRenamed;
- private Action newArtifactExplorer;
- private Action collapseAllAction;
- private Action showChangeReport;
- private XBranchSelectWidget branchSelect;
- private Branch branch;
- private IGlobalMenuHelper globalMenuHelper;
-
- private Composite stackComposite;
- private Control branchUnreadableWarning;
- private StackLayout stackLayout;
- private final ArtifactDecorator artifactDecorator = new ArtifactDecorator(
- SkynetGuiPlugin.ARTIFACT_EXPLORER_ATTRIBUTES_PREF);
-
- public static void explore(Collection<Artifact> artifacts) {
- explore(artifacts, AWorkbench.getActivePage());
- }
-
- public static void explore(Collection<Artifact> artifacts, IWorkbenchPage page) {
- Artifact sampleArtifact = null;
- Branch inputBranch = null;
- if (artifacts != null && !artifacts.isEmpty()) {
- sampleArtifact = artifacts.iterator().next();
- inputBranch = sampleArtifact.getBranch();
- }
- ArtifactExplorer artifactExplorer = findView(inputBranch, page);
-
- artifactExplorer.setPartName("Artifacts");
- artifactExplorer.setContentDescription("These artifacts could not be handled");
- artifactExplorer.treeViewer.setInput(artifacts);
- artifactExplorer.initializeSelectionBox();
- }
-
- private static ArtifactExplorer findView(Branch inputBranch, IWorkbenchPage page) {
- for (IViewReference view : page.getViewReferences()) {
- if (view.getId().equals(ArtifactExplorer.VIEW_ID)) {
- if (view.getView(false) != null && inputBranch.equals(((ArtifactExplorer) view.getView(false)).branch)) {
- try {
- return (ArtifactExplorer) page.showView(view.getId(), view.getSecondaryId(),
- IWorkbenchPage.VIEW_ACTIVATE);
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- }
- }
- try {
- ArtifactExplorer explorer =
- (ArtifactExplorer) page.showView(ArtifactExplorer.VIEW_ID, GUID.create(), IWorkbenchPage.VIEW_ACTIVATE);
- explorer.explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(inputBranch));
- return explorer;
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
-
- private Control createDefaultWarning(Composite parent) {
- Composite composite = new Composite(parent, SWT.BORDER);
- composite.setLayout(new GridLayout(2, false));
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- composite.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
-
- Label image = new Label(composite, SWT.NONE);
- image.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
- image.setImage(ImageManager.getImage(FrameworkImage.LOCKED_KEY));
- image.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
-
- Label label = new Label(composite, SWT.NONE);
- Font font = new Font(PlatformUI.getWorkbench().getDisplay(), "Courier New", 10, SWT.BOLD);
- label.setFont(font);
- label.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED));
- label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
- label.setText("Branch Read Access Denied.\nContact your administrator.");
- label.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
-
- return composite;
- }
-
- private void checkBranchReadable() throws OseeCoreException {
- if (treeViewer == null) {
- return;
- }
- Control control = branchUnreadableWarning;
- if (branch == null || new GlobalMenuPermissions(globalMenuHelper).isBranchReadable(branch)) {
- control = treeViewer.getTree();
- }
- stackLayout.topControl = control;
- stackComposite.layout();
- stackComposite.getParent().layout();
- }
-
- @Override
- public void createPartControl(Composite parent) {
- try {
- if (!DbConnectionExceptionComposite.dbConnectionIsOk(parent)) {
- return;
- }
-
- GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
- gridData.heightHint = 1000;
- gridData.widthHint = 1000;
-
- parent.setLayout(new GridLayout(1, false));
- parent.setLayoutData(gridData);
-
- branchSelect = new XBranchSelectWidget("");
- branchSelect.setDisplayLabel(false);
- branchSelect.setSelection(branch);
- branchSelect.createWidgets(parent, 1);
-
- branchSelect.addListener(new Listener() {
- @Override
- public void handleEvent(Event event) {
- try {
- Branch selectedBranch = branchSelect.getData();
- if (selectedBranch != null) {
- branch = selectedBranch;
- explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch));
- }
- } catch (Exception ex) {
- OseeLog.log(getClass(), Level.SEVERE, ex);
- }
- }
-
- });
-
- stackComposite = new Composite(parent, SWT.NONE);
- stackLayout = new StackLayout();
- stackComposite.setLayout(stackLayout);
- stackComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- branchUnreadableWarning = createDefaultWarning(stackComposite);
-
- treeViewer = new TreeViewer(stackComposite);
- myTree = treeViewer.getTree();
- Tree tree = treeViewer.getTree();
- final ArtifactExplorer fArtExplorere = this;
- tree.addDisposeListener(new DisposeListener() {
-
- @Override
- public void widgetDisposed(DisposeEvent e) {
- ArtifactExplorerEventManager.remove(fArtExplorere);
- }
- });
- treeViewer.setContentProvider(new ArtifactContentProvider());
-
- treeViewer.setLabelProvider(new ArtifactLabelProvider(artifactDecorator));
- treeViewer.addDoubleClickListener(new ArtifactDoubleClick());
- treeViewer.getControl().setLayoutData(gridData);
-
- // We can not use the hash lookup because an artifact may not have a
- // good equals.
- // This can be added back once the content provider is converted over to
- // use job node.
- treeViewer.setUseHashlookup(false);
-
- treeViewer.addSelectionChangedListener(new SelectionCountChangeListener(getViewSite()));
- globalMenuHelper = new ArtifactTreeViewerGlobalMenuHelper(treeViewer);
-
- IToolBarManager toolbarManager = getViewSite().getActionBars().getToolBarManager();
- createCollapseAllAction(toolbarManager);
- createUpAction(toolbarManager);
- createNewArtifactExplorerAction(toolbarManager);
- createShowChangeReportAction(toolbarManager);
- addOpenQuickSearchAction(toolbarManager);
- toolbarManager.add(new OpenAssociatedArtifactFromBranchProvider(this));
-
- artifactDecorator.setViewer(treeViewer);
- artifactDecorator.addActions(getViewSite().getActionBars().getMenuManager(), this);
-
- getSite().setSelectionProvider(treeViewer);
- addExploreSelection();
-
- setupPopupMenu();
-
- myTreeEditor = new TreeEditor(myTree);
- myTreeEditor.horizontalAlignment = SWT.LEFT;
- myTreeEditor.grabHorizontal = true;
- myTreeEditor.minimumWidth = 50;
-
- new ArtifactExplorerDragAndDrop(treeViewer, VIEW_ID, this);
-
- OseeUiActions.addBugToViewToolbar(this, this, SkynetGuiPlugin.getInstance(), VIEW_ID, "Artifact Explorer");
-
- OseeContributionItem.addTo(this, false);
-
- updateEnablementsEtAl();
- trees.add(tree);
- setHelpContexts();
-
- checkBranchReadable();
- getViewSite().getActionBars().updateActionBars();
-
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
-
- OseeEventManager.addListener(this);
- ArtifactExplorerEventManager.add(this);
- }
-
- /**
- * Reveal an artifact in the viewer and select it.
- *
- * @param artifact
- */
- public static void exploreBranch(Branch branch) {
- if (branch != null) {
- IWorkbenchPage page = AWorkbench.getActivePage();
- findView(branch, page);
- }
- }
-
- public void setupPopupMenu() {
-
- Menu popupMenu = new Menu(treeViewer.getTree().getParent());
- needArtifactListener = new NeedArtifactMenuListener();
- needProjectListener = new NeedProjectMenuListener();
- popupMenu.addMenuListener(needArtifactListener);
- popupMenu.addMenuListener(needProjectListener);
-
- createOpenMenuItem(popupMenu);
- createOpenWithMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createFindOnDifferentBranchItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createNewChildMenuItem(popupMenu);
- createGoIntoMenuItem(popupMenu);
- createMassEditMenuItem(popupMenu);
- createSkywalkerMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- new GlobalMenu(popupMenu, globalMenuHelper);
- createRenameArtifactMenuItem(popupMenu);
- createRefreshMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createHistoryMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createImportExportMenuItems(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createLockMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createCopyMenuItem(popupMenu);
- createPasteMenuItem(popupMenu);
- createPasteSpecialMenuItem(popupMenu);
- createExpandAllMenuItem(popupMenu);
- createSelectAllMenuItem(popupMenu);
- new MenuItem(popupMenu, SWT.SEPARATOR);
- createAccessControlMenuItem(popupMenu);
- treeViewer.getTree().setMenu(popupMenu);
- }
-
- private void addOpenQuickSearchAction(IToolBarManager toolbarManager) {
- Action openQuickSearch =
- new Action("Quick Search", ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_SEARCH)) {
- @Override
- public void run() {
- Job job = new UIJob("Open Quick Search") {
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- IStatus status = Status.OK_STATUS;
- try {
- IViewPart viewPart =
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
- QuickSearchView.VIEW_ID);
- if (viewPart != null) {
- Branch branch = getBranch(monitor);
- if (branch != null) {
- ((QuickSearchView) viewPart).setBranch(branch);
- }
- }
- } catch (Exception ex) {
- status = new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Error opening quick search", ex);
- }
- return status;
- }
- };
- Jobs.startJob(job);
- }
- };
- openQuickSearch.setToolTipText("Open Quick Search View");
- toolbarManager.add(openQuickSearch);
- }
-
- protected void createUpAction(IToolBarManager toolbarManager) {
- upAction = new Action("View Parent") {
- @Override
- public void run() {
- try {
- Artifact parent = explorerRoot.getParent();
-
- if (parent == null) {
- return;
- }
-
- Object[] expanded = treeViewer.getExpandedElements();
- Object[] expandedPlus = new Object[expanded.length + 1];
- for (int i = 0; i < expanded.length; i++) {
- expandedPlus[i] = expanded[i];
- }
- expandedPlus[expandedPlus.length - 1] = explorerRoot;
-
- explore(parent);
-
- treeViewer.setExpandedElements(expandedPlus);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- };
-
- upAction.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.ARROW_UP_YELLOW));
- upAction.setToolTipText("View Parent");
- updateEnablementsEtAl();
- toolbarManager.add(upAction);
- }
-
- private void createNewArtifactExplorerAction(IToolBarManager toolbarManager) {
-
- newArtifactExplorer = new Action("New Artifact Explorer") {
- @Override
- public void run() {
- IWorkbenchPage page = AWorkbench.getActivePage();
- ArtifactExplorer artifactExplorer;
- try {
- artifactExplorer =
- (ArtifactExplorer) page.showView(ArtifactExplorer.VIEW_ID, GUID.create(),
- IWorkbenchPage.VIEW_ACTIVATE);
- artifactExplorer.explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch));
- artifactExplorer.setExpandedArtifacts(treeViewer.getExpandedElements());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- };
-
- newArtifactExplorer.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_EXPLORER));
- toolbarManager.add(newArtifactExplorer);
- }
-
- private void createShowChangeReportAction(IToolBarManager toolbarManager) {
- showChangeReport = new Action("Show Change Report") {
- @Override
- public void run() {
- try {
- ChangeUiUtil.open(branch);
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- };
-
- showChangeReport.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.BRANCH_CHANGE));
- toolbarManager.add(showChangeReport);
- }
-
- private void createCollapseAllAction(IToolBarManager toolbarManager) {
- collapseAllAction = new Action("Collapse All") {
- @Override
- public void run() {
- if (treeViewer != null) {
- treeViewer.collapseAll();
- }
- }
- };
-
- collapseAllAction.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.COLLAPSE_ALL));
- toolbarManager.add(collapseAllAction);
- }
-
- private void createOpenWithMenuItem(Menu parentMenu) {
- openWithMenuItem = new MenuItem(parentMenu, SWT.CASCADE);
- openWithMenuItem.setText("&Open With");
- final Menu submenu = new Menu(openWithMenuItem);
- openWithMenuItem.setMenu(submenu);
- parentMenu.addMenuListener(new OpenWithMenuListener(submenu, treeViewer, this));
- }
-
- private void createNewChildMenuItem(Menu parentMenu) {
- createMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- needProjectListener.add(createMenuItem);
- createMenuItem.setText("&New Child");
- createMenuItem.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- super.widgetSelected(e);
- try {
- ArtifactTypeFilteredTreeEntryDialog dialog = getDialog();
- Artifact parent = getParent();
-
- if (dialog.open() == Window.OK) {
- ArtifactType type = dialog.getSelection();
- String name = dialog.getEntryValue();
-
- SkynetTransaction transaction =
- new SkynetTransaction(branch, String.format("Created new %s \"%s\" in artifact explorer",
- type.getName(), name));
- parent.addNewChild(null, type, name);
- parent.persist(transaction);
- transaction.execute();
-
- treeViewer.refresh();
- treeViewer.refresh(false);
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private ArtifactTypeFilteredTreeEntryDialog getDialog() throws OseeCoreException {
- Collection<ArtifactType> artifactTypes =
- ArtifactTypeManager.getConcreteArtifactTypes(branchSelect.getData());
-
- // IAccessPolicyHandlerService policyHandlerService = SkynetGuiPlugin.getInstance().getPolicyHandlerService();
- // policyHandlerService.
-
- ArtifactType rootArtifactType = ArtifactTypeManager.getType(RootArtifact);
- artifactTypes.remove(rootArtifactType);
-
- ArtifactTypeFilteredTreeEntryDialog dialog =
- new ArtifactTypeFilteredTreeEntryDialog("New Child", "Enter name and select Artifact type to create",
- "Artifact Name");
- dialog.setInput(artifactTypes);
- return dialog;
- }
-
- private Artifact getParent() throws OseeCoreException {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
-
- if (selection.size() > 1) {
- throw new OseeCoreException("Please select a single artifact to create a new child.");
- }
-
- Iterator<?> itemsIter = selection.iterator();
- Artifact parent;
- if (!itemsIter.hasNext()) {
- parent = explorerRoot;
- } else {
- parent = (Artifact) itemsIter.next();
- }
-
- return parent;
- }
- });
- }
-
- private void createGoIntoMenuItem(Menu parentMenu) {
- goIntoMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- goIntoMenuItem.setText("&Go Into");
- needArtifactListener.add(goIntoMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- goIntoMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent ev) {
-
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- Iterator<?> itemsIter = selection.iterator();
- if (itemsIter.hasNext()) {
- try {
- Object[] expanded = treeViewer.getExpandedElements();
- explore((Artifact) itemsIter.next());
- treeViewer.setExpandedElements(expanded);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
- });
- }
-
- private void createOpenMenuItem(Menu parentMenu) {
- openMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- openMenuItem.setText("&Open");
- needArtifactListener.add(openMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- openMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent ev) {
- LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
- TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
- RendererManager.openInJob(selectedItems, PresentationType.DEFAULT_OPEN);
- }
- });
- }
-
- private void createFindOnDifferentBranchItem(Menu parentMenu) {
- findOnAnotherBranch = new MenuItem(parentMenu, SWT.PUSH);
- findOnAnotherBranch.setText("Reveal On Another Branch");
- needArtifactListener.add(findOnAnotherBranch);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- findOnAnotherBranch.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent ev) {
- LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
- TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
- Branch branch = BranchSelectionDialog.getBranchFromUser();
- if (branch != null) {
- for (Artifact artifact : selectedItems) {
- try {
- ArtifactExplorer.revealArtifact(ArtifactQuery.getArtifactFromId(artifact.getArtId(), branch));
- } catch (OseeCoreException ex) {
- OseeLog.log(
- SkynetGuiPlugin.class,
- OseeLevel.SEVERE_POPUP,
- String.format("Could not find Artifact \'%s\' on Branch \'%s\'", artifact.getName(),
- branch.getName()));
- }
- }
-
- }
- }
- });
- }
-
- private void createMassEditMenuItem(Menu parentMenu) {
- massEditMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- massEditMenuItem.setText("Mass Edit");
- needArtifactListener.add(massEditMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- massEditMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent ev) {
- LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
- TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
- MassArtifactEditor.editArtifacts("", selectedItems);
- }
- });
- }
-
- private void createRefreshMenuItem(Menu parentMenu) {
- refreshMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- refreshMenuItem.setText("Refresh");
- needArtifactListener.add(refreshMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- refreshMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent mySelectionEvent) {
- LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
- TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
- for (Artifact artifact : selectedItems) {
- treeViewer.refresh(artifact);
- }
- }
- });
- }
-
- private void createRenameArtifactMenuItem(Menu parentMenu) {
- renameArtifactMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- renameArtifactMenuItem.setText("Rename Artifact");
- needArtifactListener.add(renameArtifactMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- renameArtifactMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent mySelectionEvent) {
- handleRenameArtifactSelectionEvent(mySelectionEvent);
- }
- });
- }
-
- private void handleRenameArtifactSelectionEvent(SelectionEvent mySelectionEvent) {
- // Clean up any previous editor control
- Control oldEditor = myTreeEditor.getEditor();
-
- if (oldEditor != null) {
- oldEditor.dispose();
- }
-
- // Identify the selected row, only allow input if there is a single
- // selected row
- TreeItem[] selection = myTree.getSelection();
-
- if (selection.length != 1) {
- return;
- }
-
- final TreeItem myTreeItem = selection[0];
-
- if (myTreeItem == null) {
- return;
- }
- myTextBeingRenamed = new Text(myTree, SWT.BORDER);
- Object myTreeItemObject = myTreeItem.getData();
- myTextBeingRenamed.setText(((Artifact) myTreeItemObject).getName());
- myTextBeingRenamed.addFocusListener(new FocusAdapter() {
- @Override
- public void focusLost(FocusEvent e) {
- updateText(myTextBeingRenamed.getText(), myTreeItem);
- myTextBeingRenamed.dispose();
-
- }
-
- @Override
- public void focusGained(FocusEvent e) {
- // do nothing
- }
- });
-
- myTextBeingRenamed.addKeyListener(new KeyAdapter() {
- @Override
- public void keyReleased(KeyEvent e) {
- if (e.character == SWT.CR) {
- updateText(myTextBeingRenamed.getText(), myTreeItem);
- myTextBeingRenamed.dispose();
- } else if (e.keyCode == SWT.ESC) {
- myTextBeingRenamed.dispose();
- }
- }
- });
- myTextBeingRenamed.selectAll();
- myTextBeingRenamed.setFocus();
- myTreeEditor.setEditor(myTextBeingRenamed, myTreeItem);
- }
-
- private void updateText(String newLabel, TreeItem item) {
- myTreeEditor.getItem().setText(newLabel);
- Object myTreeItemObject = item.getData();
- if (myTreeItemObject instanceof Artifact) {
- Artifact myArtifact = (Artifact) myTreeItemObject;
- try {
- myArtifact.setName(newLabel);
- myArtifact.persist();
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- treeViewer.refresh();
- }
-
- private void createSkywalkerMenuItem(Menu parentMenu) {
- skywalkerMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- skywalkerMenuItem.setText("Sky Walker");
- needArtifactListener.add(skywalkerMenuItem);
-
- ArtifactMenuListener listener = new ArtifactMenuListener();
- parentMenu.addMenuListener(listener);
- skywalkerMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent ev) {
- LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
- TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
- SkyWalkerView.exploreArtifact(selectedItems.getFirst());
- }
- });
- }
-
- private void createSelectAllMenuItem(Menu parentMenu) {
- MenuItem menuItem = new MenuItem(parentMenu, SWT.PUSH);
- menuItem.setText("&Select All\tCtrl+A");
- menuItem.addListener(SWT.Selection, new Listener() {
- @Override
- public void handleEvent(org.eclipse.swt.widgets.Event event) {
- treeViewer.getTree().selectAll();
- }
- });
- }
-
- private void createHistoryMenuItem(Menu parentMenu) {
- MenuItem revisionMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- revisionMenuItem.setText("&Show Resource History ");
- revisionMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- Artifact selectedArtifact = (Artifact) selection.getFirstElement();
-
- try {
- HistoryView.open(selectedArtifact);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- private void createImportExportMenuItems(Menu parentMenu) {
- MenuItems.createMenuItem(parentMenu, SWT.PUSH, new ImportResourcesAction(getViewSite().getWorkbenchWindow()));
- MenuItems.createMenuItem(parentMenu, SWT.PUSH, new ExportResourcesAction(getViewSite().getWorkbenchWindow()));
- }
-
- private void createAccessControlMenuItem(Menu parentMenu) {
- accessControlMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- accessControlMenuItem.setImage(ImageManager.getImage(FrameworkImage.AUTHENTICATED));
- accessControlMenuItem.setText("&Access Control ");
- // accessControlMenuItem.setEnabled(false);
- accessControlMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- Artifact selectedArtifact = (Artifact) selection.getFirstElement();
- try {
- if (selectedArtifact != null) {
- PolicyDialog pd = new PolicyDialog(Displays.getActiveShell(), selectedArtifact);
- pd.open();
- checkBranchReadable();
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- private void createLockMenuItem(Menu parentMenu) {
- lockMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- lockMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- Iterator<?> iterator = selection.iterator();
- Set<Artifact> lockArtifacts = new HashSet<Artifact>();
- Set<Artifact> unlockArtifacts = new HashSet<Artifact>();
- while (iterator.hasNext()) {
- try {
- Artifact object = (Artifact) iterator.next();
- if (new GlobalMenuPermissions(object).isLocked()) {
- unlockArtifacts.add(object);
- } else {
- lockArtifacts.add(object);
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- try {
- AccessControlManager.unLockObjects(unlockArtifacts, UserManager.getUser());
- AccessControlManager.lockObjects(lockArtifacts, UserManager.getUser());
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- });
- }
-
- private void createCopyMenuItem(Menu parentMenu) {
- copyMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- copyMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_COPY));
- copyMenuItem.setText("Copy \tCtrl+C");
- copyMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- performCopy();
- }
- });
- }
-
- private void performCopy() {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- ArrayList<Artifact> artifactTransferData = new ArrayList<Artifact>();
- ArrayList<String> textTransferData = new ArrayList<String>();
- Artifact artifact;
-
- if (selection != null && !selection.isEmpty()) {
- for (Object object : selection.toArray()) {
- if (object instanceof Artifact) {
- artifact = (Artifact) object;
-
- artifactTransferData.add(artifact);
- textTransferData.add(artifact.getName());
- }
- }
- artifactClipboard.setArtifactsToClipboard(artifactTransferData, textTransferData);
- }
- }
-
- private void createPasteMenuItem(Menu parentMenu) {
- pasteMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- pasteMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE));
- pasteMenuItem.setText("Paste \tCtrl+V");
- pasteMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- performPasteOperation(false);
- }
- });
- }
-
- private void createPasteSpecialMenuItem(Menu parentMenu) {
- pasteSpecialMenuItem = new MenuItem(parentMenu, SWT.PUSH);
- pasteSpecialMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE));
- pasteSpecialMenuItem.setText("Paste Special... \tCtrl+S");
- pasteSpecialMenuItem.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- performPasteOperation(true);
- }
-
- });
- }
-
- private void performPasteOperation(boolean isPasteSpecial) {
- boolean performPaste = true;
- Artifact destinationArtifact = null;
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
- if (selection != null && !selection.isEmpty()) {
- Object object = selection.getFirstElement();
-
- if (object instanceof Artifact) {
- destinationArtifact = (Artifact) object;
- }
- }
-
- ArtifactPasteConfiguration config = new ArtifactPasteConfiguration();
-
- if (isPasteSpecial) {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- List<Artifact> copiedArtifacts = artifactClipboard.getCopiedContents();
- ArtifactPasteSpecialDialog dialog =
- new ArtifactPasteSpecialDialog(shell, config, destinationArtifact, copiedArtifacts);
- performPaste = dialog.open() == Window.OK;
- }
-
- if (performPaste) {
- Operations.executeAsJob(
- new ArtifactPasteOperation(config, destinationArtifact, artifactClipboard.getCopiedContents(),
- new ArtifactNameConflictHandler()), true);
- }
- }
-
- private void createExpandAllMenuItem(Menu parentMenu) {
- MenuItem menuItem = new MenuItem(parentMenu, SWT.PUSH);
- menuItem.setImage(ImageManager.getImage(FrameworkImage.EXPAND_ALL));
- menuItem.setText("Expand All\tCtrl++");
- menuItem.addSelectionListener(new ExpandListener());
- }
-
- public class ExpandListener extends SelectionAdapter {
- @Override
- public void widgetSelected(SelectionEvent event) {
- expandAll((IStructuredSelection) treeViewer.getSelection());
- }
- }
-
- private void expandAll(IStructuredSelection selection) {
- Iterator<?> iter = selection.iterator();
- while (iter.hasNext()) {
- treeViewer.expandToLevel(iter.next(), AbstractTreeViewer.ALL_LEVELS);
- }
- }
-
- @Override
- public void setFocus() {
- if (treeViewer != null) {
- treeViewer.getControl().setFocus();
- }
- }
-
- public void explore(Artifact artifact) {
- if (artifact == null) {
- throw new IllegalArgumentException("Can not explore a null artifact.");
- }
-
- setPartName("Artifact Explorer: " + artifact.getBranch().getShortName());
- if (branch != null && branch != artifact.getBranch()) {
- explore(Arrays.asList(artifact));
- return;
- }
- try {
- checkBranchReadable();
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- explorerRoot = artifact;
- branch = artifact.getBranch();
-
- initializeSelectionBox();
-
- if (treeViewer != null) {
- Object objects[] = treeViewer.getExpandedElements();
- treeViewer.setInput(explorerRoot);
- setupPopupMenu();
- updateEnablementsEtAl();
- // Attempt to re-expand what was expanded
- treeViewer.setExpandedElements(objects);
- }
- }
-
- public void setExpandedArtifacts(Object... artifacts) {
- if (treeViewer != null) {
- treeViewer.setExpandedElements(artifacts);
- }
- }
-
- private void updateEnablementsEtAl() {
- // The upAction may be null if this viewpart has not been layed out yet
- if (upAction != null) {
- try {
- upAction.setEnabled(explorerRoot != null && explorerRoot.hasParent());
- } catch (OseeCoreException ex) {
- upAction.setEnabled(false);
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
- private class NeedArtifactMenuListener implements MenuListener {
- private final HashCollection<Class<? extends Artifact>, MenuItem> menuItemMap;
-
- public NeedArtifactMenuListener() {
- this.menuItemMap = new HashCollection<Class<? extends Artifact>, MenuItem>();
- }
-
- public void add(MenuItem item) {
- menuItemMap.put(Artifact.class, item);
- }
-
- @Override
- public void menuHidden(MenuEvent e) {
- // do nothing
- }
-
- @Override
- public void menuShown(MenuEvent e) {
- IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
-
- Object obj = selection.getFirstElement();
- if (obj != null) {
- Class<? extends Artifact> selectedClass = obj.getClass().asSubclass(Artifact.class);
-
- for (Class<? extends Artifact> artifactClass : menuItemMap.keySet()) {
- boolean valid = artifactClass.isAssignableFrom(selectedClass);
-
- for (MenuItem item : menuItemMap.getValues(artifactClass)) {
- if (!(item.getData() instanceof Exception)) {
- // Only modify enabling if no error is associated
- item.setEnabled(valid);
- }
- }
- }
- }
- }
- }
-
- private class NeedProjectMenuListener implements MenuListener {
- Collection<MenuItem> items;
-
- public NeedProjectMenuListener() {
- this.items = new LinkedList<MenuItem>();
- }
-
- public void add(MenuItem item) {
- items.add(item);
- }
-
- @Override
- public void menuHidden(MenuEvent e) {
- // do nothing
- }
-
- @Override
- public void menuShown(MenuEvent e) {
- boolean valid = treeViewer.getInput() != null;
- for (MenuItem item : items) {
- if (!(item.getData() instanceof Exception)) {
- // Only modify
- // enabling if no
- // error is
- // associated
- item.setEnabled(valid);
- }
- }
- }
- }
-
- /**
- * Add the selection from the define explorer
- */
- private void addExploreSelection() {
- if (explorerRoot != null) {
- try {
- treeViewer.setInput(explorerRoot);
- initializeSelectionBox();
- } catch (IllegalArgumentException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- /**
- * @author Jeff C. Phillips
- */
- public class ArtifactMenuListener implements MenuListener {
-
- @Override
- public void menuHidden(MenuEvent e) {
- // do nothing
- }
-
- @Override
- public void menuShown(MenuEvent e) {
- // Use this menu listener until all menu items can be moved to
- // GlobaMenu
- try {
- GlobalMenuPermissions permiss = new GlobalMenuPermissions(globalMenuHelper);
-
- lockMenuItem.setText((permiss.isLocked() ? "Unlock: (" + permiss.getSubjectFromLockedObjectName() + ")" : "Lock"));
-
- lockMenuItem.setEnabled(permiss.isWritePermission() && (!permiss.isLocked() || permiss.isAccessToRemoveLock()));
- openMenuItem.setEnabled(permiss.isReadPermission());
- createMenuItem.setEnabled(permiss.isWritePermission());
- openWithMenuItem.setEnabled(permiss.isReadPermission());
- goIntoMenuItem.setEnabled(permiss.isReadPermission());
- copyMenuItem.setEnabled(permiss.isReadPermission());
- pasteMenuItem.setEnabled(permiss.isWritePermission());
- renameArtifactMenuItem.setEnabled(permiss.isWritePermission());
-
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
-
- }
- }
-
- @Override
- public void init(IViewSite site, IMemento memento) throws PartInitException {
- super.init(site, memento);
-
- if (OseeUiActivator.areOSEEServicesAvailable().isFalse()) {
- return;
- }
-
- try {
- if (memento != null && memento.getString(ROOT_GUID) != null && memento.getString(ROOT_BRANCH) != null) {
- Branch branch = BranchManager.getBranch(Integer.parseInt(memento.getString(ROOT_BRANCH)));
-
- if (!branch.getArchiveState().isArchived() || AccessControlManager.isOseeAdmin()) {
- Artifact previousArtifact = ArtifactQuery.checkArtifactFromId(memento.getString(ROOT_GUID), branch);
- if (previousArtifact != null) {
- explore(previousArtifact);
- } else {
- /*
- * simply means that the previous artifact that was used as the root for the artiactExplorer does not
- * exist because it was deleted or this workspace was last used with a different branch or database,
- * so let the logic below get the default hierarchy root artifact
- */
- }
- return;
- }
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void saveState(IMemento memento) {
- super.saveState(memento);
- if (explorerRoot != null) {
- memento.putString(ROOT_GUID, explorerRoot.getGuid());
- memento.putString(ROOT_BRANCH, String.valueOf(explorerRoot.getBranch().getId()));
- }
- }
-
- @Override
- public void dispose() {
- OseeEventManager.removeListener(this);
- ArtifactExplorerEventManager.remove(this);
- super.dispose();
- }
-
- @Override
- public String getActionDescription() {
- return "";
- }
-
- @Override
- public void addSelectionChangedListener(ISelectionChangedListener listener) {
- treeViewer.addSelectionChangedListener(listener);
- }
-
- @Override
- public ISelection getSelection() {
- return treeViewer.getSelection();
- }
-
- @Override
- public void removeSelectionChangedListener(ISelectionChangedListener listener) {
- treeViewer.removeSelectionChangedListener(listener);
- }
-
- @Override
- public void setSelection(ISelection selection) {
- treeViewer.setSelection(selection);
- }
-
- private void setHelpContexts() {
- SkynetGuiPlugin.getInstance().setHelp(treeViewer.getControl(), "artifact_explorer_tree_viewer",
- "org.eclipse.osee.framework.help.ui");
- }
-
- @Override
- public void handleArtifactsPurgedEvent(Sender sender, LoadedArtifacts loadedArtifacts) {
- try {
- if (loadedArtifacts.isNotForBranch(branch)) {
- return;
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- treeViewer.refresh();
- }
- });
- }
-
- @Override
- public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
- try {
- if (loadedArtifacts.isNotForBranch(branch)) {
- return;
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- Set<Artifact> parents = new HashSet<Artifact>();
- for (Artifact art : loadedArtifacts.getLoadedArtifacts()) {
- if (art.getParent() != null) {
- parents.add(art.getParent());
- }
- }
- for (Artifact art : parents) {
- treeViewer.refresh(art);
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- @Override
- public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
- if (branch == null || transData.branchId != branch.getId()) {
- return;
- }
-
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (treeViewer != null && Widgets.isAccessible(treeViewer.getTree())) {
- for (Artifact art : transData.cacheDeletedArtifacts) {
- treeViewer.remove(art);
- }
- try {
- if (!transData.cacheDeletedArtifacts.isEmpty()) {
- getTreeViewer().remove(
- transData.cacheDeletedArtifacts.toArray(new Object[transData.cacheDeletedArtifacts.size()]));
- }
- for (Artifact artifact : transData.cacheChangedArtifacts) {
- // Don't refresh deleted artifacts
- if (artifact.isDeleted()) {
- continue;
- }
- getTreeViewer().update(artifact, null);
- }
-
- treeViewer.update(
- transData.getArtifactsInRelations(ChangeType.Changed,
- CoreRelationTypes.Default_Hierarchical__Child).toArray(), null);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- try {
- for (Artifact art : transData.getArtifactsInRelations(ChangeType.Added,
- CoreRelationTypes.Default_Hierarchical__Child)) {
- if (!art.isDeleted() && art.getParent() != null) {
- treeViewer.refresh(art.getParent());
- }
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
- });
- }
-
- @Override
- public void handleBranchEventREM1(Sender sender, BranchEventType branchModType, final int branchId) {
- if (branchModType == BranchEventType.Committed && branch != null && branch.getId() == branchId) {
- SkynetViews.closeView(VIEW_ID, getViewSite().getSecondaryId());
- }
- }
-
- @Override
- public void handleAccessControlArtifactsEvent(Sender sender, AccessControlEvent accessControlEvent) {
- try {
- if (!accessControlEvent.isForBranch(branch)) {
- return;
- }
- if (accessControlEvent.getEventType() == AccessControlEventType.UserAuthenticated ||
- //
- accessControlEvent.getEventType() == AccessControlEventType.ArtifactsUnlocked ||
- //
- accessControlEvent.getEventType() == AccessControlEventType.ArtifactsLocked) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- treeViewer.refresh();
- }
- });
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void rebuildMenu() {
- setupPopupMenu();
- }
-
- public void setBranch(Branch branch) {
- this.branch = branch;
- }
-
- public void initializeSelectionBox() {
- if (branch != null && branchSelect != null && !branch.equals(branchSelect.getData())) {
- branchSelect.setSelection(branch);
- try {
- checkBranchReadable();
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- @Override
- public Branch getBranch(IProgressMonitor monitor) {
- return branch;
- }
-
- /**
- * Reveal an artifact in the viewer and select it.
- *
- * @param artifact
- */
- public static void revealArtifact(Artifact artifact) {
- final ArtifactData data = new ArtifactData(artifact);
- IOperation operation = new CheckArtifactBeforeReveal(data);
- Operations.executeAsJob(operation, true, Job.SHORT, new JobChangeAdapter() {
-
- @Override
- public void done(IJobChangeEvent event) {
- IStatus status = event.getResult();
- if (status.isOK()) {
- Job uiJob = new UIJob("Reveal in Artifact Explorer") {
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- Artifact artifact = data.getArtifact();
- IWorkbenchPage page = AWorkbench.getActivePage();
- ArtifactExplorer artifactExplorer = findView(artifact.getBranch(), page);
- artifactExplorer.treeViewer.setSelection(new StructuredSelection(artifact), true);
- return Status.OK_STATUS;
- }
- };
- Jobs.startJob(uiJob);
- }
- }
- });
- }
-
- private static final class ArtifactData {
- private Artifact artifact;
-
- ArtifactData(Artifact artifact) {
- this.artifact = artifact;
- }
-
- Artifact getArtifact() {
- return artifact;
- }
-
- void setArtifact(Artifact artifact) {
- this.artifact = artifact;
- }
- }
-
- private static final class CheckArtifactBeforeReveal extends AbstractOperation {
-
- private final ArtifactData artifactData;
-
- public CheckArtifactBeforeReveal(ArtifactData artifactData) {
- super("Check Artifact Before Reveal", SkynetGuiPlugin.PLUGIN_ID);
- this.artifactData = artifactData;
- }
-
- @Override
- protected void doWork(IProgressMonitor monitor) throws Exception {
- Conditions.checkNotNull(artifactData, "artifact data");
-
- Artifact artifact = artifactData.getArtifact();
- Conditions.checkNotNull(artifactData, "artifact");
- if (artifact.isDeleted()) {
- throw new OseeStateException("The artifact " + artifact.getName() + " has been deleted.");
- } else {
- if (artifact.isHistorical()) {
- artifactData.setArtifact(ArtifactQuery.getArtifactFromId(artifact.getArtId(), artifact.getBranch(),
- EXCLUDE_DELETED));
- }
-
- Artifact root = OseeSystemArtifacts.getDefaultHierarchyRootArtifact(artifact.getBranch());
- Artifact artifactRoot = artifact.getArtifactRoot();
-
- if (!root.equals(artifactRoot)) {
- String artifactRootName = artifactRoot != null ? artifactRoot.getName() : artifact.getName();
- throw new OseeStateException(
- "The artifact " + artifact.getName() + " is rooted on an orphan tree at " + artifactRootName);
- }
- }
- }
- }
-
- @Override
- public void handleBranchEvent(Sender sender, final BranchEvent branchEvent) {
- if (branchEvent.getEventType() == BranchEventType.Committed && branch != null && branch.getGuid().equals(
- branchEvent.getBranchGuid())) {
- SkynetViews.closeView(VIEW_ID, getViewSite().getSecondaryId());
- }
- }
-
- public TreeViewer getTreeViewer() {
- return treeViewer;
- }
-
- public void setTreeViewer(TreeViewer treeViewer) {
- this.treeViewer = treeViewer;
- }
-
- @Override
- public ArtifactExplorer getArtifactExplorer() {
- return this;
- }
-
- @Override
- public boolean isDisposed() {
- return treeViewer.getTree() == null || treeViewer.getTree().isDisposed();
- }
-
- @Override
- public List<? extends IEventFilter> getEventFilters() {
- if (branch != null) {
- return OseeEventManager.getEventFiltersForBranch(branch);
- }
- return null;
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import static org.eclipse.osee.framework.core.enums.CoreArtifactTypes.RootArtifact;
+import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.viewers.AbstractTreeViewer;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.window.Window;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+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.operation.AbstractOperation;
+import org.eclipse.osee.framework.core.operation.IOperation;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.core.util.Conditions;
+import org.eclipse.osee.framework.jdk.core.type.HashCollection;
+import org.eclipse.osee.framework.jdk.core.util.GUID;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.plugin.core.IActionable;
+import org.eclipse.osee.framework.plugin.core.util.Jobs;
+import org.eclipse.osee.framework.skynet.core.OseeSystemArtifacts;
+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.ArtifactTypeManager;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.skynet.core.artifact.IBranchProvider;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
+import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
+import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
+import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData.ChangeType;
+import org.eclipse.osee.framework.skynet.core.event.IAccessControlEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IBranchEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
+import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
+import org.eclipse.osee.framework.skynet.core.event2.filter.IEventFilter;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActivator;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.plugin.util.SelectionCountChangeListener;
+import org.eclipse.osee.framework.ui.skynet.access.PolicyDialog;
+import org.eclipse.osee.framework.ui.skynet.action.OpenAssociatedArtifactFromBranchProvider;
+import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactNameConflictHandler;
+import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactPasteOperation;
+import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.branch.BranchSelectionDialog;
+import org.eclipse.osee.framework.ui.skynet.change.ChangeUiUtil;
+import org.eclipse.osee.framework.ui.skynet.dialogs.ArtifactPasteSpecialDialog;
+import org.eclipse.osee.framework.ui.skynet.listener.IRebuildMenuListener;
+import org.eclipse.osee.framework.ui.skynet.menu.ArtifactTreeViewerGlobalMenuHelper;
+import org.eclipse.osee.framework.ui.skynet.menu.GlobalMenu;
+import org.eclipse.osee.framework.ui.skynet.menu.GlobalMenuPermissions;
+import org.eclipse.osee.framework.ui.skynet.menu.IGlobalMenuHelper;
+import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
+import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
+import org.eclipse.osee.framework.ui.skynet.search.QuickSearchView;
+import org.eclipse.osee.framework.ui.skynet.skywalker.SkyWalkerView;
+import org.eclipse.osee.framework.ui.skynet.util.ArtifactClipboard;
+import org.eclipse.osee.framework.ui.skynet.util.ArtifactPasteConfiguration;
+import org.eclipse.osee.framework.ui.skynet.util.DbConnectionExceptionComposite;
+import org.eclipse.osee.framework.ui.skynet.util.SkynetViews;
+import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ArtifactTypeFilteredTreeEntryDialog;
+import org.eclipse.osee.framework.ui.skynet.widgets.xHistory.HistoryView;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.osee.framework.ui.swt.MenuItems;
+import org.eclipse.osee.framework.ui.swt.TreeViewerUtility;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.StackLayout;
+import org.eclipse.swt.custom.TreeEditor;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.FocusAdapter;
+import org.eclipse.swt.events.FocusEvent;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.MenuEvent;
+import org.eclipse.swt.events.MenuListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.TreeItem;
+import org.eclipse.ui.IMemento;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IViewReference;
+import org.eclipse.ui.IViewSite;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.ExportResourcesAction;
+import org.eclipse.ui.actions.ImportResourcesAction;
+import org.eclipse.ui.part.ViewPart;
+import org.eclipse.ui.progress.UIJob;
+
+/**
+ * <REM2>
+ *
+ * @author Ryan D. Brooks
+ */
+public class ArtifactExplorer extends ViewPart implements IArtifactExplorerEventHandler, IRebuildMenuListener, IAccessControlEventListener, IFrameworkTransactionEventListener, IBranchEventListener, IArtifactsPurgedEventListener, IArtifactsChangeTypeEventListener, IActionable, ISelectionProvider, IBranchProvider {
+ public static final String VIEW_ID = "org.eclipse.osee.framework.ui.skynet.ArtifactExplorer";
+ private static final String ROOT_GUID = "artifact.explorer.last.root_guid";
+ private static final String ROOT_BRANCH = "artifact.explorer.last.root_branch";
+ private static final ArtifactClipboard artifactClipboard = new ArtifactClipboard(VIEW_ID);
+ private static final LinkedList<Tree> trees = new LinkedList<Tree>();
+
+ private TreeViewer treeViewer;
+ private Action upAction;
+ private Artifact explorerRoot;
+ private MenuItem openMenuItem;
+ private MenuItem massEditMenuItem;
+ private MenuItem skywalkerMenuItem;
+ private MenuItem createMenuItem;
+ private MenuItem openWithMenuItem;
+ private MenuItem accessControlMenuItem;
+ private MenuItem lockMenuItem;
+ private MenuItem goIntoMenuItem;
+ private MenuItem copyMenuItem;
+ private MenuItem pasteMenuItem;
+ private MenuItem pasteSpecialMenuItem;
+ private MenuItem renameArtifactMenuItem;
+ private MenuItem refreshMenuItem;
+ private MenuItem findOnAnotherBranch;
+ private NeedArtifactMenuListener needArtifactListener;
+ private NeedProjectMenuListener needProjectListener;
+ private Tree myTree;
+ private TreeEditor myTreeEditor;
+ private Text myTextBeingRenamed;
+ private Action newArtifactExplorer;
+ private Action collapseAllAction;
+ private Action showChangeReport;
+ private XBranchSelectWidget branchSelect;
+ private Branch branch;
+ private IGlobalMenuHelper globalMenuHelper;
+
+ private Composite stackComposite;
+ private Control branchUnreadableWarning;
+ private StackLayout stackLayout;
+ private final ArtifactDecorator artifactDecorator = new ArtifactDecorator(
+ SkynetGuiPlugin.ARTIFACT_EXPLORER_ATTRIBUTES_PREF);
+
+ public static void explore(Collection<Artifact> artifacts) {
+ explore(artifacts, AWorkbench.getActivePage());
+ }
+
+ public static void explore(Collection<Artifact> artifacts, IWorkbenchPage page) {
+ Artifact sampleArtifact = null;
+ Branch inputBranch = null;
+ if (artifacts != null && !artifacts.isEmpty()) {
+ sampleArtifact = artifacts.iterator().next();
+ inputBranch = sampleArtifact.getBranch();
+ }
+ ArtifactExplorer artifactExplorer = findView(inputBranch, page);
+
+ artifactExplorer.setPartName("Artifacts");
+ artifactExplorer.setContentDescription("These artifacts could not be handled");
+ artifactExplorer.treeViewer.setInput(artifacts);
+ artifactExplorer.initializeSelectionBox();
+ }
+
+ private static ArtifactExplorer findView(Branch inputBranch, IWorkbenchPage page) {
+ for (IViewReference view : page.getViewReferences()) {
+ if (view.getId().equals(ArtifactExplorer.VIEW_ID)) {
+ if (view.getView(false) != null && inputBranch.equals(((ArtifactExplorer) view.getView(false)).branch)) {
+ try {
+ return (ArtifactExplorer) page.showView(view.getId(), view.getSecondaryId(),
+ IWorkbenchPage.VIEW_ACTIVATE);
+ } catch (Exception ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+ }
+ }
+ try {
+ ArtifactExplorer explorer =
+ (ArtifactExplorer) page.showView(ArtifactExplorer.VIEW_ID, GUID.create(), IWorkbenchPage.VIEW_ACTIVATE);
+ explorer.explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(inputBranch));
+ return explorer;
+ } catch (Exception ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+
+ private Control createDefaultWarning(Composite parent) {
+ Composite composite = new Composite(parent, SWT.BORDER);
+ composite.setLayout(new GridLayout(2, false));
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ composite.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+
+ Label image = new Label(composite, SWT.NONE);
+ image.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
+ image.setImage(ImageManager.getImage(FrameworkImage.LOCKED_KEY));
+ image.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+
+ Label label = new Label(composite, SWT.NONE);
+ Font font = new Font(PlatformUI.getWorkbench().getDisplay(), "Courier New", 10, SWT.BOLD);
+ label.setFont(font);
+ label.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_RED));
+ label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
+ label.setText("Branch Read Access Denied.\nContact your administrator.");
+ label.setBackground(Displays.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+
+ return composite;
+ }
+
+ private void checkBranchReadable() throws OseeCoreException {
+ if (treeViewer == null) {
+ return;
+ }
+ Control control = branchUnreadableWarning;
+ if (branch == null || new GlobalMenuPermissions(globalMenuHelper).isBranchReadable(branch)) {
+ control = treeViewer.getTree();
+ }
+ stackLayout.topControl = control;
+ stackComposite.layout();
+ stackComposite.getParent().layout();
+ }
+
+ @Override
+ public void createPartControl(Composite parent) {
+ try {
+ if (!DbConnectionExceptionComposite.dbConnectionIsOk(parent)) {
+ return;
+ }
+
+ GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.heightHint = 1000;
+ gridData.widthHint = 1000;
+
+ parent.setLayout(new GridLayout(1, false));
+ parent.setLayoutData(gridData);
+
+ branchSelect = new XBranchSelectWidget("");
+ branchSelect.setDisplayLabel(false);
+ branchSelect.setSelection(branch);
+ branchSelect.createWidgets(parent, 1);
+
+ branchSelect.addListener(new Listener() {
+ @Override
+ public void handleEvent(Event event) {
+ try {
+ Branch selectedBranch = branchSelect.getData();
+ if (selectedBranch != null) {
+ branch = selectedBranch;
+ explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch));
+ }
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), Level.SEVERE, ex);
+ }
+ }
+
+ });
+
+ stackComposite = new Composite(parent, SWT.NONE);
+ stackLayout = new StackLayout();
+ stackComposite.setLayout(stackLayout);
+ stackComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ branchUnreadableWarning = createDefaultWarning(stackComposite);
+
+ treeViewer = new TreeViewer(stackComposite);
+ myTree = treeViewer.getTree();
+ Tree tree = treeViewer.getTree();
+ final ArtifactExplorer fArtExplorere = this;
+ tree.addDisposeListener(new DisposeListener() {
+
+ @Override
+ public void widgetDisposed(DisposeEvent e) {
+ ArtifactExplorerEventManager.remove(fArtExplorere);
+ }
+ });
+ treeViewer.setContentProvider(new ArtifactContentProvider());
+
+ treeViewer.setLabelProvider(new ArtifactLabelProvider(artifactDecorator));
+ treeViewer.addDoubleClickListener(new ArtifactDoubleClick());
+ treeViewer.getControl().setLayoutData(gridData);
+
+ // We can not use the hash lookup because an artifact may not have a
+ // good equals.
+ // This can be added back once the content provider is converted over to
+ // use job node.
+ treeViewer.setUseHashlookup(false);
+
+ treeViewer.addSelectionChangedListener(new SelectionCountChangeListener(getViewSite()));
+ globalMenuHelper = new ArtifactTreeViewerGlobalMenuHelper(treeViewer);
+
+ IToolBarManager toolbarManager = getViewSite().getActionBars().getToolBarManager();
+ createCollapseAllAction(toolbarManager);
+ createUpAction(toolbarManager);
+ createNewArtifactExplorerAction(toolbarManager);
+ createShowChangeReportAction(toolbarManager);
+ addOpenQuickSearchAction(toolbarManager);
+ toolbarManager.add(new OpenAssociatedArtifactFromBranchProvider(this));
+
+ artifactDecorator.setViewer(treeViewer);
+ artifactDecorator.addActions(getViewSite().getActionBars().getMenuManager(), this);
+
+ getSite().setSelectionProvider(treeViewer);
+ addExploreSelection();
+
+ setupPopupMenu();
+
+ myTreeEditor = new TreeEditor(myTree);
+ myTreeEditor.horizontalAlignment = SWT.LEFT;
+ myTreeEditor.grabHorizontal = true;
+ myTreeEditor.minimumWidth = 50;
+
+ new ArtifactExplorerDragAndDrop(treeViewer, VIEW_ID, this);
+
+ OseeUiActions.addBugToViewToolbar(this, this, SkynetGuiPlugin.getInstance(), VIEW_ID, "Artifact Explorer");
+
+ OseeContributionItem.addTo(this, false);
+
+ updateEnablementsEtAl();
+ trees.add(tree);
+ setHelpContexts();
+
+ checkBranchReadable();
+ getViewSite().getActionBars().updateActionBars();
+
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+
+ OseeEventManager.addListener(this);
+ ArtifactExplorerEventManager.add(this);
+ }
+
+ /**
+ * Reveal an artifact in the viewer and select it.
+ *
+ * @param artifact
+ */
+ public static void exploreBranch(Branch branch) {
+ if (branch != null) {
+ IWorkbenchPage page = AWorkbench.getActivePage();
+ findView(branch, page);
+ }
+ }
+
+ public void setupPopupMenu() {
+
+ Menu popupMenu = new Menu(treeViewer.getTree().getParent());
+ needArtifactListener = new NeedArtifactMenuListener();
+ needProjectListener = new NeedProjectMenuListener();
+ popupMenu.addMenuListener(needArtifactListener);
+ popupMenu.addMenuListener(needProjectListener);
+
+ createOpenMenuItem(popupMenu);
+ createOpenWithMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createFindOnDifferentBranchItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createNewChildMenuItem(popupMenu);
+ createGoIntoMenuItem(popupMenu);
+ createMassEditMenuItem(popupMenu);
+ createSkywalkerMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ new GlobalMenu(popupMenu, globalMenuHelper);
+ createRenameArtifactMenuItem(popupMenu);
+ createRefreshMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createHistoryMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createImportExportMenuItems(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createLockMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createCopyMenuItem(popupMenu);
+ createPasteMenuItem(popupMenu);
+ createPasteSpecialMenuItem(popupMenu);
+ createExpandAllMenuItem(popupMenu);
+ createSelectAllMenuItem(popupMenu);
+ new MenuItem(popupMenu, SWT.SEPARATOR);
+ createAccessControlMenuItem(popupMenu);
+ treeViewer.getTree().setMenu(popupMenu);
+ }
+
+ private void addOpenQuickSearchAction(IToolBarManager toolbarManager) {
+ Action openQuickSearch =
+ new Action("Quick Search", ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_SEARCH)) {
+ @Override
+ public void run() {
+ Job job = new UIJob("Open Quick Search") {
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ IStatus status = Status.OK_STATUS;
+ try {
+ IViewPart viewPart =
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
+ QuickSearchView.VIEW_ID);
+ if (viewPart != null) {
+ Branch branch = getBranch(monitor);
+ if (branch != null) {
+ ((QuickSearchView) viewPart).setBranch(branch);
+ }
+ }
+ } catch (Exception ex) {
+ status = new Status(IStatus.ERROR, SkynetGuiPlugin.PLUGIN_ID, "Error opening quick search", ex);
+ }
+ return status;
+ }
+ };
+ Jobs.startJob(job);
+ }
+ };
+ openQuickSearch.setToolTipText("Open Quick Search View");
+ toolbarManager.add(openQuickSearch);
+ }
+
+ protected void createUpAction(IToolBarManager toolbarManager) {
+ upAction = new Action("View Parent") {
+ @Override
+ public void run() {
+ try {
+ Artifact parent = explorerRoot.getParent();
+
+ if (parent == null) {
+ return;
+ }
+
+ Object[] expanded = treeViewer.getExpandedElements();
+ Object[] expandedPlus = new Object[expanded.length + 1];
+ for (int i = 0; i < expanded.length; i++) {
+ expandedPlus[i] = expanded[i];
+ }
+ expandedPlus[expandedPlus.length - 1] = explorerRoot;
+
+ explore(parent);
+
+ treeViewer.setExpandedElements(expandedPlus);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ };
+
+ upAction.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.ARROW_UP_YELLOW));
+ upAction.setToolTipText("View Parent");
+ updateEnablementsEtAl();
+ toolbarManager.add(upAction);
+ }
+
+ private void createNewArtifactExplorerAction(IToolBarManager toolbarManager) {
+
+ newArtifactExplorer = new Action("New Artifact Explorer") {
+ @Override
+ public void run() {
+ IWorkbenchPage page = AWorkbench.getActivePage();
+ ArtifactExplorer artifactExplorer;
+ try {
+ artifactExplorer =
+ (ArtifactExplorer) page.showView(ArtifactExplorer.VIEW_ID, GUID.create(),
+ IWorkbenchPage.VIEW_ACTIVATE);
+ artifactExplorer.explore(OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch));
+ artifactExplorer.setExpandedArtifacts(treeViewer.getExpandedElements());
+ } catch (Exception ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+ };
+
+ newArtifactExplorer.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_EXPLORER));
+ toolbarManager.add(newArtifactExplorer);
+ }
+
+ private void createShowChangeReportAction(IToolBarManager toolbarManager) {
+ showChangeReport = new Action("Show Change Report") {
+ @Override
+ public void run() {
+ try {
+ ChangeUiUtil.open(branch);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ };
+
+ showChangeReport.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.BRANCH_CHANGE));
+ toolbarManager.add(showChangeReport);
+ }
+
+ private void createCollapseAllAction(IToolBarManager toolbarManager) {
+ collapseAllAction = new Action("Collapse All") {
+ @Override
+ public void run() {
+ if (treeViewer != null) {
+ treeViewer.collapseAll();
+ }
+ }
+ };
+
+ collapseAllAction.setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.COLLAPSE_ALL));
+ toolbarManager.add(collapseAllAction);
+ }
+
+ private void createOpenWithMenuItem(Menu parentMenu) {
+ openWithMenuItem = new MenuItem(parentMenu, SWT.CASCADE);
+ openWithMenuItem.setText("&Open With");
+ final Menu submenu = new Menu(openWithMenuItem);
+ openWithMenuItem.setMenu(submenu);
+ parentMenu.addMenuListener(new OpenWithMenuListener(submenu, treeViewer, this));
+ }
+
+ private void createNewChildMenuItem(Menu parentMenu) {
+ createMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ needProjectListener.add(createMenuItem);
+ createMenuItem.setText("&New Child");
+ createMenuItem.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ super.widgetSelected(e);
+ try {
+ ArtifactTypeFilteredTreeEntryDialog dialog = getDialog();
+ Artifact parent = getParent();
+
+ if (dialog.open() == Window.OK) {
+ ArtifactType type = dialog.getSelection();
+ String name = dialog.getEntryValue();
+
+ SkynetTransaction transaction =
+ new SkynetTransaction(branch, String.format("Created new %s \"%s\" in artifact explorer",
+ type.getName(), name));
+ parent.addNewChild(null, type, name);
+ parent.persist(transaction);
+ transaction.execute();
+
+ treeViewer.refresh();
+ treeViewer.refresh(false);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private ArtifactTypeFilteredTreeEntryDialog getDialog() throws OseeCoreException {
+ Collection<ArtifactType> artifactTypes =
+ ArtifactTypeManager.getConcreteArtifactTypes(branchSelect.getData());
+
+ // IAccessPolicyHandlerService policyHandlerService = SkynetGuiPlugin.getInstance().getPolicyHandlerService();
+ // policyHandlerService.
+
+ ArtifactType rootArtifactType = ArtifactTypeManager.getType(RootArtifact);
+ artifactTypes.remove(rootArtifactType);
+
+ ArtifactTypeFilteredTreeEntryDialog dialog =
+ new ArtifactTypeFilteredTreeEntryDialog("New Child", "Enter name and select Artifact type to create",
+ "Artifact Name");
+ dialog.setInput(artifactTypes);
+ return dialog;
+ }
+
+ private Artifact getParent() throws OseeCoreException {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+
+ if (selection.size() > 1) {
+ throw new OseeCoreException("Please select a single artifact to create a new child.");
+ }
+
+ Iterator<?> itemsIter = selection.iterator();
+ Artifact parent;
+ if (!itemsIter.hasNext()) {
+ parent = explorerRoot;
+ } else {
+ parent = (Artifact) itemsIter.next();
+ }
+
+ return parent;
+ }
+ });
+ }
+
+ private void createGoIntoMenuItem(Menu parentMenu) {
+ goIntoMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ goIntoMenuItem.setText("&Go Into");
+ needArtifactListener.add(goIntoMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ goIntoMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent ev) {
+
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ Iterator<?> itemsIter = selection.iterator();
+ if (itemsIter.hasNext()) {
+ try {
+ Object[] expanded = treeViewer.getExpandedElements();
+ explore((Artifact) itemsIter.next());
+ treeViewer.setExpandedElements(expanded);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+ });
+ }
+
+ private void createOpenMenuItem(Menu parentMenu) {
+ openMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ openMenuItem.setText("&Open");
+ needArtifactListener.add(openMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ openMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent ev) {
+ LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
+ TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
+ RendererManager.openInJob(selectedItems, PresentationType.DEFAULT_OPEN);
+ }
+ });
+ }
+
+ private void createFindOnDifferentBranchItem(Menu parentMenu) {
+ findOnAnotherBranch = new MenuItem(parentMenu, SWT.PUSH);
+ findOnAnotherBranch.setText("Reveal On Another Branch");
+ needArtifactListener.add(findOnAnotherBranch);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ findOnAnotherBranch.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent ev) {
+ LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
+ TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
+ Branch branch = BranchSelectionDialog.getBranchFromUser();
+ if (branch != null) {
+ for (Artifact artifact : selectedItems) {
+ try {
+ ArtifactExplorer.revealArtifact(ArtifactQuery.getArtifactFromId(artifact.getArtId(), branch));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(
+ SkynetGuiPlugin.class,
+ OseeLevel.SEVERE_POPUP,
+ String.format("Could not find Artifact \'%s\' on Branch \'%s\'", artifact.getName(),
+ branch.getName()));
+ }
+ }
+
+ }
+ }
+ });
+ }
+
+ private void createMassEditMenuItem(Menu parentMenu) {
+ massEditMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ massEditMenuItem.setText("Mass Edit");
+ needArtifactListener.add(massEditMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ massEditMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent ev) {
+ LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
+ TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
+ MassArtifactEditor.editArtifacts("", selectedItems);
+ }
+ });
+ }
+
+ private void createRefreshMenuItem(Menu parentMenu) {
+ refreshMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ refreshMenuItem.setText("Refresh");
+ needArtifactListener.add(refreshMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ refreshMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent mySelectionEvent) {
+ LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
+ TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
+ for (Artifact artifact : selectedItems) {
+ treeViewer.refresh(artifact);
+ }
+ }
+ });
+ }
+
+ private void createRenameArtifactMenuItem(Menu parentMenu) {
+ renameArtifactMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ renameArtifactMenuItem.setText("Rename Artifact");
+ needArtifactListener.add(renameArtifactMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ renameArtifactMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent mySelectionEvent) {
+ handleRenameArtifactSelectionEvent(mySelectionEvent);
+ }
+ });
+ }
+
+ private void handleRenameArtifactSelectionEvent(SelectionEvent mySelectionEvent) {
+ // Clean up any previous editor control
+ Control oldEditor = myTreeEditor.getEditor();
+
+ if (oldEditor != null) {
+ oldEditor.dispose();
+ }
+
+ // Identify the selected row, only allow input if there is a single
+ // selected row
+ TreeItem[] selection = myTree.getSelection();
+
+ if (selection.length != 1) {
+ return;
+ }
+
+ final TreeItem myTreeItem = selection[0];
+
+ if (myTreeItem == null) {
+ return;
+ }
+ myTextBeingRenamed = new Text(myTree, SWT.BORDER);
+ Object myTreeItemObject = myTreeItem.getData();
+ myTextBeingRenamed.setText(((Artifact) myTreeItemObject).getName());
+ myTextBeingRenamed.addFocusListener(new FocusAdapter() {
+ @Override
+ public void focusLost(FocusEvent e) {
+ updateText(myTextBeingRenamed.getText(), myTreeItem);
+ myTextBeingRenamed.dispose();
+
+ }
+
+ @Override
+ public void focusGained(FocusEvent e) {
+ // do nothing
+ }
+ });
+
+ myTextBeingRenamed.addKeyListener(new KeyAdapter() {
+ @Override
+ public void keyReleased(KeyEvent e) {
+ if (e.character == SWT.CR) {
+ updateText(myTextBeingRenamed.getText(), myTreeItem);
+ myTextBeingRenamed.dispose();
+ } else if (e.keyCode == SWT.ESC) {
+ myTextBeingRenamed.dispose();
+ }
+ }
+ });
+ myTextBeingRenamed.selectAll();
+ myTextBeingRenamed.setFocus();
+ myTreeEditor.setEditor(myTextBeingRenamed, myTreeItem);
+ }
+
+ private void updateText(String newLabel, TreeItem item) {
+ myTreeEditor.getItem().setText(newLabel);
+ Object myTreeItemObject = item.getData();
+ if (myTreeItemObject instanceof Artifact) {
+ Artifact myArtifact = (Artifact) myTreeItemObject;
+ try {
+ myArtifact.setName(newLabel);
+ myArtifact.persist();
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ treeViewer.refresh();
+ }
+
+ private void createSkywalkerMenuItem(Menu parentMenu) {
+ skywalkerMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ skywalkerMenuItem.setText("Sky Walker");
+ needArtifactListener.add(skywalkerMenuItem);
+
+ ArtifactMenuListener listener = new ArtifactMenuListener();
+ parentMenu.addMenuListener(listener);
+ skywalkerMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent ev) {
+ LinkedList<Artifact> selectedItems = new LinkedList<Artifact>();
+ TreeViewerUtility.getPreorderSelection(treeViewer, selectedItems);
+ SkyWalkerView.exploreArtifact(selectedItems.getFirst());
+ }
+ });
+ }
+
+ private void createSelectAllMenuItem(Menu parentMenu) {
+ MenuItem menuItem = new MenuItem(parentMenu, SWT.PUSH);
+ menuItem.setText("&Select All\tCtrl+A");
+ menuItem.addListener(SWT.Selection, new Listener() {
+ @Override
+ public void handleEvent(org.eclipse.swt.widgets.Event event) {
+ treeViewer.getTree().selectAll();
+ }
+ });
+ }
+
+ private void createHistoryMenuItem(Menu parentMenu) {
+ MenuItem revisionMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ revisionMenuItem.setText("&Show Resource History ");
+ revisionMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ Artifact selectedArtifact = (Artifact) selection.getFirstElement();
+
+ try {
+ HistoryView.open(selectedArtifact);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ private void createImportExportMenuItems(Menu parentMenu) {
+ MenuItems.createMenuItem(parentMenu, SWT.PUSH, new ImportResourcesAction(getViewSite().getWorkbenchWindow()));
+ MenuItems.createMenuItem(parentMenu, SWT.PUSH, new ExportResourcesAction(getViewSite().getWorkbenchWindow()));
+ }
+
+ private void createAccessControlMenuItem(Menu parentMenu) {
+ accessControlMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ accessControlMenuItem.setImage(ImageManager.getImage(FrameworkImage.AUTHENTICATED));
+ accessControlMenuItem.setText("&Access Control ");
+ // accessControlMenuItem.setEnabled(false);
+ accessControlMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ Artifact selectedArtifact = (Artifact) selection.getFirstElement();
+ try {
+ if (selectedArtifact != null) {
+ PolicyDialog pd = new PolicyDialog(Displays.getActiveShell(), selectedArtifact);
+ pd.open();
+ checkBranchReadable();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ private void createLockMenuItem(Menu parentMenu) {
+ lockMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ lockMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ Iterator<?> iterator = selection.iterator();
+ Set<Artifact> lockArtifacts = new HashSet<Artifact>();
+ Set<Artifact> unlockArtifacts = new HashSet<Artifact>();
+ while (iterator.hasNext()) {
+ try {
+ Artifact object = (Artifact) iterator.next();
+ if (new GlobalMenuPermissions(object).isLocked()) {
+ unlockArtifacts.add(object);
+ } else {
+ lockArtifacts.add(object);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ try {
+ AccessControlManager.unLockObjects(unlockArtifacts, UserManager.getUser());
+ AccessControlManager.lockObjects(lockArtifacts, UserManager.getUser());
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ });
+ }
+
+ private void createCopyMenuItem(Menu parentMenu) {
+ copyMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ copyMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_COPY));
+ copyMenuItem.setText("Copy \tCtrl+C");
+ copyMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ performCopy();
+ }
+ });
+ }
+
+ private void performCopy() {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ ArrayList<Artifact> artifactTransferData = new ArrayList<Artifact>();
+ ArrayList<String> textTransferData = new ArrayList<String>();
+ Artifact artifact;
+
+ if (selection != null && !selection.isEmpty()) {
+ for (Object object : selection.toArray()) {
+ if (object instanceof Artifact) {
+ artifact = (Artifact) object;
+
+ artifactTransferData.add(artifact);
+ textTransferData.add(artifact.getName());
+ }
+ }
+ artifactClipboard.setArtifactsToClipboard(artifactTransferData, textTransferData);
+ }
+ }
+
+ private void createPasteMenuItem(Menu parentMenu) {
+ pasteMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ pasteMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE));
+ pasteMenuItem.setText("Paste \tCtrl+V");
+ pasteMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ performPasteOperation(false);
+ }
+ });
+ }
+
+ private void createPasteSpecialMenuItem(Menu parentMenu) {
+ pasteSpecialMenuItem = new MenuItem(parentMenu, SWT.PUSH);
+ pasteSpecialMenuItem.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_PASTE));
+ pasteSpecialMenuItem.setText("Paste Special... \tCtrl+S");
+ pasteSpecialMenuItem.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ performPasteOperation(true);
+ }
+
+ });
+ }
+
+ private void performPasteOperation(boolean isPasteSpecial) {
+ boolean performPaste = true;
+ Artifact destinationArtifact = null;
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+ if (selection != null && !selection.isEmpty()) {
+ Object object = selection.getFirstElement();
+
+ if (object instanceof Artifact) {
+ destinationArtifact = (Artifact) object;
+ }
+ }
+
+ ArtifactPasteConfiguration config = new ArtifactPasteConfiguration();
+
+ if (isPasteSpecial) {
+ Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+ List<Artifact> copiedArtifacts = artifactClipboard.getCopiedContents();
+ ArtifactPasteSpecialDialog dialog =
+ new ArtifactPasteSpecialDialog(shell, config, destinationArtifact, copiedArtifacts);
+ performPaste = dialog.open() == Window.OK;
+ }
+
+ if (performPaste) {
+ Operations.executeAsJob(
+ new ArtifactPasteOperation(config, destinationArtifact, artifactClipboard.getCopiedContents(),
+ new ArtifactNameConflictHandler()), true);
+ }
+ }
+
+ private void createExpandAllMenuItem(Menu parentMenu) {
+ MenuItem menuItem = new MenuItem(parentMenu, SWT.PUSH);
+ menuItem.setImage(ImageManager.getImage(FrameworkImage.EXPAND_ALL));
+ menuItem.setText("Expand All\tCtrl++");
+ menuItem.addSelectionListener(new ExpandListener());
+ }
+
+ public class ExpandListener extends SelectionAdapter {
+ @Override
+ public void widgetSelected(SelectionEvent event) {
+ expandAll((IStructuredSelection) treeViewer.getSelection());
+ }
+ }
+
+ private void expandAll(IStructuredSelection selection) {
+ Iterator<?> iter = selection.iterator();
+ while (iter.hasNext()) {
+ treeViewer.expandToLevel(iter.next(), AbstractTreeViewer.ALL_LEVELS);
+ }
+ }
+
+ @Override
+ public void setFocus() {
+ if (treeViewer != null) {
+ treeViewer.getControl().setFocus();
+ }
+ }
+
+ public void explore(Artifact artifact) {
+ if (artifact == null) {
+ throw new IllegalArgumentException("Can not explore a null artifact.");
+ }
+
+ setPartName("Artifact Explorer: " + artifact.getBranch().getShortName());
+ if (branch != null && branch != artifact.getBranch()) {
+ explore(Arrays.asList(artifact));
+ return;
+ }
+ try {
+ checkBranchReadable();
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ explorerRoot = artifact;
+ branch = artifact.getBranch();
+
+ initializeSelectionBox();
+
+ if (treeViewer != null) {
+ Object objects[] = treeViewer.getExpandedElements();
+ treeViewer.setInput(explorerRoot);
+ setupPopupMenu();
+ updateEnablementsEtAl();
+ // Attempt to re-expand what was expanded
+ treeViewer.setExpandedElements(objects);
+ }
+ }
+
+ public void setExpandedArtifacts(Object... artifacts) {
+ if (treeViewer != null) {
+ treeViewer.setExpandedElements(artifacts);
+ }
+ }
+
+ private void updateEnablementsEtAl() {
+ // The upAction may be null if this viewpart has not been layed out yet
+ if (upAction != null) {
+ try {
+ upAction.setEnabled(explorerRoot != null && explorerRoot.hasParent());
+ } catch (OseeCoreException ex) {
+ upAction.setEnabled(false);
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+ private class NeedArtifactMenuListener implements MenuListener {
+ private final HashCollection<Class<? extends Artifact>, MenuItem> menuItemMap;
+
+ public NeedArtifactMenuListener() {
+ this.menuItemMap = new HashCollection<Class<? extends Artifact>, MenuItem>();
+ }
+
+ public void add(MenuItem item) {
+ menuItemMap.put(Artifact.class, item);
+ }
+
+ @Override
+ public void menuHidden(MenuEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void menuShown(MenuEvent e) {
+ IStructuredSelection selection = (IStructuredSelection) treeViewer.getSelection();
+
+ Object obj = selection.getFirstElement();
+ if (obj != null) {
+ Class<? extends Artifact> selectedClass = obj.getClass().asSubclass(Artifact.class);
+
+ for (Class<? extends Artifact> artifactClass : menuItemMap.keySet()) {
+ boolean valid = artifactClass.isAssignableFrom(selectedClass);
+
+ for (MenuItem item : menuItemMap.getValues(artifactClass)) {
+ if (!(item.getData() instanceof Exception)) {
+ // Only modify enabling if no error is associated
+ item.setEnabled(valid);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ private class NeedProjectMenuListener implements MenuListener {
+ Collection<MenuItem> items;
+
+ public NeedProjectMenuListener() {
+ this.items = new LinkedList<MenuItem>();
+ }
+
+ public void add(MenuItem item) {
+ items.add(item);
+ }
+
+ @Override
+ public void menuHidden(MenuEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void menuShown(MenuEvent e) {
+ boolean valid = treeViewer.getInput() != null;
+ for (MenuItem item : items) {
+ if (!(item.getData() instanceof Exception)) {
+ // Only modify
+ // enabling if no
+ // error is
+ // associated
+ item.setEnabled(valid);
+ }
+ }
+ }
+ }
+
+ /**
+ * Add the selection from the define explorer
+ */
+ private void addExploreSelection() {
+ if (explorerRoot != null) {
+ try {
+ treeViewer.setInput(explorerRoot);
+ initializeSelectionBox();
+ } catch (IllegalArgumentException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ /**
+ * @author Jeff C. Phillips
+ */
+ public class ArtifactMenuListener implements MenuListener {
+
+ @Override
+ public void menuHidden(MenuEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void menuShown(MenuEvent e) {
+ // Use this menu listener until all menu items can be moved to
+ // GlobaMenu
+ try {
+ GlobalMenuPermissions permiss = new GlobalMenuPermissions(globalMenuHelper);
+
+ lockMenuItem.setText((permiss.isLocked() ? "Unlock: (" + permiss.getSubjectFromLockedObjectName() + ")" : "Lock"));
+
+ lockMenuItem.setEnabled(permiss.isWritePermission() && (!permiss.isLocked() || permiss.isAccessToRemoveLock()));
+ openMenuItem.setEnabled(permiss.isReadPermission());
+ createMenuItem.setEnabled(permiss.isWritePermission());
+ openWithMenuItem.setEnabled(permiss.isReadPermission());
+ goIntoMenuItem.setEnabled(permiss.isReadPermission());
+ copyMenuItem.setEnabled(permiss.isReadPermission());
+ pasteMenuItem.setEnabled(permiss.isWritePermission());
+ renameArtifactMenuItem.setEnabled(permiss.isWritePermission());
+
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+
+ }
+ }
+
+ @Override
+ public void init(IViewSite site, IMemento memento) throws PartInitException {
+ super.init(site, memento);
+
+ if (OseeUiActivator.areOSEEServicesAvailable().isFalse()) {
+ return;
+ }
+
+ try {
+ if (memento != null && memento.getString(ROOT_GUID) != null && memento.getString(ROOT_BRANCH) != null) {
+ Branch branch = BranchManager.getBranch(Integer.parseInt(memento.getString(ROOT_BRANCH)));
+
+ if (!branch.getArchiveState().isArchived() || AccessControlManager.isOseeAdmin()) {
+ Artifact previousArtifact = ArtifactQuery.checkArtifactFromId(memento.getString(ROOT_GUID), branch);
+ if (previousArtifact != null) {
+ explore(previousArtifact);
+ } else {
+ /*
+ * simply means that the previous artifact that was used as the root for the artiactExplorer does not
+ * exist because it was deleted or this workspace was last used with a different branch or database,
+ * so let the logic below get the default hierarchy root artifact
+ */
+ }
+ return;
+ }
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void saveState(IMemento memento) {
+ super.saveState(memento);
+ if (explorerRoot != null) {
+ memento.putString(ROOT_GUID, explorerRoot.getGuid());
+ memento.putString(ROOT_BRANCH, String.valueOf(explorerRoot.getBranch().getId()));
+ }
+ }
+
+ @Override
+ public void dispose() {
+ OseeEventManager.removeListener(this);
+ ArtifactExplorerEventManager.remove(this);
+ super.dispose();
+ }
+
+ @Override
+ public String getActionDescription() {
+ return "";
+ }
+
+ @Override
+ public void addSelectionChangedListener(ISelectionChangedListener listener) {
+ treeViewer.addSelectionChangedListener(listener);
+ }
+
+ @Override
+ public ISelection getSelection() {
+ return treeViewer.getSelection();
+ }
+
+ @Override
+ public void removeSelectionChangedListener(ISelectionChangedListener listener) {
+ treeViewer.removeSelectionChangedListener(listener);
+ }
+
+ @Override
+ public void setSelection(ISelection selection) {
+ treeViewer.setSelection(selection);
+ }
+
+ private void setHelpContexts() {
+ SkynetGuiPlugin.getInstance().setHelp(treeViewer.getControl(), "artifact_explorer_tree_viewer",
+ "org.eclipse.osee.framework.help.ui");
+ }
+
+ @Override
+ public void handleArtifactsPurgedEvent(Sender sender, LoadedArtifacts loadedArtifacts) {
+ try {
+ if (loadedArtifacts.isNotForBranch(branch)) {
+ return;
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ treeViewer.refresh();
+ }
+ });
+ }
+
+ @Override
+ public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
+ try {
+ if (loadedArtifacts.isNotForBranch(branch)) {
+ return;
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ Set<Artifact> parents = new HashSet<Artifact>();
+ for (Artifact art : loadedArtifacts.getLoadedArtifacts()) {
+ if (art.getParent() != null) {
+ parents.add(art.getParent());
+ }
+ }
+ for (Artifact art : parents) {
+ treeViewer.refresh(art);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
+ if (branch == null || transData.branchId != branch.getId()) {
+ return;
+ }
+
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (treeViewer != null && Widgets.isAccessible(treeViewer.getTree())) {
+ for (Artifact art : transData.cacheDeletedArtifacts) {
+ treeViewer.remove(art);
+ }
+ try {
+ if (!transData.cacheDeletedArtifacts.isEmpty()) {
+ getTreeViewer().remove(
+ transData.cacheDeletedArtifacts.toArray(new Object[transData.cacheDeletedArtifacts.size()]));
+ }
+ for (Artifact artifact : transData.cacheChangedArtifacts) {
+ // Don't refresh deleted artifacts
+ if (artifact.isDeleted()) {
+ continue;
+ }
+ getTreeViewer().update(artifact, null);
+ }
+
+ treeViewer.update(
+ transData.getArtifactsInRelations(ChangeType.Changed,
+ CoreRelationTypes.Default_Hierarchical__Child).toArray(), null);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ try {
+ for (Artifact art : transData.getArtifactsInRelations(ChangeType.Added,
+ CoreRelationTypes.Default_Hierarchical__Child)) {
+ if (!art.isDeleted() && art.getParent() != null) {
+ treeViewer.refresh(art.getParent());
+ }
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleBranchEventREM1(Sender sender, BranchEventType branchModType, final int branchId) {
+ if (branchModType == BranchEventType.Committed && branch != null && branch.getId() == branchId) {
+ SkynetViews.closeView(VIEW_ID, getViewSite().getSecondaryId());
+ }
+ }
+
+ @Override
+ public void handleAccessControlArtifactsEvent(Sender sender, AccessControlEvent accessControlEvent) {
+ try {
+ if (!accessControlEvent.isForBranch(branch)) {
+ return;
+ }
+ if (accessControlEvent.getEventType() == AccessControlEventType.UserAuthenticated ||
+ //
+ accessControlEvent.getEventType() == AccessControlEventType.ArtifactsUnlocked ||
+ //
+ accessControlEvent.getEventType() == AccessControlEventType.ArtifactsLocked) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ treeViewer.refresh();
+ }
+ });
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void rebuildMenu() {
+ setupPopupMenu();
+ }
+
+ public void setBranch(Branch branch) {
+ this.branch = branch;
+ }
+
+ public void initializeSelectionBox() {
+ if (branch != null && branchSelect != null && !branch.equals(branchSelect.getData())) {
+ branchSelect.setSelection(branch);
+ try {
+ checkBranchReadable();
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ @Override
+ public Branch getBranch(IProgressMonitor monitor) {
+ return branch;
+ }
+
+ /**
+ * Reveal an artifact in the viewer and select it.
+ *
+ * @param artifact
+ */
+ public static void revealArtifact(Artifact artifact) {
+ final ArtifactData data = new ArtifactData(artifact);
+ IOperation operation = new CheckArtifactBeforeReveal(data);
+ Operations.executeAsJob(operation, true, Job.SHORT, new JobChangeAdapter() {
+
+ @Override
+ public void done(IJobChangeEvent event) {
+ IStatus status = event.getResult();
+ if (status.isOK()) {
+ Job uiJob = new UIJob("Reveal in Artifact Explorer") {
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ Artifact artifact = data.getArtifact();
+ IWorkbenchPage page = AWorkbench.getActivePage();
+ ArtifactExplorer artifactExplorer = findView(artifact.getBranch(), page);
+ artifactExplorer.treeViewer.setSelection(new StructuredSelection(artifact), true);
+ return Status.OK_STATUS;
+ }
+ };
+ Jobs.startJob(uiJob);
+ }
+ }
+ });
+ }
+
+ private static final class ArtifactData {
+ private Artifact artifact;
+
+ ArtifactData(Artifact artifact) {
+ this.artifact = artifact;
+ }
+
+ Artifact getArtifact() {
+ return artifact;
+ }
+
+ void setArtifact(Artifact artifact) {
+ this.artifact = artifact;
+ }
+ }
+
+ private static final class CheckArtifactBeforeReveal extends AbstractOperation {
+
+ private final ArtifactData artifactData;
+
+ public CheckArtifactBeforeReveal(ArtifactData artifactData) {
+ super("Check Artifact Before Reveal", SkynetGuiPlugin.PLUGIN_ID);
+ this.artifactData = artifactData;
+ }
+
+ @Override
+ protected void doWork(IProgressMonitor monitor) throws Exception {
+ Conditions.checkNotNull(artifactData, "artifact data");
+
+ Artifact artifact = artifactData.getArtifact();
+ Conditions.checkNotNull(artifactData, "artifact");
+ if (artifact.isDeleted()) {
+ throw new OseeStateException("The artifact " + artifact.getName() + " has been deleted.");
+ } else {
+ if (artifact.isHistorical()) {
+ artifactData.setArtifact(ArtifactQuery.getArtifactFromId(artifact.getArtId(), artifact.getBranch(),
+ EXCLUDE_DELETED));
+ }
+
+ Artifact root = OseeSystemArtifacts.getDefaultHierarchyRootArtifact(artifact.getBranch());
+ Artifact artifactRoot = artifact.getArtifactRoot();
+
+ if (!root.equals(artifactRoot)) {
+ String artifactRootName = artifactRoot != null ? artifactRoot.getName() : artifact.getName();
+ throw new OseeStateException(
+ "The artifact " + artifact.getName() + " is rooted on an orphan tree at " + artifactRootName);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void handleBranchEvent(Sender sender, final BranchEvent branchEvent) {
+ if (branchEvent.getEventType() == BranchEventType.Committed && branch != null && branch.getGuid().equals(
+ branchEvent.getBranchGuid())) {
+ SkynetViews.closeView(VIEW_ID, getViewSite().getSecondaryId());
+ }
+ }
+
+ public TreeViewer getTreeViewer() {
+ return treeViewer;
+ }
+
+ public void setTreeViewer(TreeViewer treeViewer) {
+ this.treeViewer = treeViewer;
+ }
+
+ @Override
+ public ArtifactExplorer getArtifactExplorer() {
+ return this;
+ }
+
+ @Override
+ public boolean isDisposed() {
+ return treeViewer.getTree() == null || treeViewer.getTree().isDisposed();
+ }
+
+ @Override
+ public List<? extends IEventFilter> getEventFilters() {
+ if (branch != null) {
+ return OseeEventManager.getEventFiltersForBranch(branch);
+ }
+ return null;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactImageManager.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactImageManager.java
index 3576ee2bbc1..5c7473a771e 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactImageManager.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactImageManager.java
@@ -1,335 +1,335 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.framework.ui.skynet;
-
-import java.io.ByteArrayInputStream;
-import java.util.Collections;
-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.jface.resource.ImageDescriptor;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.data.IArtifactType;
-import org.eclipse.osee.framework.core.enums.ModificationType;
-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.type.ArtifactType;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.database.core.SQL3DataType;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
-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.annotation.ArtifactAnnotation;
-import org.eclipse.osee.framework.skynet.core.change.Change;
-import org.eclipse.osee.framework.skynet.core.conflict.ArtifactConflict;
-import org.eclipse.osee.framework.skynet.core.conflict.AttributeConflict;
-import org.eclipse.osee.framework.skynet.core.conflict.Conflict;
-import org.eclipse.osee.framework.skynet.core.types.IArtifact;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.osee.framework.ui.swt.KeyedImage;
-import org.eclipse.osee.framework.ui.swt.OverlayImage.Location;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Ryan D. Brooks
- */
-public final class ArtifactImageManager {
- private static final String EXTENSION_ELEMENT = "ArtifactImageProvider";
- private static final String EXTENSION_ID = SkynetGuiPlugin.PLUGIN_ID + "." + EXTENSION_ELEMENT;
-
- private static final String SELECT_ARTIFACT_TYPES_IMAGE_QUERY =
- "SELECT art_type_id, image FROM osee_artifact_type where image is not null";
- private static final String UPDATE_ARTIFACT_TYPE_IMAGE =
- "UPDATE osee_artifact_type SET image = ? where art_type_id = ?";
-
- private static final Map<String, ArtifactImageProvider> providersOverrideImageMap =
- Collections.synchronizedMap(new HashMap<String, ArtifactImageProvider>());
- private static final Map<String, KeyedImage> artifactTypeImageMap =
- Collections.synchronizedMap(new HashMap<String, KeyedImage>());
- private static final Map<String, String> artifactTypeImageProviderMap =
- Collections.synchronizedMap(new HashMap<String, String>());
-
- private static final String OSEE_DATABASE_PROVIDER = "OSEE Database Provider";
-
- private static boolean artifactTypeImagesLoaded;
- private static KeyedImage overrideImageEnum;
-
- static {
- loadCache();
- }
-
- public synchronized static void loadCache() {
- artifactTypeImagesLoaded = false;
-
- Set<String> imageKeys = new HashSet<String>();
- imageKeys.addAll(providersOverrideImageMap.keySet());
- imageKeys.addAll(artifactTypeImageMap.keySet());
- imageKeys.addAll(artifactTypeImageProviderMap.keySet());
-
- for (String imageKey : imageKeys) {
- ImageManager.removeFromRegistry(imageKey);
- }
-
- providersOverrideImageMap.clear();
- artifactTypeImageMap.clear();
- artifactTypeImageProviderMap.clear();
-
- List<ArtifactImageProvider> providers =
- new ExtensionDefinedObjects<ArtifactImageProvider>(EXTENSION_ID, EXTENSION_ELEMENT, "class").getObjects();
-
- for (ArtifactImageProvider imageProvider : providers) {
- try {
- imageProvider.init();
- } catch (Exception ex) {
- // prevent an exception in one provider from affecting the initialization of other providers
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- private synchronized static void ensureArtifactTypeImagesLoaded() throws OseeDataStoreException {
- if (!artifactTypeImagesLoaded) {
- artifactTypeImagesLoaded = true;
- // Load base images from database (which can override the ImageManager.registerImage() calls provided
- // through the ArtifactImageProviders
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- try {
- chStmt.runPreparedQuery(SELECT_ARTIFACT_TYPES_IMAGE_QUERY);
-
- while (chStmt.next()) {
- try {
- ArtifactType artifactType = ArtifactTypeManager.getType(chStmt.getInt("art_type_id"));
- artifactTypeImageMap.put(artifactType.getName(),
- BaseImage.getBaseImageEnum(artifactType, Lib.inputStreamToBytes(chStmt.getBinaryStream("image"))));
- artifactTypeImageProviderMap.put(artifactType.getName(), OSEE_DATABASE_PROVIDER);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- } finally {
- chStmt.close();
- }
- }
- }
-
- public static Image getConflictImage(Conflict conflict) throws OseeCoreException {
- if (conflict instanceof AttributeConflict) {
- return ImageManager.getImage(FrameworkImage.ATTRIBUTE_MOLECULE);
- }
- if (conflict instanceof ArtifactConflict) {
- return getImage(conflict.getArtifact());
- }
- throw new OseeArgumentException("Conflict not of supported type");
- }
-
- public static Image getChangeTypeImage(Change change) {
- return getChangeImage(change, ChangeImageType.CHANGE_TYPE);
- }
-
- public static Image getChangeKindImage(Change change) {
- return getChangeImage(change, ChangeImageType.CHANGE_KIND);
- }
-
- private static enum ChangeImageType {
- CHANGE_KIND,
- CHANGE_TYPE;
- }
-
- private static Image getChangeImage(Change change, ChangeImageType changeImageType) {
- Image toReturn = null;
- KeyedImage keyedImage = null;
- ModificationType modType = null;
- if (change.getItemKind().equals("Artifact")) {
- modType = change.getModificationType();
- keyedImage = BaseImage.getBaseImageEnum(change.getArtifactType());
- }
- if (change.getItemKind().equals("Attribute")) {
- if (ChangeImageType.CHANGE_TYPE == changeImageType) {
- modType = change.getModificationType();
- keyedImage = FrameworkImage.ATTRIBUTE_MOLECULE;
- } else {
- modType = change.getModificationType();
- keyedImage = BaseImage.getBaseImageEnum(change.getArtifactType());
- }
- }
- if (change.getItemKind().equals("Relation")) {
- keyedImage = FrameworkImage.RELATION;
- modType = change.getModificationType();
- }
- if (keyedImage != null && modType != null) {
- KeyedImage overlay = FrameworkImage.valueOf("OUTGOING_" + modType.toString());
- toReturn = ImageManager.getImage(ImageManager.setupImageWithOverlay(keyedImage, overlay, Location.TOP_LEFT));
- }
- return toReturn;
- }
-
- public static Image getImage(IArtifactType artifactType) {
- try {
- return getImage(ArtifactTypeManager.getType(artifactType));
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- return ImageManager.getImage(ImageManager.MISSING);
- }
-
- public static Image getImage(ArtifactType artifactType) {
- try {
- if (overrideImageEnum != null) {
- return ImageManager.getImage(overrideImageEnum);
- }
-
- // Check if image provider provides override for this image
- ArtifactImageProvider imageProvider = providersOverrideImageMap.get(artifactType.getName());
- if (imageProvider != null) {
- String imageKey = imageProvider.setupImage(artifactType);
- if (imageKey != null) {
- return ImageManager.getImage(imageKey);
- }
- }
-
- // Return image for the base image
- return ImageManager.getImage(BaseImage.getBaseImageEnum(artifactType));
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- return ImageManager.getImage(ImageManager.MISSING);
- }
-
- public static Image getImage(Artifact artifact, KeyedImage overlay, Location location) {
- return ImageManager.getImage(ImageManager.setupImageWithOverlay(BaseImage.getBaseImageEnum(artifact), overlay,
- location));
- }
-
- public synchronized static String setupImage(KeyedImage imageEnum) {
- return ImageManager.setupImage(imageEnum);
- }
-
- public static String setupImage(Artifact artifact, KeyedImage overlay, Location location) {
- return ImageManager.setupImageWithOverlay(BaseImage.getBaseImageEnum(artifact), overlay, location).getImageKey();
- }
-
- public static void registerOverrideImageProvider(ArtifactImageProvider imageProvider, String artifactTypeName) {
- providersOverrideImageMap.put(artifactTypeName, imageProvider);
- }
-
- public synchronized static void registerBaseImage(IArtifactType artifactType, KeyedImage oseeImage, ArtifactImageProvider provider) throws OseeDataStoreException {
- registerBaseImage(artifactType.getName(), oseeImage, provider);
- }
-
- public synchronized static void registerBaseImage(String artifactTypeName, KeyedImage oseeImage, ArtifactImageProvider provider) throws OseeDataStoreException {
- ensureArtifactTypeImagesLoaded();
-
- boolean alreadyProvided = artifactTypeImageMap.containsKey(artifactTypeName);
- boolean providedByOseeDatabase =
- artifactTypeImageProviderMap.get(artifactTypeName) != null && artifactTypeImageProviderMap.get(
- artifactTypeName).equals(OSEE_DATABASE_PROVIDER);
-
- // Database can override other providers, don't display error in that cases
- if (alreadyProvided && !providedByOseeDatabase) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, String.format(
- "Two ArtifactImageProviders [%s][%s] specify image for same artifact type [%s]",
- provider.getClass().getSimpleName(), artifactTypeImageProviderMap.get(artifactTypeName), artifactTypeName));
- }
- // Regardless of error, register image if not already provided
- if (!alreadyProvided) {
- artifactTypeImageMap.put(artifactTypeName, oseeImage);
- artifactTypeImageProviderMap.put(artifactTypeName, provider.getClass().getSimpleName());
- }
- }
-
- public static Image getAnnotationImage(ArtifactAnnotation.Type annotationType) {
- if (annotationType == ArtifactAnnotation.Type.Warning) {
- return ImageManager.getImage(FrameworkImage.WARNING);
- }
- return ImageManager.getImage(FrameworkImage.INFO_LG);
- }
-
- public synchronized static Image getImage(IArtifact artifact) {
- return ImageManager.getImage(setupImage(artifact));
- }
-
- public synchronized static ImageDescriptor getImageDescriptor(IArtifact artifact) {
- return ImageManager.getImageDescriptor(setupImage(artifact));
- }
-
- private synchronized static String setupImage(IArtifact artifact) {
- try {
- Artifact castedArtifact = artifact.getFullArtifact();
- ArtifactImageProvider imageProvider = providersOverrideImageMap.get(artifact.getArtifactType().getName());
- if (imageProvider != null) {
- return imageProvider.setupImage(castedArtifact);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
-
- return setupImageNoProviders(artifact);
- }
-
- protected synchronized static String setupImageNoProviders(IArtifact artifact) {
- KeyedImage baseImageEnum = null;
- try {
- Artifact castedArtifact = artifact.getFullArtifact();
- baseImageEnum = BaseImage.getBaseImageEnum(castedArtifact);
-
- if (AccessControlManager.hasLock(castedArtifact)) {
- KeyedImage overlay =
- AccessControlManager.hasLockAccess(castedArtifact) ? FrameworkImage.LOCKED_WITH_ACCESS : FrameworkImage.LOCKED_NO_ACCESS;
- return ImageManager.setupImageWithOverlay(baseImageEnum, overlay, Location.TOP_LEFT).getImageKey();
- }
-
- if (castedArtifact.isAnnotationWarning()) {
- return ImageManager.setupImageWithOverlay(baseImageEnum, FrameworkImage.WARNING_OVERLAY, Location.BOT_LEFT).getImageKey();
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- return ImageManager.setupImage(baseImageEnum);
- }
-
- public static void setArtifactTypeImageInDb(IArtifactType artifactType, ByteArrayInputStream byteInput) throws OseeCoreException {
- setArtifactTypeImageInDb(ArtifactTypeManager.getType(artifactType), byteInput);
- }
-
- public static void setArtifactTypeImageInDb(ArtifactType artifactType, ByteArrayInputStream byteInput) throws OseeDataStoreException {
- Object imageData = byteInput != null ? byteInput : SQL3DataType.BLOB;
- ConnectionHandler.runPreparedUpdate(UPDATE_ARTIFACT_TYPE_IMAGE, imageData, artifactType.getId());
- loadCache();
-
- // TODO Need remote event kick to tell other clients of artifact type image changes
- }
-
- public static KeyedImage getArtifactTypeImage(String artifactTypeName) {
- return artifactTypeImageMap.get(artifactTypeName);
- }
-
- /**
- * @param overrideImageEnum the overrideImageEnum to set
- */
- public static void setOverrideImageEnum(KeyedImage overrideImageEnum) {
- ArtifactImageManager.overrideImageEnum = overrideImageEnum;
- }
-
- /**
- * @return the overrideImageEnum
- */
- public static KeyedImage getOverrideImageEnum() {
- return overrideImageEnum;
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2009 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.framework.ui.skynet;
+
+import java.io.ByteArrayInputStream;
+import java.util.Collections;
+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.jface.resource.ImageDescriptor;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.data.IArtifactType;
+import org.eclipse.osee.framework.core.enums.ModificationType;
+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.type.ArtifactType;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.database.core.SQL3DataType;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
+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.annotation.ArtifactAnnotation;
+import org.eclipse.osee.framework.skynet.core.change.Change;
+import org.eclipse.osee.framework.skynet.core.conflict.ArtifactConflict;
+import org.eclipse.osee.framework.skynet.core.conflict.AttributeConflict;
+import org.eclipse.osee.framework.skynet.core.conflict.Conflict;
+import org.eclipse.osee.framework.skynet.core.types.IArtifact;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.osee.framework.ui.swt.KeyedImage;
+import org.eclipse.osee.framework.ui.swt.OverlayImage.Location;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public final class ArtifactImageManager {
+ private static final String EXTENSION_ELEMENT = "ArtifactImageProvider";
+ private static final String EXTENSION_ID = SkynetGuiPlugin.PLUGIN_ID + "." + EXTENSION_ELEMENT;
+
+ private static final String SELECT_ARTIFACT_TYPES_IMAGE_QUERY =
+ "SELECT art_type_id, image FROM osee_artifact_type where image is not null";
+ private static final String UPDATE_ARTIFACT_TYPE_IMAGE =
+ "UPDATE osee_artifact_type SET image = ? where art_type_id = ?";
+
+ private static final Map<String, ArtifactImageProvider> providersOverrideImageMap =
+ Collections.synchronizedMap(new HashMap<String, ArtifactImageProvider>());
+ private static final Map<String, KeyedImage> artifactTypeImageMap =
+ Collections.synchronizedMap(new HashMap<String, KeyedImage>());
+ private static final Map<String, String> artifactTypeImageProviderMap =
+ Collections.synchronizedMap(new HashMap<String, String>());
+
+ private static final String OSEE_DATABASE_PROVIDER = "OSEE Database Provider";
+
+ private static boolean artifactTypeImagesLoaded;
+ private static KeyedImage overrideImageEnum;
+
+ static {
+ loadCache();
+ }
+
+ public synchronized static void loadCache() {
+ artifactTypeImagesLoaded = false;
+
+ Set<String> imageKeys = new HashSet<String>();
+ imageKeys.addAll(providersOverrideImageMap.keySet());
+ imageKeys.addAll(artifactTypeImageMap.keySet());
+ imageKeys.addAll(artifactTypeImageProviderMap.keySet());
+
+ for (String imageKey : imageKeys) {
+ ImageManager.removeFromRegistry(imageKey);
+ }
+
+ providersOverrideImageMap.clear();
+ artifactTypeImageMap.clear();
+ artifactTypeImageProviderMap.clear();
+
+ List<ArtifactImageProvider> providers =
+ new ExtensionDefinedObjects<ArtifactImageProvider>(EXTENSION_ID, EXTENSION_ELEMENT, "class").getObjects();
+
+ for (ArtifactImageProvider imageProvider : providers) {
+ try {
+ imageProvider.init();
+ } catch (Exception ex) {
+ // prevent an exception in one provider from affecting the initialization of other providers
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ private synchronized static void ensureArtifactTypeImagesLoaded() throws OseeDataStoreException {
+ if (!artifactTypeImagesLoaded) {
+ artifactTypeImagesLoaded = true;
+ // Load base images from database (which can override the ImageManager.registerImage() calls provided
+ // through the ArtifactImageProviders
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
+ chStmt.runPreparedQuery(SELECT_ARTIFACT_TYPES_IMAGE_QUERY);
+
+ while (chStmt.next()) {
+ try {
+ ArtifactType artifactType = ArtifactTypeManager.getType(chStmt.getInt("art_type_id"));
+ artifactTypeImageMap.put(artifactType.getName(),
+ BaseImage.getBaseImageEnum(artifactType, Lib.inputStreamToBytes(chStmt.getBinaryStream("image"))));
+ artifactTypeImageProviderMap.put(artifactType.getName(), OSEE_DATABASE_PROVIDER);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ } finally {
+ chStmt.close();
+ }
+ }
+ }
+
+ public static Image getConflictImage(Conflict conflict) throws OseeCoreException {
+ if (conflict instanceof AttributeConflict) {
+ return ImageManager.getImage(FrameworkImage.ATTRIBUTE_MOLECULE);
+ }
+ if (conflict instanceof ArtifactConflict) {
+ return getImage(conflict.getArtifact());
+ }
+ throw new OseeArgumentException("Conflict not of supported type");
+ }
+
+ public static Image getChangeTypeImage(Change change) {
+ return getChangeImage(change, ChangeImageType.CHANGE_TYPE);
+ }
+
+ public static Image getChangeKindImage(Change change) {
+ return getChangeImage(change, ChangeImageType.CHANGE_KIND);
+ }
+
+ private static enum ChangeImageType {
+ CHANGE_KIND,
+ CHANGE_TYPE;
+ }
+
+ private static Image getChangeImage(Change change, ChangeImageType changeImageType) {
+ Image toReturn = null;
+ KeyedImage keyedImage = null;
+ ModificationType modType = null;
+ if (change.getItemKind().equals("Artifact")) {
+ modType = change.getModificationType();
+ keyedImage = BaseImage.getBaseImageEnum(change.getArtifactType());
+ }
+ if (change.getItemKind().equals("Attribute")) {
+ if (ChangeImageType.CHANGE_TYPE == changeImageType) {
+ modType = change.getModificationType();
+ keyedImage = FrameworkImage.ATTRIBUTE_MOLECULE;
+ } else {
+ modType = change.getModificationType();
+ keyedImage = BaseImage.getBaseImageEnum(change.getArtifactType());
+ }
+ }
+ if (change.getItemKind().equals("Relation")) {
+ keyedImage = FrameworkImage.RELATION;
+ modType = change.getModificationType();
+ }
+ if (keyedImage != null && modType != null) {
+ KeyedImage overlay = FrameworkImage.valueOf("OUTGOING_" + modType.toString());
+ toReturn = ImageManager.getImage(ImageManager.setupImageWithOverlay(keyedImage, overlay, Location.TOP_LEFT));
+ }
+ return toReturn;
+ }
+
+ public static Image getImage(IArtifactType artifactType) {
+ try {
+ return getImage(ArtifactTypeManager.getType(artifactType));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ return ImageManager.getImage(ImageManager.MISSING);
+ }
+
+ public static Image getImage(ArtifactType artifactType) {
+ try {
+ if (overrideImageEnum != null) {
+ return ImageManager.getImage(overrideImageEnum);
+ }
+
+ // Check if image provider provides override for this image
+ ArtifactImageProvider imageProvider = providersOverrideImageMap.get(artifactType.getName());
+ if (imageProvider != null) {
+ String imageKey = imageProvider.setupImage(artifactType);
+ if (imageKey != null) {
+ return ImageManager.getImage(imageKey);
+ }
+ }
+
+ // Return image for the base image
+ return ImageManager.getImage(BaseImage.getBaseImageEnum(artifactType));
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ return ImageManager.getImage(ImageManager.MISSING);
+ }
+
+ public static Image getImage(Artifact artifact, KeyedImage overlay, Location location) {
+ return ImageManager.getImage(ImageManager.setupImageWithOverlay(BaseImage.getBaseImageEnum(artifact), overlay,
+ location));
+ }
+
+ public synchronized static String setupImage(KeyedImage imageEnum) {
+ return ImageManager.setupImage(imageEnum);
+ }
+
+ public static String setupImage(Artifact artifact, KeyedImage overlay, Location location) {
+ return ImageManager.setupImageWithOverlay(BaseImage.getBaseImageEnum(artifact), overlay, location).getImageKey();
+ }
+
+ public static void registerOverrideImageProvider(ArtifactImageProvider imageProvider, String artifactTypeName) {
+ providersOverrideImageMap.put(artifactTypeName, imageProvider);
+ }
+
+ public synchronized static void registerBaseImage(IArtifactType artifactType, KeyedImage oseeImage, ArtifactImageProvider provider) throws OseeDataStoreException {
+ registerBaseImage(artifactType.getName(), oseeImage, provider);
+ }
+
+ public synchronized static void registerBaseImage(String artifactTypeName, KeyedImage oseeImage, ArtifactImageProvider provider) throws OseeDataStoreException {
+ ensureArtifactTypeImagesLoaded();
+
+ boolean alreadyProvided = artifactTypeImageMap.containsKey(artifactTypeName);
+ boolean providedByOseeDatabase =
+ artifactTypeImageProviderMap.get(artifactTypeName) != null && artifactTypeImageProviderMap.get(
+ artifactTypeName).equals(OSEE_DATABASE_PROVIDER);
+
+ // Database can override other providers, don't display error in that cases
+ if (alreadyProvided && !providedByOseeDatabase) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, String.format(
+ "Two ArtifactImageProviders [%s][%s] specify image for same artifact type [%s]",
+ provider.getClass().getSimpleName(), artifactTypeImageProviderMap.get(artifactTypeName), artifactTypeName));
+ }
+ // Regardless of error, register image if not already provided
+ if (!alreadyProvided) {
+ artifactTypeImageMap.put(artifactTypeName, oseeImage);
+ artifactTypeImageProviderMap.put(artifactTypeName, provider.getClass().getSimpleName());
+ }
+ }
+
+ public static Image getAnnotationImage(ArtifactAnnotation.Type annotationType) {
+ if (annotationType == ArtifactAnnotation.Type.Warning) {
+ return ImageManager.getImage(FrameworkImage.WARNING);
+ }
+ return ImageManager.getImage(FrameworkImage.INFO_LG);
+ }
+
+ public synchronized static Image getImage(IArtifact artifact) {
+ return ImageManager.getImage(setupImage(artifact));
+ }
+
+ public synchronized static ImageDescriptor getImageDescriptor(IArtifact artifact) {
+ return ImageManager.getImageDescriptor(setupImage(artifact));
+ }
+
+ private synchronized static String setupImage(IArtifact artifact) {
+ try {
+ Artifact castedArtifact = artifact.getFullArtifact();
+ ArtifactImageProvider imageProvider = providersOverrideImageMap.get(artifact.getArtifactType().getName());
+ if (imageProvider != null) {
+ return imageProvider.setupImage(castedArtifact);
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+
+ return setupImageNoProviders(artifact);
+ }
+
+ protected synchronized static String setupImageNoProviders(IArtifact artifact) {
+ KeyedImage baseImageEnum = null;
+ try {
+ Artifact castedArtifact = artifact.getFullArtifact();
+ baseImageEnum = BaseImage.getBaseImageEnum(castedArtifact);
+
+ if (AccessControlManager.hasLock(castedArtifact)) {
+ KeyedImage overlay =
+ AccessControlManager.hasLockAccess(castedArtifact) ? FrameworkImage.LOCKED_WITH_ACCESS : FrameworkImage.LOCKED_NO_ACCESS;
+ return ImageManager.setupImageWithOverlay(baseImageEnum, overlay, Location.TOP_LEFT).getImageKey();
+ }
+
+ if (castedArtifact.isAnnotationWarning()) {
+ return ImageManager.setupImageWithOverlay(baseImageEnum, FrameworkImage.WARNING_OVERLAY, Location.BOT_LEFT).getImageKey();
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ return ImageManager.setupImage(baseImageEnum);
+ }
+
+ public static void setArtifactTypeImageInDb(IArtifactType artifactType, ByteArrayInputStream byteInput) throws OseeCoreException {
+ setArtifactTypeImageInDb(ArtifactTypeManager.getType(artifactType), byteInput);
+ }
+
+ public static void setArtifactTypeImageInDb(ArtifactType artifactType, ByteArrayInputStream byteInput) throws OseeDataStoreException {
+ Object imageData = byteInput != null ? byteInput : SQL3DataType.BLOB;
+ ConnectionHandler.runPreparedUpdate(UPDATE_ARTIFACT_TYPE_IMAGE, imageData, artifactType.getId());
+ loadCache();
+
+ // TODO Need remote event kick to tell other clients of artifact type image changes
+ }
+
+ public static KeyedImage getArtifactTypeImage(String artifactTypeName) {
+ return artifactTypeImageMap.get(artifactTypeName);
+ }
+
+ /**
+ * @param overrideImageEnum the overrideImageEnum to set
+ */
+ public static void setOverrideImageEnum(KeyedImage overrideImageEnum) {
+ ArtifactImageManager.overrideImageEnum = overrideImageEnum;
+ }
+
+ /**
+ * @return the overrideImageEnum
+ */
+ public static KeyedImage getOverrideImageEnum() {
+ return overrideImageEnum;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactLabelProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactLabelProvider.java
index 15d85cb80c9..5f32f084038 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactLabelProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactLabelProvider.java
@@ -1,103 +1,103 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-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.artifact.Artifact;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.search.ui.text.Match;
-import org.eclipse.swt.graphics.Image;
-
-public class ArtifactLabelProvider extends LabelProvider { //StyledCellLabelProvider {
-
- private final IArtifactDecoratorPreferences decorationProvider;
-
- public ArtifactLabelProvider(IArtifactDecoratorPreferences decorationProvider) {
- super();
- this.decorationProvider = decorationProvider;
- }
-
- public ArtifactLabelProvider() {
- this(null);
- }
-
- /*
- * @see ILabelProvider#getImage(Object)
- */
- @Override
- public Image getImage(Object element) {
- if (element instanceof Artifact) {
- return ArtifactImageManager.getImage((Artifact) element);
- } else if (element instanceof Match && ((Match) element).getElement() instanceof Artifact) {
- return ArtifactImageManager.getImage((Artifact) ((Match) element).getElement());
- }
- return ImageManager.getImage(ImageManager.MISSING);
- }
-
- /*
- * @see ILabelProvider#getText(Object)
- */
- @Override
- public String getText(Object element) {
- if (element instanceof Match) {
- element = ((Match) element).getElement();
- }
-
- if (element instanceof Artifact) {
- Artifact artifact = (Artifact) element;
-
- List<String> extraInfo = new ArrayList<String>();
- String name = artifact.getName();
- extraInfo.add(name != null ? name : "");
- if (artifact.isDeleted()) {
- extraInfo.add("<Deleted>");
- }
- if (decorationProvider != null) {
-
- if (decorationProvider.showArtIds() && decorationProvider.showArtVersion()) {
- extraInfo.add(String.format("[%s rev.%s]", artifact.getArtId(), artifact.getGammaId()));
- } else if (decorationProvider.showArtIds() && !decorationProvider.showArtVersion()) {
- extraInfo.add(String.format("[id %s]", artifact.getArtId()));
- } else if (!decorationProvider.showArtIds() && decorationProvider.showArtVersion()) {
- extraInfo.add(String.format("[rev.%s]", artifact.getGammaId()));
- }
-
- if (decorationProvider.showArtType()) {
- extraInfo.add("<" + artifact.getArtifactTypeName() + ">");
- }
-
- if (decorationProvider.showArtBranch()) {
- extraInfo.add("[" + artifact.getBranch().getShortName() + "]");
- }
-
- try {
- String selectedAttributes = decorationProvider.getSelectedAttributeData(artifact);
- if (Strings.isValid(selectedAttributes)) {
- extraInfo.add(selectedAttributes);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- extraInfo.add(ex.toString());
- }
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+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.artifact.Artifact;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.search.ui.text.Match;
+import org.eclipse.swt.graphics.Image;
+
+public class ArtifactLabelProvider extends LabelProvider { //StyledCellLabelProvider {
+
+ private final IArtifactDecoratorPreferences decorationProvider;
+
+ public ArtifactLabelProvider(IArtifactDecoratorPreferences decorationProvider) {
+ super();
+ this.decorationProvider = decorationProvider;
+ }
+
+ public ArtifactLabelProvider() {
+ this(null);
+ }
+
+ /*
+ * @see ILabelProvider#getImage(Object)
+ */
+ @Override
+ public Image getImage(Object element) {
+ if (element instanceof Artifact) {
+ return ArtifactImageManager.getImage((Artifact) element);
+ } else if (element instanceof Match && ((Match) element).getElement() instanceof Artifact) {
+ return ArtifactImageManager.getImage((Artifact) ((Match) element).getElement());
+ }
+ return ImageManager.getImage(ImageManager.MISSING);
+ }
+
+ /*
+ * @see ILabelProvider#getText(Object)
+ */
+ @Override
+ public String getText(Object element) {
+ if (element instanceof Match) {
+ element = ((Match) element).getElement();
+ }
+
+ if (element instanceof Artifact) {
+ Artifact artifact = (Artifact) element;
+
+ List<String> extraInfo = new ArrayList<String>();
+ String name = artifact.getName();
+ extraInfo.add(name != null ? name : "");
+ if (artifact.isDeleted()) {
+ extraInfo.add("<Deleted>");
+ }
+ if (decorationProvider != null) {
+
+ if (decorationProvider.showArtIds() && decorationProvider.showArtVersion()) {
+ extraInfo.add(String.format("[%s rev.%s]", artifact.getArtId(), artifact.getGammaId()));
+ } else if (decorationProvider.showArtIds() && !decorationProvider.showArtVersion()) {
+ extraInfo.add(String.format("[id %s]", artifact.getArtId()));
+ } else if (!decorationProvider.showArtIds() && decorationProvider.showArtVersion()) {
+ extraInfo.add(String.format("[rev.%s]", artifact.getGammaId()));
+ }
+
+ if (decorationProvider.showArtType()) {
+ extraInfo.add("<" + artifact.getArtifactTypeName() + ">");
+ }
+
+ if (decorationProvider.showArtBranch()) {
+ extraInfo.add("[" + artifact.getBranch().getShortName() + "]");
+ }
+
+ try {
+ String selectedAttributes = decorationProvider.getSelectedAttributeData(artifact);
+ if (Strings.isValid(selectedAttributes)) {
+ extraInfo.add(selectedAttributes);
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ extraInfo.add(ex.toString());
+ }
+ }
return Collections.toString(" ", extraInfo);
- } else {
- return element.toString();
- }
- }
-}
+ } else {
+ return element.toString();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactValidationCheckOperation.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactValidationCheckOperation.java
index ff21fc0a3fc..d10b61ed794 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactValidationCheckOperation.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactValidationCheckOperation.java
@@ -1,78 +1,78 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.validation.IOseeValidator;
-import org.eclipse.osee.framework.skynet.core.validation.OseeValidator;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactValidationCheckOperation extends AbstractOperation {
- private final List<Artifact> itemsToCheck;
- private final boolean stopOnFirstError;
-
- public ArtifactValidationCheckOperation(final Collection<Artifact> itemsToCheck, boolean stopOnFirstError) {
- super("Validate Artifact(s)", SkynetGuiPlugin.PLUGIN_ID);
- this.stopOnFirstError = stopOnFirstError;
- this.itemsToCheck = new ArrayList<Artifact>(itemsToCheck);
- if (itemsToCheck != null) {
- this.itemsToCheck.addAll(itemsToCheck);
- }
- }
-
- public boolean isStopOnFirstError() {
- return stopOnFirstError;
- }
-
- private void handleStatus(Artifact itemChecked, IStatus status) throws Exception {
- if (!status.isOK()) {
- String link =
- XResultData.getHyperlink(
- String.format("%s:[%s]", itemChecked.getArtifactTypeName(), itemChecked.getName()),
- itemChecked.getHumanReadableId(), itemChecked.getBranch().getId());
- String message = String.format("%s: %s", link, status.getMessage());
- status =
- new Status(status.getSeverity(), status.getPlugin(), status.getCode(), message, status.getException());
- setStatus(status);
- }
- }
-
- @Override
- protected void doWork(IProgressMonitor monitor) throws Exception {
- monitor.setTaskName(getName());
- if (!itemsToCheck.isEmpty()) {
- int totalArts = itemsToCheck.size();
- double workAmountPercentage = 1 / itemsToCheck.size();
- int workAmount = calculateWork(workAmountPercentage);
- for (int index = 0; index < totalArts; index++) {
- monitor.setTaskName(String.format("Validating Artifact(s): [%s of %s]", index + 1, totalArts));
- Artifact itemChecked = itemsToCheck.get(index);
- IStatus status = OseeValidator.getInstance().validate(IOseeValidator.LONG, itemChecked);
- handleStatus(itemChecked, status);
- monitor.worked(workAmount);
- if (isStopOnFirstError()) {
- break;
- }
- checkForCancelledStatus(monitor);
- }
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.framework.core.operation.AbstractOperation;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.validation.IOseeValidator;
+import org.eclipse.osee.framework.skynet.core.validation.OseeValidator;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactValidationCheckOperation extends AbstractOperation {
+ private final List<Artifact> itemsToCheck;
+ private final boolean stopOnFirstError;
+
+ public ArtifactValidationCheckOperation(final Collection<Artifact> itemsToCheck, boolean stopOnFirstError) {
+ super("Validate Artifact(s)", SkynetGuiPlugin.PLUGIN_ID);
+ this.stopOnFirstError = stopOnFirstError;
+ this.itemsToCheck = new ArrayList<Artifact>(itemsToCheck);
+ if (itemsToCheck != null) {
+ this.itemsToCheck.addAll(itemsToCheck);
+ }
+ }
+
+ public boolean isStopOnFirstError() {
+ return stopOnFirstError;
+ }
+
+ private void handleStatus(Artifact itemChecked, IStatus status) throws Exception {
+ if (!status.isOK()) {
+ String link =
+ XResultData.getHyperlink(
+ String.format("%s:[%s]", itemChecked.getArtifactTypeName(), itemChecked.getName()),
+ itemChecked.getHumanReadableId(), itemChecked.getBranch().getId());
+ String message = String.format("%s: %s", link, status.getMessage());
+ status =
+ new Status(status.getSeverity(), status.getPlugin(), status.getCode(), message, status.getException());
+ setStatus(status);
+ }
+ }
+
+ @Override
+ protected void doWork(IProgressMonitor monitor) throws Exception {
+ monitor.setTaskName(getName());
+ if (!itemsToCheck.isEmpty()) {
+ int totalArts = itemsToCheck.size();
+ double workAmountPercentage = 1 / itemsToCheck.size();
+ int workAmount = calculateWork(workAmountPercentage);
+ for (int index = 0; index < totalArts; index++) {
+ monitor.setTaskName(String.format("Validating Artifact(s): [%s of %s]", index + 1, totalArts));
+ Artifact itemChecked = itemsToCheck.get(index);
+ IStatus status = OseeValidator.getInstance().validate(IOseeValidator.LONG, itemChecked);
+ handleStatus(itemChecked, status);
+ monitor.worked(workAmount);
+ if (isStopOnFirstError()) {
+ break;
+ }
+ checkForCancelledStatus(monitor);
+ }
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java
index 2099d6bf11f..04ecc19909a 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeCellModifier.java
@@ -1,135 +1,135 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.Date;
-import java.util.GregorianCalendar;
-import org.eclipse.jface.viewers.ICellModifier;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.skynet.core.attribute.BinaryAttribute;
-import org.eclipse.osee.framework.skynet.core.attribute.BooleanAttribute;
-import org.eclipse.osee.framework.skynet.core.attribute.DateAttribute;
-import org.eclipse.osee.framework.skynet.core.attribute.EnumeratedAttribute;
-import org.eclipse.osee.framework.skynet.core.attribute.WordAttribute;
-import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.DateValue;
-import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.EnumeratedValue;
-import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.StringValue;
-import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
-import org.eclipse.swt.widgets.Item;
-
-/**
- * @author Ryan D. Brooks
- */
-public class AttributeCellModifier implements ICellModifier {
- private final TableViewer tableViewer;
- private final DateValue dateValue;
- private final EnumeratedValue enumeratedValue;
- private final StringValue stringValue;
- private final IDirtiableEditor editor;
-
- private final AttributesComposite attrComp;
-
- public AttributeCellModifier(IDirtiableEditor editor, TableViewer tableViewer, AttributesComposite attrComp) {
- super();
- this.tableViewer = tableViewer;
- this.attrComp = attrComp;
- this.dateValue = new DateValue();
- this.enumeratedValue = new EnumeratedValue();
- this.stringValue = new StringValue();
- this.editor = editor;
-
- // this.pList = new PermissionList();
- // pList.addPermission(Permission.PermissionEnum.EDITREQUIREMENT);
- }
-
- @Override
- public boolean canModify(Object element, String property) {
- attrComp.updateLabel("");
- if (element != null) {
- if (element instanceof Item) {
- element = ((Item) element).getData();
- }
- try {
- Attribute<?> attribute = (Attribute<?>) element;
-
- if (attribute instanceof WordAttribute) {
- return false;
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- return property.equals("value");
- }
-
- @Override
- public Object getValue(Object element, String property) {
- try {
- Attribute<?> attribute = (Attribute<?>) element;
- Object object = attribute.getValue();
- if (attribute instanceof EnumeratedAttribute) {
- enumeratedValue.setValue(attribute.getDisplayableString());
-
- String[] choices =
- AttributeTypeManager.getEnumerationValues(attribute.getAttributeType()).toArray(new String[0]);
- enumeratedValue.setChoices(choices);
- return enumeratedValue;
- } else if (attribute instanceof BooleanAttribute) {
- enumeratedValue.setValue(attribute.getDisplayableString());
- enumeratedValue.setChoices(BooleanAttribute.booleanChoices);
- return enumeratedValue;
- } else if (attribute instanceof DateAttribute) {
- dateValue.setValue((Date) object);
- return dateValue;
- } else {
- stringValue.setValue(attribute.getDisplayableString() != null ? attribute.getDisplayableString() : "");
- return stringValue;
- }
- } catch (OseeCoreException ex) {
- return Lib.exceptionToString(ex);
- }
- }
-
- @Override
- public void modify(Object element, String property, Object value) {
- if (element != null) {
- // Note that it is possible for an SWT Item to be passed instead of the model element.
- if (element instanceof Item) {
- element = ((Item) element).getData();
- }
- try {
- Attribute<?> attribute = (Attribute<?>) element;
-
- if (attribute instanceof DateAttribute) {
- if (value instanceof GregorianCalendar) {
- ((DateAttribute) attribute).setValue(new Date(((GregorianCalendar) value).getTimeInMillis()));
- } else {
- ((DateAttribute) attribute).setValue((Date) value);
- }
- } else if (!(attribute instanceof BinaryAttribute<?>)) {
- //binary attributes should not be changed.
- attribute.setFromString((String) value);
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- tableViewer.update(element, null);
- editor.onDirtied();
- attrComp.notifyModifyAttribuesListeners();
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.util.Date;
+import java.util.GregorianCalendar;
+import org.eclipse.jface.viewers.ICellModifier;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.skynet.core.attribute.BinaryAttribute;
+import org.eclipse.osee.framework.skynet.core.attribute.BooleanAttribute;
+import org.eclipse.osee.framework.skynet.core.attribute.DateAttribute;
+import org.eclipse.osee.framework.skynet.core.attribute.EnumeratedAttribute;
+import org.eclipse.osee.framework.skynet.core.attribute.WordAttribute;
+import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.DateValue;
+import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.EnumeratedValue;
+import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.StringValue;
+import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
+import org.eclipse.swt.widgets.Item;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class AttributeCellModifier implements ICellModifier {
+ private final TableViewer tableViewer;
+ private final DateValue dateValue;
+ private final EnumeratedValue enumeratedValue;
+ private final StringValue stringValue;
+ private final IDirtiableEditor editor;
+
+ private final AttributesComposite attrComp;
+
+ public AttributeCellModifier(IDirtiableEditor editor, TableViewer tableViewer, AttributesComposite attrComp) {
+ super();
+ this.tableViewer = tableViewer;
+ this.attrComp = attrComp;
+ this.dateValue = new DateValue();
+ this.enumeratedValue = new EnumeratedValue();
+ this.stringValue = new StringValue();
+ this.editor = editor;
+
+ // this.pList = new PermissionList();
+ // pList.addPermission(Permission.PermissionEnum.EDITREQUIREMENT);
+ }
+
+ @Override
+ public boolean canModify(Object element, String property) {
+ attrComp.updateLabel("");
+ if (element != null) {
+ if (element instanceof Item) {
+ element = ((Item) element).getData();
+ }
+ try {
+ Attribute<?> attribute = (Attribute<?>) element;
+
+ if (attribute instanceof WordAttribute) {
+ return false;
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ return property.equals("value");
+ }
+
+ @Override
+ public Object getValue(Object element, String property) {
+ try {
+ Attribute<?> attribute = (Attribute<?>) element;
+ Object object = attribute.getValue();
+ if (attribute instanceof EnumeratedAttribute) {
+ enumeratedValue.setValue(attribute.getDisplayableString());
+
+ String[] choices =
+ AttributeTypeManager.getEnumerationValues(attribute.getAttributeType()).toArray(new String[0]);
+ enumeratedValue.setChoices(choices);
+ return enumeratedValue;
+ } else if (attribute instanceof BooleanAttribute) {
+ enumeratedValue.setValue(attribute.getDisplayableString());
+ enumeratedValue.setChoices(BooleanAttribute.booleanChoices);
+ return enumeratedValue;
+ } else if (attribute instanceof DateAttribute) {
+ dateValue.setValue((Date) object);
+ return dateValue;
+ } else {
+ stringValue.setValue(attribute.getDisplayableString() != null ? attribute.getDisplayableString() : "");
+ return stringValue;
+ }
+ } catch (OseeCoreException ex) {
+ return Lib.exceptionToString(ex);
+ }
+ }
+
+ @Override
+ public void modify(Object element, String property, Object value) {
+ if (element != null) {
+ // Note that it is possible for an SWT Item to be passed instead of the model element.
+ if (element instanceof Item) {
+ element = ((Item) element).getData();
+ }
+ try {
+ Attribute<?> attribute = (Attribute<?>) element;
+
+ if (attribute instanceof DateAttribute) {
+ if (value instanceof GregorianCalendar) {
+ ((DateAttribute) attribute).setValue(new Date(((GregorianCalendar) value).getTimeInMillis()));
+ } else {
+ ((DateAttribute) attribute).setValue((Date) value);
+ }
+ } else if (!(attribute instanceof BinaryAttribute<?>)) {
+ //binary attributes should not be changed.
+ attribute.setFromString((String) value);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ tableViewer.update(element, null);
+ editor.onDirtied();
+ attrComp.notifyModifyAttribuesListeners();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeLabelProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeLabelProvider.java
index 42024043f71..e8f1b74e80b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeLabelProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributeLabelProvider.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.framework.ui.skynet;
-
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Ryan D. Brooks
- */
-public class AttributeLabelProvider implements ITableLabelProvider {
-
- public AttributeLabelProvider() {
- super();
- }
-
- @Override
- public Image getColumnImage(Object element, int columnIndex) {
- return null;
- }
-
- @Override
- public String getColumnText(Object element, int columnIndex) {
- Attribute<?> attribute = (Attribute<?>) element;
- if (columnIndex == 0) {
- return attribute.getAttributeType().getName();
- }
- try {
- return attribute.getDisplayableString();
- } catch (OseeCoreException ex) {
- return Lib.exceptionToString(ex);
- }
- }
-
- @Override
- public void addListener(ILabelProviderListener listener) {
- // do nothing
- }
-
- @Override
- public void dispose() {
- // do nothing
- }
-
- @Override
- public boolean isLabelProperty(Object element, String property) {
- return false;
- }
-
- @Override
- public void removeListener(ILabelProviderListener listener) {
- // 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.framework.ui.skynet;
+
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class AttributeLabelProvider implements ITableLabelProvider {
+
+ public AttributeLabelProvider() {
+ super();
+ }
+
+ @Override
+ public Image getColumnImage(Object element, int columnIndex) {
+ return null;
+ }
+
+ @Override
+ public String getColumnText(Object element, int columnIndex) {
+ Attribute<?> attribute = (Attribute<?>) element;
+ if (columnIndex == 0) {
+ return attribute.getAttributeType().getName();
+ }
+ try {
+ return attribute.getDisplayableString();
+ } catch (OseeCoreException ex) {
+ return Lib.exceptionToString(ex);
+ }
+ }
+
+ @Override
+ public void addListener(ILabelProviderListener listener) {
+ // do nothing
+ }
+
+ @Override
+ public void dispose() {
+ // do nothing
+ }
+
+ @Override
+ public boolean isLabelProperty(Object element, String property) {
+ return false;
+ }
+
+ @Override
+ public void removeListener(ILabelProviderListener listener) {
+ // do nothing
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributesComposite.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributesComposite.java
index b2999605990..4e86e0be769 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributesComposite.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/AttributesComposite.java
@@ -1,339 +1,339 @@
-/*******************************************************************************
- * 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.framework.ui.skynet;
-
-import java.util.ArrayList;
-import java.util.logging.Level;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.ColumnViewerEditor;
-import org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerEditor;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-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.skynet.core.artifact.Attribute;
-import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.UniversalCellEditor;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.SashForm;
-import org.eclipse.swt.events.ArmEvent;
-import org.eclipse.swt.events.ArmListener;
-import org.eclipse.swt.events.MenuEvent;
-import org.eclipse.swt.events.MenuListener;
-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.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.swt.widgets.ToolBar;
-
-public class AttributesComposite extends Composite {
- private TableViewer tableViewer;
- private Table table;
- private Text helpText;
- private static final String[] columnNames = new String[] {"name", "value"};
- private static final Integer[] columnWidths = new Integer[] {200, 600};
- private Artifact artifact;
- private final IDirtiableEditor editor;
- private Label warningLabel;
- private final ArrayList<ModifyAttributesListener> modifyAttrListeners = new ArrayList<ModifyAttributesListener>();
- private MenuItem deleteItem;
- private final ToolBar toolBar;
-
- public static final int NAME_COLUMN_INDEX = 0;
- public static final int VALUE_COLUMN_INDEX = 1;
-
- public AttributesComposite(IDirtiableEditor editor, Composite parent, int style, Artifact artifact) {
- this(editor, parent, style, artifact, null);
- }
-
- public AttributesComposite(IDirtiableEditor editor, Composite parent, int style, Artifact artifact, ToolBar toolBar) {
- super(parent, style);
- this.artifact = artifact;
- this.editor = editor;
-
- create(this);
- Menu popupMenu = new Menu(parent);
- createAddMenuItem(popupMenu);
- createDeleteMenuItem(popupMenu);
- popupMenu.addMenuListener(new AttributeMenuListener());
- tableViewer.getTable().setMenu(popupMenu);
-
- this.toolBar = toolBar;
- }
-
- public void updateLabel(String msg) {
- warningLabel.setText(msg);
- layout();
- }
-
- private void create(Composite parent) {
- this.setLayout(new GridLayout());
- this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- SashForm mainSash = new SashForm(this, SWT.NONE);
- mainSash.setLayout(new GridLayout());
- mainSash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- mainSash.setOrientation(SWT.VERTICAL);
-
- createTableArea(mainSash);
-
- SashForm sashForm = new SashForm(mainSash, SWT.NONE);
- sashForm.setLayout(new GridLayout());
- sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- sashForm.setOrientation(SWT.HORIZONTAL);
-
- createWarningArea(sashForm);
- createHelpArea(sashForm);
-
- mainSash.setWeights(new int[] {8, 2});
- sashForm.setWeights(new int[] {5, 5});
-
- setHelpContexts();
- }
-
- private void createTableArea(Composite parent) {
- Group composite = new Group(parent, SWT.NONE);
- composite.setLayout(new GridLayout());
- composite.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true));
- composite.setText("Attributes");
-
- createTable(composite);
- createColumns();
- createTableViewer(composite);
-
- tableViewer.refresh();
- attachTableListeners();
- }
-
- private void createTable(Composite parent) {
- table =
- new Table(parent,
- SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
- table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- table.setLinesVisible(true);
- table.setHeaderVisible(true);
- }
-
- private void attachTableListeners() {
- tableViewer.addPostSelectionChangedListener(new ISelectionChangedListener() {
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection) event.getSelection();
- Object selected = selection.getFirstElement();
-
- if (selected instanceof Attribute<?>) {
- Attribute<?> attribute = (Attribute<?>) selected;
- String tipText = attribute.getAttributeType().getDescription();
- if (tipText != null && !tipText.equals("null")) {
- helpText.setText(tipText);
- } else {
- helpText.setText("");
- }
- }
- }
- });
- }
-
- private void createTableViewer(Composite parent) {
- tableViewer = new TableViewer(table);
-
- TableViewerEditor.create(
- tableViewer,
- new ColumnViewerEditorActivationStrategy(tableViewer),
- ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION);
- tableViewer.setUseHashlookup(true);
- tableViewer.setColumnProperties(columnNames);
-
- if (!artifact.isReadOnly()) {
- CellEditor[] editors = new CellEditor[columnNames.length];
- editors[VALUE_COLUMN_INDEX] = new UniversalCellEditor(table, SWT.NONE);
-
- tableViewer.setCellEditors(editors);
- tableViewer.setCellModifier(new AttributeCellModifier(editor, tableViewer, this));
- }
- tableViewer.setContentProvider(new AttributeContentProvider());
- tableViewer.setLabelProvider(new AttributeLabelProvider());
- tableViewer.setInput(artifact);
- }
-
- private void createColumns() {
- for (int index = 0; index < columnNames.length; index++) {
- TableColumn column = new TableColumn(table, SWT.LEFT, index);
- column.setText(columnNames[index]);
- column.setWidth(columnWidths[index]);
- }
- }
-
- private void createHelpArea(Composite parent) {
- Group composite = new Group(parent, SWT.NONE);
- composite.setLayout(new GridLayout());
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- composite.setText("Tips");
-
- helpText = new Text(composite, SWT.WRAP | SWT.READ_ONLY);
- helpText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- }
-
- private void createWarningArea(Composite parent) {
- Group composite = new Group(parent, SWT.NONE);
- composite.setLayout(new GridLayout());
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- composite.setText("Warnings");
-
- warningLabel = new Label(composite, SWT.NONE);
- warningLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- warningLabel.setForeground(Displays.getSystemColor(SWT.COLOR_RED));
- updateLabel("");
- }
-
- private void createAddMenuItem(Menu parentMenu) {
- MenuItem addItem = new MenuItem(parentMenu, SWT.CASCADE);
- addItem.setText("Add");
- addItem.setEnabled(true && !artifact.isReadOnly());
-
- // Update the enabled values for the popup menu each time it comes up
- addItem.addArmListener(new ArmListener() {
-
- @Override
- public void widgetArmed(ArmEvent e) {
- MenuItem addItem = (MenuItem) e.getSource();
- for (MenuItem attrItem : addItem.getMenu().getItems()) {
- try {
- attrItem.setEnabled(artifact.getRemainingAttributeCount((AttributeType) attrItem.getData()) > 0);
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
- });
-
- Menu attributesMenu = new Menu(parentMenu);
-
- try {
- SelectionAdapter listener = new AttributeMenuSelectionListener(this, tableViewer, editor);
- for (AttributeType attributeType : artifact.getAttributeTypes()) {
- MenuItem item = new MenuItem(attributesMenu, SWT.CASCADE);
- item.setText(attributeType.getName() + " Attribute");
- item.setData(attributeType);
- item.addSelectionListener(listener);
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- addItem.setMenu(attributesMenu);
- }
-
- private void createDeleteMenuItem(Menu parentMenu) {
- deleteItem = new MenuItem(parentMenu, SWT.PUSH);
- deleteItem.setImage(null);
- deleteItem.setText("Delete");
- deleteItem.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- Attribute<?> attribute = getSelectedAttribute();
- attribute.delete();
- editor.onDirtied();
- notifyModifyAttribuesListeners();
- tableViewer.refresh();
- }
- });
- }
-
- private Attribute<?> getSelectedAttribute() {
- TableItem[] items = tableViewer.getTable().getSelection();
- if (items.length > 0) {
- return (Attribute<?>) tableViewer.getTable().getSelection()[0].getData();
- } else {
- return null;
- }
- }
-
- public class AttributeMenuListener implements MenuListener {
- @Override
- public void menuHidden(MenuEvent e) {
- // do nothing
- }
-
- @Override
- public void menuShown(MenuEvent e) {
- Attribute<?> attribute = getSelectedAttribute();
-
- if (attribute == null) {
- deleteItem.setText("Delete - No Attribute Selected");
- deleteItem.setEnabled(false);
- } else if (!attribute.canDelete()) {
- deleteItem.setText("Delete - Lower Limit Met");
- deleteItem.setEnabled(false);
- } else {
- deleteItem.setText("Delete");
- deleteItem.setEnabled(!artifact.isReadOnly());
- }
- }
- }
-
- public Artifact getArtifact() {
- return artifact;
- }
-
- public void refreshArtifact(Artifact artifact) {
- this.artifact = artifact;
-
- if (tableViewer.getContentProvider() != null) {
- tableViewer.setInput(artifact);
- tableViewer.refresh();
- }
- }
-
- public void addModifyAttributesListener(ModifyAttributesListener listener) {
- if (!modifyAttrListeners.contains(listener)) {
- modifyAttrListeners.add(listener);
- }
- }
-
- public void removeModifyAttributesListener(ModifyAttributesListener listener) {
- modifyAttrListeners.remove(listener);
- }
-
- public void notifyModifyAttribuesListeners() {
- for (ModifyAttributesListener listener : modifyAttrListeners) {
- listener.handleEvent();
- }
- }
-
- private void setHelpContexts() {
- SkynetGuiPlugin.getInstance().setHelp(tableViewer.getControl(), "artifact_editor",
- "org.eclipse.osee.framework.help.ui");
- }
-
- /**
- * @return the toolBar
- */
- public ToolBar getToolBar() {
- return toolBar;
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet;
+
+import java.util.ArrayList;
+import java.util.logging.Level;
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.jface.viewers.ColumnViewerEditor;
+import org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TableViewerEditor;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+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.skynet.core.artifact.Attribute;
+import org.eclipse.osee.framework.ui.skynet.widgets.cellEditor.UniversalCellEditor;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.SashForm;
+import org.eclipse.swt.events.ArmEvent;
+import org.eclipse.swt.events.ArmListener;
+import org.eclipse.swt.events.MenuEvent;
+import org.eclipse.swt.events.MenuListener;
+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.Composite;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swt.widgets.Table;
+import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.TableItem;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.swt.widgets.ToolBar;
+
+public class AttributesComposite extends Composite {
+ private TableViewer tableViewer;
+ private Table table;
+ private Text helpText;
+ private static final String[] columnNames = new String[] {"name", "value"};
+ private static final Integer[] columnWidths = new Integer[] {200, 600};
+ private Artifact artifact;
+ private final IDirtiableEditor editor;
+ private Label warningLabel;
+ private final ArrayList<ModifyAttributesListener> modifyAttrListeners = new ArrayList<ModifyAttributesListener>();
+ private MenuItem deleteItem;
+ private final ToolBar toolBar;
+
+ public static final int NAME_COLUMN_INDEX = 0;
+ public static final int VALUE_COLUMN_INDEX = 1;
+
+ public AttributesComposite(IDirtiableEditor editor, Composite parent, int style, Artifact artifact) {
+ this(editor, parent, style, artifact, null);
+ }
+
+ public AttributesComposite(IDirtiableEditor editor, Composite parent, int style, Artifact artifact, ToolBar toolBar) {
+ super(parent, style);
+ this.artifact = artifact;
+ this.editor = editor;
+
+ create(this);
+ Menu popupMenu = new Menu(parent);
+ createAddMenuItem(popupMenu);
+ createDeleteMenuItem(popupMenu);
+ popupMenu.addMenuListener(new AttributeMenuListener());
+ tableViewer.getTable().setMenu(popupMenu);
+
+ this.toolBar = toolBar;
+ }
+
+ public void updateLabel(String msg) {
+ warningLabel.setText(msg);
+ layout();
+ }
+
+ private void create(Composite parent) {
+ this.setLayout(new GridLayout());
+ this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ SashForm mainSash = new SashForm(this, SWT.NONE);
+ mainSash.setLayout(new GridLayout());
+ mainSash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ mainSash.setOrientation(SWT.VERTICAL);
+
+ createTableArea(mainSash);
+
+ SashForm sashForm = new SashForm(mainSash, SWT.NONE);
+ sashForm.setLayout(new GridLayout());
+ sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ sashForm.setOrientation(SWT.HORIZONTAL);
+
+ createWarningArea(sashForm);
+ createHelpArea(sashForm);
+
+ mainSash.setWeights(new int[] {8, 2});
+ sashForm.setWeights(new int[] {5, 5});
+
+ setHelpContexts();
+ }
+
+ private void createTableArea(Composite parent) {
+ Group composite = new Group(parent, SWT.NONE);
+ composite.setLayout(new GridLayout());
+ composite.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true));
+ composite.setText("Attributes");
+
+ createTable(composite);
+ createColumns();
+ createTableViewer(composite);
+
+ tableViewer.refresh();
+ attachTableListeners();
+ }
+
+ private void createTable(Composite parent) {
+ table =
+ new Table(parent,
+ SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
+ table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ table.setLinesVisible(true);
+ table.setHeaderVisible(true);
+ }
+
+ private void attachTableListeners() {
+ tableViewer.addPostSelectionChangedListener(new ISelectionChangedListener() {
+
+ @Override
+ public void selectionChanged(SelectionChangedEvent event) {
+ IStructuredSelection selection = (IStructuredSelection) event.getSelection();
+ Object selected = selection.getFirstElement();
+
+ if (selected instanceof Attribute<?>) {
+ Attribute<?> attribute = (Attribute<?>) selected;
+ String tipText = attribute.getAttributeType().getDescription();
+ if (tipText != null && !tipText.equals("null")) {
+ helpText.setText(tipText);
+ } else {
+ helpText.setText("");
+ }
+ }
+ }
+ });
+ }
+
+ private void createTableViewer(Composite parent) {
+ tableViewer = new TableViewer(table);
+
+ TableViewerEditor.create(
+ tableViewer,
+ new ColumnViewerEditorActivationStrategy(tableViewer),
+ ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION);
+ tableViewer.setUseHashlookup(true);
+ tableViewer.setColumnProperties(columnNames);
+
+ if (!artifact.isReadOnly()) {
+ CellEditor[] editors = new CellEditor[columnNames.length];
+ editors[VALUE_COLUMN_INDEX] = new UniversalCellEditor(table, SWT.NONE);
+
+ tableViewer.setCellEditors(editors);
+ tableViewer.setCellModifier(new AttributeCellModifier(editor, tableViewer, this));
+ }
+ tableViewer.setContentProvider(new AttributeContentProvider());
+ tableViewer.setLabelProvider(new AttributeLabelProvider());
+ tableViewer.setInput(artifact);
+ }
+
+ private void createColumns() {
+ for (int index = 0; index < columnNames.length; index++) {
+ TableColumn column = new TableColumn(table, SWT.LEFT, index);
+ column.setText(columnNames[index]);
+ column.setWidth(columnWidths[index]);
+ }
+ }
+
+ private void createHelpArea(Composite parent) {
+ Group composite = new Group(parent, SWT.NONE);
+ composite.setLayout(new GridLayout());
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ composite.setText("Tips");
+
+ helpText = new Text(composite, SWT.WRAP | SWT.READ_ONLY);
+ helpText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ }
+
+ private void createWarningArea(Composite parent) {
+ Group composite = new Group(parent, SWT.NONE);
+ composite.setLayout(new GridLayout());
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ composite.setText("Warnings");
+
+ warningLabel = new Label(composite, SWT.NONE);
+ warningLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ warningLabel.setForeground(Displays.getSystemColor(SWT.COLOR_RED));
+ updateLabel("");
+ }
+
+ private void createAddMenuItem(Menu parentMenu) {
+ MenuItem addItem = new MenuItem(parentMenu, SWT.CASCADE);
+ addItem.setText("Add");
+ addItem.setEnabled(true && !artifact.isReadOnly());
+
+ // Update the enabled values for the popup menu each time it comes up
+ addItem.addArmListener(new ArmListener() {
+
+ @Override
+ public void widgetArmed(ArmEvent e) {
+ MenuItem addItem = (MenuItem) e.getSource();
+ for (MenuItem attrItem : addItem.getMenu().getItems()) {
+ try {
+ attrItem.setEnabled(artifact.getRemainingAttributeCount((AttributeType) attrItem.getData()) > 0);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+ });
+
+ Menu attributesMenu = new Menu(parentMenu);
+
+ try {
+ SelectionAdapter listener = new AttributeMenuSelectionListener(this, tableViewer, editor);
+ for (AttributeType attributeType : artifact.getAttributeTypes()) {
+ MenuItem item = new MenuItem(attributesMenu, SWT.CASCADE);
+ item.setText(attributeType.getName() + " Attribute");
+ item.setData(attributeType);
+ item.addSelectionListener(listener);
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ addItem.setMenu(attributesMenu);
+ }
+
+ private void createDeleteMenuItem(Menu parentMenu) {
+ deleteItem = new MenuItem(parentMenu, SWT.PUSH);
+ deleteItem.setImage(null);
+ deleteItem.setText("Delete");
+ deleteItem.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ Attribute<?> attribute = getSelectedAttribute();
+ attribute.delete();
+ editor.onDirtied();
+ notifyModifyAttribuesListeners();
+ tableViewer.refresh();
+ }
+ });
+ }
+
+ private Attribute<?> getSelectedAttribute() {
+ TableItem[] items = tableViewer.getTable().getSelection();
+ if (items.length > 0) {
+ return (Attribute<?>) tableViewer.getTable().getSelection()[0].getData();
+ } else {
+ return null;
+ }
+ }
+
+ public class AttributeMenuListener implements MenuListener {
+ @Override
+ public void menuHidden(MenuEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void menuShown(MenuEvent e) {
+ Attribute<?> attribute = getSelectedAttribute();
+
+ if (attribute == null) {
+ deleteItem.setText("Delete - No Attribute Selected");
+ deleteItem.setEnabled(false);
+ } else if (!attribute.canDelete()) {
+ deleteItem.setText("Delete - Lower Limit Met");
+ deleteItem.setEnabled(false);
+ } else {
+ deleteItem.setText("Delete");
+ deleteItem.setEnabled(!artifact.isReadOnly());
+ }
+ }
+ }
+
+ public Artifact getArtifact() {
+ return artifact;
+ }
+
+ public void refreshArtifact(Artifact artifact) {
+ this.artifact = artifact;
+
+ if (tableViewer.getContentProvider() != null) {
+ tableViewer.setInput(artifact);
+ tableViewer.refresh();
+ }
+ }
+
+ public void addModifyAttributesListener(ModifyAttributesListener listener) {
+ if (!modifyAttrListeners.contains(listener)) {
+ modifyAttrListeners.add(listener);
+ }
+ }
+
+ public void removeModifyAttributesListener(ModifyAttributesListener listener) {
+ modifyAttrListeners.remove(listener);
+ }
+
+ public void notifyModifyAttribuesListeners() {
+ for (ModifyAttributesListener listener : modifyAttrListeners) {
+ listener.handleEvent();
+ }
+ }
+
+ private void setHelpContexts() {
+ SkynetGuiPlugin.getInstance().setHelp(tableViewer.getControl(), "artifact_editor",
+ "org.eclipse.osee.framework.help.ui");
+ }
+
+ /**
+ * @return the toolBar
+ */
+ public ToolBar getToolBar() {
+ return toolBar;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/ExpandAllAction.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/ExpandAllAction.java
index 50eaae0e0ff..912d558c8a7 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/ExpandAllAction.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/ExpandAllAction.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.framework.ui.skynet.action;
-
-import java.util.Iterator;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.viewers.AbstractTreeViewer;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.TreeViewer;
-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.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class ExpandAllAction extends Action {
-
- private final IExpandAllHandler iExpandAllHandler;
- private TreeViewer treeViewer = null;
- private boolean selectedOnly;
-
- public static interface IExpandAllHandler {
- public void expandAllActionHandler();
- }
-
- public ExpandAllAction(TreeViewer treeViewer) {
- this(treeViewer, false);
- setText("Expand All");
- }
-
- public ExpandAllAction(TreeViewer treeViewer, boolean selectedOnly) {
- this((IExpandAllHandler) null);
- this.treeViewer = treeViewer;
- this.selectedOnly = selectedOnly;
- setText("Expand All");
- }
-
- public ExpandAllAction(IExpandAllHandler iRefreshActionHandler) {
- this.iExpandAllHandler = iRefreshActionHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.EXPAND_ALL));
- setToolTipText("Expand All");
- this.selectedOnly = false;
- setText("Expand All");
- }
-
- private void expandAll(IStructuredSelection selection) {
- Iterator<?> iter = selection.iterator();
- while (iter.hasNext()) {
- treeViewer.expandToLevel(iter.next(), AbstractTreeViewer.ALL_LEVELS);
- }
- }
-
- @Override
- public void run() {
- try {
- if (treeViewer != null) {
- if (selectedOnly) {
- expandAll((IStructuredSelection) treeViewer.getSelection());
- } else {
- treeViewer.expandAll();
- }
- } else {
- iExpandAllHandler.expandAllActionHandler();
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.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.framework.ui.skynet.action;
+
+import java.util.Iterator;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.viewers.AbstractTreeViewer;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.TreeViewer;
+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.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ExpandAllAction extends Action {
+
+ private final IExpandAllHandler iExpandAllHandler;
+ private TreeViewer treeViewer = null;
+ private boolean selectedOnly;
+
+ public static interface IExpandAllHandler {
+ public void expandAllActionHandler();
+ }
+
+ public ExpandAllAction(TreeViewer treeViewer) {
+ this(treeViewer, false);
+ setText("Expand All");
+ }
+
+ public ExpandAllAction(TreeViewer treeViewer, boolean selectedOnly) {
+ this((IExpandAllHandler) null);
+ this.treeViewer = treeViewer;
+ this.selectedOnly = selectedOnly;
+ setText("Expand All");
+ }
+
+ public ExpandAllAction(IExpandAllHandler iRefreshActionHandler) {
+ this.iExpandAllHandler = iRefreshActionHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.EXPAND_ALL));
+ setToolTipText("Expand All");
+ this.selectedOnly = false;
+ setText("Expand All");
+ }
+
+ private void expandAll(IStructuredSelection selection) {
+ Iterator<?> iter = selection.iterator();
+ while (iter.hasNext()) {
+ treeViewer.expandToLevel(iter.next(), AbstractTreeViewer.ALL_LEVELS);
+ }
+ }
+
+ @Override
+ public void run() {
+ try {
+ if (treeViewer != null) {
+ if (selectedOnly) {
+ expandAll((IStructuredSelection) treeViewer.getSelection());
+ } else {
+ treeViewer.expandAll();
+ }
+ } else {
+ iExpandAllHandler.expandAllActionHandler();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/RefreshAction.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/RefreshAction.java
index a2d8d079d5f..bfc9ce84b84 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/RefreshAction.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/action/RefreshAction.java
@@ -1,45 +1,45 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.action;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-
-/**
- * @author Donald G. Dunne
- */
-public class RefreshAction extends Action {
-
- private final IRefreshActionHandler iRefreshActionHandler;
-
- public static interface IRefreshActionHandler {
- public void refreshActionHandler();
- }
-
- public RefreshAction(IRefreshActionHandler iRefreshActionHandler) {
- this.iRefreshActionHandler = iRefreshActionHandler;
- setImageDescriptor(ImageManager.getImageDescriptor(PluginUiImage.REFRESH));
- setToolTipText("Refresh");
- }
-
- @Override
- public void run() {
- try {
- iRefreshActionHandler.refreshActionHandler();
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.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.framework.ui.skynet.action;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class RefreshAction extends Action {
+
+ private final IRefreshActionHandler iRefreshActionHandler;
+
+ public static interface IRefreshActionHandler {
+ public void refreshActionHandler();
+ }
+
+ public RefreshAction(IRefreshActionHandler iRefreshActionHandler) {
+ this.iRefreshActionHandler = iRefreshActionHandler;
+ setImageDescriptor(ImageManager.getImageDescriptor(PluginUiImage.REFRESH));
+ setToolTipText("Refresh");
+ }
+
+ @Override
+ public void run() {
+ try {
+ iRefreshActionHandler.refreshActionHandler();
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactNameConflictHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactNameConflictHandler.java
index 95d18a14766..53323d47a43 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactNameConflictHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactNameConflictHandler.java
@@ -1,46 +1,46 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact;
-
-import org.eclipse.jface.dialogs.InputDialog;
-import org.eclipse.jface.window.Window;
-import org.eclipse.osee.framework.jdk.core.type.Pair;
-import org.eclipse.osee.framework.skynet.core.types.IArtifact;
-import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactNameConflictHandler {
-
- public String resolve(IArtifact source) {
- final Pair<String, String> beforeAfterNames = new Pair<String, String>("", "");
-
- String startingName = source.getName();
- beforeAfterNames.setFirst(startingName);
- beforeAfterNames.setSecond(startingName);
-
- Displays.pendInDisplayThread(new Runnable() {
- @Override
- public void run() {
- String startingName = beforeAfterNames.getFirst();
- InputDialog dialog =
- new InputDialog(Displays.getActiveShell(), "Name Artifact", "Enter artifact name", startingName,
- new NonBlankAndNotSameAsStartingValidator(startingName));
- int result = dialog.open();
- if (result == Window.OK) {
- beforeAfterNames.setSecond(dialog.getValue());
- }
- }
- });
- return beforeAfterNames.getSecond();
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact;
+
+import org.eclipse.jface.dialogs.InputDialog;
+import org.eclipse.jface.window.Window;
+import org.eclipse.osee.framework.jdk.core.type.Pair;
+import org.eclipse.osee.framework.skynet.core.types.IArtifact;
+import org.eclipse.osee.framework.ui.swt.Displays;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactNameConflictHandler {
+
+ public String resolve(IArtifact source) {
+ final Pair<String, String> beforeAfterNames = new Pair<String, String>("", "");
+
+ String startingName = source.getName();
+ beforeAfterNames.setFirst(startingName);
+ beforeAfterNames.setSecond(startingName);
+
+ Displays.pendInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ String startingName = beforeAfterNames.getFirst();
+ InputDialog dialog =
+ new InputDialog(Displays.getActiveShell(), "Name Artifact", "Enter artifact name", startingName,
+ new NonBlankAndNotSameAsStartingValidator(startingName));
+ int result = dialog.open();
+ if (result == Window.OK) {
+ beforeAfterNames.setSecond(dialog.getValue());
+ }
+ }
+ });
+ return beforeAfterNames.getSecond();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPasteOperation.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPasteOperation.java
index 596272dc9a1..2607630d23d 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPasteOperation.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPasteOperation.java
@@ -1,131 +1,131 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
-import org.eclipse.osee.framework.core.enums.IRelationEnumeration;
-import org.eclipse.osee.framework.core.enums.RelationOrderBaseTypes;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
-import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
-import org.eclipse.osee.framework.skynet.core.relation.order.IRelationSorter;
-import org.eclipse.osee.framework.skynet.core.relation.order.RelationOrderData;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.util.ArtifactPasteConfiguration;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactPasteOperation extends AbstractOperation {
-
- private final List<Artifact> itemsToCopy;
- private final Artifact destination;
- private final ArtifactPasteConfiguration config;
- private final ArtifactNameConflictHandler nameConflictHandler;
-
- public ArtifactPasteOperation(ArtifactPasteConfiguration config, Artifact destination, List<Artifact> itemsToCopy, ArtifactNameConflictHandler nameConflictHandler) {
- super("Paste Artifact(s)", SkynetGuiPlugin.PLUGIN_ID);
- this.itemsToCopy = itemsToCopy;
- this.destination = destination;
- this.config = config;
- this.nameConflictHandler = nameConflictHandler;
- }
-
- @Override
- protected void doWork(final IProgressMonitor monitor) throws Exception {
- if (destination == null) {
- throw new OseeArgumentException("Destination Artifact cannot be null.");
- }
- if (!itemsToCopy.isEmpty()) {
- double workAmount = 0.80;
- final Artifact itemToCopy = itemsToCopy.get(0);
- if (itemToCopy.hasParent() && destination.equals(itemToCopy.getParent())) {
-
- // Prevent Pasting multiples if pasting onto same parent
- if (itemToCopy instanceof User) {
- return;
- }
-
- Object object = nameConflictHandler.resolve(itemToCopy);
- String changedName = object != null ? object.toString() : null;
- if (!Strings.isValid(changedName) || itemToCopy.getName().equals(changedName)) {
- throw new OperationCanceledException();
- } else {
- Artifact newArtifact = pasteArtifact(monitor, workAmount, config, destination, itemToCopy);
- newArtifact.setName(changedName);
- }
- } else {
- workAmount = workAmount / itemsToCopy.size();
- for (Artifact item : itemsToCopy) {
- pasteArtifact(monitor, workAmount, config, destination, item);
- }
- }
- destination.persist();
- monitor.worked(calculateWork(0.20));
- } else {
- monitor.worked(calculateWork(1.0));
- }
- }
-
- private void pasteRelationOrder(ArtifactPasteConfiguration config, Artifact source, Artifact newArtifact, List<Artifact> copiedChildren) throws OseeCoreException {
- if (config.isKeepRelationOrderSettings()) {
- IRelationEnumeration relationTypeSide = CoreRelationTypes.Default_Hierarchical__Child;
- RelationOrderData data = RelationManager.createRelationOrderData(source);
- String order =
- data.getCurrentSorterGuid(RelationTypeManager.getType(relationTypeSide), relationTypeSide.getSide());
- IRelationSorter sorter = RelationManager.getSorterProvider().getRelationOrder(order);
- if (RelationOrderBaseTypes.USER_DEFINED == sorter.getSorterId()) {
- newArtifact.setRelationOrder(relationTypeSide, copiedChildren);
- } else {
- newArtifact.setRelationOrder(relationTypeSide, sorter.getSorterId());
- }
- }
- }
-
- private Artifact pasteArtifact(IProgressMonitor monitor, double workAmount, ArtifactPasteConfiguration config, Artifact destination, Artifact source) throws OseeCoreException {
- boolean workComplete = true;
- Artifact newArtifact = null;
- // We do not support duplicating user artifacts.
- if (!(source instanceof User)) {
- newArtifact = source.duplicate(destination.getBranch());
- destination.addChild(newArtifact);
- List<Artifact> copiedChildren = new ArrayList<Artifact>();
- if (config.isIncludeChildrenOfCopiedElements()) {
- Collection<Artifact> children = source.getChildren();
- if (!children.isEmpty()) {
- workComplete = false;
- double stepAmount = workAmount / children.size();
- for (Artifact sourceChild : children) {
- copiedChildren.add(pasteArtifact(monitor, stepAmount, config, newArtifact, sourceChild));
- }
- }
- }
-
- if (config.isKeepRelationOrderSettings()) {
- pasteRelationOrder(config, source, newArtifact, copiedChildren);
- }
- }
- if (workComplete) {
- monitor.worked(calculateWork(workAmount));
- }
- return newArtifact;
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.osee.framework.core.enums.CoreRelationTypes;
+import org.eclipse.osee.framework.core.enums.IRelationEnumeration;
+import org.eclipse.osee.framework.core.enums.RelationOrderBaseTypes;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.operation.AbstractOperation;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.skynet.core.User;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
+import org.eclipse.osee.framework.skynet.core.relation.RelationTypeManager;
+import org.eclipse.osee.framework.skynet.core.relation.order.IRelationSorter;
+import org.eclipse.osee.framework.skynet.core.relation.order.RelationOrderData;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.util.ArtifactPasteConfiguration;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactPasteOperation extends AbstractOperation {
+
+ private final List<Artifact> itemsToCopy;
+ private final Artifact destination;
+ private final ArtifactPasteConfiguration config;
+ private final ArtifactNameConflictHandler nameConflictHandler;
+
+ public ArtifactPasteOperation(ArtifactPasteConfiguration config, Artifact destination, List<Artifact> itemsToCopy, ArtifactNameConflictHandler nameConflictHandler) {
+ super("Paste Artifact(s)", SkynetGuiPlugin.PLUGIN_ID);
+ this.itemsToCopy = itemsToCopy;
+ this.destination = destination;
+ this.config = config;
+ this.nameConflictHandler = nameConflictHandler;
+ }
+
+ @Override
+ protected void doWork(final IProgressMonitor monitor) throws Exception {
+ if (destination == null) {
+ throw new OseeArgumentException("Destination Artifact cannot be null.");
+ }
+ if (!itemsToCopy.isEmpty()) {
+ double workAmount = 0.80;
+ final Artifact itemToCopy = itemsToCopy.get(0);
+ if (itemToCopy.hasParent() && destination.equals(itemToCopy.getParent())) {
+
+ // Prevent Pasting multiples if pasting onto same parent
+ if (itemToCopy instanceof User) {
+ return;
+ }
+
+ Object object = nameConflictHandler.resolve(itemToCopy);
+ String changedName = object != null ? object.toString() : null;
+ if (!Strings.isValid(changedName) || itemToCopy.getName().equals(changedName)) {
+ throw new OperationCanceledException();
+ } else {
+ Artifact newArtifact = pasteArtifact(monitor, workAmount, config, destination, itemToCopy);
+ newArtifact.setName(changedName);
+ }
+ } else {
+ workAmount = workAmount / itemsToCopy.size();
+ for (Artifact item : itemsToCopy) {
+ pasteArtifact(monitor, workAmount, config, destination, item);
+ }
+ }
+ destination.persist();
+ monitor.worked(calculateWork(0.20));
+ } else {
+ monitor.worked(calculateWork(1.0));
+ }
+ }
+
+ private void pasteRelationOrder(ArtifactPasteConfiguration config, Artifact source, Artifact newArtifact, List<Artifact> copiedChildren) throws OseeCoreException {
+ if (config.isKeepRelationOrderSettings()) {
+ IRelationEnumeration relationTypeSide = CoreRelationTypes.Default_Hierarchical__Child;
+ RelationOrderData data = RelationManager.createRelationOrderData(source);
+ String order =
+ data.getCurrentSorterGuid(RelationTypeManager.getType(relationTypeSide), relationTypeSide.getSide());
+ IRelationSorter sorter = RelationManager.getSorterProvider().getRelationOrder(order);
+ if (RelationOrderBaseTypes.USER_DEFINED == sorter.getSorterId()) {
+ newArtifact.setRelationOrder(relationTypeSide, copiedChildren);
+ } else {
+ newArtifact.setRelationOrder(relationTypeSide, sorter.getSorterId());
+ }
+ }
+ }
+
+ private Artifact pasteArtifact(IProgressMonitor monitor, double workAmount, ArtifactPasteConfiguration config, Artifact destination, Artifact source) throws OseeCoreException {
+ boolean workComplete = true;
+ Artifact newArtifact = null;
+ // We do not support duplicating user artifacts.
+ if (!(source instanceof User)) {
+ newArtifact = source.duplicate(destination.getBranch());
+ destination.addChild(newArtifact);
+ List<Artifact> copiedChildren = new ArrayList<Artifact>();
+ if (config.isIncludeChildrenOfCopiedElements()) {
+ Collection<Artifact> children = source.getChildren();
+ if (!children.isEmpty()) {
+ workComplete = false;
+ double stepAmount = workAmount / children.size();
+ for (Artifact sourceChild : children) {
+ copiedChildren.add(pasteArtifact(monitor, stepAmount, config, newArtifact, sourceChild));
+ }
+ }
+ }
+
+ if (config.isKeepRelationOrderSettings()) {
+ pasteRelationOrder(config, source, newArtifact, copiedChildren);
+ }
+ }
+ if (workComplete) {
+ monitor.worked(calculateWork(workAmount));
+ }
+ return newArtifact;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactSaveNotificationHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactSaveNotificationHandler.java
index 94dee1dd9a2..1647114854b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactSaveNotificationHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactSaveNotificationHandler.java
@@ -1,97 +1,97 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact;
-
-import java.util.Collection;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.jdk.core.type.HashCollection;
-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.skynet.core.artifact.ArtifactCache;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-import org.eclipse.osee.framework.ui.plugin.util.ArrayTreeContentProvider;
-import org.eclipse.osee.framework.ui.skynet.ArtifactDecoratorPreferences;
-import org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider;
-import org.eclipse.osee.framework.ui.skynet.ArtifactViewerSorter;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.util.filteredTree.SimpleCheckFilteredTreeDialog;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchListener;
-
-/**
- * This handler will find any artifacts in the artifact cache that were dirty and allow user to persist before shutdown.
- *
- * @author Donald G. Dunne
- */
-public class ArtifactSaveNotificationHandler implements IWorkbenchListener {
-
- public static boolean noPopUp = false;
-
- @Override
- public void postShutdown(IWorkbench arg0) {
- // do nothing
- }
-
- @Override
- public boolean preShutdown(IWorkbench arg0, boolean arg1) {
- if (noPopUp) {
- return true;
- }
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, "Verifying Artifact Persistence");
- try {
- Collection<Artifact> dirtyArts = ArtifactCache.getDirtyArtifacts();
- if (dirtyArts.isEmpty()) {
- return true;
- }
- ArtifactDecoratorPreferences preferences = new ArtifactDecoratorPreferences();
- preferences.setShowArtBranch(true);
- preferences.setShowArtType(true);
- SimpleCheckFilteredTreeDialog dialog =
- new SimpleCheckFilteredTreeDialog(
- "Unsaved Artifacts Detected",
- "Some artifacts have not been saved.\n\nSelect any artifact to save (if any) and select Ok or Cancel to stop shutdown.",
- new ArrayTreeContentProvider(), new ArtifactLabelProvider(preferences), new ArtifactViewerSorter(), 0,
- Integer.MAX_VALUE);
- dialog.setInput(dirtyArts);
- if (dialog.open() == 0) {
- if (dialog.getResult().length == 0) {
- return true;
- }
- HashCollection<Branch, Artifact> branchMap = Artifacts.getBranchArtifactMap(dirtyArts);
- for (Branch branch : branchMap.keySet()) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(
- "Persisting [%d] unsaved artifacts for branch [%s]", branchMap.getValues().size(), branch));
- Artifacts.persistInTransaction(branchMap.getValues(branch));
- }
- return true;
- } else {
- HashCollection<Branch, Artifact> branchMap = Artifacts.getBranchArtifactMap(dirtyArts);
- for (Branch branch : branchMap.keySet()) {
- MassArtifactEditor.editArtifacts(String.format("Unsaved Artifacts for Branch [%s]", branch),
- branchMap.getValues(branch));
- }
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
-
- return false;
- }
-
- public static void setNoPopUp(boolean noPopUp) {
- // mainly for testing purposes
- ArtifactSaveNotificationHandler.noPopUp = noPopUp;
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact;
+
+import java.util.Collection;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.jdk.core.type.HashCollection;
+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.skynet.core.artifact.ArtifactCache;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+import org.eclipse.osee.framework.ui.plugin.util.ArrayTreeContentProvider;
+import org.eclipse.osee.framework.ui.skynet.ArtifactDecoratorPreferences;
+import org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider;
+import org.eclipse.osee.framework.ui.skynet.ArtifactViewerSorter;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.util.filteredTree.SimpleCheckFilteredTreeDialog;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchListener;
+
+/**
+ * This handler will find any artifacts in the artifact cache that were dirty and allow user to persist before shutdown.
+ *
+ * @author Donald G. Dunne
+ */
+public class ArtifactSaveNotificationHandler implements IWorkbenchListener {
+
+ public static boolean noPopUp = false;
+
+ @Override
+ public void postShutdown(IWorkbench arg0) {
+ // do nothing
+ }
+
+ @Override
+ public boolean preShutdown(IWorkbench arg0, boolean arg1) {
+ if (noPopUp) {
+ return true;
+ }
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, "Verifying Artifact Persistence");
+ try {
+ Collection<Artifact> dirtyArts = ArtifactCache.getDirtyArtifacts();
+ if (dirtyArts.isEmpty()) {
+ return true;
+ }
+ ArtifactDecoratorPreferences preferences = new ArtifactDecoratorPreferences();
+ preferences.setShowArtBranch(true);
+ preferences.setShowArtType(true);
+ SimpleCheckFilteredTreeDialog dialog =
+ new SimpleCheckFilteredTreeDialog(
+ "Unsaved Artifacts Detected",
+ "Some artifacts have not been saved.\n\nSelect any artifact to save (if any) and select Ok or Cancel to stop shutdown.",
+ new ArrayTreeContentProvider(), new ArtifactLabelProvider(preferences), new ArtifactViewerSorter(), 0,
+ Integer.MAX_VALUE);
+ dialog.setInput(dirtyArts);
+ if (dialog.open() == 0) {
+ if (dialog.getResult().length == 0) {
+ return true;
+ }
+ HashCollection<Branch, Artifact> branchMap = Artifacts.getBranchArtifactMap(dirtyArts);
+ for (Branch branch : branchMap.keySet()) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(
+ "Persisting [%d] unsaved artifacts for branch [%s]", branchMap.getValues().size(), branch));
+ Artifacts.persistInTransaction(branchMap.getValues(branch));
+ }
+ return true;
+ } else {
+ HashCollection<Branch, Artifact> branchMap = Artifacts.getBranchArtifactMap(dirtyArts);
+ for (Branch branch : branchMap.keySet()) {
+ MassArtifactEditor.editArtifacts(String.format("Unsaved Artifacts for Branch [%s]", branch),
+ branchMap.getValues(branch));
+ }
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+
+ return false;
+ }
+
+ public static void setNoPopUp(boolean noPopUp) {
+ // mainly for testing purposes
+ ArtifactSaveNotificationHandler.noPopUp = noPopUp;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/NonBlankAndNotSameAsStartingValidator.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/NonBlankAndNotSameAsStartingValidator.java
index be18f2424c1..b9b07766eed 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/NonBlankAndNotSameAsStartingValidator.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/NonBlankAndNotSameAsStartingValidator.java
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact;
-
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class NonBlankAndNotSameAsStartingValidator implements IInputValidator {
- private final String startingName;
-
- public NonBlankAndNotSameAsStartingValidator(String startingName) {
- this.startingName = startingName;
- }
-
- @Override
- public String isValid(String newText) {
- String errorMessage = null;
- if (!Strings.isValid(newText)) {
- errorMessage = "The new name cannot be blank";
- } else if (Strings.isValid(startingName) && startingName.equals(newText)) {
- errorMessage = "The new name must be different";
- }
- return errorMessage;
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact;
+
+import org.eclipse.jface.dialogs.IInputValidator;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class NonBlankAndNotSameAsStartingValidator implements IInputValidator {
+ private final String startingName;
+
+ public NonBlankAndNotSameAsStartingValidator(String startingName) {
+ this.startingName = startingName;
+ }
+
+ @Override
+ public String isValid(String newText) {
+ String errorMessage = null;
+ if (!Strings.isValid(newText)) {
+ errorMessage = "The new name cannot be blank";
+ } else if (Strings.isValid(startingName) && startingName.equals(newText)) {
+ errorMessage = "The new name must be different";
+ }
+ return errorMessage;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactEditorLoopbackCmd.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactEditorLoopbackCmd.java
index 4802f00a84d..c7319dff9c4 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactEditorLoopbackCmd.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/OpenArtifactEditorLoopbackCmd.java
@@ -1,102 +1,102 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact;
-
-import java.net.HttpURLConnection;
-import java.util.Map;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.client.server.HttpResponse;
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-import org.eclipse.osee.framework.jdk.core.type.MutableBoolean;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.httpRequests.BaseArtifactLoopbackCmd;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditorInput;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.ui.IEditorPart;
-
-/**
- * @author Roberto E. Escobar
- */
-public class OpenArtifactEditorLoopbackCmd extends BaseArtifactLoopbackCmd {
-
- @Override
- public boolean isApplicable(String cmd) {
- return cmd != null && cmd.equalsIgnoreCase("open.artifact");
- }
-
- @Override
- public void process(final Artifact artifact, final Map<String, String> parameters, final HttpResponse httpResponse) {
- if (artifact != null) {
- try {
- boolean hasPermissionToRead = false;
- try {
- hasPermissionToRead = AccessControlManager.hasPermission(artifact, PermissionEnum.READ);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
-
- if (!hasPermissionToRead) {
- httpResponse.outputStandardError(HttpURLConnection.HTTP_UNAUTHORIZED,
- String.format("Access denied - User does not have read access to [%s]", artifact));
- } else {
- final MutableBoolean isDone = new MutableBoolean(false);
-
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- IEditorPart part =
- AWorkbench.getActivePage().openEditor(new ArtifactEditorInput(artifact),
- ArtifactEditor.EDITOR_ID, true);
- if (part != null) {
- String html =
- AHTML.simplePage(artifact.getName() + " has been opened in OSEE on branch " + artifact.getBranch() + "<br><br>" + "<form><input type=button onClick='window.opener=self;window.close()' value='Close'></form>");
- httpResponse.getPrintStream().println(html);
- } else {
- httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
- String.format("Unable to open: [%s]", artifact.getName()));
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
- String.format("Unable to open: [%s]", artifact.getName()), ex);
- } finally {
- isDone.setValue(true);
- }
- }
- });
-
- int count = 1;
- while (!isDone.getValue() && count < 30) {
- try {
- Thread.sleep(350);
- } catch (InterruptedException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- count++;
- }
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
- String.format("Unable to open: [%s]", artifact.getName()), ex);
- }
- } else {
- httpResponse.outputStandardError(HttpURLConnection.HTTP_BAD_REQUEST, "Unable to open null artifact");
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact;
+
+import java.net.HttpURLConnection;
+import java.util.Map;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.client.server.HttpResponse;
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+import org.eclipse.osee.framework.jdk.core.type.MutableBoolean;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.httpRequests.BaseArtifactLoopbackCmd;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditorInput;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.ui.IEditorPart;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class OpenArtifactEditorLoopbackCmd extends BaseArtifactLoopbackCmd {
+
+ @Override
+ public boolean isApplicable(String cmd) {
+ return cmd != null && cmd.equalsIgnoreCase("open.artifact");
+ }
+
+ @Override
+ public void process(final Artifact artifact, final Map<String, String> parameters, final HttpResponse httpResponse) {
+ if (artifact != null) {
+ try {
+ boolean hasPermissionToRead = false;
+ try {
+ hasPermissionToRead = AccessControlManager.hasPermission(artifact, PermissionEnum.READ);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+
+ if (!hasPermissionToRead) {
+ httpResponse.outputStandardError(HttpURLConnection.HTTP_UNAUTHORIZED,
+ String.format("Access denied - User does not have read access to [%s]", artifact));
+ } else {
+ final MutableBoolean isDone = new MutableBoolean(false);
+
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ IEditorPart part =
+ AWorkbench.getActivePage().openEditor(new ArtifactEditorInput(artifact),
+ ArtifactEditor.EDITOR_ID, true);
+ if (part != null) {
+ String html =
+ AHTML.simplePage(artifact.getName() + " has been opened in OSEE on branch " + artifact.getBranch() + "<br><br>" + "<form><input type=button onClick='window.opener=self;window.close()' value='Close'></form>");
+ httpResponse.getPrintStream().println(html);
+ } else {
+ httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
+ String.format("Unable to open: [%s]", artifact.getName()));
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
+ String.format("Unable to open: [%s]", artifact.getName()), ex);
+ } finally {
+ isDone.setValue(true);
+ }
+ }
+ });
+
+ int count = 1;
+ while (!isDone.getValue() && count < 30) {
+ try {
+ Thread.sleep(350);
+ } catch (InterruptedException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ count++;
+ }
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ httpResponse.outputStandardError(HttpURLConnection.HTTP_INTERNAL_ERROR,
+ String.format("Unable to open: [%s]", artifact.getName()), ex);
+ }
+ } else {
+ httpResponse.outputStandardError(HttpURLConnection.HTTP_BAD_REQUEST, "Unable to open null artifact");
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/AbstractEventArtifactEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/AbstractEventArtifactEditor.java
index 664d03a1967..a732e4e1a71 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/AbstractEventArtifactEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/AbstractEventArtifactEditor.java
@@ -1,210 +1,210 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor;
-
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
-import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
-import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
-import org.eclipse.osee.framework.skynet.core.event.IAccessControlEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IBranchEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
-import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
-import org.eclipse.osee.framework.skynet.core.event2.filter.IEventFilter;
-import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
-import org.eclipse.osee.framework.ui.skynet.ArtifactImageManager;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Jeff C. Phillips
- */
-public abstract class AbstractEventArtifactEditor extends AbstractArtifactEditor implements IArtifactEditorEventHandler {
-
- private final InternalEventHandler internalEventHandler;
-
- public AbstractEventArtifactEditor() {
- super();
- if (OseeEventManager.getPreferences().isOldEvents()) {
- internalEventHandler = new InternalEventHandler();
- OseeEventManager.addListener(internalEventHandler);
- } else {
- internalEventHandler = null;
- ArtifactEditorEventManager.add(this);
- }
- }
-
- @Override
- protected void addPages() {
- // do nothing
- }
-
- @Override
- public boolean isDirty() {
- boolean wasDirty = false;
- Artifact artifact = getArtifactFromEditorInput();
- if (artifact != null) {
- if (!artifact.isDeleted()) {
- wasDirty = super.isDirty() || artifact.isDirty();
- }
- }
- return wasDirty;
- }
-
- protected abstract void checkEnabledTooltems();
-
- @Override
- public abstract void refreshDirtyArtifact();
-
- @Override
- public abstract void closeEditor();
-
- @Override
- public abstract void refreshRelations();
-
- @Override
- public void setMainImage(Image titleImage) {
- super.setTitleImage(titleImage);
- }
-
- @Override
- public void dispose() {
- super.dispose();
- if (OseeEventManager.getPreferences().isOldEvents()) {
- OseeEventManager.removeListener(internalEventHandler);
- }
- }
-
- @Override
- public AbstractEventArtifactEditor getEditor() {
- return this;
- }
-
- /**
- * <REM2> this entire listener can be removed cause handled through ArtifactEditorEventManager
- *
- * @author Donald G. Dunne
- */
- private final class InternalEventHandler implements IArtifactsPurgedEventListener, IBranchEventListener, IAccessControlEventListener, IArtifactsChangeTypeEventListener, IFrameworkTransactionEventListener {
-
- @Override
- public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- Artifact localArtifact = getArtifactFromEditorInput();
- if (loadedArtifacts.getLoadedArtifacts().contains(localArtifact)) {
- closeEditor();
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- @Override
- public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- Artifact localArtifact = getArtifactFromEditorInput();
- if (!transData.isHasEvent(localArtifact)) {
- return;
- }
- if (transData.isDeleted(localArtifact)) {
- closeEditor();
- }
- if (transData.isRelAddedChangedDeleted(localArtifact)) {
- refreshRelations();
- }
- if (transData.isChanged(localArtifact)) {
- refreshDirtyArtifact();
- }
- onDirtied();
- }
- });
- }
-
- @Override
- public void handleArtifactsPurgedEvent(Sender sender, final LoadedArtifacts loadedArtifacts) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- if (loadedArtifacts.getLoadedArtifacts().contains(getArtifactFromEditorInput())) {
- closeEditor();
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- @Override
- public void handleBranchEventREM1(Sender sender, final BranchEventType branchModType, final int branchId) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (branchModType == BranchEventType.Committed) {
- if (getArtifactFromEditorInput().getBranch().getId() == branchId) {
- closeEditor();
- }
- }
- }
- });
- }
-
- @Override
- public void handleAccessControlArtifactsEvent(Sender sender, AccessControlEvent accessControlEvent) {
- try {
- if (accessControlEvent.getEventType() == AccessControlEventType.ArtifactsLocked || accessControlEvent.getEventType() == AccessControlEventType.ArtifactsUnlocked) {
- if (accessControlEvent.getArtifacts().contains(getArtifactFromEditorInput())) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- setTitleImage(ArtifactImageManager.getImage(getArtifactFromEditorInput()));
- }
- });
- }
- }
- } catch (Exception ex) {
- // do nothing
- }
- }
-
- @Override
- public void handleBranchEvent(Sender sender, final BranchEvent branchEvent) {
- // Handled by ArtifactEditorEventManager
- }
-
- @Override
- public List<? extends IEventFilter> getEventFilters() {
- Artifact artifact = getArtifactFromEditorInput();
- if (artifact != null) {
- return OseeEventManager.getEventFiltersForBranch(artifact.getBranch());
- }
- return null;
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor;
+
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.event.AccessControlEventType;
+import org.eclipse.osee.framework.skynet.core.event.BranchEventType;
+import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
+import org.eclipse.osee.framework.skynet.core.event.IAccessControlEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IBranchEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.event2.AccessControlEvent;
+import org.eclipse.osee.framework.skynet.core.event2.BranchEvent;
+import org.eclipse.osee.framework.skynet.core.event2.filter.IEventFilter;
+import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
+import org.eclipse.osee.framework.ui.skynet.ArtifactImageManager;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @author Jeff C. Phillips
+ */
+public abstract class AbstractEventArtifactEditor extends AbstractArtifactEditor implements IArtifactEditorEventHandler {
+
+ private final InternalEventHandler internalEventHandler;
+
+ public AbstractEventArtifactEditor() {
+ super();
+ if (OseeEventManager.getPreferences().isOldEvents()) {
+ internalEventHandler = new InternalEventHandler();
+ OseeEventManager.addListener(internalEventHandler);
+ } else {
+ internalEventHandler = null;
+ ArtifactEditorEventManager.add(this);
+ }
+ }
+
+ @Override
+ protected void addPages() {
+ // do nothing
+ }
+
+ @Override
+ public boolean isDirty() {
+ boolean wasDirty = false;
+ Artifact artifact = getArtifactFromEditorInput();
+ if (artifact != null) {
+ if (!artifact.isDeleted()) {
+ wasDirty = super.isDirty() || artifact.isDirty();
+ }
+ }
+ return wasDirty;
+ }
+
+ protected abstract void checkEnabledTooltems();
+
+ @Override
+ public abstract void refreshDirtyArtifact();
+
+ @Override
+ public abstract void closeEditor();
+
+ @Override
+ public abstract void refreshRelations();
+
+ @Override
+ public void setMainImage(Image titleImage) {
+ super.setTitleImage(titleImage);
+ }
+
+ @Override
+ public void dispose() {
+ super.dispose();
+ if (OseeEventManager.getPreferences().isOldEvents()) {
+ OseeEventManager.removeListener(internalEventHandler);
+ }
+ }
+
+ @Override
+ public AbstractEventArtifactEditor getEditor() {
+ return this;
+ }
+
+ /**
+ * <REM2> this entire listener can be removed cause handled through ArtifactEditorEventManager
+ *
+ * @author Donald G. Dunne
+ */
+ private final class InternalEventHandler implements IArtifactsPurgedEventListener, IBranchEventListener, IAccessControlEventListener, IArtifactsChangeTypeEventListener, IFrameworkTransactionEventListener {
+
+ @Override
+ public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ Artifact localArtifact = getArtifactFromEditorInput();
+ if (loadedArtifacts.getLoadedArtifacts().contains(localArtifact)) {
+ closeEditor();
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ Artifact localArtifact = getArtifactFromEditorInput();
+ if (!transData.isHasEvent(localArtifact)) {
+ return;
+ }
+ if (transData.isDeleted(localArtifact)) {
+ closeEditor();
+ }
+ if (transData.isRelAddedChangedDeleted(localArtifact)) {
+ refreshRelations();
+ }
+ if (transData.isChanged(localArtifact)) {
+ refreshDirtyArtifact();
+ }
+ onDirtied();
+ }
+ });
+ }
+
+ @Override
+ public void handleArtifactsPurgedEvent(Sender sender, final LoadedArtifacts loadedArtifacts) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ if (loadedArtifacts.getLoadedArtifacts().contains(getArtifactFromEditorInput())) {
+ closeEditor();
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleBranchEventREM1(Sender sender, final BranchEventType branchModType, final int branchId) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (branchModType == BranchEventType.Committed) {
+ if (getArtifactFromEditorInput().getBranch().getId() == branchId) {
+ closeEditor();
+ }
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleAccessControlArtifactsEvent(Sender sender, AccessControlEvent accessControlEvent) {
+ try {
+ if (accessControlEvent.getEventType() == AccessControlEventType.ArtifactsLocked || accessControlEvent.getEventType() == AccessControlEventType.ArtifactsUnlocked) {
+ if (accessControlEvent.getArtifacts().contains(getArtifactFromEditorInput())) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ setTitleImage(ArtifactImageManager.getImage(getArtifactFromEditorInput()));
+ }
+ });
+ }
+ }
+ } catch (Exception ex) {
+ // do nothing
+ }
+ }
+
+ @Override
+ public void handleBranchEvent(Sender sender, final BranchEvent branchEvent) {
+ // Handled by ArtifactEditorEventManager
+ }
+
+ @Override
+ public List<? extends IEventFilter> getEventFilters() {
+ Artifact artifact = getArtifactFromEditorInput();
+ if (artifact != null) {
+ return OseeEventManager.getEventFiltersForBranch(artifact.getBranch());
+ }
+ return null;
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
index 18ae10a4448..cc6fb073ce9 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditor.java
@@ -1,253 +1,253 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor;
-
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-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.plugin.core.IActionable;
-import org.eclipse.osee.framework.plugin.core.util.Jobs;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.OseeContributionItem;
-import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactEditorOutlinePage;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactFormPage;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.progress.UIJob;
-import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactEditor extends AbstractEventArtifactEditor {
- public static final String EDITOR_ID = "org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor";
-
- private IActionContributor actionBarContributor;
- private ArtifactFormPage formPage;
- private ArtifactEditorOutlinePage outlinePage;
-
- public ArtifactEditor() {
- super();
- }
-
- public IActionContributor getActionBarContributor() {
- if (actionBarContributor == null) {
- actionBarContributor = new ArtifactEditorActionBarContributor(this);
- }
- return actionBarContributor;
- }
-
- @Override
- public BaseArtifactEditorInput getEditorInput() {
- return (BaseArtifactEditorInput) super.getEditorInput();
- }
-
- @Override
- public void onDirtied() {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- firePropertyChange(PROP_DIRTY);
- }
- });
- }
-
- @Override
- public void showBusy(boolean busy) {
- super.showBusy(busy);
- ArtifactFormPage page = getFormPage();
- if (page != null) {
- page.showBusy(busy);
- }
- }
-
- @Override
- public void doSave(IProgressMonitor monitor) {
- try {
- getFormPage().doSave(monitor);
- Artifact artifact = getEditorInput().getArtifact();
- artifact.persist();
- firePropertyChange(PROP_DIRTY);
- } catch (OseeCoreException ex) {
- onDirtied();
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- @Override
- public void dispose() {
- try {
- // If the artifact is dirty when the editor gets disposed, then it needs to be reverted
- Artifact artifact = getEditorInput().getArtifact();
- if (!artifact.isDeleted() && artifact.isDirty()) {
- try {
- artifact.reloadAttributesAndRelations();
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- } finally {
- super.dispose();
- }
- }
-
- @Override
- protected void checkEnabledTooltems() {
- // if (!attributeComposite.isDisposed()) {
- // Displays.ensureInDisplayThread(new Runnable() {
- // @Override
- // public void run() {
- // boolean isEditAllowed = artifact.isReadOnly() != true;
- //
- // if (attributeComposite.getToolBar() == null || attributeComposite.getToolBar().isDisposed()) {
- // return;
- // }
- // attributeComposite.getToolBar().getItem(REVEAL_ARTIFACT_INDEX).setEnabled(true);
- // attributeComposite.getToolBar().getItem(EDIT_ARTIFACT_INDEX).setEnabled(isEditAllowed);
- // attributeComposite.getToolBar().update();
- //
- // relationsComposite.getToolBar().getItem(REVEAL_ARTIFACT_INDEX).setEnabled(true);
- // relationsComposite.getToolBar().getItem(EDIT_ARTIFACT_INDEX).setEnabled(isEditAllowed);
- // relationsComposite.getToolBar().update();
- // }
- // });
- // }
- }
-
- @Override
- public void closeEditor() {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- AWorkbench.getActivePage().closeEditor(ArtifactEditor.this, false);
- }
- });
- }
-
- @Override
- public void refreshDirtyArtifact() {
- Jobs.startJob(new RefreshDirtyArtifactJob());
- }
-
- @Override
- public void refreshRelations() {
- Jobs.startJob(new RefreshRelations());
- }
-
- @Override
- protected void addPages() {
- OseeContributionItem.addTo(this, true);
- setPartName(getEditorInput().getName());
- setTitleImage(getEditorInput().getImage());
-
- formPage = new ArtifactFormPage(this, "ArtifactFormPage", null);
- try {
- addPage(formPage);
- } catch (PartInitException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private ArtifactFormPage getFormPage() {
- return formPage;
- }
-
- @SuppressWarnings("rawtypes")
- @Override
- public Object getAdapter(Class adapter) {
- if (adapter == IActionable.class) {
- return new IActionable() {
- @Override
- public String getActionDescription() {
- return "";
- }
- };
- } else if (adapter == IContentOutlinePage.class) {
- ArtifactEditorOutlinePage page = getOutlinePage();
- page.setInput(this);
- return page;
- } else if (adapter == RelationsComposite.class) {
- return getFormPage().getRelationsComposite();
- }
- return super.getAdapter(adapter);
- }
-
- protected ArtifactEditorOutlinePage getOutlinePage() {
- if (outlinePage == null) {
- outlinePage = new ArtifactEditorOutlinePage();
- }
- return outlinePage;
- }
-
- private final class RefreshRelations extends UIJob {
- public RefreshRelations() {
- super("Refresh Relations");
- }
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- ArtifactFormPage page = getFormPage();
- if (page != null) {
- page.showBusy(true);
- RelationsComposite relationsComposite = page.getRelationsComposite();
- if (relationsComposite != null && !relationsComposite.isDisposed()) {
- relationsComposite.refresh();
- onDirtied();
- }
- page.showBusy(false);
- }
- return Status.OK_STATUS;
- }
- }
-
- private final class RefreshDirtyArtifactJob extends UIJob {
-
- public RefreshDirtyArtifactJob() {
- super("Refresh Dirty Artifact");
- }
-
- @Override
- public IStatus runInUIThread(IProgressMonitor monitor) {
- try {
- setPartName(getEditorInput().getName());
- setTitleImage(getEditorInput().getImage());
- ArtifactEditorOutlinePage outlinePage = getOutlinePage();
- if (outlinePage != null) {
- outlinePage.refresh();
- }
- ArtifactFormPage page = getFormPage();
- if (page != null && Widgets.isAccessible(page.getPartControl())) {
- page.refresh();
- }
- onDirtied();
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- return Status.OK_STATUS;
- }
- }
-
- @Override
- public boolean isDisposed() {
- return formPage == null || formPage.getPartControl() == null || formPage.getPartControl().isDisposed();
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor;
+
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+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.plugin.core.IActionable;
+import org.eclipse.osee.framework.plugin.core.util.Jobs;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.OseeContributionItem;
+import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactEditorOutlinePage;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactFormPage;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.progress.UIJob;
+import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactEditor extends AbstractEventArtifactEditor {
+ public static final String EDITOR_ID = "org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor";
+
+ private IActionContributor actionBarContributor;
+ private ArtifactFormPage formPage;
+ private ArtifactEditorOutlinePage outlinePage;
+
+ public ArtifactEditor() {
+ super();
+ }
+
+ public IActionContributor getActionBarContributor() {
+ if (actionBarContributor == null) {
+ actionBarContributor = new ArtifactEditorActionBarContributor(this);
+ }
+ return actionBarContributor;
+ }
+
+ @Override
+ public BaseArtifactEditorInput getEditorInput() {
+ return (BaseArtifactEditorInput) super.getEditorInput();
+ }
+
+ @Override
+ public void onDirtied() {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ firePropertyChange(PROP_DIRTY);
+ }
+ });
+ }
+
+ @Override
+ public void showBusy(boolean busy) {
+ super.showBusy(busy);
+ ArtifactFormPage page = getFormPage();
+ if (page != null) {
+ page.showBusy(busy);
+ }
+ }
+
+ @Override
+ public void doSave(IProgressMonitor monitor) {
+ try {
+ getFormPage().doSave(monitor);
+ Artifact artifact = getEditorInput().getArtifact();
+ artifact.persist();
+ firePropertyChange(PROP_DIRTY);
+ } catch (OseeCoreException ex) {
+ onDirtied();
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ @Override
+ public void dispose() {
+ try {
+ // If the artifact is dirty when the editor gets disposed, then it needs to be reverted
+ Artifact artifact = getEditorInput().getArtifact();
+ if (!artifact.isDeleted() && artifact.isDirty()) {
+ try {
+ artifact.reloadAttributesAndRelations();
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ } finally {
+ super.dispose();
+ }
+ }
+
+ @Override
+ protected void checkEnabledTooltems() {
+ // if (!attributeComposite.isDisposed()) {
+ // Displays.ensureInDisplayThread(new Runnable() {
+ // @Override
+ // public void run() {
+ // boolean isEditAllowed = artifact.isReadOnly() != true;
+ //
+ // if (attributeComposite.getToolBar() == null || attributeComposite.getToolBar().isDisposed()) {
+ // return;
+ // }
+ // attributeComposite.getToolBar().getItem(REVEAL_ARTIFACT_INDEX).setEnabled(true);
+ // attributeComposite.getToolBar().getItem(EDIT_ARTIFACT_INDEX).setEnabled(isEditAllowed);
+ // attributeComposite.getToolBar().update();
+ //
+ // relationsComposite.getToolBar().getItem(REVEAL_ARTIFACT_INDEX).setEnabled(true);
+ // relationsComposite.getToolBar().getItem(EDIT_ARTIFACT_INDEX).setEnabled(isEditAllowed);
+ // relationsComposite.getToolBar().update();
+ // }
+ // });
+ // }
+ }
+
+ @Override
+ public void closeEditor() {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ AWorkbench.getActivePage().closeEditor(ArtifactEditor.this, false);
+ }
+ });
+ }
+
+ @Override
+ public void refreshDirtyArtifact() {
+ Jobs.startJob(new RefreshDirtyArtifactJob());
+ }
+
+ @Override
+ public void refreshRelations() {
+ Jobs.startJob(new RefreshRelations());
+ }
+
+ @Override
+ protected void addPages() {
+ OseeContributionItem.addTo(this, true);
+ setPartName(getEditorInput().getName());
+ setTitleImage(getEditorInput().getImage());
+
+ formPage = new ArtifactFormPage(this, "ArtifactFormPage", null);
+ try {
+ addPage(formPage);
+ } catch (PartInitException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private ArtifactFormPage getFormPage() {
+ return formPage;
+ }
+
+ @SuppressWarnings("rawtypes")
+ @Override
+ public Object getAdapter(Class adapter) {
+ if (adapter == IActionable.class) {
+ return new IActionable() {
+ @Override
+ public String getActionDescription() {
+ return "";
+ }
+ };
+ } else if (adapter == IContentOutlinePage.class) {
+ ArtifactEditorOutlinePage page = getOutlinePage();
+ page.setInput(this);
+ return page;
+ } else if (adapter == RelationsComposite.class) {
+ return getFormPage().getRelationsComposite();
+ }
+ return super.getAdapter(adapter);
+ }
+
+ protected ArtifactEditorOutlinePage getOutlinePage() {
+ if (outlinePage == null) {
+ outlinePage = new ArtifactEditorOutlinePage();
+ }
+ return outlinePage;
+ }
+
+ private final class RefreshRelations extends UIJob {
+ public RefreshRelations() {
+ super("Refresh Relations");
+ }
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ ArtifactFormPage page = getFormPage();
+ if (page != null) {
+ page.showBusy(true);
+ RelationsComposite relationsComposite = page.getRelationsComposite();
+ if (relationsComposite != null && !relationsComposite.isDisposed()) {
+ relationsComposite.refresh();
+ onDirtied();
+ }
+ page.showBusy(false);
+ }
+ return Status.OK_STATUS;
+ }
+ }
+
+ private final class RefreshDirtyArtifactJob extends UIJob {
+
+ public RefreshDirtyArtifactJob() {
+ super("Refresh Dirty Artifact");
+ }
+
+ @Override
+ public IStatus runInUIThread(IProgressMonitor monitor) {
+ try {
+ setPartName(getEditorInput().getName());
+ setTitleImage(getEditorInput().getImage());
+ ArtifactEditorOutlinePage outlinePage = getOutlinePage();
+ if (outlinePage != null) {
+ outlinePage.refresh();
+ }
+ ArtifactFormPage page = getFormPage();
+ if (page != null && Widgets.isAccessible(page.getPartControl())) {
+ page.refresh();
+ }
+ onDirtied();
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ return Status.OK_STATUS;
+ }
+ }
+
+ @Override
+ public boolean isDisposed() {
+ return formPage == null || formPage.getPartControl() == null || formPage.getPartControl().isDisposed();
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorActionBarContributor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorActionBarContributor.java
index d80498d57d2..4b1f100d684 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorActionBarContributor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorActionBarContributor.java
@@ -1,277 +1,277 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor;
-
-import java.net.URL;
-import java.util.logging.Level;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.window.Window;
-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.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactURL;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.ArtifactExplorer;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.OpenWithContributionItem;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.access.PolicyDialog;
-import org.eclipse.osee.framework.ui.skynet.widgets.xBranch.BranchView;
-import org.eclipse.osee.framework.ui.skynet.widgets.xHistory.HistoryView;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.swt.dnd.Clipboard;
-import org.eclipse.swt.dnd.TextTransfer;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ArtifactEditorActionBarContributor implements IActionContributor {
-
- private final AbstractArtifactEditor editor;
-
- public ArtifactEditorActionBarContributor(AbstractArtifactEditor editor) {
- this.editor = editor;
- }
-
- @Override
- public void contributeToToolBar(IToolBarManager manager) {
- manager.add(createAtsBugAction());
- manager.add(new Separator());
- addOpenWithContributionItem(manager);
- manager.add(new DeleteArtifactAction());
- manager.add(new Separator());
- manager.add(new OpenOutlineAction());
- manager.add(new OpenHistoryAction());
- manager.add(new RevealInExplorerAction());
- manager.add(new RevealBranchAction());
- manager.add(new Separator());
- manager.add(new AccessControlAction());
- manager.add(new Separator());
- manager.add(new CopyArtifactURLAction());
- manager.add(new Separator());
- manager.add(new DirtyReportAction(editor.getArtifactFromEditorInput()));
- }
-
- private Artifact getSelectedArtifact() {
- Artifact toReturn = null;
-
- ISelectionProvider provider = editor.getSite().getSelectionProvider();
- ISelection selection = provider.getSelection();
- if (!selection.isEmpty()) {
- IStructuredSelection structuredSelection = (IStructuredSelection) selection;
- Object selectedObject = structuredSelection.getFirstElement();
- if (selectedObject instanceof Artifact) {
- toReturn = (Artifact) selectedObject;
- }
- }
- return toReturn;
- }
-
- private void addOpenWithContributionItem(IToolBarManager manager) {
- OpenWithContributionItem contributionItem = new OpenWithContributionItem();
- contributionItem.setVisible(true);
- manager.add(contributionItem);
- }
-
- private final Action createAtsBugAction() {
- IEditorSite site = editor.getEditorSite();
- return OseeUiActions.createBugAction(SkynetGuiPlugin.getInstance(), editor, site.getId(),
- site.getRegisteredName());
- }
-
- private final class RevealBranchAction extends Action {
- public RevealBranchAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.BRANCH));
- setToolTipText("Reveal the branch this artifact is on in the Branch Manager");
- }
-
- @Override
- public void run() {
- try {
- BranchView.revealBranch(getSelectedArtifact().getBranch());
- } catch (Exception ex) {
- OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- }
-
- private final class DeleteArtifactAction extends Action {
-
- public DeleteArtifactAction() {
- super("&Delete Artifact\tDelete", IAction.AS_PUSH_BUTTON);
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DELETE));
- }
-
- @Override
- public void run() {
- try {
- MessageDialog dialog =
- new MessageDialog(Displays.getActiveShell(), "Confirm Artifact Deletion", null,
- " Are you sure you want to delete this artifact and all of the default hierarchy children?",
- MessageDialog.QUESTION, new String[] {IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL}, 1);
- if (dialog.open() == Window.OK) {
- getSelectedArtifact().deleteAndPersist();
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
- private final class OpenHistoryAction extends Action {
-
- public OpenHistoryAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DB_ICON_BLUE));
- setToolTipText("Show this artifact in the Resource History");
- }
-
- @Override
- public void run() {
- try {
- HistoryView.open(getSelectedArtifact());
- } catch (Exception ex) {
- OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
- private final class RevealInExplorerAction extends Action {
- public RevealInExplorerAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.MAGNIFY));
- setToolTipText("Reveal this artifact in the Artifact Explorer");
- }
-
- @Override
- public void run() {
- try {
- ArtifactExplorer.revealArtifact(getSelectedArtifact());
- } catch (Exception ex) {
- OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
- private final class AccessControlAction extends Action {
- public AccessControlAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.AUTHENTICATED));
- setToolTipText("&Access Control");
- setText("&Access Control");
- }
-
- @Override
- public void run() {
- try {
- PolicyDialog pd = new PolicyDialog(Displays.getActiveShell(), getSelectedArtifact());
- pd.open();
- } catch (Exception ex) {
- OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }
-
- public static final class DirtyReportAction extends Action {
- private final Artifact artifact;
-
- public DirtyReportAction(Artifact artifact) {
- super();
- this.artifact = artifact;
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DIRTY));
- setToolTipText("&Dirty Report");
- setText("&Dirty Report");
- }
-
- @Override
- public void run() {
- String rString = null;
- for (Attribute<?> attribute : artifact.internalGetAttributes()) {
- if (attribute.isDirty()) {
- rString = "Attribute: " + attribute.getNameValueDescription();
- break;
- }
- }
-
- if (rString == null) {
- rString = RelationManager.reportHasDirtyLinks(artifact);
- }
- AWorkbench.popup("Dirty Report", !Strings.isValid(rString) ? "Not Dirty" : "Dirty -> " + rString);
- }
- }
-
- private final class CopyArtifactURLAction extends Action {
- public CopyArtifactURLAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.COPYTOCLIPBOARD));
- setToolTipText("Copy artifact url link to clipboard. NOTE: This is a link pointing to the latest version of the artifact.");
- }
-
- @Override
- public void run() {
- if (getSelectedArtifact() != null) {
- Clipboard clipboard = null;
- try {
- URL url = ArtifactURL.getExternalArtifactLink(getSelectedArtifact());
- clipboard = new Clipboard(null);
- clipboard.setContents(new Object[] {url.toString()}, new Transfer[] {TextTransfer.getInstance()});
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, String.format(
- "Error obtaining url for - guid: [%s] branch:[%s]", getSelectedArtifact().getGuid(),
- getSelectedArtifact().getBranch()), ex);
- } finally {
- if (clipboard != null && !clipboard.isDisposed()) {
- clipboard.dispose();
- clipboard = null;
- }
- }
- }
- }
- }
-
- private final class OpenOutlineAction extends Action {
- public OpenOutlineAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.OUTLINE));
- setToolTipText("Open Outline");
- }
-
- @Override
- public void run() {
- try {
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
- "org.eclipse.ui.views.ContentOutline");
- } catch (PartInitException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, "Unable to open outline", 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.framework.ui.skynet.artifact.editor;
+
+import java.net.URL;
+import java.util.logging.Level;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.window.Window;
+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.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactURL;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+import org.eclipse.osee.framework.skynet.core.relation.RelationManager;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.ArtifactExplorer;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.OpenWithContributionItem;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.access.PolicyDialog;
+import org.eclipse.osee.framework.ui.skynet.widgets.xBranch.BranchView;
+import org.eclipse.osee.framework.ui.skynet.widgets.xHistory.HistoryView;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.swt.dnd.Clipboard;
+import org.eclipse.swt.dnd.TextTransfer;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ArtifactEditorActionBarContributor implements IActionContributor {
+
+ private final AbstractArtifactEditor editor;
+
+ public ArtifactEditorActionBarContributor(AbstractArtifactEditor editor) {
+ this.editor = editor;
+ }
+
+ @Override
+ public void contributeToToolBar(IToolBarManager manager) {
+ manager.add(createAtsBugAction());
+ manager.add(new Separator());
+ addOpenWithContributionItem(manager);
+ manager.add(new DeleteArtifactAction());
+ manager.add(new Separator());
+ manager.add(new OpenOutlineAction());
+ manager.add(new OpenHistoryAction());
+ manager.add(new RevealInExplorerAction());
+ manager.add(new RevealBranchAction());
+ manager.add(new Separator());
+ manager.add(new AccessControlAction());
+ manager.add(new Separator());
+ manager.add(new CopyArtifactURLAction());
+ manager.add(new Separator());
+ manager.add(new DirtyReportAction(editor.getArtifactFromEditorInput()));
+ }
+
+ private Artifact getSelectedArtifact() {
+ Artifact toReturn = null;
+
+ ISelectionProvider provider = editor.getSite().getSelectionProvider();
+ ISelection selection = provider.getSelection();
+ if (!selection.isEmpty()) {
+ IStructuredSelection structuredSelection = (IStructuredSelection) selection;
+ Object selectedObject = structuredSelection.getFirstElement();
+ if (selectedObject instanceof Artifact) {
+ toReturn = (Artifact) selectedObject;
+ }
+ }
+ return toReturn;
+ }
+
+ private void addOpenWithContributionItem(IToolBarManager manager) {
+ OpenWithContributionItem contributionItem = new OpenWithContributionItem();
+ contributionItem.setVisible(true);
+ manager.add(contributionItem);
+ }
+
+ private final Action createAtsBugAction() {
+ IEditorSite site = editor.getEditorSite();
+ return OseeUiActions.createBugAction(SkynetGuiPlugin.getInstance(), editor, site.getId(),
+ site.getRegisteredName());
+ }
+
+ private final class RevealBranchAction extends Action {
+ public RevealBranchAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.BRANCH));
+ setToolTipText("Reveal the branch this artifact is on in the Branch Manager");
+ }
+
+ @Override
+ public void run() {
+ try {
+ BranchView.revealBranch(getSelectedArtifact().getBranch());
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ }
+
+ private final class DeleteArtifactAction extends Action {
+
+ public DeleteArtifactAction() {
+ super("&Delete Artifact\tDelete", IAction.AS_PUSH_BUTTON);
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DELETE));
+ }
+
+ @Override
+ public void run() {
+ try {
+ MessageDialog dialog =
+ new MessageDialog(Displays.getActiveShell(), "Confirm Artifact Deletion", null,
+ " Are you sure you want to delete this artifact and all of the default hierarchy children?",
+ MessageDialog.QUESTION, new String[] {IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL}, 1);
+ if (dialog.open() == Window.OK) {
+ getSelectedArtifact().deleteAndPersist();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+ private final class OpenHistoryAction extends Action {
+
+ public OpenHistoryAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DB_ICON_BLUE));
+ setToolTipText("Show this artifact in the Resource History");
+ }
+
+ @Override
+ public void run() {
+ try {
+ HistoryView.open(getSelectedArtifact());
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+ private final class RevealInExplorerAction extends Action {
+ public RevealInExplorerAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.MAGNIFY));
+ setToolTipText("Reveal this artifact in the Artifact Explorer");
+ }
+
+ @Override
+ public void run() {
+ try {
+ ArtifactExplorer.revealArtifact(getSelectedArtifact());
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+ private final class AccessControlAction extends Action {
+ public AccessControlAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.AUTHENTICATED));
+ setToolTipText("&Access Control");
+ setText("&Access Control");
+ }
+
+ @Override
+ public void run() {
+ try {
+ PolicyDialog pd = new PolicyDialog(Displays.getActiveShell(), getSelectedArtifact());
+ pd.open();
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+
+ public static final class DirtyReportAction extends Action {
+ private final Artifact artifact;
+
+ public DirtyReportAction(Artifact artifact) {
+ super();
+ this.artifact = artifact;
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.DIRTY));
+ setToolTipText("&Dirty Report");
+ setText("&Dirty Report");
+ }
+
+ @Override
+ public void run() {
+ String rString = null;
+ for (Attribute<?> attribute : artifact.internalGetAttributes()) {
+ if (attribute.isDirty()) {
+ rString = "Attribute: " + attribute.getNameValueDescription();
+ break;
+ }
+ }
+
+ if (rString == null) {
+ rString = RelationManager.reportHasDirtyLinks(artifact);
+ }
+ AWorkbench.popup("Dirty Report", !Strings.isValid(rString) ? "Not Dirty" : "Dirty -> " + rString);
+ }
+ }
+
+ private final class CopyArtifactURLAction extends Action {
+ public CopyArtifactURLAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.COPYTOCLIPBOARD));
+ setToolTipText("Copy artifact url link to clipboard. NOTE: This is a link pointing to the latest version of the artifact.");
+ }
+
+ @Override
+ public void run() {
+ if (getSelectedArtifact() != null) {
+ Clipboard clipboard = null;
+ try {
+ URL url = ArtifactURL.getExternalArtifactLink(getSelectedArtifact());
+ clipboard = new Clipboard(null);
+ clipboard.setContents(new Object[] {url.toString()}, new Transfer[] {TextTransfer.getInstance()});
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, String.format(
+ "Error obtaining url for - guid: [%s] branch:[%s]", getSelectedArtifact().getGuid(),
+ getSelectedArtifact().getBranch()), ex);
+ } finally {
+ if (clipboard != null && !clipboard.isDisposed()) {
+ clipboard.dispose();
+ clipboard = null;
+ }
+ }
+ }
+ }
+ }
+
+ private final class OpenOutlineAction extends Action {
+ public OpenOutlineAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.OUTLINE));
+ setToolTipText("Open Outline");
+ }
+
+ @Override
+ public void run() {
+ try {
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
+ "org.eclipse.ui.views.ContentOutline");
+ } catch (PartInitException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, "Unable to open outline", ex);
+ }
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/BaseArtifactEditorInput.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/BaseArtifactEditorInput.java
index 8aad6090e5b..5b187a71426 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/BaseArtifactEditorInput.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/BaseArtifactEditorInput.java
@@ -1,94 +1,94 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.ArtifactImageManager;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IPersistableElement;
-
-/**
- * @author Roberto E. Escobar
- */
-public abstract class BaseArtifactEditorInput implements IEditorInput {
- private final Artifact artifact;
-
- public BaseArtifactEditorInput(Artifact artifact) {
- this.artifact = artifact;
- }
-
- @Override
- public boolean equals(Object obj) {
- boolean equals = false;
- if (obj instanceof BaseArtifactEditorInput) {
- BaseArtifactEditorInput otherEdInput = (BaseArtifactEditorInput) obj;
- equals = artifact == otherEdInput.artifact;
- }
- return equals;
- }
-
- @Override
- public boolean exists() {
- return true;
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ArtifactImageManager.getImageDescriptor(artifact);
- }
-
- public Image getImage() {
- return ArtifactImageManager.getImage(artifact);
- }
-
- @Override
- public String getName() {
- if (artifact == null) {
- return "No Artifact Input Provided";
- }
- return String.format("%s%s", artifact.getVersionedName(), artifact.isReadOnly() ? " (Read-Only)" : "");
- }
-
- @Override
- public IPersistableElement getPersistable() {
- return null;
- }
-
- @Override
- public String getToolTipText() {
- return getName();
- }
-
- @SuppressWarnings("rawtypes")
- @Override
- public Object getAdapter(Class adapter) {
- if (Artifact.class.equals(adapter)) {
- return getArtifact();
- }
- return null;
- }
-
- public Artifact getArtifact() {
- return artifact;
- }
-
- public boolean isReadOnly() {
- return artifact == null || artifact.isReadOnly();
- }
-
- @Override
- public int hashCode() {
- return this.artifact.hashCode();
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.ArtifactImageManager;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IPersistableElement;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public abstract class BaseArtifactEditorInput implements IEditorInput {
+ private final Artifact artifact;
+
+ public BaseArtifactEditorInput(Artifact artifact) {
+ this.artifact = artifact;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ boolean equals = false;
+ if (obj instanceof BaseArtifactEditorInput) {
+ BaseArtifactEditorInput otherEdInput = (BaseArtifactEditorInput) obj;
+ equals = artifact == otherEdInput.artifact;
+ }
+ return equals;
+ }
+
+ @Override
+ public boolean exists() {
+ return true;
+ }
+
+ @Override
+ public ImageDescriptor getImageDescriptor() {
+ return ArtifactImageManager.getImageDescriptor(artifact);
+ }
+
+ public Image getImage() {
+ return ArtifactImageManager.getImage(artifact);
+ }
+
+ @Override
+ public String getName() {
+ if (artifact == null) {
+ return "No Artifact Input Provided";
+ }
+ return String.format("%s%s", artifact.getVersionedName(), artifact.isReadOnly() ? " (Read-Only)" : "");
+ }
+
+ @Override
+ public IPersistableElement getPersistable() {
+ return null;
+ }
+
+ @Override
+ public String getToolTipText() {
+ return getName();
+ }
+
+ @SuppressWarnings("rawtypes")
+ @Override
+ public Object getAdapter(Class adapter) {
+ if (Artifact.class.equals(adapter)) {
+ return getArtifact();
+ }
+ return null;
+ }
+
+ public Artifact getArtifact() {
+ return artifact;
+ }
+
+ public boolean isReadOnly() {
+ return artifact == null || artifact.isReadOnly();
+ }
+
+ @Override
+ public int hashCode() {
+ return this.artifact.hashCode();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IActionContributor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IActionContributor.java
index 22ba53958c1..78840d94755 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IActionContributor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IActionContributor.java
@@ -1,21 +1,21 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor;
-
-import org.eclipse.jface.action.IToolBarManager;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface IActionContributor {
-
- public void contributeToToolBar(IToolBarManager manager);
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor;
+
+import org.eclipse.jface.action.IToolBarManager;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface IActionContributor {
+
+ public void contributeToToolBar(IToolBarManager manager);
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IArtifactEditorEventHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IArtifactEditorEventHandler.java
index 60b14651377..799d5678e08 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IArtifactEditorEventHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/IArtifactEditorEventHandler.java
@@ -8,28 +8,28 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.artifact.editor;
-
+package org.eclipse.osee.framework.ui.skynet.artifact.editor;
+
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.swt.graphics.Image;
-
-/**
- * @author Donald G. Dunne
- */
-public interface IArtifactEditorEventHandler {
-
- public AbstractEventArtifactEditor getEditor();
-
- public boolean isDisposed();
-
- public void refreshDirtyArtifact();
-
- public void closeEditor();
-
- public void refreshRelations();
-
- public Artifact getArtifactFromEditorInput();
-
- public void setMainImage(Image titleImage);
-
-}
+
+/**
+ * @author Donald G. Dunne
+ */
+public interface IArtifactEditorEventHandler {
+
+ public AbstractEventArtifactEditor getEditor();
+
+ public boolean isDisposed();
+
+ public void refreshDirtyArtifact();
+
+ public void closeEditor();
+
+ public void refreshRelations();
+
+ public Artifact getArtifactFromEditorInput();
+
+ public void setMainImage(Image titleImage);
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/pages/ArtifactFormPage.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/pages/ArtifactFormPage.java
index 22ac10717ac..b423444a118 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/pages/ArtifactFormPage.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/pages/ArtifactFormPage.java
@@ -1,253 +1,253 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.pages;
-
-import java.util.LinkedHashMap;
-import java.util.Map;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.jdk.core.util.ReservedCharacters;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.parts.MessageSummaryNote;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.AttributesFormSection;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.DetailsFormSection;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.RelationsFormSection;
-import org.eclipse.osee.framework.ui.skynet.util.FormsUtil;
-import org.eclipse.osee.framework.ui.swt.ALayout;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.IMessage;
-import org.eclipse.ui.forms.SectionPart;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.editor.FormPage;
-import org.eclipse.ui.forms.events.HyperlinkAdapter;
-import org.eclipse.ui.forms.events.HyperlinkEvent;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.FormText;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.eclipse.ui.forms.widgets.Section;
-
-public class ArtifactFormPage extends FormPage {
-
- private enum SectionEnum {
- Attributes,
- Relations,
- Details;
- }
-
- private final Map<SectionEnum, SectionPart> sectionParts;
- private FormText infoText;
-
- public ArtifactFormPage(FormEditor editor, String id, String title) {
- super(editor, id, title);
- this.sectionParts = new LinkedHashMap<SectionEnum, SectionPart>();
- }
-
- @Override
- protected void createFormContent(IManagedForm managedForm) {
- super.createFormContent(managedForm);
- sectionParts.clear();
-
- final ScrolledForm form = managedForm.getForm();
- final FormToolkit toolkit = managedForm.getToolkit();
-
- GridLayout layout = new GridLayout();
- layout.numColumns = 1;
- layout.marginHeight = 10;
- layout.marginWidth = 6;
- layout.horizontalSpacing = 20;
- form.getBody().setLayout(layout);
- form.getBody().setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
-
- updateTitle(form);
- updateImage(form);
- updateArtifactInfoArea(toolkit, form, true);
- addToolBar(toolkit, form, true);
- FormsUtil.addHeadingGradient(toolkit, form, true);
- addMessageDecoration(form);
-
- int sectionStyle = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE;
-
- sectionParts.put(SectionEnum.Attributes, new AttributesFormSection(getEditor(), form.getBody(), toolkit,
- sectionStyle | ExpandableComposite.EXPANDED));
- sectionParts.put(SectionEnum.Relations, new RelationsFormSection(getEditor(), form.getBody(), toolkit,
- sectionStyle));
- sectionParts.put(SectionEnum.Details, new DetailsFormSection(getEditor(), form.getBody(), toolkit, sectionStyle));
-
- for (SectionPart part : sectionParts.values()) {
- managedForm.addPart(part);
- Section section = part.getSection();
- section.marginWidth = 0;
- section.marginHeight = 2;
- }
- form.layout();
- }
-
- @Override
- public ArtifactEditor getEditor() {
- return (ArtifactEditor) super.getEditor();
- }
-
- private void addMessageDecoration(ScrolledForm form) {
- form.getForm().addMessageHyperlinkListener(new HyperlinkAdapter() {
-
- @Override
- public void linkActivated(HyperlinkEvent e) {
- String title = e.getLabel();
- Object href = e.getHref();
- if (href instanceof IMessage[]) {
- Point noteLocation = ((Control) e.widget).toDisplay(0, 0);
- noteLocation.x += 10;
- noteLocation.y += 10;
-
- MessageSummaryNote note = new MessageSummaryNote(getManagedForm(), title, (IMessage[]) href);
- note.setLocation(noteLocation);
- note.open();
- }
- }
-
- });
- }
-
- private void addToolBar(FormToolkit toolkit, ScrolledForm form, boolean add) {
- IToolBarManager manager = form.getToolBarManager();
- if (add) {
- manager.add(new RefreshAction());
- manager.add(new Separator());
- getEditor().getActionBarContributor().contributeToToolBar(manager);
- manager.update(true);
- } else {
- manager.removeAll();
- }
- form.reflow(true);
- }
-
- private void updateTitle(ScrolledForm form) {
- form.setText(getEditorInput().getName());
- }
-
- private void updateImage(ScrolledForm form) {
- form.setImage(getEditor().getEditorInput().getImage());
- }
-
- private String getArtifactShortInfo() {
- String description;
- try {
- Artifact artifact = getEditor().getEditorInput().getArtifact();
- description =
- String.format("<form><p>%s<b>Branch:</b> %s <b>Type:</b> %s <b>GUID:</b> %s</p></form>",
- !artifact.isDeleted() ? "" : "<b>ARTIFACT DELETED - </b> ",
- ReservedCharacters.encodeXmlEntities(artifact.getBranch().getShortName()),
- artifact.getArtifactTypeName(), artifact.getGuid());
- } catch (Exception ex) {
- description = Lib.exceptionToString(ex);
- }
- return description;
- }
-
- private void updateArtifactInfoArea(FormToolkit toolkit, ScrolledForm form, boolean add) {
- if (add) {
- Composite infoArea = toolkit.createComposite(form.getForm().getBody(), SWT.WRAP);
- infoArea.setLayout(ALayout.getZeroMarginLayout(2, false));
- infoArea.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, true, false));
-
- Label label = toolkit.createLabel(infoArea, "", SWT.WRAP);
- Image image;
- try {
- Artifact artifact = getEditor().getEditorInput().getArtifact();
- if (artifact.isDeleted()) {
- image = ImageManager.getImage(FrameworkImage.TRASH);
- } else {
- image = Dialog.getImage(Dialog.DLG_IMG_MESSAGE_INFO);
- }
- } catch (Exception ex) {
- image = Dialog.getImage(Dialog.DLG_IMG_MESSAGE_ERROR);
- }
- label.setImage(image);
-
- infoText = toolkit.createFormText(infoArea, false);
- infoText.setText(getArtifactShortInfo(), true, false);
- infoText.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_GRAY));
- infoText.setToolTipText("The human readable id and database id for this artifact");
- } else {
- infoText.setText(getArtifactShortInfo(), true, false);
- }
- }
-
- @Override
- public void dispose() {
- for (SectionPart part : sectionParts.values()) {
- part.dispose();
- }
- super.dispose();
- }
-
- public RelationsComposite getRelationsComposite() {
- SectionPart section = sectionParts.get(SectionEnum.Relations);
- if (section instanceof RelationsFormSection) {
- return ((RelationsFormSection) section).getRelationComposite();
- }
- return null;
- }
-
- public void refresh() {
- final ScrolledForm sForm = getManagedForm().getForm();
- updateTitle(sForm);
- updateImage(sForm);
- updateArtifactInfoArea(getManagedForm().getToolkit(), sForm, false);
- for (SectionPart part : sectionParts.values()) {
- part.refresh();
- }
- sForm.getBody().layout(true);
- sForm.reflow(true);
- getManagedForm().refresh();
- }
-
- @Override
- public void showBusy(boolean busy) {
- super.showBusy(busy);
- if (Widgets.isAccessible(getManagedForm().getForm())) {
- getManagedForm().getForm().getForm().setBusy(busy);
- }
- }
-
- private final class RefreshAction extends Action {
-
- public RefreshAction() {
- super();
- setImageDescriptor(ImageManager.getImageDescriptor(PluginUiImage.REFRESH));
- setToolTipText("Refresh Editor");
- }
-
- @Override
- public void run() {
- refresh();
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.pages;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.jdk.core.util.ReservedCharacters;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.parts.MessageSummaryNote;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.AttributesFormSection;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.DetailsFormSection;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.RelationsFormSection;
+import org.eclipse.osee.framework.ui.skynet.util.FormsUtil;
+import org.eclipse.osee.framework.ui.swt.ALayout;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.IMessage;
+import org.eclipse.ui.forms.SectionPart;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.events.HyperlinkAdapter;
+import org.eclipse.ui.forms.events.HyperlinkEvent;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.FormText;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class ArtifactFormPage extends FormPage {
+
+ private enum SectionEnum {
+ Attributes,
+ Relations,
+ Details;
+ }
+
+ private final Map<SectionEnum, SectionPart> sectionParts;
+ private FormText infoText;
+
+ public ArtifactFormPage(FormEditor editor, String id, String title) {
+ super(editor, id, title);
+ this.sectionParts = new LinkedHashMap<SectionEnum, SectionPart>();
+ }
+
+ @Override
+ protected void createFormContent(IManagedForm managedForm) {
+ super.createFormContent(managedForm);
+ sectionParts.clear();
+
+ final ScrolledForm form = managedForm.getForm();
+ final FormToolkit toolkit = managedForm.getToolkit();
+
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 1;
+ layout.marginHeight = 10;
+ layout.marginWidth = 6;
+ layout.horizontalSpacing = 20;
+ form.getBody().setLayout(layout);
+ form.getBody().setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
+
+ updateTitle(form);
+ updateImage(form);
+ updateArtifactInfoArea(toolkit, form, true);
+ addToolBar(toolkit, form, true);
+ FormsUtil.addHeadingGradient(toolkit, form, true);
+ addMessageDecoration(form);
+
+ int sectionStyle = ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE;
+
+ sectionParts.put(SectionEnum.Attributes, new AttributesFormSection(getEditor(), form.getBody(), toolkit,
+ sectionStyle | ExpandableComposite.EXPANDED));
+ sectionParts.put(SectionEnum.Relations, new RelationsFormSection(getEditor(), form.getBody(), toolkit,
+ sectionStyle));
+ sectionParts.put(SectionEnum.Details, new DetailsFormSection(getEditor(), form.getBody(), toolkit, sectionStyle));
+
+ for (SectionPart part : sectionParts.values()) {
+ managedForm.addPart(part);
+ Section section = part.getSection();
+ section.marginWidth = 0;
+ section.marginHeight = 2;
+ }
+ form.layout();
+ }
+
+ @Override
+ public ArtifactEditor getEditor() {
+ return (ArtifactEditor) super.getEditor();
+ }
+
+ private void addMessageDecoration(ScrolledForm form) {
+ form.getForm().addMessageHyperlinkListener(new HyperlinkAdapter() {
+
+ @Override
+ public void linkActivated(HyperlinkEvent e) {
+ String title = e.getLabel();
+ Object href = e.getHref();
+ if (href instanceof IMessage[]) {
+ Point noteLocation = ((Control) e.widget).toDisplay(0, 0);
+ noteLocation.x += 10;
+ noteLocation.y += 10;
+
+ MessageSummaryNote note = new MessageSummaryNote(getManagedForm(), title, (IMessage[]) href);
+ note.setLocation(noteLocation);
+ note.open();
+ }
+ }
+
+ });
+ }
+
+ private void addToolBar(FormToolkit toolkit, ScrolledForm form, boolean add) {
+ IToolBarManager manager = form.getToolBarManager();
+ if (add) {
+ manager.add(new RefreshAction());
+ manager.add(new Separator());
+ getEditor().getActionBarContributor().contributeToToolBar(manager);
+ manager.update(true);
+ } else {
+ manager.removeAll();
+ }
+ form.reflow(true);
+ }
+
+ private void updateTitle(ScrolledForm form) {
+ form.setText(getEditorInput().getName());
+ }
+
+ private void updateImage(ScrolledForm form) {
+ form.setImage(getEditor().getEditorInput().getImage());
+ }
+
+ private String getArtifactShortInfo() {
+ String description;
+ try {
+ Artifact artifact = getEditor().getEditorInput().getArtifact();
+ description =
+ String.format("<form><p>%s<b>Branch:</b> %s <b>Type:</b> %s <b>GUID:</b> %s</p></form>",
+ !artifact.isDeleted() ? "" : "<b>ARTIFACT DELETED - </b> ",
+ ReservedCharacters.encodeXmlEntities(artifact.getBranch().getShortName()),
+ artifact.getArtifactTypeName(), artifact.getGuid());
+ } catch (Exception ex) {
+ description = Lib.exceptionToString(ex);
+ }
+ return description;
+ }
+
+ private void updateArtifactInfoArea(FormToolkit toolkit, ScrolledForm form, boolean add) {
+ if (add) {
+ Composite infoArea = toolkit.createComposite(form.getForm().getBody(), SWT.WRAP);
+ infoArea.setLayout(ALayout.getZeroMarginLayout(2, false));
+ infoArea.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, true, false));
+
+ Label label = toolkit.createLabel(infoArea, "", SWT.WRAP);
+ Image image;
+ try {
+ Artifact artifact = getEditor().getEditorInput().getArtifact();
+ if (artifact.isDeleted()) {
+ image = ImageManager.getImage(FrameworkImage.TRASH);
+ } else {
+ image = Dialog.getImage(Dialog.DLG_IMG_MESSAGE_INFO);
+ }
+ } catch (Exception ex) {
+ image = Dialog.getImage(Dialog.DLG_IMG_MESSAGE_ERROR);
+ }
+ label.setImage(image);
+
+ infoText = toolkit.createFormText(infoArea, false);
+ infoText.setText(getArtifactShortInfo(), true, false);
+ infoText.setForeground(Displays.getSystemColor(SWT.COLOR_DARK_GRAY));
+ infoText.setToolTipText("The human readable id and database id for this artifact");
+ } else {
+ infoText.setText(getArtifactShortInfo(), true, false);
+ }
+ }
+
+ @Override
+ public void dispose() {
+ for (SectionPart part : sectionParts.values()) {
+ part.dispose();
+ }
+ super.dispose();
+ }
+
+ public RelationsComposite getRelationsComposite() {
+ SectionPart section = sectionParts.get(SectionEnum.Relations);
+ if (section instanceof RelationsFormSection) {
+ return ((RelationsFormSection) section).getRelationComposite();
+ }
+ return null;
+ }
+
+ public void refresh() {
+ final ScrolledForm sForm = getManagedForm().getForm();
+ updateTitle(sForm);
+ updateImage(sForm);
+ updateArtifactInfoArea(getManagedForm().getToolkit(), sForm, false);
+ for (SectionPart part : sectionParts.values()) {
+ part.refresh();
+ }
+ sForm.getBody().layout(true);
+ sForm.reflow(true);
+ getManagedForm().refresh();
+ }
+
+ @Override
+ public void showBusy(boolean busy) {
+ super.showBusy(busy);
+ if (Widgets.isAccessible(getManagedForm().getForm())) {
+ getManagedForm().getForm().getForm().setBusy(busy);
+ }
+ }
+
+ private final class RefreshAction extends Action {
+
+ public RefreshAction() {
+ super();
+ setImageDescriptor(ImageManager.getImageDescriptor(PluginUiImage.REFRESH));
+ setToolTipText("Refresh Editor");
+ }
+
+ @Override
+ public void run() {
+ refresh();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
index c1fc400af4b..32eab860979 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
@@ -1,282 +1,282 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.parts;
-
-import java.util.Arrays;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.jface.dialogs.IMessageProvider;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-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.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.skynet.core.attribute.WordAttribute;
-import org.eclipse.osee.framework.ui.plugin.util.Result;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.AttributeTypeUtil;
-import org.eclipse.osee.framework.ui.skynet.widgets.IArtifactStoredWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetAccessDecorationProvider;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetDecorator;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.AttributeXWidgetManager;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IAttributeXWidgetProvider;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
-import org.eclipse.osee.framework.ui.swt.ALayout;
-import org.eclipse.osee.framework.ui.swt.FontManager;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Font;
-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.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.forms.AbstractFormPart;
-import org.eclipse.ui.forms.events.ExpansionEvent;
-import org.eclipse.ui.forms.events.IExpansionListener;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AttributeFormPart extends AbstractFormPart {
-
- private final ArtifactEditor editor;
- private Composite composite;
- private final XWidgetDecorator decorator;
-
- public AttributeFormPart(ArtifactEditor editor) {
- this.editor = editor;
- this.decorator = new XWidgetDecorator();
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.parts;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+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.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.skynet.core.attribute.WordAttribute;
+import org.eclipse.osee.framework.ui.plugin.util.Result;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.sections.AttributeTypeUtil;
+import org.eclipse.osee.framework.ui.skynet.widgets.IArtifactStoredWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetAccessDecorationProvider;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetDecorator;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.AttributeXWidgetManager;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DefaultXWidgetOptionResolver;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IAttributeXWidgetProvider;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
+import org.eclipse.osee.framework.ui.swt.ALayout;
+import org.eclipse.osee.framework.ui.swt.FontManager;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Font;
+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.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.forms.AbstractFormPart;
+import org.eclipse.ui.forms.events.ExpansionEvent;
+import org.eclipse.ui.forms.events.IExpansionListener;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AttributeFormPart extends AbstractFormPart {
+
+ private final ArtifactEditor editor;
+ private Composite composite;
+ private final XWidgetDecorator decorator;
+
+ public AttributeFormPart(ArtifactEditor editor) {
+ this.editor = editor;
+ this.decorator = new XWidgetDecorator();
try {
decorator.addProvider(new XWidgetAccessDecorationProvider(
SkynetGuiPlugin.getInstance().getPolicyHandlerService()));
} catch (OseeCoreException ex) {
OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex.toString(), ex);
}
- }
-
- public void createContents(Composite parent) {
- decorator.dispose();
-
- final FormToolkit toolkit = getManagedForm().getToolkit();
- composite = toolkit.createComposite(parent, SWT.WRAP);
- composite.setLayout(ALayout.getZeroMarginLayout(1, false));
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- composite.setVisible(false);
-
- try {
- Artifact artifact = editor.getEditorInput().getArtifact();
- boolean isEditable = !artifact.isReadOnly();
-
- List<AttributeType> types = Arrays.asList(AttributeTypeUtil.getTypesWithData(artifact));
- boolean willHaveASection = hasWordAttribute(types);
- for (AttributeType attributeType : types) {
+ }
+
+ public void createContents(Composite parent) {
+ decorator.dispose();
+
+ final FormToolkit toolkit = getManagedForm().getToolkit();
+ composite = toolkit.createComposite(parent, SWT.WRAP);
+ composite.setLayout(ALayout.getZeroMarginLayout(1, false));
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ composite.setVisible(false);
+
+ try {
+ Artifact artifact = editor.getEditorInput().getArtifact();
+ boolean isEditable = !artifact.isReadOnly();
+
+ List<AttributeType> types = Arrays.asList(AttributeTypeUtil.getTypesWithData(artifact));
+ boolean willHaveASection = hasWordAttribute(types);
+ for (AttributeType attributeType : types) {
if (AttributeTypeManager.isBaseTypeCompatible(WordAttribute.class, attributeType) || attributeType.equals(CoreAttributeTypes.RelationOrder)) {
- createAttributeTypeControlsInSection(parent, toolkit, attributeType, willHaveASection, false);
- } else {
- createAttributeTypeControls(composite, toolkit, artifact, attributeType, willHaveASection, isEditable,
- false);
- }
- }
- setLabelFonts(composite, FontManager.getDefaultLabelFont());
- layoutControls(composite);
-
- for (XWidget xWidget : XWidgetUtility.findXWidgetsInControl(composite)) {
- xWidget.addXModifiedListener(new XWidgetValidationListener());
- decorator.addWidget(xWidget);
- }
- decorator.refresh();
- composite.setVisible(true);
-
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, "Unable to access attribute types", ex);
- }
-
- }
-
- private boolean hasWordAttribute(List<AttributeType> types) throws OseeCoreException {
- for (AttributeType attributeType : types) {
- if (AttributeTypeManager.isBaseTypeCompatible(WordAttribute.class, attributeType)) {
- return true;
- }
- }
- return false;
- }
-
- @Override
- public void dispose() {
- Widgets.disposeWidget(composite);
- super.dispose();
- }
-
- private void setLabelFonts(Control parent, Font font) {
- if (parent instanceof Label) {
- Label label = (Label) parent;
- label.setFont(font);
- }
- if (parent instanceof Composite) {
- Composite container = (Composite) parent;
- for (Control child : container.getChildren()) {
- setLabelFonts(child, font);
- }
- container.layout();
- }
- }
-
- private void layoutControls(Control control) {
- if (control instanceof Label || control instanceof Button) {
- control.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
- }
-
- if (control instanceof Composite) {
- Composite container = (Composite) control;
- for (Control child : container.getChildren()) {
- layoutControls(child);
- }
- }
- }
-
- private Composite createAttributeTypeControls(Composite parent, FormToolkit toolkit, Artifact artifact, AttributeType attributeType, boolean willHaveASection, boolean isEditable, boolean isExpandable) {
- Composite internalComposite = toolkit.createComposite(parent, SWT.WRAP);
- GridLayout layout = ALayout.getZeroMarginLayout(1, false);
- if (willHaveASection) {
- layout.marginLeft = 18;
- }
- internalComposite.setLayout(layout);
-
- internalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- try {
- IAttributeXWidgetProvider xWidgetProvider = AttributeXWidgetManager.getAttributeXWidgetProvider(attributeType);
- List<DynamicXWidgetLayoutData> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
- if (isExpandable) {
- for (DynamicXWidgetLayoutData data : concreteWidgets) {
- data.getXOptionHandler().add(XOption.NO_LABEL);
- }
- }
- WorkPage workPage = new WorkPage(concreteWidgets, new DefaultXWidgetOptionResolver());
- workPage.createBody(getManagedForm(), internalComposite, artifact, widgetModifiedListener, isEditable);
-
- } catch (OseeCoreException ex) {
- toolkit.createLabel(parent, String.format("Error creating controls for: [%s]", attributeType.getName()));
- }
- return internalComposite;
- }
-
- private void createAttributeTypeControlsInSection(Composite parent, FormToolkit toolkit, AttributeType attributeType, boolean willHaveASection, boolean isEditable) {
- int style = ExpandableComposite.COMPACT | ExpandableComposite.TREE_NODE;
-
- Composite internalComposite = toolkit.createComposite(parent, SWT.WRAP);
- internalComposite.setLayout(new GridLayout());
- internalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-
- ExpandableComposite expandable = toolkit.createExpandableComposite(internalComposite, style);
- expandable.setText(attributeType.getName());
- expandable.setLayout(new GridLayout());
- expandable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
- Artifact artifact = editor.getEditorInput().getArtifact();
-
- Composite composite =
- createAttributeTypeControls(expandable, toolkit, artifact, attributeType, willHaveASection, isEditable, true);
- expandable.setClient(composite);
-
- expandable.addExpansionListener(new IExpansionListener() {
-
- @Override
- public void expansionStateChanged(ExpansionEvent e) {
- getManagedForm().getForm().reflow(true);
- }
-
- @Override
- public void expansionStateChanging(ExpansionEvent e) {
- getManagedForm().getForm().reflow(false);
- }
-
- });
- toolkit.paintBordersFor(expandable);
- }
-
- private final XModifiedListener widgetModifiedListener = new XModifiedListener() {
-
- @Override
- public void widgetModified(XWidget widget) {
- editor.onDirtied();
- }
- };
-
- @Override
- public void commit(boolean onSave) {
- int saveCount = 0;
- List<XWidget> widgets = XWidgetUtility.findXWidgetsInControl(composite);
- for (XWidget xWidget : widgets) {
- if (xWidget.isEditable()) {
- if (xWidget instanceof IArtifactStoredWidget) {
- IArtifactStoredWidget aWidget = (IArtifactStoredWidget) xWidget;
- try {
- if (aWidget.isDirty().isTrue()) {
- aWidget.saveToArtifact();
- xWidget.removeControlCausedMessage("attribute.dirty");
- saveCount++;
- } else {
- saveCount++;
- }
- } catch (OseeCoreException ex) {
- ex.printStackTrace();
- }
- }
- } else {
- saveCount++;
- }
- }
-
- // Ensure all changes saved
- if (saveCount == widgets.size()) {
- super.commit(onSave);
- }
- }
-
- private final class XWidgetValidationListener implements XModifiedListener {
-
- @Override
- public void widgetModified(XWidget xWidget) {
- if (xWidget != null && xWidget instanceof IArtifactStoredWidget) {
- IArtifactStoredWidget aWidget = (IArtifactStoredWidget) xWidget;
- try {
- Result result = aWidget.isDirty();
- if (result.isTrue()) {
- xWidget.setControlCausedMessage("attribute.dirty", "Dirty", IMessageProvider.INFORMATION);
- if (!isDirty()) {
- markDirty();
- }
- } else {
- xWidget.removeControlCausedMessage("attribute.dirty");
- }
- } catch (Exception ex) {
- xWidget.setControlCausedMessage("attribute.dirty", "Unable to compute isDirty", IMessageProvider.ERROR);
- }
- }
- }
- }
-
-}
+ createAttributeTypeControlsInSection(parent, toolkit, attributeType, willHaveASection, false);
+ } else {
+ createAttributeTypeControls(composite, toolkit, artifact, attributeType, willHaveASection, isEditable,
+ false);
+ }
+ }
+ setLabelFonts(composite, FontManager.getDefaultLabelFont());
+ layoutControls(composite);
+
+ for (XWidget xWidget : XWidgetUtility.findXWidgetsInControl(composite)) {
+ xWidget.addXModifiedListener(new XWidgetValidationListener());
+ decorator.addWidget(xWidget);
+ }
+ decorator.refresh();
+ composite.setVisible(true);
+
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, "Unable to access attribute types", ex);
+ }
+
+ }
+
+ private boolean hasWordAttribute(List<AttributeType> types) throws OseeCoreException {
+ for (AttributeType attributeType : types) {
+ if (AttributeTypeManager.isBaseTypeCompatible(WordAttribute.class, attributeType)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public void dispose() {
+ Widgets.disposeWidget(composite);
+ super.dispose();
+ }
+
+ private void setLabelFonts(Control parent, Font font) {
+ if (parent instanceof Label) {
+ Label label = (Label) parent;
+ label.setFont(font);
+ }
+ if (parent instanceof Composite) {
+ Composite container = (Composite) parent;
+ for (Control child : container.getChildren()) {
+ setLabelFonts(child, font);
+ }
+ container.layout();
+ }
+ }
+
+ private void layoutControls(Control control) {
+ if (control instanceof Label || control instanceof Button) {
+ control.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
+ }
+
+ if (control instanceof Composite) {
+ Composite container = (Composite) control;
+ for (Control child : container.getChildren()) {
+ layoutControls(child);
+ }
+ }
+ }
+
+ private Composite createAttributeTypeControls(Composite parent, FormToolkit toolkit, Artifact artifact, AttributeType attributeType, boolean willHaveASection, boolean isEditable, boolean isExpandable) {
+ Composite internalComposite = toolkit.createComposite(parent, SWT.WRAP);
+ GridLayout layout = ALayout.getZeroMarginLayout(1, false);
+ if (willHaveASection) {
+ layout.marginLeft = 18;
+ }
+ internalComposite.setLayout(layout);
+
+ internalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ try {
+ IAttributeXWidgetProvider xWidgetProvider = AttributeXWidgetManager.getAttributeXWidgetProvider(attributeType);
+ List<DynamicXWidgetLayoutData> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
+ if (isExpandable) {
+ for (DynamicXWidgetLayoutData data : concreteWidgets) {
+ data.getXOptionHandler().add(XOption.NO_LABEL);
+ }
+ }
+ WorkPage workPage = new WorkPage(concreteWidgets, new DefaultXWidgetOptionResolver());
+ workPage.createBody(getManagedForm(), internalComposite, artifact, widgetModifiedListener, isEditable);
+
+ } catch (OseeCoreException ex) {
+ toolkit.createLabel(parent, String.format("Error creating controls for: [%s]", attributeType.getName()));
+ }
+ return internalComposite;
+ }
+
+ private void createAttributeTypeControlsInSection(Composite parent, FormToolkit toolkit, AttributeType attributeType, boolean willHaveASection, boolean isEditable) {
+ int style = ExpandableComposite.COMPACT | ExpandableComposite.TREE_NODE;
+
+ Composite internalComposite = toolkit.createComposite(parent, SWT.WRAP);
+ internalComposite.setLayout(new GridLayout());
+ internalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+
+ ExpandableComposite expandable = toolkit.createExpandableComposite(internalComposite, style);
+ expandable.setText(attributeType.getName());
+ expandable.setLayout(new GridLayout());
+ expandable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+
+ Artifact artifact = editor.getEditorInput().getArtifact();
+
+ Composite composite =
+ createAttributeTypeControls(expandable, toolkit, artifact, attributeType, willHaveASection, isEditable, true);
+ expandable.setClient(composite);
+
+ expandable.addExpansionListener(new IExpansionListener() {
+
+ @Override
+ public void expansionStateChanged(ExpansionEvent e) {
+ getManagedForm().getForm().reflow(true);
+ }
+
+ @Override
+ public void expansionStateChanging(ExpansionEvent e) {
+ getManagedForm().getForm().reflow(false);
+ }
+
+ });
+ toolkit.paintBordersFor(expandable);
+ }
+
+ private final XModifiedListener widgetModifiedListener = new XModifiedListener() {
+
+ @Override
+ public void widgetModified(XWidget widget) {
+ editor.onDirtied();
+ }
+ };
+
+ @Override
+ public void commit(boolean onSave) {
+ int saveCount = 0;
+ List<XWidget> widgets = XWidgetUtility.findXWidgetsInControl(composite);
+ for (XWidget xWidget : widgets) {
+ if (xWidget.isEditable()) {
+ if (xWidget instanceof IArtifactStoredWidget) {
+ IArtifactStoredWidget aWidget = (IArtifactStoredWidget) xWidget;
+ try {
+ if (aWidget.isDirty().isTrue()) {
+ aWidget.saveToArtifact();
+ xWidget.removeControlCausedMessage("attribute.dirty");
+ saveCount++;
+ } else {
+ saveCount++;
+ }
+ } catch (OseeCoreException ex) {
+ ex.printStackTrace();
+ }
+ }
+ } else {
+ saveCount++;
+ }
+ }
+
+ // Ensure all changes saved
+ if (saveCount == widgets.size()) {
+ super.commit(onSave);
+ }
+ }
+
+ private final class XWidgetValidationListener implements XModifiedListener {
+
+ @Override
+ public void widgetModified(XWidget xWidget) {
+ if (xWidget != null && xWidget instanceof IArtifactStoredWidget) {
+ IArtifactStoredWidget aWidget = (IArtifactStoredWidget) xWidget;
+ try {
+ Result result = aWidget.isDirty();
+ if (result.isTrue()) {
+ xWidget.setControlCausedMessage("attribute.dirty", "Dirty", IMessageProvider.INFORMATION);
+ if (!isDirty()) {
+ markDirty();
+ }
+ } else {
+ xWidget.removeControlCausedMessage("attribute.dirty");
+ }
+ } catch (Exception ex) {
+ xWidget.setControlCausedMessage("attribute.dirty", "Unable to compute isDirty", IMessageProvider.ERROR);
+ }
+ }
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/MessageSummaryNote.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/MessageSummaryNote.java
index 5154c53dc72..899aede049e 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/MessageSummaryNote.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/MessageSummaryNote.java
@@ -1,153 +1,153 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.parts;
-
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import org.eclipse.jface.dialogs.IMessageProvider;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.FocusAdapter;
-import org.eclipse.swt.events.FocusEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.IMessage;
-import org.eclipse.ui.forms.events.HyperlinkAdapter;
-import org.eclipse.ui.forms.events.HyperlinkEvent;
-import org.eclipse.ui.forms.widgets.Form;
-import org.eclipse.ui.forms.widgets.FormText;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.ScrolledForm;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MessageSummaryNote {
- private final Shell shell;
-
- public MessageSummaryNote(IManagedForm managedForm, String title, IMessage[] messages) {
- final ScrolledForm form = managedForm.getForm();
- final FormToolkit toolkit = managedForm.getToolkit();
-
- shell = new Shell(form.getShell(), SWT.ON_TOP | SWT.TOOL);
- shell.setImage(getImage(form.getMessageType()));
- shell.setText(title);
- shell.setLayout(new FillLayout());
-
- Composite composite = toolkit.createComposite(shell, toolkit.getBorderStyle());
- composite.setLayout(new GridLayout());
-
- FormText text = toolkit.createFormText(composite, true);
- configureFormText(form.getForm(), text);
- text.setText(getMessageSummary(messages), true, false);
- text.addFocusListener(new FocusAdapter() {
-
- @Override
- public void focusLost(FocusEvent e) {
- shell.close();
- }
- });
- shell.setLocation(0, 0);
- }
-
- public void setLocation(Point point) {
- shell.setLocation(point);
- }
-
- public void open() {
- shell.pack();
- shell.open();
- }
-
- private void configureFormText(final Form form, FormText text) {
- text.addHyperlinkListener(new HyperlinkAdapter() {
- @Override
- public void linkActivated(HyperlinkEvent e) {
- String is = (String) e.getHref();
- try {
- int index = Integer.parseInt(is);
- IMessage[] messages = form.getChildrenMessages();
- IMessage message = messages[index];
- Control c = message.getControl();
- ((FormText) e.widget).getShell().dispose();
- if (c != null) {
- c.setFocus();
- }
- } catch (NumberFormatException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE, ex);
- }
- }
- });
- text.setImage("error", getImage(IMessageProvider.ERROR));
- text.setImage("warning", getImage(IMessageProvider.WARNING));
- text.setImage("info", getImage(IMessageProvider.INFORMATION));
- }
-
- private Image getImage(int type) {
- Image image = null;
- switch (type) {
- case IMessageProvider.ERROR:
- image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_ERROR_TSK);
- break;
- case IMessageProvider.WARNING:
- image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_WARN_TSK);
- break;
- case IMessageProvider.INFORMATION:
- image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_INFO_TSK);
- break;
- default:
- break;
- }
- return image;
- }
-
- private String getMessageSummary(IMessage[] messages) {
- StringWriter sw = new StringWriter();
- PrintWriter pw = new PrintWriter(sw);
- pw.println("<form>");
- for (int i = 0; i < messages.length; i++) {
- IMessage message = messages[i];
- pw.print("<li vspace=\"false\" style=\"image\" indent=\"16\" value=\"");
- switch (message.getMessageType()) {
- case IMessageProvider.ERROR:
- pw.print("error");
- break;
- case IMessageProvider.WARNING:
- pw.print("warning");
- break;
- case IMessageProvider.INFORMATION:
- pw.print("info");
- break;
- }
- pw.print("\"> <a href=\"");
- pw.print(i + "");
- pw.print("\">");
- if (message.getPrefix() != null) {
- pw.print(message.getPrefix());
- }
- pw.print(message.getMessage());
- pw.println("</a></li>");
- }
- pw.println("</form>");
- pw.flush();
- return sw.toString();
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.parts;
+
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.FocusAdapter;
+import org.eclipse.swt.events.FocusEvent;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.IMessage;
+import org.eclipse.ui.forms.events.HyperlinkAdapter;
+import org.eclipse.ui.forms.events.HyperlinkEvent;
+import org.eclipse.ui.forms.widgets.Form;
+import org.eclipse.ui.forms.widgets.FormText;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MessageSummaryNote {
+ private final Shell shell;
+
+ public MessageSummaryNote(IManagedForm managedForm, String title, IMessage[] messages) {
+ final ScrolledForm form = managedForm.getForm();
+ final FormToolkit toolkit = managedForm.getToolkit();
+
+ shell = new Shell(form.getShell(), SWT.ON_TOP | SWT.TOOL);
+ shell.setImage(getImage(form.getMessageType()));
+ shell.setText(title);
+ shell.setLayout(new FillLayout());
+
+ Composite composite = toolkit.createComposite(shell, toolkit.getBorderStyle());
+ composite.setLayout(new GridLayout());
+
+ FormText text = toolkit.createFormText(composite, true);
+ configureFormText(form.getForm(), text);
+ text.setText(getMessageSummary(messages), true, false);
+ text.addFocusListener(new FocusAdapter() {
+
+ @Override
+ public void focusLost(FocusEvent e) {
+ shell.close();
+ }
+ });
+ shell.setLocation(0, 0);
+ }
+
+ public void setLocation(Point point) {
+ shell.setLocation(point);
+ }
+
+ public void open() {
+ shell.pack();
+ shell.open();
+ }
+
+ private void configureFormText(final Form form, FormText text) {
+ text.addHyperlinkListener(new HyperlinkAdapter() {
+ @Override
+ public void linkActivated(HyperlinkEvent e) {
+ String is = (String) e.getHref();
+ try {
+ int index = Integer.parseInt(is);
+ IMessage[] messages = form.getChildrenMessages();
+ IMessage message = messages[index];
+ Control c = message.getControl();
+ ((FormText) e.widget).getShell().dispose();
+ if (c != null) {
+ c.setFocus();
+ }
+ } catch (NumberFormatException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE, ex);
+ }
+ }
+ });
+ text.setImage("error", getImage(IMessageProvider.ERROR));
+ text.setImage("warning", getImage(IMessageProvider.WARNING));
+ text.setImage("info", getImage(IMessageProvider.INFORMATION));
+ }
+
+ private Image getImage(int type) {
+ Image image = null;
+ switch (type) {
+ case IMessageProvider.ERROR:
+ image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_ERROR_TSK);
+ break;
+ case IMessageProvider.WARNING:
+ image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_WARN_TSK);
+ break;
+ case IMessageProvider.INFORMATION:
+ image = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_INFO_TSK);
+ break;
+ default:
+ break;
+ }
+ return image;
+ }
+
+ private String getMessageSummary(IMessage[] messages) {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+ pw.println("<form>");
+ for (int i = 0; i < messages.length; i++) {
+ IMessage message = messages[i];
+ pw.print("<li vspace=\"false\" style=\"image\" indent=\"16\" value=\"");
+ switch (message.getMessageType()) {
+ case IMessageProvider.ERROR:
+ pw.print("error");
+ break;
+ case IMessageProvider.WARNING:
+ pw.print("warning");
+ break;
+ case IMessageProvider.INFORMATION:
+ pw.print("info");
+ break;
+ }
+ pw.print("\"> <a href=\"");
+ pw.print(i + "");
+ pw.print("\">");
+ if (message.getPrefix() != null) {
+ pw.print(message.getPrefix());
+ }
+ pw.print(message.getMessage());
+ pw.println("</a></li>");
+ }
+ pw.println("</form>");
+ pw.flush();
+ return sw.toString();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/ArtifactEditorFormSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/ArtifactEditorFormSection.java
index 823a9c21dd4..72701016f4a 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/ArtifactEditorFormSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/ArtifactEditorFormSection.java
@@ -1,38 +1,38 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.sections;
-
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.BaseArtifactEditorInput;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.SectionPart;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Roberto E. Escobar
- */
-public abstract class ArtifactEditorFormSection extends SectionPart {
-
- private final AbstractArtifactEditor editor;
-
- public ArtifactEditorFormSection(AbstractArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
- super(parent, toolkit, style);
- this.editor = editor;
- }
-
- public AbstractArtifactEditor getEditor() {
- return editor;
- }
-
- public BaseArtifactEditorInput getEditorInput() {
- return (BaseArtifactEditorInput) editor.getEditorInput();
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.sections;
+
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.BaseArtifactEditorInput;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.SectionPart;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public abstract class ArtifactEditorFormSection extends SectionPart {
+
+ private final AbstractArtifactEditor editor;
+
+ public ArtifactEditorFormSection(AbstractArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
+ super(parent, toolkit, style);
+ this.editor = editor;
+ }
+
+ public AbstractArtifactEditor getEditor() {
+ return editor;
+ }
+
+ public BaseArtifactEditorInput getEditorInput() {
+ return (BaseArtifactEditorInput) editor.getEditorInput();
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributeTypeUtil.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributeTypeUtil.java
index 3b7840d311d..7999f3b6a79 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributeTypeUtil.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributeTypeUtil.java
@@ -1,76 +1,76 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.sections;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AttributeTypeUtil {
-
- public static AttributeType[] getEmptyTypes(Artifact artifact) throws OseeCoreException {
- List<AttributeType> items = new ArrayList<AttributeType>();
- for (AttributeType type : artifact.getAttributeTypes()) {
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.sections;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AttributeTypeUtil {
+
+ public static AttributeType[] getEmptyTypes(Artifact artifact) throws OseeCoreException {
+ List<AttributeType> items = new ArrayList<AttributeType>();
+ for (AttributeType type : artifact.getAttributeTypes()) {
if (!CoreAttributeTypes.Name.equals(type) && artifact.getAttributes(type).isEmpty()) {
- items.add(type);
- }
- }
- Collections.sort(items);
- return items.toArray(new AttributeType[items.size()]);
- }
-
- public static Set<AttributeType> toTypes(List<Attribute<?>> attributes) {
- Set<AttributeType> types = new HashSet<AttributeType>();
- for (Attribute<?> attribute : attributes) {
- types.add(attribute.getAttributeType());
- }
- return types;
- }
-
- public static AttributeType[] getTypesWithData(Artifact artifact) throws OseeCoreException {
- List<AttributeType> items = new ArrayList<AttributeType>();
-
- List<Attribute<?>> attributeInstances = artifact.getAttributes(artifact.isDeleted());
- Set<AttributeType> typesInExistence = toTypes(attributeInstances);
-
- AttributeType nameType = null;
- AttributeType annotations = null;
-
- for (AttributeType type : typesInExistence) {
+ items.add(type);
+ }
+ }
+ Collections.sort(items);
+ return items.toArray(new AttributeType[items.size()]);
+ }
+
+ public static Set<AttributeType> toTypes(List<Attribute<?>> attributes) {
+ Set<AttributeType> types = new HashSet<AttributeType>();
+ for (Attribute<?> attribute : attributes) {
+ types.add(attribute.getAttributeType());
+ }
+ return types;
+ }
+
+ public static AttributeType[] getTypesWithData(Artifact artifact) throws OseeCoreException {
+ List<AttributeType> items = new ArrayList<AttributeType>();
+
+ List<Attribute<?>> attributeInstances = artifact.getAttributes(artifact.isDeleted());
+ Set<AttributeType> typesInExistence = toTypes(attributeInstances);
+
+ AttributeType nameType = null;
+ AttributeType annotations = null;
+
+ for (AttributeType type : typesInExistence) {
if (CoreAttributeTypes.Name.equals(type)) {
- nameType = type;
- } else if (CoreAttributeTypes.Annotation.equals(type)) {
- annotations = type;
- } else {
- items.add(type);
- }
- }
- Collections.sort(items);
- if (nameType != null) {
- items.add(0, nameType);
- }
- if (annotations != null) {
- items.add(annotations);
- }
- return items.toArray(new AttributeType[items.size()]);
- }
-
-}
+ nameType = type;
+ } else if (CoreAttributeTypes.Annotation.equals(type)) {
+ annotations = type;
+ } else {
+ items.add(type);
+ }
+ }
+ Collections.sort(items);
+ if (nameType != null) {
+ items.add(0, nameType);
+ }
+ if (annotations != null) {
+ items.add(annotations);
+ }
+ return items.toArray(new AttributeType[items.size()]);
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributesFormSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributesFormSection.java
index be0cc99b0d0..77748b43b86 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributesFormSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/AttributesFormSection.java
@@ -1,132 +1,132 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.sections;
-
-import org.eclipse.jface.action.IContributionItem;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.action.ToolBarManager;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.IActionContributor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.parts.AttributeFormPart;
-import org.eclipse.osee.framework.ui.swt.ALayout;
-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.Control;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-/**
- * @author Roberto E. Escobar
- */
-public class AttributesFormSection extends ArtifactEditorFormSection {
-
- private IActionContributor actionContributor;
- private AttributeFormPart formPart;
- private IToolBarManager toolBarManager;
-
- public AttributesFormSection(ArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
- super(editor, parent, toolkit, style);
- }
-
- @Override
- public void initialize(IManagedForm form) {
- super.initialize(form);
- Section section = getSection();
- section.setText("Attributes");
- section.setLayout(new GridLayout(1, false));
- section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-
- addToolBar(form);
- updateDataPart();
- updateToolBarVisibility();
- }
-
- private IToolBarManager getToolBarManager() {
- if (toolBarManager == null) {
- toolBarManager = new ToolBarManager(SWT.FLAT);
- }
- return toolBarManager;
- }
-
- private void addToolBar(IManagedForm form) {
- final FormToolkit toolkit = form.getToolkit();
- Composite composite = toolkit.createComposite(getSection());
- composite.setLayout(ALayout.getZeroMarginLayout());
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- composite.setBackground(getSection().getBackground());
-
- IToolBarManager manager = getToolBarManager();
- ((ToolBarManager) manager).createControl(composite);
- getActionContributor().contributeToToolBar(manager);
- manager.update(true);
-
- getSection().setTextClient(composite);
- }
-
- private IActionContributor getActionContributor() {
- if (actionContributor == null) {
- actionContributor = new AttributeActionContribution((ArtifactEditor) getEditor());
- }
- return actionContributor;
- }
-
- private void updateDataPart() {
- final IManagedForm form = getManagedForm();
- final FormToolkit toolkit = form.getToolkit();
- final Section section = getSection();
-
- if (formPart != null) {
- form.removePart(formPart);
- formPart.dispose();
- Control control = section.getClient();
- if (control != null && !control.isDisposed()) {
- control.dispose();
- }
- }
- Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
- sectionBody.setLayout(ALayout.getZeroMarginLayout());
- sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- formPart = new AttributeFormPart((ArtifactEditor) getEditor());
- form.addPart(formPart);
- formPart.createContents(sectionBody);
- section.setClient(sectionBody);
- toolkit.paintBordersFor(section);
-
- section.layout(true);
- form.getForm().getBody().layout(true);
- }
-
- @Override
- public void refresh() {
- super.refresh();
- updateDataPart();
- updateToolBarVisibility();
- }
-
- private void updateToolBarVisibility() {
- boolean isReadOnly = !getEditorInput().isReadOnly();
- getSection().getTextClient().setVisible(isReadOnly);
- for (IContributionItem item : getToolBarManager().getItems()) {
- item.setVisible(isReadOnly);
- }
- getToolBarManager().update(true);
- }
-
- @Override
- public void dispose() {
- formPart.dispose();
- super.dispose();
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.sections;
+
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.ToolBarManager;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.IActionContributor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.parts.AttributeFormPart;
+import org.eclipse.osee.framework.ui.swt.ALayout;
+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.Control;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class AttributesFormSection extends ArtifactEditorFormSection {
+
+ private IActionContributor actionContributor;
+ private AttributeFormPart formPart;
+ private IToolBarManager toolBarManager;
+
+ public AttributesFormSection(ArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
+ super(editor, parent, toolkit, style);
+ }
+
+ @Override
+ public void initialize(IManagedForm form) {
+ super.initialize(form);
+ Section section = getSection();
+ section.setText("Attributes");
+ section.setLayout(new GridLayout(1, false));
+ section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+
+ addToolBar(form);
+ updateDataPart();
+ updateToolBarVisibility();
+ }
+
+ private IToolBarManager getToolBarManager() {
+ if (toolBarManager == null) {
+ toolBarManager = new ToolBarManager(SWT.FLAT);
+ }
+ return toolBarManager;
+ }
+
+ private void addToolBar(IManagedForm form) {
+ final FormToolkit toolkit = form.getToolkit();
+ Composite composite = toolkit.createComposite(getSection());
+ composite.setLayout(ALayout.getZeroMarginLayout());
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ composite.setBackground(getSection().getBackground());
+
+ IToolBarManager manager = getToolBarManager();
+ ((ToolBarManager) manager).createControl(composite);
+ getActionContributor().contributeToToolBar(manager);
+ manager.update(true);
+
+ getSection().setTextClient(composite);
+ }
+
+ private IActionContributor getActionContributor() {
+ if (actionContributor == null) {
+ actionContributor = new AttributeActionContribution((ArtifactEditor) getEditor());
+ }
+ return actionContributor;
+ }
+
+ private void updateDataPart() {
+ final IManagedForm form = getManagedForm();
+ final FormToolkit toolkit = form.getToolkit();
+ final Section section = getSection();
+
+ if (formPart != null) {
+ form.removePart(formPart);
+ formPart.dispose();
+ Control control = section.getClient();
+ if (control != null && !control.isDisposed()) {
+ control.dispose();
+ }
+ }
+ Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
+ sectionBody.setLayout(ALayout.getZeroMarginLayout());
+ sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ formPart = new AttributeFormPart((ArtifactEditor) getEditor());
+ form.addPart(formPart);
+ formPart.createContents(sectionBody);
+ section.setClient(sectionBody);
+ toolkit.paintBordersFor(section);
+
+ section.layout(true);
+ form.getForm().getBody().layout(true);
+ }
+
+ @Override
+ public void refresh() {
+ super.refresh();
+ updateDataPart();
+ updateToolBarVisibility();
+ }
+
+ private void updateToolBarVisibility() {
+ boolean isReadOnly = !getEditorInput().isReadOnly();
+ getSection().getTextClient().setVisible(isReadOnly);
+ for (IContributionItem item : getToolBarManager().getItems()) {
+ item.setVisible(isReadOnly);
+ }
+ getToolBarManager().update(true);
+ }
+
+ @Override
+ public void dispose() {
+ formPart.dispose();
+ super.dispose();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/DetailsFormSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/DetailsFormSection.java
index 4e11e9df40f..880b2be5511 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/DetailsFormSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/DetailsFormSection.java
@@ -1,101 +1,101 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.sections;
-
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-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;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.widgets.FormText;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-/**
- * @author Roberto E. Escobar
- */
-public class DetailsFormSection extends ArtifactEditorFormSection {
-
- private FormText formText;
- private boolean sectionCreated = false;
- private Section section;
-
- public DetailsFormSection(ArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
- super(editor, parent, toolkit, style);
- }
-
- @Override
- public void initialize(IManagedForm form) {
- super.initialize(form);
- section = getSection();
- section.setText("Details");
- section.setLayout(new GridLayout());
- section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- // Only load when users selects section
- section.addListener(SWT.Activate, new Listener() {
-
- @Override
- public void handleEvent(Event e) {
- createSection();
- }
- });
-
- }
-
- private synchronized void createSection() {
- if (!sectionCreated) {
- final FormToolkit toolkit = getManagedForm().getToolkit();
- Composite composite = toolkit.createComposite(getSection(), toolkit.getBorderStyle() | SWT.WRAP);
- composite.setLayout(new GridLayout());
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- formText = toolkit.createFormText(composite, false);
- GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- gd.widthHint = 200;
- formText.setLayoutData(gd);
-
- getSection().setClient(composite);
- toolkit.paintBordersFor(composite);
- sectionCreated = true;
- }
-
- if (Widgets.isAccessible(formText)) {
- try {
- formText.setText(
- Artifacts.getDetailsFormText(Artifacts.getDetailsKeyValues(getEditorInput().getArtifact())), true, true);
- } catch (Exception ex) {
- formText.setText(Lib.exceptionToString(ex), false, false);
- }
- getManagedForm().reflow(true);
- }
- }
-
- @Override
- public void dispose() {
- if (formText != null && !formText.isDisposed()) {
- formText.dispose();
- }
- super.dispose();
- }
-
- @Override
- public void refresh() {
- super.refresh();
- createSection();
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.sections;
+
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+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;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.widgets.FormText;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class DetailsFormSection extends ArtifactEditorFormSection {
+
+ private FormText formText;
+ private boolean sectionCreated = false;
+ private Section section;
+
+ public DetailsFormSection(ArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
+ super(editor, parent, toolkit, style);
+ }
+
+ @Override
+ public void initialize(IManagedForm form) {
+ super.initialize(form);
+ section = getSection();
+ section.setText("Details");
+ section.setLayout(new GridLayout());
+ section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ // Only load when users selects section
+ section.addListener(SWT.Activate, new Listener() {
+
+ @Override
+ public void handleEvent(Event e) {
+ createSection();
+ }
+ });
+
+ }
+
+ private synchronized void createSection() {
+ if (!sectionCreated) {
+ final FormToolkit toolkit = getManagedForm().getToolkit();
+ Composite composite = toolkit.createComposite(getSection(), toolkit.getBorderStyle() | SWT.WRAP);
+ composite.setLayout(new GridLayout());
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ formText = toolkit.createFormText(composite, false);
+ GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gd.widthHint = 200;
+ formText.setLayoutData(gd);
+
+ getSection().setClient(composite);
+ toolkit.paintBordersFor(composite);
+ sectionCreated = true;
+ }
+
+ if (Widgets.isAccessible(formText)) {
+ try {
+ formText.setText(
+ Artifacts.getDetailsFormText(Artifacts.getDetailsKeyValues(getEditorInput().getArtifact())), true, true);
+ } catch (Exception ex) {
+ formText.setText(Lib.exceptionToString(ex), false, false);
+ }
+ getManagedForm().reflow(true);
+ }
+ }
+
+ @Override
+ public void dispose() {
+ if (formText != null && !formText.isDisposed()) {
+ formText.dispose();
+ }
+ super.dispose();
+ }
+
+ @Override
+ public void refresh() {
+ super.refresh();
+ createSection();
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/RelationsFormSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/RelationsFormSection.java
index 1d8d94fa1a0..1198a85cd21 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/RelationsFormSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/sections/RelationsFormSection.java
@@ -1,152 +1,152 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.editor.sections;
-
-import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactFormPage;
-import org.eclipse.osee.framework.ui.skynet.util.ArtifactDragAndDrop;
-import org.eclipse.osee.framework.ui.swt.ALayout;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.events.MouseListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-/**
- * @author Roberto E. Escobar
- */
-public class RelationsFormSection extends ArtifactEditorFormSection {
-
- private RelationsComposite relationComposite;
- private boolean sectionCreated = false;
-
- public RelationsFormSection(AbstractArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
- super(editor, parent, toolkit, style);
- }
-
- @Override
- public void initialize(IManagedForm form) {
- super.initialize(form);
- final FormToolkit toolkit = form.getToolkit();
-
- final Section section = getSection();
- section.setText("Relations");
-
- section.setLayout(new GridLayout());
- section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- // Only load when users selects section
- section.addListener(SWT.Activate, new Listener() {
-
- @Override
- public void handleEvent(Event e) {
- createSection(section, toolkit);
- }
- });
- }
-
- protected synchronized void createSection(Section section, FormToolkit toolkit) {
- if (sectionCreated) {
- return;
- }
- Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
- sectionBody.setLayout(ALayout.getZeroMarginLayout());
- sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- Label dragDropLabel = new Label(sectionBody, SWT.BORDER);
- dragDropLabel.setText("Click here to drag this \"" + getEditorInput().getArtifact().getArtifactTypeName() + "\"");
- GridData gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 25;
- dragDropLabel.setLayoutData(gd);
- addDragAndDrop(dragDropLabel);
- toolkit.adapt(dragDropLabel, true, true);
-
- relationComposite = new RelationsComposite(getEditor(), sectionBody, SWT.NONE, getEditorInput().getArtifact());
- relationComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- section.setClient(sectionBody);
- toolkit.paintBordersFor(section);
-
- relationComposite.getTreeViewer().getTree().addMouseListener(new MouseListener() {
-
- private void redrawPage() {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- relationComposite.layout();
- relationComposite.getParent().layout();
- getManagedForm().reflow(true);
- }
- });
- }
-
- @Override
- public void mouseDoubleClick(MouseEvent e) {
- // do nothing
- }
-
- @Override
- public void mouseDown(MouseEvent e) {
- redrawPage();
- }
-
- @Override
- public void mouseUp(MouseEvent e) {
- // do nothing
- }
- });
- sectionCreated = true;
- }
-
- protected void handleExpandAndCollapse() {
- ((ArtifactFormPage) getEditor().getSelectedPage()).refresh();
- }
-
- protected void addDragAndDrop(Control dropArea) {
- new ArtifactDragAndDrop(dropArea, getEditorInput().getArtifact(), ArtifactEditor.EDITOR_ID);
- }
-
- public RelationsComposite getRelationComposite() {
- return relationComposite;
- }
-
- @Override
- public void refresh() {
- super.refresh();
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (Widgets.isAccessible(relationComposite)) {
- relationComposite.refresh();
- }
- }
- });
- }
-
- @Override
- public void dispose() {
- if (Widgets.isAccessible(relationComposite)) {
- relationComposite.dispose();
- }
- super.dispose();
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.editor.sections;
+
+import org.eclipse.osee.framework.ui.skynet.RelationsComposite;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.ArtifactEditor;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.pages.ArtifactFormPage;
+import org.eclipse.osee.framework.ui.skynet.util.ArtifactDragAndDrop;
+import org.eclipse.osee.framework.ui.swt.ALayout;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class RelationsFormSection extends ArtifactEditorFormSection {
+
+ private RelationsComposite relationComposite;
+ private boolean sectionCreated = false;
+
+ public RelationsFormSection(AbstractArtifactEditor editor, Composite parent, FormToolkit toolkit, int style) {
+ super(editor, parent, toolkit, style);
+ }
+
+ @Override
+ public void initialize(IManagedForm form) {
+ super.initialize(form);
+ final FormToolkit toolkit = form.getToolkit();
+
+ final Section section = getSection();
+ section.setText("Relations");
+
+ section.setLayout(new GridLayout());
+ section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ // Only load when users selects section
+ section.addListener(SWT.Activate, new Listener() {
+
+ @Override
+ public void handleEvent(Event e) {
+ createSection(section, toolkit);
+ }
+ });
+ }
+
+ protected synchronized void createSection(Section section, FormToolkit toolkit) {
+ if (sectionCreated) {
+ return;
+ }
+ Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
+ sectionBody.setLayout(ALayout.getZeroMarginLayout());
+ sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ Label dragDropLabel = new Label(sectionBody, SWT.BORDER);
+ dragDropLabel.setText("Click here to drag this \"" + getEditorInput().getArtifact().getArtifactTypeName() + "\"");
+ GridData gd = new GridData(GridData.FILL_BOTH);
+ gd.heightHint = 25;
+ dragDropLabel.setLayoutData(gd);
+ addDragAndDrop(dragDropLabel);
+ toolkit.adapt(dragDropLabel, true, true);
+
+ relationComposite = new RelationsComposite(getEditor(), sectionBody, SWT.NONE, getEditorInput().getArtifact());
+ relationComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ section.setClient(sectionBody);
+ toolkit.paintBordersFor(section);
+
+ relationComposite.getTreeViewer().getTree().addMouseListener(new MouseListener() {
+
+ private void redrawPage() {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ relationComposite.layout();
+ relationComposite.getParent().layout();
+ getManagedForm().reflow(true);
+ }
+ });
+ }
+
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void mouseDown(MouseEvent e) {
+ redrawPage();
+ }
+
+ @Override
+ public void mouseUp(MouseEvent e) {
+ // do nothing
+ }
+ });
+ sectionCreated = true;
+ }
+
+ protected void handleExpandAndCollapse() {
+ ((ArtifactFormPage) getEditor().getSelectedPage()).refresh();
+ }
+
+ protected void addDragAndDrop(Control dropArea) {
+ new ArtifactDragAndDrop(dropArea, getEditorInput().getArtifact(), ArtifactEditor.EDITOR_ID);
+ }
+
+ public RelationsComposite getRelationComposite() {
+ return relationComposite;
+ }
+
+ @Override
+ public void refresh() {
+ super.refresh();
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (Widgets.isAccessible(relationComposite)) {
+ relationComposite.refresh();
+ }
+ }
+ });
+ }
+
+ @Override
+ public void dispose() {
+ if (Widgets.isAccessible(relationComposite)) {
+ relationComposite.dispose();
+ }
+ super.dispose();
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/IMassViewerEventHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/IMassViewerEventHandler.java
index 37e373959f6..3fea7a86e03 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/IMassViewerEventHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/IMassViewerEventHandler.java
@@ -8,15 +8,15 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.artifact.massEditor;
-
-/**
- * @author Donald G. Dunne
- */
-public interface IMassViewerEventHandler {
-
- public MassXViewer getMassXViewer();
-
- public boolean isDisposed();
-
-}
+package org.eclipse.osee.framework.ui.skynet.artifact.massEditor;
+
+/**
+ * @author Donald G. Dunne
+ */
+public interface IMassViewerEventHandler {
+
+ public MassXViewer getMassXViewer();
+
+ public boolean isDisposed();
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassArtifactEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassArtifactEditor.java
index 4c9bc1e9fad..bf650f32257 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassArtifactEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassArtifactEditor.java
@@ -1,299 +1,299 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.artifact.massEditor;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.action.ActionContributionItem;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.IActionable;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
-import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
-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.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
-import org.eclipse.osee.framework.ui.swt.ALayout;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-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.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.ToolBar;
-import org.eclipse.swt.widgets.ToolItem;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-
-/**
- * @author Donald G. Dunne
- */
-public class MassArtifactEditor extends AbstractArtifactEditor implements IActionable {
- public static final String EDITOR_ID = "org.eclipse.osee.framework.ui.skynet.massEditor.MassArtifactEditor";
- private int artifactsPageIndex;
- private MassXViewer xViewer;
- private Label branchLabel;
- private ToolBar toolBar;
-
- /**
- * @return the xViewer
- */
- public MassXViewer getXViewer() {
- return xViewer;
- }
-
- @Override
- public void doSave(IProgressMonitor monitor) {
- try {
- Artifacts.persistInTransaction(xViewer.getArtifacts());
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- onDirtied();
- }
-
- public static void editArtifacts(final String name, final Collection<? extends Artifact> artifacts, TableLoadOption... tableLoadOptions) {
- Set<TableLoadOption> options = new HashSet<TableLoadOption>();
- options.addAll(Arrays.asList(tableLoadOptions));
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- boolean accessControlFilteredResults = false;
- try {
- Set<Artifact> accessibleArts = new HashSet<Artifact>();
- for (Artifact artifact : artifacts) {
- if (!AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
- "The user " + UserManager.getUser() + " does not have read access to " + artifact);
- accessControlFilteredResults = true;
- } else {
- accessibleArts.add(artifact);
- }
- }
- if (accessibleArts.isEmpty()) {
- AWorkbench.popup("ERROR", "No Artifacts to edit");
- } else {
- AWorkbench.getActivePage().openEditor(
- new MassArtifactEditorInput(name, accessibleArts, new MassXViewerFactory(accessibleArts)),
- EDITOR_ID);
- }
- if (accessControlFilteredResults) {
- AWorkbench.popup("ERROR", "Some Artifacts not loaded due to access control limitations.");
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- }, options.contains(TableLoadOption.ForcePend));
- }
-
- public static void editArtifact(final Artifact artifact, TableLoadOption... tableLoadOptions) {
- editArtifacts("", Arrays.asList(artifact));
- }
-
- public void createTaskActionBar(Composite parent) {
-
- // Button composite for state transitions, etc
- Composite bComp = new Composite(parent, SWT.NONE);
- // bComp.setBackground(mainSComp.getDisplay().getSystemColor(SWT.COLOR_CYAN));
- bComp.setLayout(ALayout.getZeroMarginLayout(2, false));
- bComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- Composite leftComp = new Composite(bComp, SWT.NONE);
- leftComp.setLayout(new GridLayout());
- leftComp.setLayoutData(new GridData(GridData.BEGINNING | GridData.FILL_HORIZONTAL));
-
- branchLabel = new Label(leftComp, SWT.NONE);
- branchLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- Composite rightComp = new Composite(bComp, SWT.NONE);
- rightComp.setLayout(new GridLayout());
- rightComp.setLayoutData(new GridData(GridData.END));
-
- toolBar = new ToolBar(rightComp, SWT.FLAT | SWT.RIGHT);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- toolBar.setLayoutData(gd);
- ToolItem item = null;
-
- item = new ToolItem(toolBar, SWT.PUSH);
- item.setImage(ImageManager.getImage(PluginUiImage.REFRESH));
- item.setToolTipText("Refresh");
- item.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- xViewer.refresh();
- }
- });
-
- OseeUiActions.addButtonToEditorToolBar(this, SkynetGuiPlugin.getInstance(), toolBar, EDITOR_ID,
- "Mass Artifact Editor");
- }
-
- public static void editArtifacts(final MassArtifactEditorInput input) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- IWorkbenchPage page = AWorkbench.getActivePage();
- try {
- page.openEditor(input, EDITOR_ID);
- } catch (PartInitException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- });
-
- }
-
- @Override
- public boolean isSaveOnCloseNeeded() {
- return isDirty();
- }
-
- @Override
- public void dispose() {
- super.dispose();
-
- for (Artifact taskArt : xViewer.getArtifacts()) {
- try {
- if (taskArt != null && !taskArt.isDeleted() && taskArt.hasDirtyAttributes()) {
- taskArt.reloadAttributesAndRelations();
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- public ArrayList<Artifact> getLoadedArtifacts() {
- return xViewer.getLoadedArtifacts();
- }
-
- @Override
- public boolean isDirty() {
- for (Artifact taskArt : xViewer.getArtifacts()) {
- if (!taskArt.isDeleted() && taskArt.hasDirtyAttributes()) {
- return true;
- }
- }
- return false;
- }
-
- @Override
- public String toString() {
- return "MassArtifactEditor";
- }
-
- @Override
- protected void addPages() {
- IEditorInput editorInput = getEditorInput();
- if (!(editorInput instanceof MassArtifactEditorInput)) {
- throw new IllegalArgumentException("Editor Input not TaskEditorInput");
- }
-
- if (((MassArtifactEditorInput) editorInput).getName().equals("")) {
- setPartName("Mass Artifact Editor");
- } else {
- setPartName(((MassArtifactEditorInput) editorInput).getName());
- }
-
- SkynetGuiPlugin.getInstance().setHelp(getContainer(), "mass_artifact_editor",
- "org.eclipse.osee.framework.help.ui");
-
- Composite comp = new Composite(getContainer(), SWT.NONE);
- comp.setLayout(new GridLayout(1, true));
- comp.setLayoutData(new GridData(GridData.FILL_BOTH));
-
- createTaskActionBar(comp);
-
- xViewer = new MassXViewer(comp, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION, this);
- xViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
- xViewer.setContentProvider(new org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassContentProvider(
- xViewer));
- xViewer.setLabelProvider(new org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassLabelProvider(xViewer));
- branchLabel.setText("Branch: " + (getBranch() == null ? "No Artifacts Returned" : getBranch().getShortName()));
- artifactsPageIndex = addPage(comp);
- setPageText(artifactsPageIndex, "Artifacts");
-
- new ActionContributionItem(xViewer.getCustomizeAction()).fill(toolBar, -1);
-
- Tree tree = xViewer.getTree();
- GridData gridData = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL | GridData.GRAB_HORIZONTAL);
- tree.setLayoutData(gridData);
- tree.setHeaderVisible(true);
- tree.setLinesVisible(true);
-
- setActivePage(artifactsPageIndex);
- try {
- xViewer.set(((MassArtifactEditorInput) editorInput).getArtifacts());
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- public Branch getBranch() {
- if (((MassArtifactEditorInput) getEditorInput()).getArtifacts().isEmpty()) {
- return null;
- }
- return ((MassArtifactEditorInput) getEditorInput()).getArtifacts().iterator().next().getBranch();
- }
-
- @Override
- public void onDirtied() {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- firePropertyChange(PROP_DIRTY);
- }
- });
- }
-
- public String getCurrentStateName() {
- return "";
- }
-
- public IDirtiableEditor getEditor() {
- return this;
- }
-
- public boolean isArtifactsEditable() {
- return true;
- }
-
- /**
- * @return the artifacts
- */
- public Collection<? extends Artifact> getArtifacts() {
- return xViewer.getArtifacts();
- }
-
- @Override
- public String getActionDescription() {
- return "";
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.massEditor;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jface.action.ActionContributionItem;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.plugin.core.IActionable;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
+import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
+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.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.AbstractArtifactEditor;
+import org.eclipse.osee.framework.ui.swt.ALayout;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+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.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.ToolBar;
+import org.eclipse.swt.widgets.ToolItem;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class MassArtifactEditor extends AbstractArtifactEditor implements IActionable {
+ public static final String EDITOR_ID = "org.eclipse.osee.framework.ui.skynet.massEditor.MassArtifactEditor";
+ private int artifactsPageIndex;
+ private MassXViewer xViewer;
+ private Label branchLabel;
+ private ToolBar toolBar;
+
+ /**
+ * @return the xViewer
+ */
+ public MassXViewer getXViewer() {
+ return xViewer;
+ }
+
+ @Override
+ public void doSave(IProgressMonitor monitor) {
+ try {
+ Artifacts.persistInTransaction(xViewer.getArtifacts());
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ onDirtied();
+ }
+
+ public static void editArtifacts(final String name, final Collection<? extends Artifact> artifacts, TableLoadOption... tableLoadOptions) {
+ Set<TableLoadOption> options = new HashSet<TableLoadOption>();
+ options.addAll(Arrays.asList(tableLoadOptions));
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ boolean accessControlFilteredResults = false;
+ try {
+ Set<Artifact> accessibleArts = new HashSet<Artifact>();
+ for (Artifact artifact : artifacts) {
+ if (!AccessControlManager.hasPermission(artifact, PermissionEnum.READ)) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
+ "The user " + UserManager.getUser() + " does not have read access to " + artifact);
+ accessControlFilteredResults = true;
+ } else {
+ accessibleArts.add(artifact);
+ }
+ }
+ if (accessibleArts.isEmpty()) {
+ AWorkbench.popup("ERROR", "No Artifacts to edit");
+ } else {
+ AWorkbench.getActivePage().openEditor(
+ new MassArtifactEditorInput(name, accessibleArts, new MassXViewerFactory(accessibleArts)),
+ EDITOR_ID);
+ }
+ if (accessControlFilteredResults) {
+ AWorkbench.popup("ERROR", "Some Artifacts not loaded due to access control limitations.");
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }, options.contains(TableLoadOption.ForcePend));
+ }
+
+ public static void editArtifact(final Artifact artifact, TableLoadOption... tableLoadOptions) {
+ editArtifacts("", Arrays.asList(artifact));
+ }
+
+ public void createTaskActionBar(Composite parent) {
+
+ // Button composite for state transitions, etc
+ Composite bComp = new Composite(parent, SWT.NONE);
+ // bComp.setBackground(mainSComp.getDisplay().getSystemColor(SWT.COLOR_CYAN));
+ bComp.setLayout(ALayout.getZeroMarginLayout(2, false));
+ bComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ Composite leftComp = new Composite(bComp, SWT.NONE);
+ leftComp.setLayout(new GridLayout());
+ leftComp.setLayoutData(new GridData(GridData.BEGINNING | GridData.FILL_HORIZONTAL));
+
+ branchLabel = new Label(leftComp, SWT.NONE);
+ branchLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ Composite rightComp = new Composite(bComp, SWT.NONE);
+ rightComp.setLayout(new GridLayout());
+ rightComp.setLayoutData(new GridData(GridData.END));
+
+ toolBar = new ToolBar(rightComp, SWT.FLAT | SWT.RIGHT);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ toolBar.setLayoutData(gd);
+ ToolItem item = null;
+
+ item = new ToolItem(toolBar, SWT.PUSH);
+ item.setImage(ImageManager.getImage(PluginUiImage.REFRESH));
+ item.setToolTipText("Refresh");
+ item.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ xViewer.refresh();
+ }
+ });
+
+ OseeUiActions.addButtonToEditorToolBar(this, SkynetGuiPlugin.getInstance(), toolBar, EDITOR_ID,
+ "Mass Artifact Editor");
+ }
+
+ public static void editArtifacts(final MassArtifactEditorInput input) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ IWorkbenchPage page = AWorkbench.getActivePage();
+ try {
+ page.openEditor(input, EDITOR_ID);
+ } catch (PartInitException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ });
+
+ }
+
+ @Override
+ public boolean isSaveOnCloseNeeded() {
+ return isDirty();
+ }
+
+ @Override
+ public void dispose() {
+ super.dispose();
+
+ for (Artifact taskArt : xViewer.getArtifacts()) {
+ try {
+ if (taskArt != null && !taskArt.isDeleted() && taskArt.hasDirtyAttributes()) {
+ taskArt.reloadAttributesAndRelations();
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ public ArrayList<Artifact> getLoadedArtifacts() {
+ return xViewer.getLoadedArtifacts();
+ }
+
+ @Override
+ public boolean isDirty() {
+ for (Artifact taskArt : xViewer.getArtifacts()) {
+ if (!taskArt.isDeleted() && taskArt.hasDirtyAttributes()) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public String toString() {
+ return "MassArtifactEditor";
+ }
+
+ @Override
+ protected void addPages() {
+ IEditorInput editorInput = getEditorInput();
+ if (!(editorInput instanceof MassArtifactEditorInput)) {
+ throw new IllegalArgumentException("Editor Input not TaskEditorInput");
+ }
+
+ if (((MassArtifactEditorInput) editorInput).getName().equals("")) {
+ setPartName("Mass Artifact Editor");
+ } else {
+ setPartName(((MassArtifactEditorInput) editorInput).getName());
+ }
+
+ SkynetGuiPlugin.getInstance().setHelp(getContainer(), "mass_artifact_editor",
+ "org.eclipse.osee.framework.help.ui");
+
+ Composite comp = new Composite(getContainer(), SWT.NONE);
+ comp.setLayout(new GridLayout(1, true));
+ comp.setLayoutData(new GridData(GridData.FILL_BOTH));
+
+ createTaskActionBar(comp);
+
+ xViewer = new MassXViewer(comp, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION, this);
+ xViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
+ xViewer.setContentProvider(new org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassContentProvider(
+ xViewer));
+ xViewer.setLabelProvider(new org.eclipse.osee.framework.ui.skynet.artifact.massEditor.MassLabelProvider(xViewer));
+ branchLabel.setText("Branch: " + (getBranch() == null ? "No Artifacts Returned" : getBranch().getShortName()));
+ artifactsPageIndex = addPage(comp);
+ setPageText(artifactsPageIndex, "Artifacts");
+
+ new ActionContributionItem(xViewer.getCustomizeAction()).fill(toolBar, -1);
+
+ Tree tree = xViewer.getTree();
+ GridData gridData = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL | GridData.GRAB_HORIZONTAL);
+ tree.setLayoutData(gridData);
+ tree.setHeaderVisible(true);
+ tree.setLinesVisible(true);
+
+ setActivePage(artifactsPageIndex);
+ try {
+ xViewer.set(((MassArtifactEditorInput) editorInput).getArtifacts());
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ public Branch getBranch() {
+ if (((MassArtifactEditorInput) getEditorInput()).getArtifacts().isEmpty()) {
+ return null;
+ }
+ return ((MassArtifactEditorInput) getEditorInput()).getArtifacts().iterator().next().getBranch();
+ }
+
+ @Override
+ public void onDirtied() {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ firePropertyChange(PROP_DIRTY);
+ }
+ });
+ }
+
+ public String getCurrentStateName() {
+ return "";
+ }
+
+ public IDirtiableEditor getEditor() {
+ return this;
+ }
+
+ public boolean isArtifactsEditable() {
+ return true;
+ }
+
+ /**
+ * @return the artifacts
+ */
+ public Collection<? extends Artifact> getArtifacts() {
+ return xViewer.getArtifacts();
+ }
+
+ @Override
+ public String getActionDescription() {
+ return "";
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.java
index c668c3f650a..e288bb0762d 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewer.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.framework.ui.skynet.artifact.massEditor;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-import org.eclipse.nebula.widgets.xviewer.XViewer;
-import org.eclipse.osee.framework.core.data.IAttributeType;
-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.skynet.core.artifact.ArtifactData;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
-import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
-import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
-import org.eclipse.osee.framework.skynet.core.event.Sender;
-import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactPromptChange;
-import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactTransfer;
-import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
-import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.DragSource;
-import org.eclipse.swt.dnd.DragSourceEvent;
-import org.eclipse.swt.dnd.DragSourceListener;
-import org.eclipse.swt.dnd.DropTarget;
-import org.eclipse.swt.dnd.DropTargetAdapter;
-import org.eclipse.swt.dnd.DropTargetEvent;
-import org.eclipse.swt.dnd.FileTransfer;
-import org.eclipse.swt.dnd.TextTransfer;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.events.DisposeEvent;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TreeColumn;
-import org.eclipse.swt.widgets.TreeItem;
-
-/**
- * <REM2> new handled in MassXViewerEventManager
- *
- * @author Donald G. Dunne
- */
-public class MassXViewer extends XViewer implements IMassViewerEventHandler, IFrameworkTransactionEventListener, IArtifactsPurgedEventListener, IArtifactsChangeTypeEventListener {
-
- private String title;
- private final Set<Artifact> artifacts = new HashSet<Artifact>(50);
- private final IDirtiableEditor editor;
- private final List<String> EXTRA_COLUMNS = Arrays.asList(new String[] {"GUID", "HRID", "Artifact Type"});
- private final Composite parent;
-
- public MassXViewer(Composite parent, int style, MassArtifactEditor editor) {
- super(parent, style, ((MassArtifactEditorInput) editor.getEditorInput()).getXViewerFactory());
- this.parent = parent;
- this.editor = editor;
- OseeEventManager.addListener(this);
- MassXViewerEventManager.add(this);
- final MassXViewer fMassXViewer = this;
- parent.addDisposeListener(new DisposeListener() {
-
- @Override
- public void widgetDisposed(DisposeEvent e) {
- MassXViewerEventManager.remove(fMassXViewer);
- }
- });
- }
-
- @Override
- public void handleColumnMultiEdit(TreeColumn treeColumn, Collection<TreeItem> treeItems) {
- String colName = treeColumn.getText();
- Set<Artifact> artifacts = new HashSet<Artifact>();
- for (TreeItem item : treeItems) {
- artifacts.add((Artifact) item.getData());
- }
- try {
- IAttributeType attributeType = AttributeTypeManager.getType(colName);
- if (ArtifactPromptChange.promptChangeAttribute(attributeType, artifacts, false)) {
- refresh();
- editor.onDirtied();
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- @Override
- public boolean isColumnMultiEditable(TreeColumn treeColumn, Collection<TreeItem> treeItems) {
- if (EXTRA_COLUMNS.contains(treeColumn.getText())) {
- return false;
- }
- return super.isColumnMultiEditable(treeColumn, treeItems);
- }
-
- @Override
- public boolean isColumnMultiEditEnabled() {
- return true;
- }
-
- @Override
- public boolean handleAltLeftClick(TreeColumn treeColumn, TreeItem treeItem) {
- super.handleAltLeftClick(treeColumn, treeItem);
- String colName = treeColumn.getText();
- if (EXTRA_COLUMNS.contains(colName)) {
- AWorkbench.popup("ERROR", "Can't change the field " + colName);
- }
- try {
- IAttributeType attributeType = AttributeTypeManager.getType(colName);
- Artifact useArt = (Artifact) treeItem.getData();
- boolean persist = false;
- if (ArtifactPromptChange.promptChangeAttribute(attributeType, Arrays.asList(useArt), persist)) {
- refresh();
- editor.onDirtied();
- return true;
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- return false;
- }
-
- @Override
- protected void createSupportWidgets(Composite parent) {
- super.createSupportWidgets(parent);
- setupDragAndDropSupport();
- }
-
- private void setupDragAndDropSupport() {
-
- // Do not allow drag if artifacts in this table are not on same branch as default branch
- DragSource source = new DragSource(getTree(), DND.DROP_COPY);
- source.setTransfer(new Transfer[] {ArtifactTransfer.getInstance()});
- source.addDragListener(new DragSourceListener() {
- @Override
- public void dragFinished(DragSourceEvent event) {
- refresh();
- }
-
- @Override
- public void dragSetData(DragSourceEvent event) {
- Collection<Artifact> arts = getSelectedArtifacts();
- if (arts.size() > 0) {
- event.data = new ArtifactData(arts.toArray(new Artifact[arts.size()]), "", MassArtifactEditor.EDITOR_ID);
-
- }
- }
-
- @Override
- public void dragStart(DragSourceEvent event) {
- event.doit = false;
- Collection<Artifact> arts = getSelectedArtifacts();
- if (arts.size() > 0) {
- event.doit = true;
- }
- }
- });
-
- // Do not allow drop if default branch is not same as artifacts that reside in this table
- DropTarget target = new DropTarget(getTree(), DND.DROP_COPY);
- target.setTransfer(new Transfer[] {FileTransfer.getInstance(), TextTransfer.getInstance(),
- ArtifactTransfer.getInstance()});
- target.addDropListener(new DropTargetAdapter() {
-
- @Override
- public void drop(DropTargetEvent event) {
- performDrop(event);
- }
-
- @Override
- public void dragOver(DropTargetEvent event) {
- // if ((event.data instanceof ArtifactData) && ((ArtifactData)
- // event.data).getArtifacts().length > 0)
- event.detail = DND.DROP_COPY;
- }
-
- @Override
- public void dropAccept(DropTargetEvent event) {
- // do nothing
- }
- });
- }
-
- private void performDrop(DropTargetEvent e) {
- try {
- if (e.data instanceof ArtifactData) {
- Artifact[] artsToAdd = ((ArtifactData) e.data).getArtifacts();
- add(Arrays.asList(artsToAdd));
- }
- refresh();
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- @Override
- public void handleDoubleClick() {
- if (getSelectedArtifacts().isEmpty()) {
- return;
- }
- RendererManager.openInJob(getSelectedArtifacts(), PresentationType.DEFAULT_OPEN);
- }
-
- public ArrayList<Artifact> getLoadedArtifacts() {
- ArrayList<Artifact> arts = new ArrayList<Artifact>();
- TreeItem items[] = getTree().getItems();
- if (items.length > 0) {
- for (TreeItem item : items) {
- arts.add((Artifact) item.getData());
- }
- }
- return arts;
- }
-
- @Override
- public void dispose() {
- OseeEventManager.removeListener(this);
- MassXViewerEventManager.remove(this);
- // Tell the label provider to release its resources
- getLabelProvider().dispose();
- }
-
- public ArrayList<Artifact> getSelectedArtifacts() {
- ArrayList<Artifact> arts = new ArrayList<Artifact>();
- TreeItem items[] = getTree().getSelection();
- if (items.length > 0) {
- for (TreeItem item : items) {
- arts.add((Artifact) item.getData());
- }
- }
- return arts;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void add(Collection<? extends Artifact> artifacts) {
- if (xViewerFactory instanceof MassXViewerFactory) {
- ((MassXViewerFactory) xViewerFactory).registerAllAttributeColumnsForArtifacts(artifacts, true, true);
- }
- for (Artifact art : artifacts) {
- this.artifacts.add(art);
- }
- ((MassContentProvider) getContentProvider()).add(artifacts);
- }
-
- public void set(Collection<? extends Artifact> artifacts) {
- if (xViewerFactory instanceof MassXViewerFactory) {
- ((MassXViewerFactory) xViewerFactory).registerAllAttributeColumnsForArtifacts(artifacts, true, true);
- }
- this.artifacts.clear();
- for (Artifact art : artifacts) {
- this.artifacts.add(art);
- }
- ((MassContentProvider) getContentProvider()).set(artifacts);
- }
-
- public Collection<? extends Artifact> getArtifacts() {
- return artifacts;
- }
-
- @Override
- public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (getTree() == null || getTree().isDisposed()) {
- dispose();
- return;
- }
- if (transData.cacheDeletedArtifacts.size() > 0) {
- ((MassContentProvider) getContentProvider()).removeAllArts(transData.cacheDeletedArtifacts);
- }
- if (transData.cacheChangedArtifacts.size() > 0) {
- ((MassContentProvider) getContentProvider()).updateAll(transData.cacheChangedArtifacts);
- }
- refresh(transData.cacheRelationAddedArtifacts);
- refresh(transData.cacheRelationChangedArtifacts);
- refresh(transData.cacheRelationDeletedArtifacts);
- }
- });
- }
-
- @Override
- public void handleArtifactsPurgedEvent(Sender sender, final LoadedArtifacts loadedArtifacts) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- if (getTree() != null && !getTree().isDisposed()) {
- remove(loadedArtifacts.getLoadedArtifacts().toArray());
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- @Override
- public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- remove(loadedArtifacts.getLoadedArtifacts().toArray());
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- @Override
- public MassXViewer getMassXViewer() {
- return this;
- }
-
- @Override
- public boolean isDisposed() {
- return parent == null || parent.isDisposed();
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.massEditor;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.logging.Level;
+import org.eclipse.nebula.widgets.xviewer.XViewer;
+import org.eclipse.osee.framework.core.data.IAttributeType;
+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.skynet.core.artifact.ArtifactData;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.skynet.core.event.FrameworkTransactionData;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsChangeTypeEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IArtifactsPurgedEventListener;
+import org.eclipse.osee.framework.skynet.core.event.IFrameworkTransactionEventListener;
+import org.eclipse.osee.framework.skynet.core.event.OseeEventManager;
+import org.eclipse.osee.framework.skynet.core.event.Sender;
+import org.eclipse.osee.framework.skynet.core.utility.LoadedArtifacts;
+import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactPromptChange;
+import org.eclipse.osee.framework.ui.skynet.artifact.ArtifactTransfer;
+import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
+import org.eclipse.osee.framework.ui.skynet.render.RendererManager;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.IDirtiableEditor;
+import org.eclipse.swt.dnd.DND;
+import org.eclipse.swt.dnd.DragSource;
+import org.eclipse.swt.dnd.DragSourceEvent;
+import org.eclipse.swt.dnd.DragSourceListener;
+import org.eclipse.swt.dnd.DropTarget;
+import org.eclipse.swt.dnd.DropTargetAdapter;
+import org.eclipse.swt.dnd.DropTargetEvent;
+import org.eclipse.swt.dnd.FileTransfer;
+import org.eclipse.swt.dnd.TextTransfer;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.TreeColumn;
+import org.eclipse.swt.widgets.TreeItem;
+
+/**
+ * <REM2> new handled in MassXViewerEventManager
+ *
+ * @author Donald G. Dunne
+ */
+public class MassXViewer extends XViewer implements IMassViewerEventHandler, IFrameworkTransactionEventListener, IArtifactsPurgedEventListener, IArtifactsChangeTypeEventListener {
+
+ private String title;
+ private final Set<Artifact> artifacts = new HashSet<Artifact>(50);
+ private final IDirtiableEditor editor;
+ private final List<String> EXTRA_COLUMNS = Arrays.asList(new String[] {"GUID", "HRID", "Artifact Type"});
+ private final Composite parent;
+
+ public MassXViewer(Composite parent, int style, MassArtifactEditor editor) {
+ super(parent, style, ((MassArtifactEditorInput) editor.getEditorInput()).getXViewerFactory());
+ this.parent = parent;
+ this.editor = editor;
+ OseeEventManager.addListener(this);
+ MassXViewerEventManager.add(this);
+ final MassXViewer fMassXViewer = this;
+ parent.addDisposeListener(new DisposeListener() {
+
+ @Override
+ public void widgetDisposed(DisposeEvent e) {
+ MassXViewerEventManager.remove(fMassXViewer);
+ }
+ });
+ }
+
+ @Override
+ public void handleColumnMultiEdit(TreeColumn treeColumn, Collection<TreeItem> treeItems) {
+ String colName = treeColumn.getText();
+ Set<Artifact> artifacts = new HashSet<Artifact>();
+ for (TreeItem item : treeItems) {
+ artifacts.add((Artifact) item.getData());
+ }
+ try {
+ IAttributeType attributeType = AttributeTypeManager.getType(colName);
+ if (ArtifactPromptChange.promptChangeAttribute(attributeType, artifacts, false)) {
+ refresh();
+ editor.onDirtied();
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ @Override
+ public boolean isColumnMultiEditable(TreeColumn treeColumn, Collection<TreeItem> treeItems) {
+ if (EXTRA_COLUMNS.contains(treeColumn.getText())) {
+ return false;
+ }
+ return super.isColumnMultiEditable(treeColumn, treeItems);
+ }
+
+ @Override
+ public boolean isColumnMultiEditEnabled() {
+ return true;
+ }
+
+ @Override
+ public boolean handleAltLeftClick(TreeColumn treeColumn, TreeItem treeItem) {
+ super.handleAltLeftClick(treeColumn, treeItem);
+ String colName = treeColumn.getText();
+ if (EXTRA_COLUMNS.contains(colName)) {
+ AWorkbench.popup("ERROR", "Can't change the field " + colName);
+ }
+ try {
+ IAttributeType attributeType = AttributeTypeManager.getType(colName);
+ Artifact useArt = (Artifact) treeItem.getData();
+ boolean persist = false;
+ if (ArtifactPromptChange.promptChangeAttribute(attributeType, Arrays.asList(useArt), persist)) {
+ refresh();
+ editor.onDirtied();
+ return true;
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ return false;
+ }
+
+ @Override
+ protected void createSupportWidgets(Composite parent) {
+ super.createSupportWidgets(parent);
+ setupDragAndDropSupport();
+ }
+
+ private void setupDragAndDropSupport() {
+
+ // Do not allow drag if artifacts in this table are not on same branch as default branch
+ DragSource source = new DragSource(getTree(), DND.DROP_COPY);
+ source.setTransfer(new Transfer[] {ArtifactTransfer.getInstance()});
+ source.addDragListener(new DragSourceListener() {
+ @Override
+ public void dragFinished(DragSourceEvent event) {
+ refresh();
+ }
+
+ @Override
+ public void dragSetData(DragSourceEvent event) {
+ Collection<Artifact> arts = getSelectedArtifacts();
+ if (arts.size() > 0) {
+ event.data = new ArtifactData(arts.toArray(new Artifact[arts.size()]), "", MassArtifactEditor.EDITOR_ID);
+
+ }
+ }
+
+ @Override
+ public void dragStart(DragSourceEvent event) {
+ event.doit = false;
+ Collection<Artifact> arts = getSelectedArtifacts();
+ if (arts.size() > 0) {
+ event.doit = true;
+ }
+ }
+ });
+
+ // Do not allow drop if default branch is not same as artifacts that reside in this table
+ DropTarget target = new DropTarget(getTree(), DND.DROP_COPY);
+ target.setTransfer(new Transfer[] {FileTransfer.getInstance(), TextTransfer.getInstance(),
+ ArtifactTransfer.getInstance()});
+ target.addDropListener(new DropTargetAdapter() {
+
+ @Override
+ public void drop(DropTargetEvent event) {
+ performDrop(event);
+ }
+
+ @Override
+ public void dragOver(DropTargetEvent event) {
+ // if ((event.data instanceof ArtifactData) && ((ArtifactData)
+ // event.data).getArtifacts().length > 0)
+ event.detail = DND.DROP_COPY;
+ }
+
+ @Override
+ public void dropAccept(DropTargetEvent event) {
+ // do nothing
+ }
+ });
+ }
+
+ private void performDrop(DropTargetEvent e) {
+ try {
+ if (e.data instanceof ArtifactData) {
+ Artifact[] artsToAdd = ((ArtifactData) e.data).getArtifacts();
+ add(Arrays.asList(artsToAdd));
+ }
+ refresh();
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ @Override
+ public void handleDoubleClick() {
+ if (getSelectedArtifacts().isEmpty()) {
+ return;
+ }
+ RendererManager.openInJob(getSelectedArtifacts(), PresentationType.DEFAULT_OPEN);
+ }
+
+ public ArrayList<Artifact> getLoadedArtifacts() {
+ ArrayList<Artifact> arts = new ArrayList<Artifact>();
+ TreeItem items[] = getTree().getItems();
+ if (items.length > 0) {
+ for (TreeItem item : items) {
+ arts.add((Artifact) item.getData());
+ }
+ }
+ return arts;
+ }
+
+ @Override
+ public void dispose() {
+ OseeEventManager.removeListener(this);
+ MassXViewerEventManager.remove(this);
+ // Tell the label provider to release its resources
+ getLabelProvider().dispose();
+ }
+
+ public ArrayList<Artifact> getSelectedArtifacts() {
+ ArrayList<Artifact> arts = new ArrayList<Artifact>();
+ TreeItem items[] = getTree().getSelection();
+ if (items.length > 0) {
+ for (TreeItem item : items) {
+ arts.add((Artifact) item.getData());
+ }
+ }
+ return arts;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void add(Collection<? extends Artifact> artifacts) {
+ if (xViewerFactory instanceof MassXViewerFactory) {
+ ((MassXViewerFactory) xViewerFactory).registerAllAttributeColumnsForArtifacts(artifacts, true, true);
+ }
+ for (Artifact art : artifacts) {
+ this.artifacts.add(art);
+ }
+ ((MassContentProvider) getContentProvider()).add(artifacts);
+ }
+
+ public void set(Collection<? extends Artifact> artifacts) {
+ if (xViewerFactory instanceof MassXViewerFactory) {
+ ((MassXViewerFactory) xViewerFactory).registerAllAttributeColumnsForArtifacts(artifacts, true, true);
+ }
+ this.artifacts.clear();
+ for (Artifact art : artifacts) {
+ this.artifacts.add(art);
+ }
+ ((MassContentProvider) getContentProvider()).set(artifacts);
+ }
+
+ public Collection<? extends Artifact> getArtifacts() {
+ return artifacts;
+ }
+
+ @Override
+ public void handleFrameworkTransactionEvent(Sender sender, final FrameworkTransactionData transData) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (getTree() == null || getTree().isDisposed()) {
+ dispose();
+ return;
+ }
+ if (transData.cacheDeletedArtifacts.size() > 0) {
+ ((MassContentProvider) getContentProvider()).removeAllArts(transData.cacheDeletedArtifacts);
+ }
+ if (transData.cacheChangedArtifacts.size() > 0) {
+ ((MassContentProvider) getContentProvider()).updateAll(transData.cacheChangedArtifacts);
+ }
+ refresh(transData.cacheRelationAddedArtifacts);
+ refresh(transData.cacheRelationChangedArtifacts);
+ refresh(transData.cacheRelationDeletedArtifacts);
+ }
+ });
+ }
+
+ @Override
+ public void handleArtifactsPurgedEvent(Sender sender, final LoadedArtifacts loadedArtifacts) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ if (getTree() != null && !getTree().isDisposed()) {
+ remove(loadedArtifacts.getLoadedArtifacts().toArray());
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ @Override
+ public void handleArtifactsChangeTypeEvent(Sender sender, int toArtifactTypeId, final LoadedArtifacts loadedArtifacts) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ remove(loadedArtifacts.getLoadedArtifacts().toArray());
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ @Override
+ public MassXViewer getMassXViewer() {
+ return this;
+ }
+
+ @Override
+ public boolean isDisposed() {
+ return parent == null || parent.isDisposed();
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerEventManager.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerEventManager.java
index 84010701a67..a9afaa835d6 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerEventManager.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerEventManager.java
@@ -8,8 +8,8 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.artifact.massEditor;
-
+package org.eclipse.osee.framework.ui.skynet.artifact.massEditor;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
@@ -24,84 +24,84 @@ import org.eclipse.osee.framework.skynet.core.event2.artifact.EventModType;
import org.eclipse.osee.framework.skynet.core.event2.artifact.IArtifactEventListener;
import org.eclipse.osee.framework.skynet.core.event2.filter.IEventFilter;
import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * Common location for event handling for mass editor in order to keep number of registrations and processing to a
- * minimum.
- *
- * @author Donald G. Dunne
- */
-public class MassXViewerEventManager implements IArtifactEventListener {
-
- List<IMassViewerEventHandler> handlers = new ArrayList<IMassViewerEventHandler>();
- static MassXViewerEventManager instance;
-
- public static void add(IMassViewerEventHandler iWorldEventHandler) {
- if (instance == null) {
- instance = new MassXViewerEventManager();
- OseeEventManager.addListener(instance);
- }
- instance.handlers.add(iWorldEventHandler);
- }
-
- public static void remove(IMassViewerEventHandler iWorldEventHandler) {
- if (instance != null) {
- instance.handlers.remove(iWorldEventHandler);
- }
- }
-
- @Override
- public void handleArtifactEvent(final ArtifactEvent artifactEvent, Sender sender) {
- for (IMassViewerEventHandler handler : new CopyOnWriteArrayList<IMassViewerEventHandler>(handlers)) {
- if (handler.isDisposed()) {
- handlers.remove(handler);
- }
- }
-
- final Collection<Artifact> modifiedArts =
- artifactEvent.getCacheArtifacts(EventModType.Modified, EventModType.Reloaded);
- final Collection<Artifact> relModifiedArts = artifactEvent.getRelCacheArtifacts();
- final Collection<EventBasicGuidArtifact> deletedPurgedArts =
- artifactEvent.get(EventModType.Deleted, EventModType.Purged);
-
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (!deletedPurgedArts.isEmpty()) {
- for (IMassViewerEventHandler handler : handlers) {
- if (!handler.isDisposed()) {
- IContentProvider contentProvider = handler.getMassXViewer().getContentProvider();
- // remove from UI
- if (contentProvider instanceof MassContentProvider) {
- ((MassContentProvider) contentProvider).removeAll(deletedPurgedArts);
- }
- }
- }
- }
- for (IMassViewerEventHandler handler : handlers) {
- if (!handler.isDisposed()) {
- IContentProvider contentProvider = handler.getMassXViewer().getContentProvider();
- // remove from UI
- if (contentProvider instanceof MassContentProvider) {
- ((MassContentProvider) contentProvider).updateAll(modifiedArts);
- }
- }
-
- for (Artifact art : relModifiedArts) {
- // Don't refresh deleted artifacts
- if (art.isDeleted()) {
- continue;
- }
- handler.getMassXViewer().refresh(art);
- }
- }
- }
- });
- }
-
- @Override
- public List<? extends IEventFilter> getEventFilters() {
- return null;
- }
-
-}
+
+/**
+ * Common location for event handling for mass editor in order to keep number of registrations and processing to a
+ * minimum.
+ *
+ * @author Donald G. Dunne
+ */
+public class MassXViewerEventManager implements IArtifactEventListener {
+
+ List<IMassViewerEventHandler> handlers = new ArrayList<IMassViewerEventHandler>();
+ static MassXViewerEventManager instance;
+
+ public static void add(IMassViewerEventHandler iWorldEventHandler) {
+ if (instance == null) {
+ instance = new MassXViewerEventManager();
+ OseeEventManager.addListener(instance);
+ }
+ instance.handlers.add(iWorldEventHandler);
+ }
+
+ public static void remove(IMassViewerEventHandler iWorldEventHandler) {
+ if (instance != null) {
+ instance.handlers.remove(iWorldEventHandler);
+ }
+ }
+
+ @Override
+ public void handleArtifactEvent(final ArtifactEvent artifactEvent, Sender sender) {
+ for (IMassViewerEventHandler handler : new CopyOnWriteArrayList<IMassViewerEventHandler>(handlers)) {
+ if (handler.isDisposed()) {
+ handlers.remove(handler);
+ }
+ }
+
+ final Collection<Artifact> modifiedArts =
+ artifactEvent.getCacheArtifacts(EventModType.Modified, EventModType.Reloaded);
+ final Collection<Artifact> relModifiedArts = artifactEvent.getRelCacheArtifacts();
+ final Collection<EventBasicGuidArtifact> deletedPurgedArts =
+ artifactEvent.get(EventModType.Deleted, EventModType.Purged);
+
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (!deletedPurgedArts.isEmpty()) {
+ for (IMassViewerEventHandler handler : handlers) {
+ if (!handler.isDisposed()) {
+ IContentProvider contentProvider = handler.getMassXViewer().getContentProvider();
+ // remove from UI
+ if (contentProvider instanceof MassContentProvider) {
+ ((MassContentProvider) contentProvider).removeAll(deletedPurgedArts);
+ }
+ }
+ }
+ }
+ for (IMassViewerEventHandler handler : handlers) {
+ if (!handler.isDisposed()) {
+ IContentProvider contentProvider = handler.getMassXViewer().getContentProvider();
+ // remove from UI
+ if (contentProvider instanceof MassContentProvider) {
+ ((MassContentProvider) contentProvider).updateAll(modifiedArts);
+ }
+ }
+
+ for (Artifact art : relModifiedArts) {
+ // Don't refresh deleted artifacts
+ if (art.isDeleted()) {
+ continue;
+ }
+ handler.getMassXViewer().refresh(art);
+ }
+ }
+ }
+ });
+ }
+
+ @Override
+ public List<? extends IEventFilter> getEventFilters() {
+ return null;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerFactory.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerFactory.java
index 63945be07ad..d2ef6088970 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerFactory.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/massEditor/MassXViewerFactory.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.framework.ui.skynet.artifact.massEditor;
-
-import java.util.Collection;
-import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.SkynetXViewerFactory;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactNameColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactTypeColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerGuidColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerHridColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerLastModifiedByColumn;
-import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerLastModifiedDateColumn;
-
-/**
- * @author Donald G. Dunne
- */
-public class MassXViewerFactory extends SkynetXViewerFactory {
-
- private static String NAMESPACE = "org.eclipse.osee.framework.ui.skynet.massEditor.ArtifactXViewer";
- private static XViewerArtifactNameColumn nameCol = new XViewerArtifactNameColumn(true);
-
- public MassXViewerFactory(Collection<? extends Artifact> artifacts) {
- super(NAMESPACE);
- registerColumns(nameCol);
- registerAllAttributeColumnsForArtifacts(artifacts, true, true);
- registerColumns(new XViewerHridColumn(true));
- registerColumns(new XViewerGuidColumn(true));
- registerColumns(new XViewerArtifactTypeColumn(true));
- registerColumns(new XViewerLastModifiedDateColumn(true));
- registerColumns(new XViewerLastModifiedByColumn(true));
- }
-
- @Override
- public CustomizeData getDefaultTableCustomizeData() {
- CustomizeData custData = new CustomizeData();
- custData.getSortingData().setSortingNames(nameCol.getId());
- custData.getColumnData().setColumns(getColumns());
- custData.setNameSpace(getNamespace());
- custData.setName("Artifacts");
- return custData;
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.artifact.massEditor;
+
+import java.util.Collection;
+import org.eclipse.nebula.widgets.xviewer.customize.CustomizeData;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.SkynetXViewerFactory;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactNameColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerArtifactTypeColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerGuidColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerHridColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerLastModifiedByColumn;
+import org.eclipse.osee.framework.ui.skynet.widgets.xviewer.skynet.column.XViewerLastModifiedDateColumn;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class MassXViewerFactory extends SkynetXViewerFactory {
+
+ private static String NAMESPACE = "org.eclipse.osee.framework.ui.skynet.massEditor.ArtifactXViewer";
+ private static XViewerArtifactNameColumn nameCol = new XViewerArtifactNameColumn(true);
+
+ public MassXViewerFactory(Collection<? extends Artifact> artifacts) {
+ super(NAMESPACE);
+ registerColumns(nameCol);
+ registerAllAttributeColumnsForArtifacts(artifacts, true, true);
+ registerColumns(new XViewerHridColumn(true));
+ registerColumns(new XViewerGuidColumn(true));
+ registerColumns(new XViewerArtifactTypeColumn(true));
+ registerColumns(new XViewerLastModifiedDateColumn(true));
+ registerColumns(new XViewerLastModifiedByColumn(true));
+ }
+
+ @Override
+ public CustomizeData getDefaultTableCustomizeData() {
+ CustomizeData custData = new CustomizeData();
+ custData.getSortingData().setSortingNames(nameCol.getId());
+ custData.getColumnData().setColumns(getColumns());
+ custData.setNameSpace(getNamespace());
+ custData.setName("Artifacts");
+ return custData;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/IOseeAtsService.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/IOseeAtsService.java
index b4c98d6b8e2..511f19588d6 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/IOseeAtsService.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/IOseeAtsService.java
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.ats;
-
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-
-/**
- * @author Roberto E. Escobar
- */
-public interface IOseeAtsService {
-
- boolean isAtsAdmin();
-
- void openArtifact(Artifact artifact);
-
- void openArtifact(String guid, OseeEditor view);
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.ats;
+
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface IOseeAtsService {
+
+ boolean isAtsAdmin();
+
+ void openArtifact(Artifact artifact);
+
+ void openArtifact(String guid, OseeEditor view);
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/OseeEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/OseeEditor.java
index 095dda37fde..c0ede504e81 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/OseeEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ats/OseeEditor.java
@@ -1,20 +1,20 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.ats;
-
-/**
- * @author Donald G. Dunne
- */
-public enum OseeEditor {
- ActionEditor,
- ArtifactEditor,
- ArtifactHyperViewer,
+/*******************************************************************************
+ * 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.framework.ui.skynet.ats;
+
+/**
+ * @author Donald G. Dunne
+ */
+public enum OseeEditor {
+ ActionEditor,
+ ArtifactEditor,
+ ArtifactHyperViewer,
}; \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
index e14d1623954..3595891b7e9 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
@@ -1,133 +1,133 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam;
-
-import java.io.IOException;
-import java.util.Collection;
-import java.util.List;
-import java.util.logging.Level;
-import javax.xml.parsers.ParserConfigurationException;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.database.IOseeDatabaseService;
-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.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.XWidgetParser;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.xml.sax.SAXException;
-
-/**
- * @author Ryan D. Brooks
- */
-public abstract class AbstractBlam implements IDynamicWidgetLayoutListener {
- private Appendable output;
- public static final String branchXWidgetXml =
- "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
- public static final String emptyXWidgetsXml = "<xWidgets/>";
- protected IOseeDatabaseService databaseService;
-
- public abstract void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception;
-
- /**
- * Return collection of categories that blam belongs to eg: ATS, ATS.Admin, ATS.Report. These will be used to create
- * categories that blams are put into in UI navigators. BLAM can belong in multiple categories.
- *
- * @return categories
- */
- public abstract Collection<String> getCategories();
-
- public String getXWidgetsXml() {
- return AbstractBlam.branchXWidgetXml;
- }
-
- public String getDescriptionUsage() {
- return "Select parameters below and click the play button at the top right.";
- }
-
- public String getName() {
- return getClass().getSimpleName();
- }
-
- public void setOutput(Appendable output) {
- this.output = output;
- }
-
- public void setOseeDatabaseService(IOseeDatabaseService service) {
- databaseService = service;
- }
-
- protected Appendable getOutput() {
- return output;
- }
-
- public void print(String value) {
- if (this.output != null && value != null) {
- try {
- this.output.append(value);
- } catch (IOException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
-
- public void println(String value) {
- if (Strings.isValid(value)) {
- print(value + "\n");
- }
- }
-
- public void execute(String jobName, Appendable appendable, VariableMap variableMap, JobChangeAdapter jobChangeAdapter) {
- try {
- IOperation blamOperation = new ExecuteBlamOperation(jobName, appendable, variableMap, this);
- Operations.executeAsJob(blamOperation, true, Job.LONG, jobChangeAdapter);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- @SuppressWarnings("unused")
- public List<DynamicXWidgetLayoutData> getLayoutDatas() throws IllegalArgumentException, ParserConfigurationException, SAXException, IOException, CoreException {
- return XWidgetParser.extractWorkAttributes(new DynamicXWidgetLayout(), getXWidgetsXml());
- }
-
- @SuppressWarnings("unused")
- @Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
- // provided for subclass implementation
- }
-
- @SuppressWarnings("unused")
- @Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
- // provided for subclass implementation
- }
-
- @SuppressWarnings("unused")
- @Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
- // provided for subclass implementation
- }
-
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam;
+
+import java.io.IOException;
+import java.util.Collection;
+import java.util.List;
+import java.util.logging.Level;
+import javax.xml.parsers.ParserConfigurationException;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.core.runtime.jobs.JobChangeAdapter;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.operation.IOperation;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.database.IOseeDatabaseService;
+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.artifact.Artifact;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.XWidgetParser;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.IDynamicWidgetLayoutListener;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.xml.sax.SAXException;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public abstract class AbstractBlam implements IDynamicWidgetLayoutListener {
+ private Appendable output;
+ public static final String branchXWidgetXml =
+ "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
+ public static final String emptyXWidgetsXml = "<xWidgets/>";
+ protected IOseeDatabaseService databaseService;
+
+ public abstract void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception;
+
+ /**
+ * Return collection of categories that blam belongs to eg: ATS, ATS.Admin, ATS.Report. These will be used to create
+ * categories that blams are put into in UI navigators. BLAM can belong in multiple categories.
+ *
+ * @return categories
+ */
+ public abstract Collection<String> getCategories();
+
+ public String getXWidgetsXml() {
+ return AbstractBlam.branchXWidgetXml;
+ }
+
+ public String getDescriptionUsage() {
+ return "Select parameters below and click the play button at the top right.";
+ }
+
+ public String getName() {
+ return getClass().getSimpleName();
+ }
+
+ public void setOutput(Appendable output) {
+ this.output = output;
+ }
+
+ public void setOseeDatabaseService(IOseeDatabaseService service) {
+ databaseService = service;
+ }
+
+ protected Appendable getOutput() {
+ return output;
+ }
+
+ public void print(String value) {
+ if (this.output != null && value != null) {
+ try {
+ this.output.append(value);
+ } catch (IOException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+
+ public void println(String value) {
+ if (Strings.isValid(value)) {
+ print(value + "\n");
+ }
+ }
+
+ public void execute(String jobName, Appendable appendable, VariableMap variableMap, JobChangeAdapter jobChangeAdapter) {
+ try {
+ IOperation blamOperation = new ExecuteBlamOperation(jobName, appendable, variableMap, this);
+ Operations.executeAsJob(blamOperation, true, Job.LONG, jobChangeAdapter);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ @SuppressWarnings("unused")
+ public List<DynamicXWidgetLayoutData> getLayoutDatas() throws IllegalArgumentException, ParserConfigurationException, SAXException, IOException, CoreException {
+ return XWidgetParser.extractWorkAttributes(new DynamicXWidgetLayout(), getXWidgetsXml());
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ // provided for subclass implementation
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ // provided for subclass implementation
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ // provided for subclass implementation
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamContributionManager.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamContributionManager.java
index 9d50e48ee1b..d6f48ae2fba 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamContributionManager.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamContributionManager.java
@@ -1,110 +1,110 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
-import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.widgets.xnavigate.XNavigateItemBlam;
-
-/**
- * @author Donald G. Dunne
- */
-public class BlamContributionManager {
-
- public static Collection<AbstractBlam> getBlamOperationsNameSort() {
- ArrayList<AbstractBlam> blamsSortedByName = new ArrayList<AbstractBlam>();
- Map<String, AbstractBlam> blamMap = new HashMap<String, AbstractBlam>();
- for (AbstractBlam blam : getBlamOperations()) {
- blamMap.put(blam.getName(), blam);
- }
- String names[] = blamMap.keySet().toArray(new String[blamMap.keySet().size()]);
- Arrays.sort(names);
- for (String name : names) {
- blamsSortedByName.add(blamMap.get(name));
- }
- return blamsSortedByName;
- }
-
- public static Collection<AbstractBlam> getBlamOperations() {
- ExtensionDefinedObjects<AbstractBlam> definedObjects =
- new ExtensionDefinedObjects<AbstractBlam>("org.eclipse.osee.framework.ui.skynet.BlamOperation", "Operation",
- "className");
- return definedObjects.getObjects();
- }
-
- public static void addBlamOperationsToNavigator(List<XNavigateItem> items) throws OseeCoreException {
- Map<String, XNavigateItem> nameToParent = new HashMap<String, XNavigateItem>();
- XNavigateItem blamOperationItems = new XNavigateItem(null, "Blam Operations", FrameworkImage.BLAM);
- for (AbstractBlam blamOperation : BlamContributionManager.getBlamOperationsNameSort()) {
-
- // Create categories first (so can have them up top)
- for (String category : blamOperation.getCategories()) {
- if (AccessControlManager.isOseeAdmin() || !category.contains("Admin") || category.contains("Admin") && AccessControlManager.isOseeAdmin()) {
- createCategories(category.split("\\."), 0, blamOperationItems, nameToParent);
- }
- }
- }
- // Add blams to categories
- for (AbstractBlam blamOperation : BlamContributionManager.getBlamOperationsNameSort()) {
- // If categories not specified, add to top level
- if (blamOperation.getCategories().isEmpty()) {
- new XNavigateItemBlam(blamOperationItems, blamOperation);
- }
- for (String category : blamOperation.getCategories()) {
- // Category will be null if admin category and not admin
- if (nameToParent.get(category) != null) {
- new XNavigateItemBlam(nameToParent.get(category), blamOperation);
- }
- }
- }
- items.add(blamOperationItems);
- }
-
- private static void createCategories(String[] categoryElements, int index, XNavigateItem parentItem, Map<String, XNavigateItem> nameToParent) throws OseeCoreException {
- String firstElement = categoryElements[index];
- XNavigateItem thisCategoryItem = null;
- for (XNavigateItem childItem : parentItem.getChildren()) {
- if (childItem.getName().equals(firstElement)) {
- thisCategoryItem = childItem;
- break;
- }
- }
- // Create new folder category
- if (thisCategoryItem == null) {
- // Add to parentItem
- thisCategoryItem = new XNavigateItem(parentItem, firstElement, PluginUiImage.FOLDER);
- String catName = "";
- for (int x = 0; x <= index; x++) {
- if (!catName.equals("")) {
- catName += ".";
- }
- catName += categoryElements[x];
- }
- // Add to lookup map
- nameToParent.put(catName, thisCategoryItem);
- }
- // Process children categories
- if (categoryElements.length > index + 1) {
- createCategories(categoryElements, index + 1, thisCategoryItem, nameToParent);
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
+import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
+import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.widgets.xnavigate.XNavigateItemBlam;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class BlamContributionManager {
+
+ public static Collection<AbstractBlam> getBlamOperationsNameSort() {
+ ArrayList<AbstractBlam> blamsSortedByName = new ArrayList<AbstractBlam>();
+ Map<String, AbstractBlam> blamMap = new HashMap<String, AbstractBlam>();
+ for (AbstractBlam blam : getBlamOperations()) {
+ blamMap.put(blam.getName(), blam);
+ }
+ String names[] = blamMap.keySet().toArray(new String[blamMap.keySet().size()]);
+ Arrays.sort(names);
+ for (String name : names) {
+ blamsSortedByName.add(blamMap.get(name));
+ }
+ return blamsSortedByName;
+ }
+
+ public static Collection<AbstractBlam> getBlamOperations() {
+ ExtensionDefinedObjects<AbstractBlam> definedObjects =
+ new ExtensionDefinedObjects<AbstractBlam>("org.eclipse.osee.framework.ui.skynet.BlamOperation", "Operation",
+ "className");
+ return definedObjects.getObjects();
+ }
+
+ public static void addBlamOperationsToNavigator(List<XNavigateItem> items) throws OseeCoreException {
+ Map<String, XNavigateItem> nameToParent = new HashMap<String, XNavigateItem>();
+ XNavigateItem blamOperationItems = new XNavigateItem(null, "Blam Operations", FrameworkImage.BLAM);
+ for (AbstractBlam blamOperation : BlamContributionManager.getBlamOperationsNameSort()) {
+
+ // Create categories first (so can have them up top)
+ for (String category : blamOperation.getCategories()) {
+ if (AccessControlManager.isOseeAdmin() || !category.contains("Admin") || category.contains("Admin") && AccessControlManager.isOseeAdmin()) {
+ createCategories(category.split("\\."), 0, blamOperationItems, nameToParent);
+ }
+ }
+ }
+ // Add blams to categories
+ for (AbstractBlam blamOperation : BlamContributionManager.getBlamOperationsNameSort()) {
+ // If categories not specified, add to top level
+ if (blamOperation.getCategories().isEmpty()) {
+ new XNavigateItemBlam(blamOperationItems, blamOperation);
+ }
+ for (String category : blamOperation.getCategories()) {
+ // Category will be null if admin category and not admin
+ if (nameToParent.get(category) != null) {
+ new XNavigateItemBlam(nameToParent.get(category), blamOperation);
+ }
+ }
+ }
+ items.add(blamOperationItems);
+ }
+
+ private static void createCategories(String[] categoryElements, int index, XNavigateItem parentItem, Map<String, XNavigateItem> nameToParent) throws OseeCoreException {
+ String firstElement = categoryElements[index];
+ XNavigateItem thisCategoryItem = null;
+ for (XNavigateItem childItem : parentItem.getChildren()) {
+ if (childItem.getName().equals(firstElement)) {
+ thisCategoryItem = childItem;
+ break;
+ }
+ }
+ // Create new folder category
+ if (thisCategoryItem == null) {
+ // Add to parentItem
+ thisCategoryItem = new XNavigateItem(parentItem, firstElement, PluginUiImage.FOLDER);
+ String catName = "";
+ for (int x = 0; x <= index; x++) {
+ if (!catName.equals("")) {
+ catName += ".";
+ }
+ catName += categoryElements[x];
+ }
+ // Add to lookup map
+ nameToParent.put(catName, thisCategoryItem);
+ }
+ // Process children categories
+ if (categoryElements.length > index + 1) {
+ createCategories(categoryElements, index + 1, thisCategoryItem, nameToParent);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditorActionBarContributor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditorActionBarContributor.java
index 64679802bb7..a7f059c96cf 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditorActionBarContributor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/BlamEditorActionBarContributor.java
@@ -1,79 +1,79 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
-import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.artifact.editor.IActionContributor;
-import org.eclipse.osee.framework.ui.swt.ImageManager;
-import org.eclipse.ui.IEditorSite;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BlamEditorActionBarContributor implements IActionContributor {
-
- private final BlamEditor editor;
- private Action executeBlamAction;
- private Action bugAction;
-
- public BlamEditorActionBarContributor(BlamEditor editor) {
- this.editor = editor;
- }
-
- @Override
- public void contributeToToolBar(IToolBarManager manager) {
- manager.add(getExecuteBlamAction());
- manager.add(getAtsBugAction());
- }
-
- // OseeAts.addButtonToEditorToolBar(editor, this, SkynetGuiPlugin.getInstance(), form.getToolBarManager(),
- // BlamEditor.EDITOR_ID, "BLAM Editor");
- public final Action getAtsBugAction() {
- if (bugAction == null) {
- IEditorSite site = editor.getEditorSite();
- bugAction =
- OseeUiActions.createBugAction(SkynetGuiPlugin.getInstance(), editor, site.getId(), site.getRegisteredName());
- }
- return bugAction;
- }
-
- public final Action getExecuteBlamAction() {
- if (executeBlamAction == null) {
- executeBlamAction = new ExecuteBlamAction();
- }
- return executeBlamAction;
- }
-
- private final class ExecuteBlamAction extends Action {
- public ExecuteBlamAction() {
- super("Run BLAM in Job", IAction.AS_PUSH_BUTTON);
- setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.RUN_EXC));
- setToolTipText("Executes the BLAM Operation");
- }
-
- @Override
- public void run() {
- try {
- editor.executeBlam();
- } catch (Exception ex) {
- OseeLog.log(getClass(), 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.framework.ui.skynet.blam;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.plugin.OseeUiActions;
+import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.artifact.editor.IActionContributor;
+import org.eclipse.osee.framework.ui.swt.ImageManager;
+import org.eclipse.ui.IEditorSite;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class BlamEditorActionBarContributor implements IActionContributor {
+
+ private final BlamEditor editor;
+ private Action executeBlamAction;
+ private Action bugAction;
+
+ public BlamEditorActionBarContributor(BlamEditor editor) {
+ this.editor = editor;
+ }
+
+ @Override
+ public void contributeToToolBar(IToolBarManager manager) {
+ manager.add(getExecuteBlamAction());
+ manager.add(getAtsBugAction());
+ }
+
+ // OseeAts.addButtonToEditorToolBar(editor, this, SkynetGuiPlugin.getInstance(), form.getToolBarManager(),
+ // BlamEditor.EDITOR_ID, "BLAM Editor");
+ public final Action getAtsBugAction() {
+ if (bugAction == null) {
+ IEditorSite site = editor.getEditorSite();
+ bugAction =
+ OseeUiActions.createBugAction(SkynetGuiPlugin.getInstance(), editor, site.getId(), site.getRegisteredName());
+ }
+ return bugAction;
+ }
+
+ public final Action getExecuteBlamAction() {
+ if (executeBlamAction == null) {
+ executeBlamAction = new ExecuteBlamAction();
+ }
+ return executeBlamAction;
+ }
+
+ private final class ExecuteBlamAction extends Action {
+ public ExecuteBlamAction() {
+ super("Run BLAM in Job", IAction.AS_PUSH_BUTTON);
+ setImageDescriptor(ImageManager.getImageDescriptor(FrameworkImage.RUN_EXC));
+ setToolTipText("Executes the BLAM Operation");
+ }
+
+ @Override
+ public void run() {
+ try {
+ editor.executeBlam();
+ } catch (Exception ex) {
+ OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ChangeArtifactTypeBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ChangeArtifactTypeBlam.java
index 8d0ca5aa884..89dab01a6c4 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ChangeArtifactTypeBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ChangeArtifactTypeBlam.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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.skynet.core.artifact.ChangeArtifactType;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * Changes the descriptor type of an artifact to the provided descriptor.
- *
- * @author Jeff C. Phillips
- */
-public class ChangeArtifactTypeBlam extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Change Artifact Type";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- ChangeArtifactType.changeArtifactType(variableMap.getArtifacts("artifacts"),
- variableMap.getArtifactType("New Artifact Type"));
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XListDropViewer\" displayName=\"artifacts\" />" +
- //
- "<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"New Artifact Type\" /></xWidgets>";
- }
-
- @Override
- public Collection<String> getCategories() {
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.skynet.core.artifact.ChangeArtifactType;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * Changes the descriptor type of an artifact to the provided descriptor.
+ *
+ * @author Jeff C. Phillips
+ */
+public class ChangeArtifactTypeBlam extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Change Artifact Type";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ ChangeArtifactType.changeArtifactType(variableMap.getArtifacts("artifacts"),
+ variableMap.getArtifactType("New Artifact Type"));
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XListDropViewer\" displayName=\"artifacts\" />" +
+ //
+ "<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"New Artifact Type\" /></xWidgets>";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
return Arrays.asList("Admin");
- }
-
+ }
+
@Override
public String getDescriptionUsage() {
return "Log what the previous type of each artifact was because that information is loss after running this blam";
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/CheckDefaulHierarchy.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/CheckDefaulHierarchy.java
index 40b905289ed..9fc2f8dd419 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/CheckDefaulHierarchy.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/CheckDefaulHierarchy.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.framework.ui.skynet.blam.operation;
-
-import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.exception.MultipleArtifactsExist;
-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.search.ArtifactQuery;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class CheckDefaulHierarchy extends AbstractBlam {
- @Override
- public String getName() {
- return "Check Default Hierarchy";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- Branch branch = variableMap.getBranch("Branch");
- ArtifactType artifactType = variableMap.getArtifactType("Artifact Type");
- List<Artifact> artifacts = ArtifactQuery.getArtifactListFromType(artifactType, branch, EXCLUDE_DELETED);
- for (Artifact artifact : artifacts) {
- try {
- if (!artifact.hasParent()) {
- print("\n" + artifact.getGuid() + " has no parent\n");
- }
- } catch (MultipleArtifactsExist ex) {
- print("\n" + ex.getLocalizedMessage() + "\n");
- }
- }
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" />" +
- //
- "<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"Artifact Type\" /></xWidgets>";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin.Health");
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.exception.MultipleArtifactsExist;
+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.search.ArtifactQuery;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class CheckDefaulHierarchy extends AbstractBlam {
+ @Override
+ public String getName() {
+ return "Check Default Hierarchy";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ Branch branch = variableMap.getBranch("Branch");
+ ArtifactType artifactType = variableMap.getArtifactType("Artifact Type");
+ List<Artifact> artifacts = ArtifactQuery.getArtifactListFromType(artifactType, branch, EXCLUDE_DELETED);
+ for (Artifact artifact : artifacts) {
+ try {
+ if (!artifact.hasParent()) {
+ print("\n" + artifact.getGuid() + " has no parent\n");
+ }
+ } catch (MultipleArtifactsExist ex) {
+ print("\n" + ex.getLocalizedMessage() + "\n");
+ }
+ }
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" />" +
+ //
+ "<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"Artifact Type\" /></xWidgets>";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin.Health");
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelations.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelations.java
index 567c7647cf7..b83c1abc92e 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelations.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ConsolidateRelations.java
@@ -1,52 +1,52 @@
-/*******************************************************************************
- * Copyright (c) 2009 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class ConsolidateRelations extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Consolidate Relations";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- IOperation operation = new ConsolidateRelationsTxOperation(SkynetGuiPlugin.getInstance());
+/*******************************************************************************
+ * Copyright (c) 2009 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.operation.IOperation;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class ConsolidateRelations extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Consolidate Relations";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ IOperation operation = new ConsolidateRelationsTxOperation(SkynetGuiPlugin.getInstance());
Operations.executeWorkAndCheckStatus(operation, monitor);
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Consolidate Relations to use a single relation version where possible.";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-
- @Override
- public String getXWidgetsXml() {
- return AbstractBlam.emptyXWidgetsXml;
- }
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Consolidate Relations to use a single relation version where possible.";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return AbstractBlam.emptyXWidgetsXml;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatabaseHealth.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatabaseHealth.java
index 63d9128d5de..8c718b739e1 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatabaseHealth.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatabaseHealth.java
@@ -1,161 +1,161 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.access.AccessControlManager;
-import org.eclipse.osee.framework.core.exception.OseeAccessDeniedException;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.jdk.core.util.AXml;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.dbHealth.DatabaseHealthOperation;
-import org.eclipse.osee.framework.ui.skynet.dbHealth.DatabaseHealthOpsExtensionManager;
-import org.eclipse.osee.framework.ui.skynet.results.ResultsEditor;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
-
-/**
- * @author Jeff C. Phillips
- */
-public class DatabaseHealth extends AbstractBlam {
- private static final String CLEAN_ALL_PROMPT = "Run all the Cleanup Operations";
- private static final String SHOW_ALL_PROMPT = "Run all the Verification Operations";;
-
- @Override
- public String getName() {
- return "Database Health";
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Runs Database Health Checks/Fixes. Cursor over label to see descriptions.";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- boolean fixAll = variableMap.getBoolean(CLEAN_ALL_PROMPT);
- boolean verifyAll = variableMap.getBoolean(SHOW_ALL_PROMPT);
-
- MasterDbHealthOperation dbHealthOperation = new MasterDbHealthOperation(getName());
-
- for (String taskName : DatabaseHealthOpsExtensionManager.getFixOperationNames()) {
- if (fixAll || variableMap.getBoolean(taskName)) {
- dbHealthOperation.addOperation(DatabaseHealthOpsExtensionManager.getFixOperationByName(taskName), true);
- }
- }
- for (String taskName : DatabaseHealthOpsExtensionManager.getVerifyOperationNames()) {
- if (verifyAll || variableMap.getBoolean(taskName)) {
- dbHealthOperation.addOperation(DatabaseHealthOpsExtensionManager.getVerifyOperationByName(taskName), false);
- }
- }
- Operations.executeWorkAndCheckStatus(dbHealthOperation, monitor);
- }
-
- @Override
- public String getXWidgetsXml() {
- StringBuilder builder = new StringBuilder();
- builder.append("<xWidgets>");
- builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"" + CLEAN_ALL_PROMPT + "\" labelAfter=\"true\" horizontalLabel=\"true\"/>");
- builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"" + SHOW_ALL_PROMPT + "\" labelAfter=\"true\" horizontalLabel=\"true\"/>");
-
- builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\" \"/>");
- builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\"Select Verification Operations to Run:\"/>");
- for (DatabaseHealthOperation healthOp : DatabaseHealthOpsExtensionManager.getVerifyOperations()) {
- builder.append(getOperationsCheckBoxes(healthOp, false));
- }
-
- builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\" \"/>");
- builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\"Select Clean Up Operations to Run:\"/>");
- for (DatabaseHealthOperation fixOp : DatabaseHealthOpsExtensionManager.getFixOperations()) {
- builder.append(getOperationsCheckBoxes(fixOp, true));
- }
-
- builder.append("</xWidgets>");
- return builder.toString();
- }
-
- private String getOperationsCheckBoxes(DatabaseHealthOperation fixOp, boolean fix) {
- StringBuilder builder = new StringBuilder();
- builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"");
- builder.append(fix ? fixOp.getFixTaskName() : fixOp.getVerifyTaskName());
- String toolTip = AXml.textToXml((fix ? fixOp.getFixDescription() : fixOp.getCheckDescription()));
- builder.append("\" labelAfter=\"true\" horizontalLabel=\"true\" toolTip=\"" + toolTip + "\"/>");
- return builder.toString();
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin.Health");
- }
-
- private final class MasterDbHealthOperation extends AbstractOperation {
-
- private final Set<DatabaseHealthOperation> fixOperations = new HashSet<DatabaseHealthOperation>();
- private final Set<DatabaseHealthOperation> verifyOperations = new HashSet<DatabaseHealthOperation>();
-
- public MasterDbHealthOperation(String operationName) {
- super(operationName, SkynetGuiPlugin.PLUGIN_ID);
- }
-
- public void addOperation(DatabaseHealthOperation operation, boolean isFixOperation) {
- if (operation != null) {
- if (isFixOperation) {
- fixOperations.add(operation);
- } else {
- verifyOperations.add(operation);
- }
- }
- }
-
- private void executeOperation(IProgressMonitor monitor, DatabaseHealthOperation operation, double workPercentage, boolean isFix) throws Exception {
- checkForCancelledStatus(monitor);
- if (operation != null) {
- operation.setFixOperationEnabled(isFix);
- println(String.format("\nProcessing: [%s]", operation.getName()));
- doSubWork(operation, monitor, workPercentage);
-
- String detailedReport = operation.getDetailedReport().toString();
- if (Strings.isValid(detailedReport)) {
- XResultData result = new XResultData();
- result.addRaw(detailedReport.toString());
- result.report(operation.getName(), Manipulations.RAW_HTML);
- } else {
- ResultsEditor.open(operation.getResultsProvider());
- }
- println(String.format("Completed: [%s]", operation.getName()));
- }
- }
-
- @Override
- protected void doWork(IProgressMonitor monitor) throws Exception {
- int totalTasks = fixOperations.size() + verifyOperations.size();
- double workPercentage = 1.0 / totalTasks;
- if (!AccessControlManager.isOseeAdmin()) {
- throw new OseeAccessDeniedException("Must be a Developer to run this BLAM");
- } else {
- for (DatabaseHealthOperation operation : fixOperations) {
- executeOperation(monitor, operation, workPercentage, true);
- }
- for (DatabaseHealthOperation operation : verifyOperations) {
- executeOperation(monitor, operation, workPercentage, false);
- }
- }
- }
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.access.AccessControlManager;
+import org.eclipse.osee.framework.core.exception.OseeAccessDeniedException;
+import org.eclipse.osee.framework.core.operation.AbstractOperation;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.jdk.core.util.AXml;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.dbHealth.DatabaseHealthOperation;
+import org.eclipse.osee.framework.ui.skynet.dbHealth.DatabaseHealthOpsExtensionManager;
+import org.eclipse.osee.framework.ui.skynet.results.ResultsEditor;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
+
+/**
+ * @author Jeff C. Phillips
+ */
+public class DatabaseHealth extends AbstractBlam {
+ private static final String CLEAN_ALL_PROMPT = "Run all the Cleanup Operations";
+ private static final String SHOW_ALL_PROMPT = "Run all the Verification Operations";;
+
+ @Override
+ public String getName() {
+ return "Database Health";
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Runs Database Health Checks/Fixes. Cursor over label to see descriptions.";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ boolean fixAll = variableMap.getBoolean(CLEAN_ALL_PROMPT);
+ boolean verifyAll = variableMap.getBoolean(SHOW_ALL_PROMPT);
+
+ MasterDbHealthOperation dbHealthOperation = new MasterDbHealthOperation(getName());
+
+ for (String taskName : DatabaseHealthOpsExtensionManager.getFixOperationNames()) {
+ if (fixAll || variableMap.getBoolean(taskName)) {
+ dbHealthOperation.addOperation(DatabaseHealthOpsExtensionManager.getFixOperationByName(taskName), true);
+ }
+ }
+ for (String taskName : DatabaseHealthOpsExtensionManager.getVerifyOperationNames()) {
+ if (verifyAll || variableMap.getBoolean(taskName)) {
+ dbHealthOperation.addOperation(DatabaseHealthOpsExtensionManager.getVerifyOperationByName(taskName), false);
+ }
+ }
+ Operations.executeWorkAndCheckStatus(dbHealthOperation, monitor);
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ StringBuilder builder = new StringBuilder();
+ builder.append("<xWidgets>");
+ builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"" + CLEAN_ALL_PROMPT + "\" labelAfter=\"true\" horizontalLabel=\"true\"/>");
+ builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"" + SHOW_ALL_PROMPT + "\" labelAfter=\"true\" horizontalLabel=\"true\"/>");
+
+ builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\" \"/>");
+ builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\"Select Verification Operations to Run:\"/>");
+ for (DatabaseHealthOperation healthOp : DatabaseHealthOpsExtensionManager.getVerifyOperations()) {
+ builder.append(getOperationsCheckBoxes(healthOp, false));
+ }
+
+ builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\" \"/>");
+ builder.append("<XWidget xwidgetType=\"XLabel\" displayName=\"Select Clean Up Operations to Run:\"/>");
+ for (DatabaseHealthOperation fixOp : DatabaseHealthOpsExtensionManager.getFixOperations()) {
+ builder.append(getOperationsCheckBoxes(fixOp, true));
+ }
+
+ builder.append("</xWidgets>");
+ return builder.toString();
+ }
+
+ private String getOperationsCheckBoxes(DatabaseHealthOperation fixOp, boolean fix) {
+ StringBuilder builder = new StringBuilder();
+ builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"");
+ builder.append(fix ? fixOp.getFixTaskName() : fixOp.getVerifyTaskName());
+ String toolTip = AXml.textToXml((fix ? fixOp.getFixDescription() : fixOp.getCheckDescription()));
+ builder.append("\" labelAfter=\"true\" horizontalLabel=\"true\" toolTip=\"" + toolTip + "\"/>");
+ return builder.toString();
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin.Health");
+ }
+
+ private final class MasterDbHealthOperation extends AbstractOperation {
+
+ private final Set<DatabaseHealthOperation> fixOperations = new HashSet<DatabaseHealthOperation>();
+ private final Set<DatabaseHealthOperation> verifyOperations = new HashSet<DatabaseHealthOperation>();
+
+ public MasterDbHealthOperation(String operationName) {
+ super(operationName, SkynetGuiPlugin.PLUGIN_ID);
+ }
+
+ public void addOperation(DatabaseHealthOperation operation, boolean isFixOperation) {
+ if (operation != null) {
+ if (isFixOperation) {
+ fixOperations.add(operation);
+ } else {
+ verifyOperations.add(operation);
+ }
+ }
+ }
+
+ private void executeOperation(IProgressMonitor monitor, DatabaseHealthOperation operation, double workPercentage, boolean isFix) throws Exception {
+ checkForCancelledStatus(monitor);
+ if (operation != null) {
+ operation.setFixOperationEnabled(isFix);
+ println(String.format("\nProcessing: [%s]", operation.getName()));
+ doSubWork(operation, monitor, workPercentage);
+
+ String detailedReport = operation.getDetailedReport().toString();
+ if (Strings.isValid(detailedReport)) {
+ XResultData result = new XResultData();
+ result.addRaw(detailedReport.toString());
+ result.report(operation.getName(), Manipulations.RAW_HTML);
+ } else {
+ ResultsEditor.open(operation.getResultsProvider());
+ }
+ println(String.format("Completed: [%s]", operation.getName()));
+ }
+ }
+
+ @Override
+ protected void doWork(IProgressMonitor monitor) throws Exception {
+ int totalTasks = fixOperations.size() + verifyOperations.size();
+ double workPercentage = 1.0 / totalTasks;
+ if (!AccessControlManager.isOseeAdmin()) {
+ throw new OseeAccessDeniedException("Must be a Developer to run this BLAM");
+ } else {
+ for (DatabaseHealthOperation operation : fixOperations) {
+ executeOperation(monitor, operation, workPercentage, true);
+ }
+ for (DatabaseHealthOperation operation : verifyOperations) {
+ executeOperation(monitor, operation, workPercentage, false);
+ }
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExperimentalBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExperimentalBlam.java
index 826be27f754..4711c3d8547 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExperimentalBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExperimentalBlam.java
@@ -1,43 +1,43 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class ExperimentalBlam extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Experimental Blam";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- // provided for subclass implementation
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Even Branches\" /></xWidgets>";
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class ExperimentalBlam extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Experimental Blam";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ // provided for subclass implementation
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Even Branches\" /></xWidgets>";
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExtractReqPriority.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExtractReqPriority.java
index 633ee622d07..e64ec4c457b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExtractReqPriority.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ExtractReqPriority.java
@@ -1,90 +1,90 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
-import java.util.HashMap;
-import org.eclipse.osee.framework.jdk.core.util.io.xml.ExcelSaxHandler;
-import org.eclipse.osee.framework.jdk.core.util.io.xml.RowProcessor;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.XMLReader;
-import org.xml.sax.helpers.XMLReaderFactory;
-
-/**
- * @author Ryan D. Brooks
- */
-public class ExtractReqPriority implements RowProcessor {
- private final HashMap<String, String> reqPriorities;
-
- public ExtractReqPriority(String excelMlPath) throws UnsupportedEncodingException, FileNotFoundException, IOException, SAXException {
- this.reqPriorities = new HashMap<String, String>();
-
- File file = new File(excelMlPath);
-
- XMLReader xmlReader = XMLReaderFactory.createXMLReader();
- xmlReader.setContentHandler(new ExcelSaxHandler(this, true));
- xmlReader.parse(new InputSource(new InputStreamReader(new FileInputStream(file), "UTF-8")));
- }
-
- public HashMap<String, String> getReqPriorities() {
- return reqPriorities;
- }
-
- @Override
- public void detectedRowAndColumnCounts(int rowCount, int columnCount) {
- // do nothing
- }
-
- @Override
- public void foundStartOfWorksheet(String sheetName) {
- // do nothing
- }
-
- @Override
- public void processCommentRow(String[] row) {
- // do nothing
- }
-
- @Override
- public void processEmptyRow() {
- // do nothing
- }
-
- @Override
- public void processHeaderRow(String[] row) {
- // do nothing
- }
-
- @Override
- public void processRow(String[] row) {
- // pick the highest priority specified in the workbook (in case there are multiple priorities for the same item)
- if (row[1] != null) {
- String priority = reqPriorities.get(row[1]);
- if (priority != null) {
- if (priority.compareTo(row[0]) > 0) {
- return;
- }
- }
- reqPriorities.put(row[1], row[0]);
- }
- }
-
- @Override
- public void reachedEndOfWorksheet() {
- // 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.framework.ui.skynet.blam.operation;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.UnsupportedEncodingException;
+import java.util.HashMap;
+import org.eclipse.osee.framework.jdk.core.util.io.xml.ExcelSaxHandler;
+import org.eclipse.osee.framework.jdk.core.util.io.xml.RowProcessor;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.XMLReader;
+import org.xml.sax.helpers.XMLReaderFactory;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class ExtractReqPriority implements RowProcessor {
+ private final HashMap<String, String> reqPriorities;
+
+ public ExtractReqPriority(String excelMlPath) throws UnsupportedEncodingException, FileNotFoundException, IOException, SAXException {
+ this.reqPriorities = new HashMap<String, String>();
+
+ File file = new File(excelMlPath);
+
+ XMLReader xmlReader = XMLReaderFactory.createXMLReader();
+ xmlReader.setContentHandler(new ExcelSaxHandler(this, true));
+ xmlReader.parse(new InputSource(new InputStreamReader(new FileInputStream(file), "UTF-8")));
+ }
+
+ public HashMap<String, String> getReqPriorities() {
+ return reqPriorities;
+ }
+
+ @Override
+ public void detectedRowAndColumnCounts(int rowCount, int columnCount) {
+ // do nothing
+ }
+
+ @Override
+ public void foundStartOfWorksheet(String sheetName) {
+ // do nothing
+ }
+
+ @Override
+ public void processCommentRow(String[] row) {
+ // do nothing
+ }
+
+ @Override
+ public void processEmptyRow() {
+ // do nothing
+ }
+
+ @Override
+ public void processHeaderRow(String[] row) {
+ // do nothing
+ }
+
+ @Override
+ public void processRow(String[] row) {
+ // pick the highest priority specified in the workbook (in case there are multiple priorities for the same item)
+ if (row[1] != null) {
+ String priority = reqPriorities.get(row[1]);
+ if (priority != null) {
+ if (priority.compareTo(row[0]) > 0) {
+ return;
+ }
+ }
+ reqPriorities.put(row[1], row[0]);
+ }
+ }
+
+ @Override
+ public void reachedEndOfWorksheet() {
+ // do nothing
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/FixTemplateContentArtifacts.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/FixTemplateContentArtifacts.java
index 0e8330c4162..697adc7fbab 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/FixTemplateContentArtifacts.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/FixTemplateContentArtifacts.java
@@ -1,373 +1,373 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.logging.Level;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.osee.framework.core.client.ClientSessionManager;
-import org.eclipse.osee.framework.core.client.server.HttpUrlBuilderClient;
-import org.eclipse.osee.framework.core.data.OseeServerContext;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
-import org.eclipse.osee.framework.core.util.HttpProcessor;
-import org.eclipse.osee.framework.core.util.HttpProcessor.AcquireResult;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-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.OseeLog;
-import org.eclipse.osee.framework.plugin.core.util.OseeData;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.render.WordTemplateRenderer;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-/**
- * @author Jeff C. Phillips
- * @author Theron Virgin
- */
-public class FixTemplateContentArtifacts extends AbstractBlam {
- private static final boolean DEBUG =
- Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.osee.framework.ui.skynet/debug/Blam"));
-
- private static final String GET_ATTRS =
- "SELECT DISTINCT(art.human_readable_id), attr.gamma_id, attr.uri FROM osee_attribute attr, osee_artifact art WHERE attr.attr_type_id = ? AND attr.art_id = art.art_id AND attr.uri is not null AND attr.uri != ''";
- private final Collection<String> badData = new LinkedList<String>();
- private static final String[] columnHeaders = new String[] {"Corrupted Data"};
-
- private static File createTempFolder() {
- File rootDirectory = OseeData.getFile("FixTemplate_" + Lib.getDateTimeString() + File.separator);
- rootDirectory.mkdirs();
- return rootDirectory;
- }
-
- @Override
- public String getName() {
- return "Fix Template Content Artifacts";
- }
-
- @SuppressWarnings("unused")
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- if (true) {
- System.err.println("Only to be run by developer");
- return;
- }
- File backupFolder = createTempFolder();
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
- String.format("Backup Folder location: [%s]", backupFolder.getAbsolutePath()));
-
- ArrayList<AttrData> attrDatas = loadAttrData();
- int totalAttrs = attrDatas.size();
-
- monitor.beginTask("Fix word template content", totalAttrs);
-
- for (int index = 0; index < attrDatas.size(); index++) {
- AttrData attrData = attrDatas.get(index);
- monitor.subTask(String.format("[%s of %s] - hrid[%s]", index, totalAttrs, attrData.getHrid()));
- Resource resource = getResource(attrData.getUri());
-
- Element rootElement = null;
- if (DEBUG) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format("Before Fix: %s", resource.data));
- }
-
- final Collection<Element> elements = new LinkedList<Element>();
- final Collection<Element> sectPr = new LinkedList<Element>();
- boolean fixedAttribute = false;
- try {
- Document doc = Jaxp.readXmlDocument("<ForFix>" + resource.data + "</ForFix>");
- rootElement = doc.getDocumentElement();
-
- NodeList nodeList = rootElement.getElementsByTagName("*");
- for (int i = 0; i < nodeList.getLength(); i++) {
- Element element = (Element) nodeList.item(i);
- if (element.getNodeName().endsWith("w:p")) {
- elements.add(element);
- }
- if (element.getNodeName().endsWith("w:sectPr")) {
- sectPr.add(element);
- }
- }
- for (Element paragraph : elements) {
- boolean badParagraph = isBadParagraph(paragraph);
- if (badParagraph) {
- paragraph.getParentNode().removeChild(paragraph);
- }
- fixedAttribute = fixedAttribute || badParagraph;
- }
- for (Element sect : sectPr) {
- sect.getParentNode().removeChild(sect);
- fixedAttribute = true;
- }
- } catch (Exception ex) {
- badData.add(attrData.gammaId);
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
- String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
- }
-
- if (fixedAttribute) {
- try {
- // Backup File
- backupResourceLocally(backupFolder, resource);
-
- // Perform Fix
- resource.data = new String(WordTemplateRenderer.getFormattedContent(rootElement), "UTF-8");
- resource.encoding = "UTF-8";
-
- // UploadResource
- uploadResource(attrData.getGammaId(), resource);
-
- if (DEBUG) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(" After Fix : %s", resource.data));
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
- String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
- }
- }
- monitor.worked(1);
- }
-
- StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
- sbFull.append(AHTML.beginMultiColumnTable(100, 1));
- sbFull.append(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
- for (String string : badData) {
- sbFull.append(AHTML.addRowMultiColumnTable(new String[] {string}));
- }
- sbFull.append(AHTML.endMultiColumnTable());
- XResultData rd = new XResultData();
- rd.addRaw(sbFull.toString());
- rd.report("Fix bad data", Manipulations.RAW_HTML);
-
- }
-
- private ArrayList<AttrData> loadAttrData() throws OseeCoreException {
- ArrayList<AttrData> attrData = new ArrayList<AttrData>();
-
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- 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.framework.ui.skynet.blam.operation;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.core.client.server.HttpUrlBuilderClient;
+import org.eclipse.osee.framework.core.data.OseeServerContext;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeExceptions;
+import org.eclipse.osee.framework.core.util.HttpProcessor;
+import org.eclipse.osee.framework.core.util.HttpProcessor.AcquireResult;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+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.OseeLog;
+import org.eclipse.osee.framework.plugin.core.util.OseeData;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.render.WordTemplateRenderer;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Jeff C. Phillips
+ * @author Theron Virgin
+ */
+public class FixTemplateContentArtifacts extends AbstractBlam {
+ private static final boolean DEBUG =
+ Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.osee.framework.ui.skynet/debug/Blam"));
+
+ private static final String GET_ATTRS =
+ "SELECT DISTINCT(art.human_readable_id), attr.gamma_id, attr.uri FROM osee_attribute attr, osee_artifact art WHERE attr.attr_type_id = ? AND attr.art_id = art.art_id AND attr.uri is not null AND attr.uri != ''";
+ private final Collection<String> badData = new LinkedList<String>();
+ private static final String[] columnHeaders = new String[] {"Corrupted Data"};
+
+ private static File createTempFolder() {
+ File rootDirectory = OseeData.getFile("FixTemplate_" + Lib.getDateTimeString() + File.separator);
+ rootDirectory.mkdirs();
+ return rootDirectory;
+ }
+
+ @Override
+ public String getName() {
+ return "Fix Template Content Artifacts";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ if (true) {
+ System.err.println("Only to be run by developer");
+ return;
+ }
+ File backupFolder = createTempFolder();
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
+ String.format("Backup Folder location: [%s]", backupFolder.getAbsolutePath()));
+
+ ArrayList<AttrData> attrDatas = loadAttrData();
+ int totalAttrs = attrDatas.size();
+
+ monitor.beginTask("Fix word template content", totalAttrs);
+
+ for (int index = 0; index < attrDatas.size(); index++) {
+ AttrData attrData = attrDatas.get(index);
+ monitor.subTask(String.format("[%s of %s] - hrid[%s]", index, totalAttrs, attrData.getHrid()));
+ Resource resource = getResource(attrData.getUri());
+
+ Element rootElement = null;
+ if (DEBUG) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format("Before Fix: %s", resource.data));
+ }
+
+ final Collection<Element> elements = new LinkedList<Element>();
+ final Collection<Element> sectPr = new LinkedList<Element>();
+ boolean fixedAttribute = false;
+ try {
+ Document doc = Jaxp.readXmlDocument("<ForFix>" + resource.data + "</ForFix>");
+ rootElement = doc.getDocumentElement();
+
+ NodeList nodeList = rootElement.getElementsByTagName("*");
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ Element element = (Element) nodeList.item(i);
+ if (element.getNodeName().endsWith("w:p")) {
+ elements.add(element);
+ }
+ if (element.getNodeName().endsWith("w:sectPr")) {
+ sectPr.add(element);
+ }
+ }
+ for (Element paragraph : elements) {
+ boolean badParagraph = isBadParagraph(paragraph);
+ if (badParagraph) {
+ paragraph.getParentNode().removeChild(paragraph);
+ }
+ fixedAttribute = fixedAttribute || badParagraph;
+ }
+ for (Element sect : sectPr) {
+ sect.getParentNode().removeChild(sect);
+ fixedAttribute = true;
+ }
+ } catch (Exception ex) {
+ badData.add(attrData.gammaId);
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
+ String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
+ }
+
+ if (fixedAttribute) {
+ try {
+ // Backup File
+ backupResourceLocally(backupFolder, resource);
+
+ // Perform Fix
+ resource.data = new String(WordTemplateRenderer.getFormattedContent(rootElement), "UTF-8");
+ resource.encoding = "UTF-8";
+
+ // UploadResource
+ uploadResource(attrData.getGammaId(), resource);
+
+ if (DEBUG) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(" After Fix : %s", resource.data));
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
+ String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
+ }
+ }
+ monitor.worked(1);
+ }
+
+ StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
+ sbFull.append(AHTML.beginMultiColumnTable(100, 1));
+ sbFull.append(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
+ for (String string : badData) {
+ sbFull.append(AHTML.addRowMultiColumnTable(new String[] {string}));
+ }
+ sbFull.append(AHTML.endMultiColumnTable());
+ XResultData rd = new XResultData();
+ rd.addRaw(sbFull.toString());
+ rd.report("Fix bad data", Manipulations.RAW_HTML);
+
+ }
+
+ private ArrayList<AttrData> loadAttrData() throws OseeCoreException {
+ ArrayList<AttrData> attrData = new ArrayList<AttrData>();
+
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
chStmt.runPreparedQuery(GET_ATTRS, AttributeTypeManager.getTypeId(CoreAttributeTypes.WordTemplateContent));
- while (chStmt.next()) {
- attrData.add(new AttrData(chStmt.getString("gamma_Id"), chStmt.getString("human_readable_id"),
- chStmt.getString("uri")));
- }
- } finally {
- chStmt.close();
- }
- return attrData;
- }
-
- private static void uploadResource(String gammaId, Resource resource) throws Exception {
- String fileName = resource.resourceName;
- Map<String, String> parameterMap = new HashMap<String, String>();
- parameterMap.put("sessionId", ClientSessionManager.getSessionId());
- parameterMap.put("is.overwrite.allowed", String.valueOf(true));
- parameterMap.put("protocol", "attr");
- parameterMap.put("seed", gammaId);
-
- String extension = Lib.getExtension(fileName);
- if (Strings.isValid(extension)) {
- parameterMap.put("extension", extension);
- int charToRemove = extension.length() + 1;
- fileName = fileName.substring(0, fileName.length() - charToRemove);
- }
- parameterMap.put("name", fileName);
-
- byte[] toUpload = resource.data.getBytes(resource.encoding);
- if (resource.wasZipped) {
- toUpload = Lib.compressStream(new ByteArrayInputStream(toUpload), resource.entryName);
- }
-
- String urlString =
- HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT, parameterMap);
- HttpProcessor.put(new URL(urlString), new ByteArrayInputStream(toUpload), resource.result.getContentType(),
- resource.result.getEncoding());
- }
-
- private Resource getResource(String resourcePath) throws OseeCoreException {
- Resource toReturn = null;
- ByteArrayOutputStream sourceOutputStream = new ByteArrayOutputStream();
- try {
- Map<String, String> parameterMap = new HashMap<String, String>();
- parameterMap.put("sessionId", ClientSessionManager.getSessionId());
- parameterMap.put("uri", resourcePath);
- String urlString =
- HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT,
- parameterMap);
-
- AcquireResult result = HttpProcessor.acquire(new URL(urlString), sourceOutputStream);
- if (result.getCode() == HttpURLConnection.HTTP_OK) {
- toReturn = new Resource(resourcePath, result, sourceOutputStream.toByteArray());
- }
- } catch (Exception ex) {
- OseeExceptions.wrapAndThrow(ex);
- } finally {
- try {
- sourceOutputStream.close();
- } catch (IOException ex) {
- OseeExceptions.wrapAndThrow(ex);
- }
- }
- return toReturn;
- }
-
- private final class Resource {
- private final String entryName;
- private final String resourceName;
- private final AcquireResult result;
- private final byte[] rawBytes;
- private final boolean wasZipped;
- private final String sourcePath;
-
- private String data;
- private String encoding;
-
- private Resource(String sourcePath, AcquireResult result, byte[] rawBytes) throws IOException {
- this.rawBytes = rawBytes;
- this.result = result;
- int index = sourcePath.lastIndexOf('/');
- this.sourcePath = sourcePath;
- this.resourceName = sourcePath.substring(index + 1, sourcePath.length());
- this.wasZipped = result.getContentType().contains("zip");
- if (wasZipped) {
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- this.entryName = decompressStream(new ByteArrayInputStream(rawBytes), outputStream);
- this.encoding = "UTF-8";
- this.data = new String(outputStream.toByteArray(), encoding);
- } else {
- this.data = new String(rawBytes, result.getEncoding());
- this.entryName = null;
- this.encoding = result.getEncoding();
- }
- }
- }
-
- private static void backupResourceLocally(File backupFolder, Resource resource) throws IOException {
- InputStream inputStream = null;
- OutputStream outputStream = null;
- try {
- String path = resource.sourcePath;
- path = path.replaceAll("attr://", "");
- path = path.replaceAll("/", Lib.isWindows() ? "\\\\" : "/");
- File file = new File(backupFolder, path);
- File parent = file.getParentFile();
- if (parent != null) {
- parent.mkdirs();
- }
- outputStream = new FileOutputStream(file);
-
- inputStream = new ByteArrayInputStream(resource.rawBytes);
- Lib.inputStreamToOutputStream(inputStream, outputStream);
- } finally {
- if (inputStream != null) {
- inputStream.close();
- }
- if (outputStream != null) {
- outputStream.close();
- }
- }
- }
-
- private static String decompressStream(InputStream inputStream, OutputStream outputStream) throws IOException {
- String zipEntryName = null;
- ZipInputStream zipInputStream = null;
- try {
- zipInputStream = new ZipInputStream(inputStream);
- ZipEntry entry = zipInputStream.getNextEntry();
- zipEntryName = entry.getName();
- // Transfer bytes from the ZIP file to the output file
- byte[] buf = new byte[1024];
- int len;
- while ((len = zipInputStream.read(buf)) > 0) {
- outputStream.write(buf, 0, len);
- }
- } finally {
- if (zipInputStream != null) {
- zipInputStream.close();
- }
- }
- return zipEntryName;
- }
-
- //To handle the case of sub-sections
- private boolean isBadParagraph(Element paragraph) {
- boolean badParagraph = false;
- String content = paragraph.getTextContent();
- if (content != null && content.contains("LISTNUM \"listreset\"")) {
- badParagraph = true;
- }
-
- return badParagraph;
- }
-
- @Override
- public String getXWidgetsXml() {
- return AbstractBlam.emptyXWidgetsXml;
- }
-
- class AttrData {
- private final String gammaId;
- private final String hrid;
- private final String uri;
-
- public AttrData(String gammaId, String hrid, String uri) {
- super();
- this.gammaId = gammaId;
- this.hrid = hrid;
- this.uri = uri;
- }
-
- public String getGammaId() {
- return gammaId;
- }
-
- public String getHrid() {
- return hrid;
- }
-
- public String getUri() {
- return uri;
- }
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin.Health");
- }
-}
+ while (chStmt.next()) {
+ attrData.add(new AttrData(chStmt.getString("gamma_Id"), chStmt.getString("human_readable_id"),
+ chStmt.getString("uri")));
+ }
+ } finally {
+ chStmt.close();
+ }
+ return attrData;
+ }
+
+ private static void uploadResource(String gammaId, Resource resource) throws Exception {
+ String fileName = resource.resourceName;
+ Map<String, String> parameterMap = new HashMap<String, String>();
+ parameterMap.put("sessionId", ClientSessionManager.getSessionId());
+ parameterMap.put("is.overwrite.allowed", String.valueOf(true));
+ parameterMap.put("protocol", "attr");
+ parameterMap.put("seed", gammaId);
+
+ String extension = Lib.getExtension(fileName);
+ if (Strings.isValid(extension)) {
+ parameterMap.put("extension", extension);
+ int charToRemove = extension.length() + 1;
+ fileName = fileName.substring(0, fileName.length() - charToRemove);
+ }
+ parameterMap.put("name", fileName);
+
+ byte[] toUpload = resource.data.getBytes(resource.encoding);
+ if (resource.wasZipped) {
+ toUpload = Lib.compressStream(new ByteArrayInputStream(toUpload), resource.entryName);
+ }
+
+ String urlString =
+ HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT, parameterMap);
+ HttpProcessor.put(new URL(urlString), new ByteArrayInputStream(toUpload), resource.result.getContentType(),
+ resource.result.getEncoding());
+ }
+
+ private Resource getResource(String resourcePath) throws OseeCoreException {
+ Resource toReturn = null;
+ ByteArrayOutputStream sourceOutputStream = new ByteArrayOutputStream();
+ try {
+ Map<String, String> parameterMap = new HashMap<String, String>();
+ parameterMap.put("sessionId", ClientSessionManager.getSessionId());
+ parameterMap.put("uri", resourcePath);
+ String urlString =
+ HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT,
+ parameterMap);
+
+ AcquireResult result = HttpProcessor.acquire(new URL(urlString), sourceOutputStream);
+ if (result.getCode() == HttpURLConnection.HTTP_OK) {
+ toReturn = new Resource(resourcePath, result, sourceOutputStream.toByteArray());
+ }
+ } catch (Exception ex) {
+ OseeExceptions.wrapAndThrow(ex);
+ } finally {
+ try {
+ sourceOutputStream.close();
+ } catch (IOException ex) {
+ OseeExceptions.wrapAndThrow(ex);
+ }
+ }
+ return toReturn;
+ }
+
+ private final class Resource {
+ private final String entryName;
+ private final String resourceName;
+ private final AcquireResult result;
+ private final byte[] rawBytes;
+ private final boolean wasZipped;
+ private final String sourcePath;
+
+ private String data;
+ private String encoding;
+
+ private Resource(String sourcePath, AcquireResult result, byte[] rawBytes) throws IOException {
+ this.rawBytes = rawBytes;
+ this.result = result;
+ int index = sourcePath.lastIndexOf('/');
+ this.sourcePath = sourcePath;
+ this.resourceName = sourcePath.substring(index + 1, sourcePath.length());
+ this.wasZipped = result.getContentType().contains("zip");
+ if (wasZipped) {
+ ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
+ this.entryName = decompressStream(new ByteArrayInputStream(rawBytes), outputStream);
+ this.encoding = "UTF-8";
+ this.data = new String(outputStream.toByteArray(), encoding);
+ } else {
+ this.data = new String(rawBytes, result.getEncoding());
+ this.entryName = null;
+ this.encoding = result.getEncoding();
+ }
+ }
+ }
+
+ private static void backupResourceLocally(File backupFolder, Resource resource) throws IOException {
+ InputStream inputStream = null;
+ OutputStream outputStream = null;
+ try {
+ String path = resource.sourcePath;
+ path = path.replaceAll("attr://", "");
+ path = path.replaceAll("/", Lib.isWindows() ? "\\\\" : "/");
+ File file = new File(backupFolder, path);
+ File parent = file.getParentFile();
+ if (parent != null) {
+ parent.mkdirs();
+ }
+ outputStream = new FileOutputStream(file);
+
+ inputStream = new ByteArrayInputStream(resource.rawBytes);
+ Lib.inputStreamToOutputStream(inputStream, outputStream);
+ } finally {
+ if (inputStream != null) {
+ inputStream.close();
+ }
+ if (outputStream != null) {
+ outputStream.close();
+ }
+ }
+ }
+
+ private static String decompressStream(InputStream inputStream, OutputStream outputStream) throws IOException {
+ String zipEntryName = null;
+ ZipInputStream zipInputStream = null;
+ try {
+ zipInputStream = new ZipInputStream(inputStream);
+ ZipEntry entry = zipInputStream.getNextEntry();
+ zipEntryName = entry.getName();
+ // Transfer bytes from the ZIP file to the output file
+ byte[] buf = new byte[1024];
+ int len;
+ while ((len = zipInputStream.read(buf)) > 0) {
+ outputStream.write(buf, 0, len);
+ }
+ } finally {
+ if (zipInputStream != null) {
+ zipInputStream.close();
+ }
+ }
+ return zipEntryName;
+ }
+
+ //To handle the case of sub-sections
+ private boolean isBadParagraph(Element paragraph) {
+ boolean badParagraph = false;
+ String content = paragraph.getTextContent();
+ if (content != null && content.contains("LISTNUM \"listreset\"")) {
+ badParagraph = true;
+ }
+
+ return badParagraph;
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return AbstractBlam.emptyXWidgetsXml;
+ }
+
+ class AttrData {
+ private final String gammaId;
+ private final String hrid;
+ private final String uri;
+
+ public AttrData(String gammaId, String hrid, String uri) {
+ super();
+ this.gammaId = gammaId;
+ this.hrid = hrid;
+ this.uri = uri;
+ }
+
+ public String getGammaId() {
+ return gammaId;
+ }
+
+ public String getHrid() {
+ return hrid;
+ }
+
+ public String getUri() {
+ return uri;
+ }
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin.Health");
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ImageCaptureBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ImageCaptureBlam.java
index 673ebf0d225..b559aecce59 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ImageCaptureBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ImageCaptureBlam.java
@@ -1,93 +1,93 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ImageDialog;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * Capture an image within the bounds of OSEE workbench.
- *
- * @author Donald G. Dunne
- */
-public class ImageCaptureBlam extends AbstractBlam {
-
- public Point topLeftPoint;
- public Point botRightPoint;
- public boolean listenerAdded = false;
-
- @Override
- public String getName() {
- return "Image Capture";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
-
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- System.out.println("Starting Image Capture...");
- topLeftPoint = null;
- botRightPoint = null;
- Display.getDefault().addFilter(SWT.MouseUp, displayKeysListener);
- }
- });
- }
- Listener displayKeysListener = new Listener() {
- @Override
- public void handleEvent(org.eclipse.swt.widgets.Event event) {
- if (event.type == SWT.MouseUp) {
- if (topLeftPoint == null) {
- topLeftPoint = event.display.getCursorLocation();
- print("\nFirst Mouse Event " + topLeftPoint + "\n");
- } else {
- botRightPoint = event.display.getCursorLocation();
- print("Second Mouse Event " + botRightPoint + "\n");
- GC gc = new GC(Display.getCurrent());
- Image image =
- new Image(Display.getCurrent(), botRightPoint.x - topLeftPoint.x, botRightPoint.y - topLeftPoint.y);
- gc.copyArea(image, topLeftPoint.x, topLeftPoint.y);
- gc.dispose();
- Display.getDefault().removeFilter(SWT.MouseUp, displayKeysListener);
- ImageDialog diag = new ImageDialog(image, Displays.getActiveShell());
- diag.open();
- }
- }
- }
- };
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets></xWidgets>";
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Mouse Down on top left location, Mouse Up on bottom right. Only works within bounds of workbench window.";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Util");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.widgets.dialog.ImageDialog;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Listener;
+
+/**
+ * Capture an image within the bounds of OSEE workbench.
+ *
+ * @author Donald G. Dunne
+ */
+public class ImageCaptureBlam extends AbstractBlam {
+
+ public Point topLeftPoint;
+ public Point botRightPoint;
+ public boolean listenerAdded = false;
+
+ @Override
+ public String getName() {
+ return "Image Capture";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ System.out.println("Starting Image Capture...");
+ topLeftPoint = null;
+ botRightPoint = null;
+ Display.getDefault().addFilter(SWT.MouseUp, displayKeysListener);
+ }
+ });
+ }
+ Listener displayKeysListener = new Listener() {
+ @Override
+ public void handleEvent(org.eclipse.swt.widgets.Event event) {
+ if (event.type == SWT.MouseUp) {
+ if (topLeftPoint == null) {
+ topLeftPoint = event.display.getCursorLocation();
+ print("\nFirst Mouse Event " + topLeftPoint + "\n");
+ } else {
+ botRightPoint = event.display.getCursorLocation();
+ print("Second Mouse Event " + botRightPoint + "\n");
+ GC gc = new GC(Display.getCurrent());
+ Image image =
+ new Image(Display.getCurrent(), botRightPoint.x - topLeftPoint.x, botRightPoint.y - topLeftPoint.y);
+ gc.copyArea(image, topLeftPoint.x, topLeftPoint.y);
+ gc.dispose();
+ Display.getDefault().removeFilter(SWT.MouseUp, displayKeysListener);
+ ImageDialog diag = new ImageDialog(image, Displays.getActiveShell());
+ diag.open();
+ }
+ }
+ }
+ };
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets></xWidgets>";
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Mouse Down on top left location, Mouse Up on bottom right. Only works within bounds of workbench window.";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Util");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/LoadAllArtifactsOnBranch.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/LoadAllArtifactsOnBranch.java
index 0839659ebde..ef6c99e47a3 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/LoadAllArtifactsOnBranch.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/LoadAllArtifactsOnBranch.java
@@ -1,47 +1,47 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Andrew M. Finkbeiner
- */
-public class LoadAllArtifactsOnBranch extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Load All Artifacts On Branch";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- Branch branch = variableMap.getBranch("Parent Branch");
- ArtifactQuery.getArtifactListFromBranch(branch, EXCLUDE_DELETED);
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Branch List\" /><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Parent Branch\" /></xWidgets>";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin.Health");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Andrew M. Finkbeiner
+ */
+public class LoadAllArtifactsOnBranch extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Load All Artifacts On Branch";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ Branch branch = variableMap.getBranch("Parent Branch");
+ ArtifactQuery.getArtifactListFromBranch(branch, EXCLUDE_DELETED);
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Branch List\" /><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Parent Branch\" /></xWidgets>";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin.Health");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ParseWindowsDirectoryListing.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ParseWindowsDirectoryListing.java
index db901614214..7fce426c1cb 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ParseWindowsDirectoryListing.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ParseWindowsDirectoryListing.java
@@ -1,68 +1,68 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.io.BufferedWriter;
-import java.io.FileWriter;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class ParseWindowsDirectoryListing extends AbstractBlam {
- private static final String DIRECTORY_PREFIX = " Directory of Y:\\";
-
- @Override
- public String getName() {
- return "Parse Windows Directory Listing";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- String listingFile = variableMap.getString("Directory Listing File");
- Matcher matcher = Pattern.compile("(\\d+/\\d+/\\d+).*<DIR>.*?SW\\\\(\\S+)\\s+(.*)").matcher("");
- BufferedWriter writer = new BufferedWriter(new FileWriter(Lib.removeExtension(listingFile) + ".csv"));
-
- String path = null;
- for (String line : Lib.readListFromFile(listingFile)) {
- if (line.startsWith(DIRECTORY_PREFIX)) {
- path = line.substring(DIRECTORY_PREFIX.length());
- } else {
- matcher.reset(line);
- if (matcher.find()) {
- String summary = matcher.group(1) + "|" + matcher.group(2) + "|" + path + "\\" + matcher.group(3);
- if (!summary.endsWith(".")) {
- writer.write(summary);
- writer.write(Lib.lineSeparator);
- }
- }
- }
- }
- writer.close();
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Directory Listing File\" defaultValue=\"c:\\UserData\\cte.txt\" /></xWidgets>";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Util");
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.io.BufferedWriter;
+import java.io.FileWriter;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class ParseWindowsDirectoryListing extends AbstractBlam {
+ private static final String DIRECTORY_PREFIX = " Directory of Y:\\";
+
+ @Override
+ public String getName() {
+ return "Parse Windows Directory Listing";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ String listingFile = variableMap.getString("Directory Listing File");
+ Matcher matcher = Pattern.compile("(\\d+/\\d+/\\d+).*<DIR>.*?SW\\\\(\\S+)\\s+(.*)").matcher("");
+ BufferedWriter writer = new BufferedWriter(new FileWriter(Lib.removeExtension(listingFile) + ".csv"));
+
+ String path = null;
+ for (String line : Lib.readListFromFile(listingFile)) {
+ if (line.startsWith(DIRECTORY_PREFIX)) {
+ path = line.substring(DIRECTORY_PREFIX.length());
+ } else {
+ matcher.reset(line);
+ if (matcher.find()) {
+ String summary = matcher.group(1) + "|" + matcher.group(2) + "|" + path + "\\" + matcher.group(3);
+ if (!summary.endsWith(".")) {
+ writer.write(summary);
+ writer.write(Lib.lineSeparator);
+ }
+ }
+ }
+ }
+ writer.close();
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Directory Listing File\" defaultValue=\"c:\\UserData\\cte.txt\" /></xWidgets>";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Util");
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateTxsBranchIdColumn.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateTxsBranchIdColumn.java
index 27627d81d19..d88087e59bb 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateTxsBranchIdColumn.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateTxsBranchIdColumn.java
@@ -1,102 +1,102 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.sql.ResultSet;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class PopulateTxsBranchIdColumn extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Populate Txs Branch Id Column";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- String tableName = variableMap.getBoolean("Archived Table") ? "osee_txs_archived" : "osee_txs";
- if (variableMap.getBoolean("Incremental Update")) {
- incrementallySetBranchId(tableName);
- } else {
- fullySetBranchId(tableName);
- }
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Incremental Update\" /><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Archived Table\" /></xWidgets>";
- }
-
- private void fullySetBranchId(String tableName) throws OseeCoreException {
- int blockSize = 200000;
- String sql =
- String.format(
- "update %s txs set branch_id = (select branch_id from osee_tx_details txd where txs.transaction_id = txd.transaction_id) where transaction_id > ? and transaction_id < ?",
- tableName);
-
- for (int i = 0; i < 1000000; i += blockSize) {
- println("> " + i + " and < " + (i + blockSize + 1));
- ConnectionHandler.runPreparedUpdate(sql, i, i + blockSize + 1);
- }
- }
-
- private void incrementallySetBranchId(String tableName) throws OseeCoreException {
- String sql = "select branch_id, transaction_id from osee_tx_details";
- HashMap<Integer, Integer> branchMap = new HashMap<Integer, Integer>(600000);
-
- IOseeStatement chStmt = databaseService.getStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
- try {
- chStmt.runPreparedQuery(10000, sql);
- while (chStmt.next()) {
- branchMap.put(chStmt.getInt("transaction_id"), chStmt.getInt("branch_id"));
- }
- } finally {
- chStmt.close();
- }
- println("# of transactions: " + branchMap.size());
-
- sql = String.format("select transaction_id, branch_id from %s where branch_id is null", tableName);
- int counter = 0;
- try {
- chStmt.runPreparedQuery(10000, sql);
- while (chStmt.next()) {
- Integer branchId = branchMap.get(chStmt.getInt("transaction_id"));
- if (branchId == null) {
- println("map not not have branch id for transaction id: " + chStmt.getInt("transaction_id"));
- } else {
- chStmt.updateObject("branch_id", branchId);
- chStmt.updateRow();
- counter++;
- }
- }
- } finally {
- chStmt.close();
- }
-
- println("Updated " + counter + " rows");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.sql.ResultSet;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class PopulateTxsBranchIdColumn extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Populate Txs Branch Id Column";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ String tableName = variableMap.getBoolean("Archived Table") ? "osee_txs_archived" : "osee_txs";
+ if (variableMap.getBoolean("Incremental Update")) {
+ incrementallySetBranchId(tableName);
+ } else {
+ fullySetBranchId(tableName);
+ }
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Incremental Update\" /><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Archived Table\" /></xWidgets>";
+ }
+
+ private void fullySetBranchId(String tableName) throws OseeCoreException {
+ int blockSize = 200000;
+ String sql =
+ String.format(
+ "update %s txs set branch_id = (select branch_id from osee_tx_details txd where txs.transaction_id = txd.transaction_id) where transaction_id > ? and transaction_id < ?",
+ tableName);
+
+ for (int i = 0; i < 1000000; i += blockSize) {
+ println("> " + i + " and < " + (i + blockSize + 1));
+ ConnectionHandler.runPreparedUpdate(sql, i, i + blockSize + 1);
+ }
+ }
+
+ private void incrementallySetBranchId(String tableName) throws OseeCoreException {
+ String sql = "select branch_id, transaction_id from osee_tx_details";
+ HashMap<Integer, Integer> branchMap = new HashMap<Integer, Integer>(600000);
+
+ IOseeStatement chStmt = databaseService.getStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
+ try {
+ chStmt.runPreparedQuery(10000, sql);
+ while (chStmt.next()) {
+ branchMap.put(chStmt.getInt("transaction_id"), chStmt.getInt("branch_id"));
+ }
+ } finally {
+ chStmt.close();
+ }
+ println("# of transactions: " + branchMap.size());
+
+ sql = String.format("select transaction_id, branch_id from %s where branch_id is null", tableName);
+ int counter = 0;
+ try {
+ chStmt.runPreparedQuery(10000, sql);
+ while (chStmt.next()) {
+ Integer branchId = branchMap.get(chStmt.getInt("transaction_id"));
+ if (branchId == null) {
+ println("map not not have branch id for transaction id: " + chStmt.getInt("transaction_id"));
+ } else {
+ chStmt.updateObject("branch_id", branchId);
+ chStmt.updateRow();
+ counter++;
+ }
+ }
+ } finally {
+ chStmt.close();
+ }
+
+ println("Updated " + counter + " rows");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java
index 2f47302b4e6..8d2badc6581 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeArchivedBranch.java
@@ -1,197 +1,197 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.osee.framework.core.data.SystemUser;
-import org.eclipse.osee.framework.core.enums.BranchArchivedState;
-import org.eclipse.osee.framework.core.enums.BranchState;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * @author Megumi Telles
- */
-public class PurgeArchivedBranch extends AbstractBlam {
- private static final String SELECT_ARCHIVED_BRANCHES =
- "select * from osee_branch where associated_art_id = ? and archived = ? and branch_state IN (?, ?)";
-
- private static final String SELECT_UNUSUAL_ARCHIVED_BRANCHES =
- "select * from osee_branch where associated_art_id = ? and archived = ? and branch_state NOT IN (?,?,?)";
-
- private static int systemUserArtId;
- private static boolean purgeBranches = false;
-
- @Override
- public String getName() {
- return "Purge Archived Branches";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- purgeBranches = variableMap.getBoolean("Purge Branches");
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- List<BranchInfo> branches = new ArrayList<BranchInfo>();
- List<BranchInfo> unusualBranches = new ArrayList<BranchInfo>();
- systemUserArtId = UserManager.getUser(SystemUser.OseeSystem).getArtId();
- branches = purgeSelectedBranches();
- if (purgeBranches) {
- confirmPurgeArchivedBranch(branches);
- }
- unusualBranches = checkUnusualArchivedBranches();
- displayReport(unusualBranches, "Unusual Archived Branches",
- "List of archived branches with unusual branch states: ");
- displayReport(branches, "Archived Branches", "List of archived branches to be purged: ");
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- });
- }
-
- private List<BranchInfo> purgeSelectedBranches() throws Exception {
- final List<BranchInfo> branches = new ArrayList<BranchInfo>();
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- try {
- chStmt.runPreparedQuery(SELECT_ARCHIVED_BRANCHES, systemUserArtId, BranchArchivedState.ARCHIVED.getValue(),
- BranchState.REBASELINED.getValue(), BranchState.DELETED.getValue());
- while (chStmt.next()) {
- BranchInfo purgedBranch =
- new BranchInfo(chStmt.getString("branch_name"), chStmt.getInt("branch_id"), chStmt.getInt("archived"),
- BranchState.getBranchState(chStmt.getInt("branch_state")).name());
- branches.add(purgedBranch);
- }
- } finally {
- chStmt.close();
- }
- return branches;
- }
-
- private void confirmPurgeArchivedBranch(List<BranchInfo> branches) throws OseeCoreException {
- if (MessageDialog.openConfirm(Displays.getActiveShell(), "Purge Confirmation",
- "Do you wish to purge the archived branches: " + "?")) {
- //only delete archived branches that are not changed managed, rebaselined and deleted
- for (BranchInfo purgeBranch : branches) {
- try {
- BranchManager.purgeBranch(BranchManager.getBranch(Integer.valueOf(purgeBranch.getId())));
- } catch (OseeArgumentException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
- }
- }
-
- private List<BranchInfo> checkUnusualArchivedBranches() throws Exception {
- // check to make sure archived branches are not in states other than Committed, Deleted, Rebaselined
- List<BranchInfo> branches = new ArrayList<BranchInfo>();
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- try {
- chStmt.runPreparedQuery(SELECT_UNUSUAL_ARCHIVED_BRANCHES, systemUserArtId,
- BranchArchivedState.ARCHIVED.getValue(), BranchState.COMMITTED.getValue(),
- BranchState.REBASELINED.getValue(), BranchState.DELETED.getValue());
- while (chStmt.next()) {
- BranchInfo unusualBranch =
- new BranchInfo(chStmt.getString("branch_name"), chStmt.getInt("branch_id"), chStmt.getInt("archived"),
- BranchState.getBranchState(chStmt.getInt("branch_state")).name());
- branches.add(unusualBranch);
- }
- } finally {
- chStmt.close();
- }
- return branches;
- }
-
- private void displayReport(List<BranchInfo> branches, String name, String heading) throws OseeCoreException {
- XResultData rd = new XResultData();
- if (branches.size() > 0) {
- try {
- String[] columnHeaders = new String[] {"Branch Name", "Branch Id", "Archive State", "Branch State"};
- rd.addRaw(AHTML.heading(3, heading));
- rd.addRaw(AHTML.beginMultiColumnTable(100, 1));
- rd.addRaw(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
- for (BranchInfo purgedBranch : branches) {
- rd.addRaw(AHTML.addRowMultiColumnTable(new String[] {purgedBranch.getName(), purgedBranch.getId(),
- purgedBranch.getArchived(), purgedBranch.getState()}));
- }
- rd.addRaw(AHTML.endMultiColumnTable());
-
- } finally {
- rd.report(name);
- }
- }
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" displayName=\"Purge Branches\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\" /></xWidgets>";
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Purge archived branches that are deleted, rebaselined and not changed managed";
- }
-
- private class BranchInfo {
- private final String name;
- private final int id;
- private final int archived;
- private final String state;
-
- public BranchInfo(String name, int id, int archived, String state) {
- this.name = name;
- this.id = id;
- this.archived = archived;
- this.state = state;
- }
-
- public String getName() {
- return name;
- }
-
- public String getId() {
- return Integer.toString(id);
- }
-
- public String getArchived() {
- return Integer.toString(archived);
- }
-
- public String getState() {
- return state;
- }
-
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.osee.framework.core.data.SystemUser;
+import org.eclipse.osee.framework.core.enums.BranchArchivedState;
+import org.eclipse.osee.framework.core.enums.BranchState;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.UserManager;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+import org.eclipse.osee.framework.ui.swt.Displays;
+
+/**
+ * @author Megumi Telles
+ */
+public class PurgeArchivedBranch extends AbstractBlam {
+ private static final String SELECT_ARCHIVED_BRANCHES =
+ "select * from osee_branch where associated_art_id = ? and archived = ? and branch_state IN (?, ?)";
+
+ private static final String SELECT_UNUSUAL_ARCHIVED_BRANCHES =
+ "select * from osee_branch where associated_art_id = ? and archived = ? and branch_state NOT IN (?,?,?)";
+
+ private static int systemUserArtId;
+ private static boolean purgeBranches = false;
+
+ @Override
+ public String getName() {
+ return "Purge Archived Branches";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ purgeBranches = variableMap.getBoolean("Purge Branches");
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ List<BranchInfo> branches = new ArrayList<BranchInfo>();
+ List<BranchInfo> unusualBranches = new ArrayList<BranchInfo>();
+ systemUserArtId = UserManager.getUser(SystemUser.OseeSystem).getArtId();
+ branches = purgeSelectedBranches();
+ if (purgeBranches) {
+ confirmPurgeArchivedBranch(branches);
+ }
+ unusualBranches = checkUnusualArchivedBranches();
+ displayReport(unusualBranches, "Unusual Archived Branches",
+ "List of archived branches with unusual branch states: ");
+ displayReport(branches, "Archived Branches", "List of archived branches to be purged: ");
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ });
+ }
+
+ private List<BranchInfo> purgeSelectedBranches() throws Exception {
+ final List<BranchInfo> branches = new ArrayList<BranchInfo>();
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
+ chStmt.runPreparedQuery(SELECT_ARCHIVED_BRANCHES, systemUserArtId, BranchArchivedState.ARCHIVED.getValue(),
+ BranchState.REBASELINED.getValue(), BranchState.DELETED.getValue());
+ while (chStmt.next()) {
+ BranchInfo purgedBranch =
+ new BranchInfo(chStmt.getString("branch_name"), chStmt.getInt("branch_id"), chStmt.getInt("archived"),
+ BranchState.getBranchState(chStmt.getInt("branch_state")).name());
+ branches.add(purgedBranch);
+ }
+ } finally {
+ chStmt.close();
+ }
+ return branches;
+ }
+
+ private void confirmPurgeArchivedBranch(List<BranchInfo> branches) throws OseeCoreException {
+ if (MessageDialog.openConfirm(Displays.getActiveShell(), "Purge Confirmation",
+ "Do you wish to purge the archived branches: " + "?")) {
+ //only delete archived branches that are not changed managed, rebaselined and deleted
+ for (BranchInfo purgeBranch : branches) {
+ try {
+ BranchManager.purgeBranch(BranchManager.getBranch(Integer.valueOf(purgeBranch.getId())));
+ } catch (OseeArgumentException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+ }
+ }
+
+ private List<BranchInfo> checkUnusualArchivedBranches() throws Exception {
+ // check to make sure archived branches are not in states other than Committed, Deleted, Rebaselined
+ List<BranchInfo> branches = new ArrayList<BranchInfo>();
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
+ chStmt.runPreparedQuery(SELECT_UNUSUAL_ARCHIVED_BRANCHES, systemUserArtId,
+ BranchArchivedState.ARCHIVED.getValue(), BranchState.COMMITTED.getValue(),
+ BranchState.REBASELINED.getValue(), BranchState.DELETED.getValue());
+ while (chStmt.next()) {
+ BranchInfo unusualBranch =
+ new BranchInfo(chStmt.getString("branch_name"), chStmt.getInt("branch_id"), chStmt.getInt("archived"),
+ BranchState.getBranchState(chStmt.getInt("branch_state")).name());
+ branches.add(unusualBranch);
+ }
+ } finally {
+ chStmt.close();
+ }
+ return branches;
+ }
+
+ private void displayReport(List<BranchInfo> branches, String name, String heading) throws OseeCoreException {
+ XResultData rd = new XResultData();
+ if (branches.size() > 0) {
+ try {
+ String[] columnHeaders = new String[] {"Branch Name", "Branch Id", "Archive State", "Branch State"};
+ rd.addRaw(AHTML.heading(3, heading));
+ rd.addRaw(AHTML.beginMultiColumnTable(100, 1));
+ rd.addRaw(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
+ for (BranchInfo purgedBranch : branches) {
+ rd.addRaw(AHTML.addRowMultiColumnTable(new String[] {purgedBranch.getName(), purgedBranch.getId(),
+ purgedBranch.getArchived(), purgedBranch.getState()}));
+ }
+ rd.addRaw(AHTML.endMultiColumnTable());
+
+ } finally {
+ rd.report(name);
+ }
+ }
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" displayName=\"Purge Branches\" defaultValue=\"false\" labelAfter=\"true\" horizontalLabel=\"true\" /></xWidgets>";
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Purge archived branches that are deleted, rebaselined and not changed managed";
+ }
+
+ private class BranchInfo {
+ private final String name;
+ private final int id;
+ private final int archived;
+ private final String state;
+
+ public BranchInfo(String name, int id, int archived, String state) {
+ this.name = name;
+ this.id = id;
+ this.archived = archived;
+ this.state = state;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getId() {
+ return Integer.toString(id);
+ }
+
+ public String getArchived() {
+ return Integer.toString(archived);
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeTransactionBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeTransactionBlam.java
index 0ccdbe81c0d..3163a6016f3 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeTransactionBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PurgeTransactionBlam.java
@@ -1,59 +1,59 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class PurgeTransactionBlam extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Purge Transaction";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- List<Integer> txs = Lib.stringToIntegerList(variableMap.getString("Transaction List"));
- boolean force = variableMap.getBoolean("Force Delete");
- int[] txIds = new int[txs.size()];
- for (int index = 0; index < txs.size(); index++) {
- txIds[index] = txs.get(index);
- }
- Job job = BranchManager.purgeTransactions(null, force, txIds);
- job.join();
- }
-
- @Override
- public String getXWidgetsXml() {
- StringBuilder builder = new StringBuilder();
- builder.append("<xWidgets>");
- builder.append("<XWidget xwidgetType=\"XText\" displayName=\"Transaction List\" />");
- builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"Force Delete\" />");
- builder.append("</xWidgets>");
- return builder.toString();
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class PurgeTransactionBlam extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Purge Transaction";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ List<Integer> txs = Lib.stringToIntegerList(variableMap.getString("Transaction List"));
+ boolean force = variableMap.getBoolean("Force Delete");
+ int[] txIds = new int[txs.size()];
+ for (int index = 0; index < txs.size(); index++) {
+ txIds[index] = txs.get(index);
+ }
+ Job job = BranchManager.purgeTransactions(null, force, txIds);
+ job.join();
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ StringBuilder builder = new StringBuilder();
+ builder.append("<xWidgets>");
+ builder.append("<XWidget xwidgetType=\"XText\" displayName=\"Transaction List\" />");
+ builder.append("<XWidget xwidgetType=\"XCheckBox\" displayName=\"Force Delete\" />");
+ builder.append("</xWidgets>");
+ return builder.toString();
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ReportAttributeTypesUsageBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ReportAttributeTypesUsageBlam.java
index 77033bab97c..9227a3e27f7 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ReportAttributeTypesUsageBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ReportAttributeTypesUsageBlam.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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.AttributeType;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-
-/**
- * @author Donald G. Dunne
- */
-public class ReportAttributeTypesUsageBlam extends AbstractBlam {
-
- @Override
- public String getName() {
- return "Report Attribute Types Usage";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- monitor.beginTask("Report Usage of AttributeTypes on Branch", IProgressMonitor.UNKNOWN);
-
- XResultData xResultData = new XResultData();
- Branch branch = variableMap.getBranch("Branch");
- xResultData.log(getName() + " " + branch.getName());
- xResultData.addRaw(AHTML.beginMultiColumnTable(100, 1));
- xResultData.addRaw(AHTML.addHeaderRowMultiColumnTable(new String[] {"AttributeType", "Occurances"}));
- for (AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
- Collection<Artifact> arts = ArtifactQuery.getArtifactListFromAttributeType(attributeType, branch);
- xResultData.addRaw(AHTML.addRowMultiColumnTable(attributeType.getName(), String.valueOf(arts.size())));
- }
- xResultData.addRaw(AHTML.endMultiColumnTable());
- xResultData.report(getName() + " " + branch.getName());
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Performs ArtifactQuery search on all attribyte types for a selected branch and reports usage by \"current\" artifacts.";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.core.model.type.AttributeType;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class ReportAttributeTypesUsageBlam extends AbstractBlam {
+
+ @Override
+ public String getName() {
+ return "Report Attribute Types Usage";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ monitor.beginTask("Report Usage of AttributeTypes on Branch", IProgressMonitor.UNKNOWN);
+
+ XResultData xResultData = new XResultData();
+ Branch branch = variableMap.getBranch("Branch");
+ xResultData.log(getName() + " " + branch.getName());
+ xResultData.addRaw(AHTML.beginMultiColumnTable(100, 1));
+ xResultData.addRaw(AHTML.addHeaderRowMultiColumnTable(new String[] {"AttributeType", "Occurances"}));
+ for (AttributeType attributeType : AttributeTypeManager.getAllTypes()) {
+ Collection<Artifact> arts = ArtifactQuery.getArtifactListFromAttributeType(attributeType, branch);
+ xResultData.addRaw(AHTML.addRowMultiColumnTable(attributeType.getName(), String.valueOf(arts.size())));
+ }
+ xResultData.addRaw(AHTML.endMultiColumnTable());
+ xResultData.report(getName() + " " + branch.getName());
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Performs ArtifactQuery search on all attribyte types for a selected branch and reports usage by \"current\" artifacts.";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java
index 24f6328bfcd..bd5fb86d75b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ResourceManipulation.java
@@ -1,460 +1,460 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.logging.Level;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.osee.framework.core.client.ClientSessionManager;
-import org.eclipse.osee.framework.core.client.server.HttpUrlBuilderClient;
-import org.eclipse.osee.framework.core.data.OseeServerContext;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
-import org.eclipse.osee.framework.core.util.HttpProcessor;
-import org.eclipse.osee.framework.core.util.HttpProcessor.AcquireResult;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.jdk.core.util.Strings;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.util.OseeData;
-import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
-
-/**
- * @author Jeff C. Phillips
- * @author Theron Virgin
- */
-public class ResourceManipulation extends AbstractBlam {
- private static final boolean DEBUG =
- Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.osee.framework.ui.skynet/debug/Blam"));
-
- private static final String GET_ATTRS =
- "SELECT DISTINCT(art.human_readable_id), attr.gamma_id, attr.uri FROM osee_attribute attr, osee_artifact art WHERE attr.attr_type_id = ? AND attr.art_id = art.art_id AND attr.uri is not null AND attr.uri != ''";
- private static final String GET_ATTRS_TEST = GET_ATTRS + " AND t1.gamma_id = 4259157";
-
- private final Collection<String> badData = new LinkedList<String>();
- private static final String[] columnHeaders = new String[] {"Corrupted Data"};
-
- private static File createTempFolder() {
- File rootDirectory = OseeData.getFile("FixTemplate_" + Lib.getDateTimeString() + File.separator);
- rootDirectory.mkdirs();
- return rootDirectory;
- }
-
- @Override
- public String getName() {
- return "Resource Manipulation";
- }
-
- @SuppressWarnings("unused")
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- File backupFolder = createTempFolder();
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
- String.format("Backup Folder location: [%s]", backupFolder.getAbsolutePath()));
-
- if (true) {
- System.out.println("An admin must enable this operation");
- return;
- }
- ArrayList<AttrData> attrDatas = loadAttrData();
- monitor.beginTask("Fix word template content", attrDatas.size());
- for (AttrData attrData : attrDatas) {
- monitor.subTask(attrData.getHrid());
- Resource resource = getResource(attrData.getUri());
- byte[] originalData = resource.data;
- byte[] finalVersion = new byte[0];
- int count = 0;
- int countlast = 0;
- System.out.println(" " + attrData.getUri() + " " + attrData.getGammaId());
- List<Byte> badByteBuffer = new LinkedList<Byte>();
- int byteCount = 0;
- int initialByte = 0;
- int startByte = 0;
- for (byte byt : originalData) {
- if (byt < 0) {
- if (count == 0) {
- initialByte = byteCount;
- badByteBuffer.clear();
- }
- badByteBuffer.add(new Byte(byt).byteValue());
- String value = UnicodeConverter.getValue(badByteBuffer);
- if (value != null) {
- if (value.contains("GOOD")) {
- System.out.println(String.format(" Found the Clean Value %s", value));
- System.out.print(" ");
- for (byte byter : badByteBuffer) {
- System.out.print(byter + ", ");
- }
- System.out.println();
- } else {
- byte[] goodBytes = UnicodeConverter.getGoodBytes(value);
- System.out.println(String.format(" Found the Value %s", value));
- System.out.print(" ");
- finalVersion = fixBytes(startByte, initialByte, goodBytes, finalVersion, originalData);
- startByte = finalVersion.length + 1;
- for (byte byter : badByteBuffer) {
- System.out.print(byter + ", ");
- }
- System.out.println();
- System.out.print(" ");
- for (byte byter : goodBytes) {
- System.out.print(byter + ", ");
- }
- System.out.println();
- startByte = byteCount + 1;
- }
- count = 0;
- } else {
- count++;
- }
- } else {
- if (count > 0) {
- System.out.println("Couldn't Find the Value for");
- for (byte byter : badByteBuffer) {
- System.out.print(byter + ", ");
- }
- System.out.println("");
- }
- count = 0;
- badByteBuffer.clear();
- }
- byteCount++;
-
- //Need to add on the tail if needs be
- }
-
- finalVersion = addTail(startByte, finalVersion, originalData);
- count = 0;
- countlast = 0;
- System.out.println("ORIGINAL");
- for (byte byt : originalData) {
- count++;
- if (byt < 0) {
- if (countlast + 1 != count) {
- System.out.println("");
- }
- System.out.println(count + " " + byt + " " + new String(new byte[] {originalData[count - 8],
- originalData[count - 7], originalData[count - 6], originalData[count - 5], originalData[count - 4],
- originalData[count - 3], originalData[count - 2], originalData[count - 1], originalData[count],
- originalData[count + 1], originalData[count + 2], originalData[count + 3], originalData[count + 4],
- originalData[count + 5], originalData[count + 6]}, "UTF-8"));
- countlast = count;
- }
- }
-
- System.out.println("FIXED");
- count = 0;
- countlast = 0;
- for (byte byt : finalVersion) {
- count++;
- if (byt < 0) {
- if (countlast + 1 != count) {
- System.out.println("");
- }
- System.out.println(count + " " + byt + " " + new String(new byte[] {finalVersion[count - 9],
- finalVersion[count - 8], finalVersion[count - 7], finalVersion[count - 6], finalVersion[count - 5],
- finalVersion[count - 4], finalVersion[count - 3], finalVersion[count - 2], finalVersion[count - 1],
- finalVersion[count], finalVersion[count + 1], finalVersion[count + 2], finalVersion[count + 3],
- finalVersion[count + 4], finalVersion[count + 5], finalVersion[count + 6]}, "UTF-8"));
- countlast = count;
- }
- }
-
- try {
- // Backup File
- backupResourceLocally(backupFolder, resource);
-
- // Perform Fix
-
- resource.data = finalVersion;
- // = new String(WordTemplateRenderer.getFormattedContent(rootElement), "UTF-8");
- // resource.encoding = "UTF-8";
- //
-
- // UploadResource
- uploadResource(attrData.getGammaId(), resource);
-
- if (DEBUG) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(" After Fix : %s", resource.data));
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
- String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
- }
- monitor.worked(1);
- }
-
- StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
- sbFull.append(AHTML.beginMultiColumnTable(100, 1));
- sbFull.append(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
- for (String string : badData) {
- sbFull.append(AHTML.addRowMultiColumnTable(new String[] {string}));
- }
- sbFull.append(AHTML.endMultiColumnTable());
- XResultData rd = new XResultData();
- rd.addRaw(sbFull.toString());
- rd.report("Fix bad data", Manipulations.RAW_HTML);
- }
-
- /**
- * @param startByte
- * @param initialByte
- * @param goodBytes
- * @param finalVersion
- * @return
- */
- private byte[] fixBytes(int startByte, int initialByte, byte[] goodBytes, byte[] finalVersion, byte[] originalData) {
- byte[] fixed = new byte[initialByte - startByte + goodBytes.length + finalVersion.length];
- int count = 0;
- for (byte byt : finalVersion) {
- fixed[count] = byt;
- count++;
- }
- for (int x = startByte; x < initialByte; x++) {
- fixed[count] = originalData[x];
- count++;
- }
- for (byte byt : goodBytes) {
- fixed[count] = byt;
- count++;
- }
- return fixed;
- }
-
- /**
- * @param startByte
- * @param initialByte
- * @param goodBytes
- * @param finalVersion
- * @return
- */
- private byte[] addTail(int startByte, byte[] finalVersion, byte[] originalData) {
- byte[] fixed = new byte[originalData.length - startByte + finalVersion.length];
- int count = 0;
- for (byte byt : finalVersion) {
- fixed[count] = byt;
- count++;
- }
- for (int x = startByte; x < originalData.length; x++) {
- fixed[count] = originalData[x];
- count++;
- }
- return fixed;
- }
-
- private ArrayList<AttrData> loadAttrData() throws OseeCoreException {
- ArrayList<AttrData> attrData = new ArrayList<AttrData>();
-
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- 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.framework.ui.skynet.blam.operation;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.core.client.server.HttpUrlBuilderClient;
+import org.eclipse.osee.framework.core.data.OseeServerContext;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.exception.OseeExceptions;
+import org.eclipse.osee.framework.core.util.HttpProcessor;
+import org.eclipse.osee.framework.core.util.HttpProcessor.AcquireResult;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.plugin.core.util.OseeData;
+import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
+
+/**
+ * @author Jeff C. Phillips
+ * @author Theron Virgin
+ */
+public class ResourceManipulation extends AbstractBlam {
+ private static final boolean DEBUG =
+ Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.osee.framework.ui.skynet/debug/Blam"));
+
+ private static final String GET_ATTRS =
+ "SELECT DISTINCT(art.human_readable_id), attr.gamma_id, attr.uri FROM osee_attribute attr, osee_artifact art WHERE attr.attr_type_id = ? AND attr.art_id = art.art_id AND attr.uri is not null AND attr.uri != ''";
+ private static final String GET_ATTRS_TEST = GET_ATTRS + " AND t1.gamma_id = 4259157";
+
+ private final Collection<String> badData = new LinkedList<String>();
+ private static final String[] columnHeaders = new String[] {"Corrupted Data"};
+
+ private static File createTempFolder() {
+ File rootDirectory = OseeData.getFile("FixTemplate_" + Lib.getDateTimeString() + File.separator);
+ rootDirectory.mkdirs();
+ return rootDirectory;
+ }
+
+ @Override
+ public String getName() {
+ return "Resource Manipulation";
+ }
+
+ @SuppressWarnings("unused")
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ File backupFolder = createTempFolder();
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO,
+ String.format("Backup Folder location: [%s]", backupFolder.getAbsolutePath()));
+
+ if (true) {
+ System.out.println("An admin must enable this operation");
+ return;
+ }
+ ArrayList<AttrData> attrDatas = loadAttrData();
+ monitor.beginTask("Fix word template content", attrDatas.size());
+ for (AttrData attrData : attrDatas) {
+ monitor.subTask(attrData.getHrid());
+ Resource resource = getResource(attrData.getUri());
+ byte[] originalData = resource.data;
+ byte[] finalVersion = new byte[0];
+ int count = 0;
+ int countlast = 0;
+ System.out.println(" " + attrData.getUri() + " " + attrData.getGammaId());
+ List<Byte> badByteBuffer = new LinkedList<Byte>();
+ int byteCount = 0;
+ int initialByte = 0;
+ int startByte = 0;
+ for (byte byt : originalData) {
+ if (byt < 0) {
+ if (count == 0) {
+ initialByte = byteCount;
+ badByteBuffer.clear();
+ }
+ badByteBuffer.add(new Byte(byt).byteValue());
+ String value = UnicodeConverter.getValue(badByteBuffer);
+ if (value != null) {
+ if (value.contains("GOOD")) {
+ System.out.println(String.format(" Found the Clean Value %s", value));
+ System.out.print(" ");
+ for (byte byter : badByteBuffer) {
+ System.out.print(byter + ", ");
+ }
+ System.out.println();
+ } else {
+ byte[] goodBytes = UnicodeConverter.getGoodBytes(value);
+ System.out.println(String.format(" Found the Value %s", value));
+ System.out.print(" ");
+ finalVersion = fixBytes(startByte, initialByte, goodBytes, finalVersion, originalData);
+ startByte = finalVersion.length + 1;
+ for (byte byter : badByteBuffer) {
+ System.out.print(byter + ", ");
+ }
+ System.out.println();
+ System.out.print(" ");
+ for (byte byter : goodBytes) {
+ System.out.print(byter + ", ");
+ }
+ System.out.println();
+ startByte = byteCount + 1;
+ }
+ count = 0;
+ } else {
+ count++;
+ }
+ } else {
+ if (count > 0) {
+ System.out.println("Couldn't Find the Value for");
+ for (byte byter : badByteBuffer) {
+ System.out.print(byter + ", ");
+ }
+ System.out.println("");
+ }
+ count = 0;
+ badByteBuffer.clear();
+ }
+ byteCount++;
+
+ //Need to add on the tail if needs be
+ }
+
+ finalVersion = addTail(startByte, finalVersion, originalData);
+ count = 0;
+ countlast = 0;
+ System.out.println("ORIGINAL");
+ for (byte byt : originalData) {
+ count++;
+ if (byt < 0) {
+ if (countlast + 1 != count) {
+ System.out.println("");
+ }
+ System.out.println(count + " " + byt + " " + new String(new byte[] {originalData[count - 8],
+ originalData[count - 7], originalData[count - 6], originalData[count - 5], originalData[count - 4],
+ originalData[count - 3], originalData[count - 2], originalData[count - 1], originalData[count],
+ originalData[count + 1], originalData[count + 2], originalData[count + 3], originalData[count + 4],
+ originalData[count + 5], originalData[count + 6]}, "UTF-8"));
+ countlast = count;
+ }
+ }
+
+ System.out.println("FIXED");
+ count = 0;
+ countlast = 0;
+ for (byte byt : finalVersion) {
+ count++;
+ if (byt < 0) {
+ if (countlast + 1 != count) {
+ System.out.println("");
+ }
+ System.out.println(count + " " + byt + " " + new String(new byte[] {finalVersion[count - 9],
+ finalVersion[count - 8], finalVersion[count - 7], finalVersion[count - 6], finalVersion[count - 5],
+ finalVersion[count - 4], finalVersion[count - 3], finalVersion[count - 2], finalVersion[count - 1],
+ finalVersion[count], finalVersion[count + 1], finalVersion[count + 2], finalVersion[count + 3],
+ finalVersion[count + 4], finalVersion[count + 5], finalVersion[count + 6]}, "UTF-8"));
+ countlast = count;
+ }
+ }
+
+ try {
+ // Backup File
+ backupResourceLocally(backupFolder, resource);
+
+ // Perform Fix
+
+ resource.data = finalVersion;
+ // = new String(WordTemplateRenderer.getFormattedContent(rootElement), "UTF-8");
+ // resource.encoding = "UTF-8";
+ //
+
+ // UploadResource
+ uploadResource(attrData.getGammaId(), resource);
+
+ if (DEBUG) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, String.format(" After Fix : %s", resource.data));
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE,
+ String.format("Skiping File %s because of exception %s", attrData.getHrid(), ex));
+ }
+ monitor.worked(1);
+ }
+
+ StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
+ sbFull.append(AHTML.beginMultiColumnTable(100, 1));
+ sbFull.append(AHTML.addHeaderRowMultiColumnTable(columnHeaders));
+ for (String string : badData) {
+ sbFull.append(AHTML.addRowMultiColumnTable(new String[] {string}));
+ }
+ sbFull.append(AHTML.endMultiColumnTable());
+ XResultData rd = new XResultData();
+ rd.addRaw(sbFull.toString());
+ rd.report("Fix bad data", Manipulations.RAW_HTML);
+ }
+
+ /**
+ * @param startByte
+ * @param initialByte
+ * @param goodBytes
+ * @param finalVersion
+ * @return
+ */
+ private byte[] fixBytes(int startByte, int initialByte, byte[] goodBytes, byte[] finalVersion, byte[] originalData) {
+ byte[] fixed = new byte[initialByte - startByte + goodBytes.length + finalVersion.length];
+ int count = 0;
+ for (byte byt : finalVersion) {
+ fixed[count] = byt;
+ count++;
+ }
+ for (int x = startByte; x < initialByte; x++) {
+ fixed[count] = originalData[x];
+ count++;
+ }
+ for (byte byt : goodBytes) {
+ fixed[count] = byt;
+ count++;
+ }
+ return fixed;
+ }
+
+ /**
+ * @param startByte
+ * @param initialByte
+ * @param goodBytes
+ * @param finalVersion
+ * @return
+ */
+ private byte[] addTail(int startByte, byte[] finalVersion, byte[] originalData) {
+ byte[] fixed = new byte[originalData.length - startByte + finalVersion.length];
+ int count = 0;
+ for (byte byt : finalVersion) {
+ fixed[count] = byt;
+ count++;
+ }
+ for (int x = startByte; x < originalData.length; x++) {
+ fixed[count] = originalData[x];
+ count++;
+ }
+ return fixed;
+ }
+
+ private ArrayList<AttrData> loadAttrData() throws OseeCoreException {
+ ArrayList<AttrData> attrData = new ArrayList<AttrData>();
+
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
chStmt.runPreparedQuery(GET_ATTRS_TEST, AttributeTypeManager.getTypeId(CoreAttributeTypes.WordTemplateContent));
- while (chStmt.next()) {
- attrData.add(new AttrData(chStmt.getString("gamma_Id"), chStmt.getString("human_readable_id"),
- chStmt.getString("uri")));
- }
- } finally {
- chStmt.close();
- }
- return attrData;
- }
-
- private static void uploadResource(String gammaId, Resource resource) throws Exception {
- String fileName = resource.resourceName;
- Map<String, String> parameterMap = new HashMap<String, String>();
- parameterMap.put("sessionId", ClientSessionManager.getSessionId());
- parameterMap.put("is.overwrite.allowed", String.valueOf(true));
- parameterMap.put("protocol", "attr");
- parameterMap.put("seed", gammaId);
-
- String extension = Lib.getExtension(fileName);
- if (Strings.isValid(extension)) {
- parameterMap.put("extension", extension);
- int charToRemove = extension.length() + 1;
- fileName = fileName.substring(0, fileName.length() - charToRemove);
- }
- parameterMap.put("name", fileName);
-
- byte[] toUpload = resource.data;
- if (resource.wasZipped) {
- toUpload = Lib.compressStream(new ByteArrayInputStream(toUpload), resource.entryName);
- }
-
- String urlString =
- HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT, parameterMap);
- HttpProcessor.put(new URL(urlString), new ByteArrayInputStream(toUpload), resource.result.getContentType(),
- resource.result.getEncoding());
- }
-
- private Resource getResource(String resourcePath) throws OseeCoreException {
- Resource toReturn = null;
- ByteArrayOutputStream sourceOutputStream = new ByteArrayOutputStream();
- try {
- Map<String, String> parameterMap = new HashMap<String, String>();
- parameterMap.put("sessionId", ClientSessionManager.getSessionId());
- parameterMap.put("uri", resourcePath);
- String urlString =
- HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT,
- parameterMap);
-
- AcquireResult result = HttpProcessor.acquire(new URL(urlString), sourceOutputStream);
- if (result.getCode() == HttpURLConnection.HTTP_OK) {
- toReturn = new Resource(resourcePath, result, sourceOutputStream.toByteArray());
- }
- } catch (Exception ex) {
- OseeExceptions.wrapAndThrow(ex);
- } finally {
- try {
- sourceOutputStream.close();
- } catch (IOException ex) {
- OseeExceptions.wrapAndThrow(ex);
- }
- }
- return toReturn;
- }
-
- private final class Resource {
- private final String entryName;
- private final String resourceName;
- private final AcquireResult result;
- private final byte[] rawBytes;
- private final boolean wasZipped;
- private final String sourcePath;
-
- private byte[] data;
-
- // private String encoding;
-
- private Resource(String sourcePath, AcquireResult result, byte[] rawBytes) throws IOException {
- this.rawBytes = rawBytes;
- this.result = result;
- int index = sourcePath.lastIndexOf('/');
- this.sourcePath = sourcePath;
- this.resourceName = sourcePath.substring(index + 1, sourcePath.length());
- this.wasZipped = result.getContentType().contains("zip");
- if (wasZipped) {
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- this.entryName = decompressStream(new ByteArrayInputStream(rawBytes), outputStream);
- // this.encoding = "UTF-8";
- this.data = outputStream.toByteArray();
- } else {
- this.data = rawBytes;
- this.entryName = null;
- // this.encoding = result.getEncoding();
- }
- }
- }
-
- private static void backupResourceLocally(File backupFolder, Resource resource) throws IOException {
- InputStream inputStream = null;
- OutputStream outputStream = null;
- try {
- String path = resource.sourcePath.replace("attr://", "");
- //path = path.replaceAll("/", File.separator);
-
- File file = new File(backupFolder, path);
- file.getParentFile().mkdirs();
-
- outputStream = new FileOutputStream(file);
-
- inputStream = new ByteArrayInputStream(resource.rawBytes);
- Lib.inputStreamToOutputStream(inputStream, outputStream);
- } finally {
- if (inputStream != null) {
- inputStream.close();
- }
- if (outputStream != null) {
- outputStream.close();
- }
- }
- }
-
- private static String decompressStream(InputStream inputStream, OutputStream outputStream) throws IOException {
- String zipEntryName = null;
- ZipInputStream zipInputStream = null;
- try {
- zipInputStream = new ZipInputStream(inputStream);
- ZipEntry entry = zipInputStream.getNextEntry();
- zipEntryName = entry.getName();
- // Transfer bytes from the ZIP file to the output file
- byte[] buf = new byte[1024];
- int len;
- while ((len = zipInputStream.read(buf)) > 0) {
- outputStream.write(buf, 0, len);
- }
- } finally {
- if (zipInputStream != null) {
- zipInputStream.close();
- }
- }
- return zipEntryName;
- }
-
- @Override
- public String getXWidgetsXml() {
- return AbstractBlam.emptyXWidgetsXml;
- }
-
- class AttrData {
- private final String gammaId;
- private final String hrid;
- private final String uri;
-
- public AttrData(String gammaId, String hrid, String uri) {
- super();
- this.gammaId = gammaId;
- this.hrid = hrid;
- this.uri = uri;
- }
-
- public String getGammaId() {
- return gammaId;
- }
-
- public String getHrid() {
- return hrid;
- }
-
- public String getUri() {
- return uri;
- }
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-}
+ while (chStmt.next()) {
+ attrData.add(new AttrData(chStmt.getString("gamma_Id"), chStmt.getString("human_readable_id"),
+ chStmt.getString("uri")));
+ }
+ } finally {
+ chStmt.close();
+ }
+ return attrData;
+ }
+
+ private static void uploadResource(String gammaId, Resource resource) throws Exception {
+ String fileName = resource.resourceName;
+ Map<String, String> parameterMap = new HashMap<String, String>();
+ parameterMap.put("sessionId", ClientSessionManager.getSessionId());
+ parameterMap.put("is.overwrite.allowed", String.valueOf(true));
+ parameterMap.put("protocol", "attr");
+ parameterMap.put("seed", gammaId);
+
+ String extension = Lib.getExtension(fileName);
+ if (Strings.isValid(extension)) {
+ parameterMap.put("extension", extension);
+ int charToRemove = extension.length() + 1;
+ fileName = fileName.substring(0, fileName.length() - charToRemove);
+ }
+ parameterMap.put("name", fileName);
+
+ byte[] toUpload = resource.data;
+ if (resource.wasZipped) {
+ toUpload = Lib.compressStream(new ByteArrayInputStream(toUpload), resource.entryName);
+ }
+
+ String urlString =
+ HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT, parameterMap);
+ HttpProcessor.put(new URL(urlString), new ByteArrayInputStream(toUpload), resource.result.getContentType(),
+ resource.result.getEncoding());
+ }
+
+ private Resource getResource(String resourcePath) throws OseeCoreException {
+ Resource toReturn = null;
+ ByteArrayOutputStream sourceOutputStream = new ByteArrayOutputStream();
+ try {
+ Map<String, String> parameterMap = new HashMap<String, String>();
+ parameterMap.put("sessionId", ClientSessionManager.getSessionId());
+ parameterMap.put("uri", resourcePath);
+ String urlString =
+ HttpUrlBuilderClient.getInstance().getOsgiServletServiceUrl(OseeServerContext.RESOURCE_CONTEXT,
+ parameterMap);
+
+ AcquireResult result = HttpProcessor.acquire(new URL(urlString), sourceOutputStream);
+ if (result.getCode() == HttpURLConnection.HTTP_OK) {
+ toReturn = new Resource(resourcePath, result, sourceOutputStream.toByteArray());
+ }
+ } catch (Exception ex) {
+ OseeExceptions.wrapAndThrow(ex);
+ } finally {
+ try {
+ sourceOutputStream.close();
+ } catch (IOException ex) {
+ OseeExceptions.wrapAndThrow(ex);
+ }
+ }
+ return toReturn;
+ }
+
+ private final class Resource {
+ private final String entryName;
+ private final String resourceName;
+ private final AcquireResult result;
+ private final byte[] rawBytes;
+ private final boolean wasZipped;
+ private final String sourcePath;
+
+ private byte[] data;
+
+ // private String encoding;
+
+ private Resource(String sourcePath, AcquireResult result, byte[] rawBytes) throws IOException {
+ this.rawBytes = rawBytes;
+ this.result = result;
+ int index = sourcePath.lastIndexOf('/');
+ this.sourcePath = sourcePath;
+ this.resourceName = sourcePath.substring(index + 1, sourcePath.length());
+ this.wasZipped = result.getContentType().contains("zip");
+ if (wasZipped) {
+ ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
+ this.entryName = decompressStream(new ByteArrayInputStream(rawBytes), outputStream);
+ // this.encoding = "UTF-8";
+ this.data = outputStream.toByteArray();
+ } else {
+ this.data = rawBytes;
+ this.entryName = null;
+ // this.encoding = result.getEncoding();
+ }
+ }
+ }
+
+ private static void backupResourceLocally(File backupFolder, Resource resource) throws IOException {
+ InputStream inputStream = null;
+ OutputStream outputStream = null;
+ try {
+ String path = resource.sourcePath.replace("attr://", "");
+ //path = path.replaceAll("/", File.separator);
+
+ File file = new File(backupFolder, path);
+ file.getParentFile().mkdirs();
+
+ outputStream = new FileOutputStream(file);
+
+ inputStream = new ByteArrayInputStream(resource.rawBytes);
+ Lib.inputStreamToOutputStream(inputStream, outputStream);
+ } finally {
+ if (inputStream != null) {
+ inputStream.close();
+ }
+ if (outputStream != null) {
+ outputStream.close();
+ }
+ }
+ }
+
+ private static String decompressStream(InputStream inputStream, OutputStream outputStream) throws IOException {
+ String zipEntryName = null;
+ ZipInputStream zipInputStream = null;
+ try {
+ zipInputStream = new ZipInputStream(inputStream);
+ ZipEntry entry = zipInputStream.getNextEntry();
+ zipEntryName = entry.getName();
+ // Transfer bytes from the ZIP file to the output file
+ byte[] buf = new byte[1024];
+ int len;
+ while ((len = zipInputStream.read(buf)) > 0) {
+ outputStream.write(buf, 0, len);
+ }
+ } finally {
+ if (zipInputStream != null) {
+ zipInputStream.close();
+ }
+ }
+ return zipEntryName;
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return AbstractBlam.emptyXWidgetsXml;
+ }
+
+ class AttrData {
+ private final String gammaId;
+ private final String hrid;
+ private final String uri;
+
+ public AttrData(String gammaId, String hrid, String uri) {
+ super();
+ this.gammaId = gammaId;
+ this.hrid = hrid;
+ this.uri = uri;
+ }
+
+ public String getGammaId() {
+ return gammaId;
+ }
+
+ public String getHrid() {
+ return hrid;
+ }
+
+ public String getUri() {
+ return uri;
+ }
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/SetRequirementCategory.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/SetRequirementCategory.java
index 9c85087361a..98dccdc0724 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/SetRequirementCategory.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/SetRequirementCategory.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.framework.ui.skynet.blam.operation;
-
-import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.logging.Level;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
-import org.eclipse.osee.framework.core.exception.MultipleArtifactsExist;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class SetRequirementCategory extends AbstractBlam {
- private final HashMap<String, Artifact> reqs = new HashMap<String, Artifact>();
- private HashMap<String, String> reqPriorities;
- private boolean bulkLoad;
- private Branch branch;
-
- @Override
- public String getName() {
- return "Set Requirement Category";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- monitor.beginTask("Set Categories", 100);
-
- branch = variableMap.getBranch("Branch");
- String excelMlPath = variableMap.getString("ExcelML Priority File");
- bulkLoad = variableMap.getBoolean("Bulk Load");
-
- ExtractReqPriority extractor = new ExtractReqPriority(excelMlPath);
- reqPriorities = extractor.getReqPriorities();
-
- if (bulkLoad) {
- for (Artifact req : ArtifactQuery.getArtifactListFromTypeWithInheritence(
- CoreArtifactTypes.AbstractSoftwareRequirement, branch, EXCLUDE_DELETED)) {
- reqs.put(req.getName().trim(), req);
- }
- }
-
- SkynetTransaction transaction = new SkynetTransaction(branch, "set requirement categories");
- for (String requirementName : reqPriorities.keySet()) {
- updateCategory(transaction, requirementName);
- }
- transaction.execute();
-
- reqs.clear();
- }
-
- private void updateCategory(SkynetTransaction transaction, String requirementName) {
- try {
- String canonicalRequirementName = requirementName.trim();
- Artifact requirement = getRequirement(requirementName, canonicalRequirementName);
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import static org.eclipse.osee.framework.skynet.core.artifact.DeletionFlag.EXCLUDE_DELETED;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.logging.Level;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
+import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
+import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
+import org.eclipse.osee.framework.core.exception.MultipleArtifactsExist;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.model.Branch;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransaction;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public class SetRequirementCategory extends AbstractBlam {
+ private final HashMap<String, Artifact> reqs = new HashMap<String, Artifact>();
+ private HashMap<String, String> reqPriorities;
+ private boolean bulkLoad;
+ private Branch branch;
+
+ @Override
+ public String getName() {
+ return "Set Requirement Category";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ monitor.beginTask("Set Categories", 100);
+
+ branch = variableMap.getBranch("Branch");
+ String excelMlPath = variableMap.getString("ExcelML Priority File");
+ bulkLoad = variableMap.getBoolean("Bulk Load");
+
+ ExtractReqPriority extractor = new ExtractReqPriority(excelMlPath);
+ reqPriorities = extractor.getReqPriorities();
+
+ if (bulkLoad) {
+ for (Artifact req : ArtifactQuery.getArtifactListFromTypeWithInheritence(
+ CoreArtifactTypes.AbstractSoftwareRequirement, branch, EXCLUDE_DELETED)) {
+ reqs.put(req.getName().trim(), req);
+ }
+ }
+
+ SkynetTransaction transaction = new SkynetTransaction(branch, "set requirement categories");
+ for (String requirementName : reqPriorities.keySet()) {
+ updateCategory(transaction, requirementName);
+ }
+ transaction.execute();
+
+ reqs.clear();
+ }
+
+ private void updateCategory(SkynetTransaction transaction, String requirementName) {
+ try {
+ String canonicalRequirementName = requirementName.trim();
+ Artifact requirement = getRequirement(requirementName, canonicalRequirementName);
requirement.setSoleAttributeValue(CoreAttributeTypes.Category, reqPriorities.get(canonicalRequirementName));
- requirement.persist(transaction);
- } catch (OseeCoreException ex) {
- OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
- }
- }
-
- private Artifact getSoleRequirement(String requirementName, String canonicalRequirementName) throws OseeCoreException {
- Artifact requirement;
- if (bulkLoad) {
- requirement = reqs.get(canonicalRequirementName);
- if (requirement == null) {
- throw new ArtifactDoesNotExist("cant' find " + canonicalRequirementName);
- }
- } else {
- try {
+ requirement.persist(transaction);
+ } catch (OseeCoreException ex) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
+ private Artifact getSoleRequirement(String requirementName, String canonicalRequirementName) throws OseeCoreException {
+ Artifact requirement;
+ if (bulkLoad) {
+ requirement = reqs.get(canonicalRequirementName);
+ if (requirement == null) {
+ throw new ArtifactDoesNotExist("cant' find " + canonicalRequirementName);
+ }
+ } else {
+ try {
requirement = ArtifactQuery.getArtifactFromAttribute(CoreAttributeTypes.Name, requirementName, branch);
- } catch (ArtifactDoesNotExist ex) {
- requirement =
+ } catch (ArtifactDoesNotExist ex) {
+ requirement =
ArtifactQuery.getArtifactFromAttribute(CoreAttributeTypes.Name, canonicalRequirementName, branch);
- }
- }
- return requirement;
- }
-
- private Artifact getRequirement(String requirementName, String canonicalRequirementName) throws OseeCoreException {
- try {
- Artifact requirement = getSoleRequirement(requirementName, canonicalRequirementName);
-
- if (requirement.isOrphan()) {
- throw new MultipleArtifactsExist(requirement.getName());
- }
- return requirement;
- } catch (MultipleArtifactsExist ex) {
- List<Artifact> artiafcts =
- ArtifactQuery.getArtifactListFromTypeAndName(CoreArtifactTypes.SoftwareRequirement,
- canonicalRequirementName, branch);
- for (Artifact requirement : artiafcts) {
- if (requirement.isOrphan()) {
- OseeLog.log(SkynetGuiPlugin.class, Level.INFO, requirement + " is an orphan");
- }
- }
- throw ex;
- }
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Bulk Load\" /><XWidget xwidgetType=\"XText\" displayName=\"ExcelML Priority File\" defaultValue=\"C:/UserData/RequirementCategories.xml\" /><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Sets the Category attribute on software requirements.";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Define");
- }
+ }
+ }
+ return requirement;
+ }
+
+ private Artifact getRequirement(String requirementName, String canonicalRequirementName) throws OseeCoreException {
+ try {
+ Artifact requirement = getSoleRequirement(requirementName, canonicalRequirementName);
+
+ if (requirement.isOrphan()) {
+ throw new MultipleArtifactsExist(requirement.getName());
+ }
+ return requirement;
+ } catch (MultipleArtifactsExist ex) {
+ List<Artifact> artiafcts =
+ ArtifactQuery.getArtifactListFromTypeAndName(CoreArtifactTypes.SoftwareRequirement,
+ canonicalRequirementName, branch);
+ for (Artifact requirement : artiafcts) {
+ if (requirement.isOrphan()) {
+ OseeLog.log(SkynetGuiPlugin.class, Level.INFO, requirement + " is an orphan");
+ }
+ }
+ throw ex;
+ }
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets><XWidget xwidgetType=\"XCheckBox\" horizontalLabel=\"true\" labelAfter=\"true\" displayName=\"Bulk Load\" /><XWidget xwidgetType=\"XText\" displayName=\"ExcelML Priority File\" defaultValue=\"C:/UserData/RequirementCategories.xml\" /><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Branch\" /></xWidgets>";
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "Sets the Category attribute on software requirements.";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Define");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java
index 44e055860b2..1e42fa830e8 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/ShowRevertTransactions.java
@@ -1,68 +1,68 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.results.XResultData;
-import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
-
-/**
- * @author Theron Virgin
- */
-public class ShowRevertTransactions extends AbstractBlam {
- private static final String GET_REVERT_TRANSACTIONS =
- "Select DISTINCT det.branch_id, Value, txs.transaction_id, Time FROM osee_removed_txs txs, osee_tx_details det, osee_attribute attr, osee_txs txs1 WHERE txs.transaction_id = det.transaction_id AND det.author = attr.art_id AND attr.attr_type_id = 30 AND attr.gamma_id = txs1.gamma_id AND txs1.tx_current = 1 ORDER BY time";
-
- @Override
- public String getName() {
- return "Show Revert Transactions";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
-
- sbFull.append(AHTML.addHeaderRowMultiColumnTable(new String[] {"Branch ID", "User", "Transaction_ID", "Date"}));
-
- IOseeStatement chStmt = ConnectionHandler.getStatement();
- try {
- chStmt.runPreparedQuery(GET_REVERT_TRANSACTIONS);
- while (chStmt.next()) {
- sbFull.append(AHTML.addRowMultiColumnTable(new String[] {String.valueOf(chStmt.getInt("branch_id")),
- chStmt.getString("value"), String.valueOf(chStmt.getInt("transaction_id")),
- chStmt.getDate("time").toString()}));
- }
- sbFull.append(AHTML.endMultiColumnTable());
- XResultData rd = new XResultData();
- rd.addRaw(sbFull.toString());
- rd.report("Revert Transactions", Manipulations.RAW_HTML);
- } finally {
- chStmt.close();
- }
- }
-
- @Override
- public String getXWidgetsXml() {
- return "<xWidgets></xWidgets>";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
+import org.eclipse.osee.framework.database.core.IOseeStatement;
+import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.results.XResultData;
+import org.eclipse.osee.framework.ui.skynet.results.html.XResultPage.Manipulations;
+
+/**
+ * @author Theron Virgin
+ */
+public class ShowRevertTransactions extends AbstractBlam {
+ private static final String GET_REVERT_TRANSACTIONS =
+ "Select DISTINCT det.branch_id, Value, txs.transaction_id, Time FROM osee_removed_txs txs, osee_tx_details det, osee_attribute attr, osee_txs txs1 WHERE txs.transaction_id = det.transaction_id AND det.author = attr.art_id AND attr.attr_type_id = 30 AND attr.gamma_id = txs1.gamma_id AND txs1.tx_current = 1 ORDER BY time";
+
+ @Override
+ public String getName() {
+ return "Show Revert Transactions";
+ }
+
+ @Override
+ public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ StringBuffer sbFull = new StringBuffer(AHTML.beginMultiColumnTable(100, 1));
+
+ sbFull.append(AHTML.addHeaderRowMultiColumnTable(new String[] {"Branch ID", "User", "Transaction_ID", "Date"}));
+
+ IOseeStatement chStmt = ConnectionHandler.getStatement();
+ try {
+ chStmt.runPreparedQuery(GET_REVERT_TRANSACTIONS);
+ while (chStmt.next()) {
+ sbFull.append(AHTML.addRowMultiColumnTable(new String[] {String.valueOf(chStmt.getInt("branch_id")),
+ chStmt.getString("value"), String.valueOf(chStmt.getInt("transaction_id")),
+ chStmt.getDate("time").toString()}));
+ }
+ sbFull.append(AHTML.endMultiColumnTable());
+ XResultData rd = new XResultData();
+ rd.addRaw(sbFull.toString());
+ rd.report("Revert Transactions", Manipulations.RAW_HTML);
+ } finally {
+ chStmt.close();
+ }
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ return "<xWidgets></xWidgets>";
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UpdateArtifactTypeImage.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UpdateArtifactTypeImage.java
index e6a20bd1083..1917afd8bd8 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UpdateArtifactTypeImage.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/UpdateArtifactTypeImage.java
@@ -1,91 +1,91 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.operation;
-
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-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.ui.skynet.ArtifactImageManager;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.swt.Displays;
-
-/**
- * @author Ryan D. Brooks
- */
-public final class UpdateArtifactTypeImage extends AbstractBlam {
-
- private static final String ARTIFACT_TYPE_NAME = "Select Artifact Type";
- private static final String SELECT_IMAGE = "Select Image GIF";
-
- @Override
- public String getName() {
- return "Update ArtifactType Image";
- }
-
- @Override
- public void runOperation(final VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- String filename = variableMap.getString(SELECT_IMAGE);
- final ArtifactType artifactSubtypeDescriptor = variableMap.getArtifactType("Select Artifact Type");
- if (Strings.isValid(filename)) {
- File imageFile = new File(filename);
- if (!imageFile.exists()) {
- throw new OseeArgumentException("Invalid image filename.");
- }
- ArtifactImageManager.setArtifactTypeImageInDb(artifactSubtypeDescriptor,
- new ByteArrayInputStream(Lib.inputStreamToBytes(new FileInputStream(imageFile))));
- } else {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- try {
- if (MessageDialog.openConfirm(Displays.getActiveShell(), "Clear Database Image?",
- "No Image File Selected.\n\nSelect \"Ok\" to clear image from database (default image will be used).")) {
- ArtifactImageManager.setArtifactTypeImageInDb(artifactSubtypeDescriptor, null);
- }
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- });
- }
- }
-
- @Override
- public String getDescriptionUsage() {
- return "This BLAM will import the selected 16x16 pixel gif image as the image for the selected artifact type. Existing image will be overwritten.\nLeaving image filename blank will clear the image from the database. Programatic default will be used instead.";
- }
-
- @Override
- public String getXWidgetsXml() {
- StringBuffer buffer = new StringBuffer("<xWidgets>");
- buffer.append("<XWidget xwidgetType=\"XFileSelectionDialog\" displayName=\"" + SELECT_IMAGE + "\" />");
- buffer.append("<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"" + ARTIFACT_TYPE_NAME + "\" />");
- buffer.append("</xWidgets>");
- return buffer.toString();
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin");
- }
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.operation;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.core.model.type.ArtifactType;
+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.ui.skynet.ArtifactImageManager;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.swt.Displays;
+
+/**
+ * @author Ryan D. Brooks
+ */
+public final class UpdateArtifactTypeImage extends AbstractBlam {
+
+ private static final String ARTIFACT_TYPE_NAME = "Select Artifact Type";
+ private static final String SELECT_IMAGE = "Select Image GIF";
+
+ @Override
+ public String getName() {
+ return "Update ArtifactType Image";
+ }
+
+ @Override
+ public void runOperation(final VariableMap variableMap, IProgressMonitor monitor) throws Exception {
+ String filename = variableMap.getString(SELECT_IMAGE);
+ final ArtifactType artifactSubtypeDescriptor = variableMap.getArtifactType("Select Artifact Type");
+ if (Strings.isValid(filename)) {
+ File imageFile = new File(filename);
+ if (!imageFile.exists()) {
+ throw new OseeArgumentException("Invalid image filename.");
+ }
+ ArtifactImageManager.setArtifactTypeImageInDb(artifactSubtypeDescriptor,
+ new ByteArrayInputStream(Lib.inputStreamToBytes(new FileInputStream(imageFile))));
+ } else {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ try {
+ if (MessageDialog.openConfirm(Displays.getActiveShell(), "Clear Database Image?",
+ "No Image File Selected.\n\nSelect \"Ok\" to clear image from database (default image will be used).")) {
+ ArtifactImageManager.setArtifactTypeImageInDb(artifactSubtypeDescriptor, null);
+ }
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+ });
+ }
+ }
+
+ @Override
+ public String getDescriptionUsage() {
+ return "This BLAM will import the selected 16x16 pixel gif image as the image for the selected artifact type. Existing image will be overwritten.\nLeaving image filename blank will clear the image from the database. Programatic default will be used instead.";
+ }
+
+ @Override
+ public String getXWidgetsXml() {
+ StringBuffer buffer = new StringBuffer("<xWidgets>");
+ buffer.append("<XWidget xwidgetType=\"XFileSelectionDialog\" displayName=\"" + SELECT_IMAGE + "\" />");
+ buffer.append("<XWidget xwidgetType=\"XArtifactTypeListViewer\" displayName=\"" + ARTIFACT_TYPE_NAME + "\" />");
+ buffer.append("</xWidgets>");
+ return buffer.toString();
+ }
+
+ @Override
+ public Collection<String> getCategories() {
+ return Arrays.asList("Admin");
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BaseBlamSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BaseBlamSection.java
index fdc368e3c19..a3a4382d39b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BaseBlamSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BaseBlamSection.java
@@ -1,46 +1,46 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.sections;
-
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.SectionPart;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BaseBlamSection extends SectionPart {
-
- private final FormEditor editor;
- private final AbstractBlam abstractBlam;
-
- /**
- * @param parent
- * @param toolkit
- * @param style
- */
- public BaseBlamSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style) {
- super(parent, toolkit, style);
- this.editor = editor;
- this.abstractBlam = abstractBlam;
- }
-
- public FormEditor getEditor() {
- return editor;
- }
-
- public AbstractBlam getAbstractBlam() {
- return abstractBlam;
- }
-
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.sections;
+
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.SectionPart;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class BaseBlamSection extends SectionPart {
+
+ private final FormEditor editor;
+ private final AbstractBlam abstractBlam;
+
+ /**
+ * @param parent
+ * @param toolkit
+ * @param style
+ */
+ public BaseBlamSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style) {
+ super(parent, toolkit, style);
+ this.editor = editor;
+ this.abstractBlam = abstractBlam;
+ }
+
+ public FormEditor getEditor() {
+ return editor;
+ }
+
+ public AbstractBlam getAbstractBlam() {
+ return abstractBlam;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
index fbf6e0b801b..5009b7a79e2 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
@@ -1,138 +1,138 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.sections;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.core.exception.OseeArgumentException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
-import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-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.Control;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BlamInputSection extends BaseBlamSection {
-
- private final Collection<DynamicXWidgetLayoutData> dynamicInputLayouts;
-
- public BlamInputSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style) {
- super(editor, abstractBlam, parent, toolkit, style);
- this.dynamicInputLayouts = new ArrayList<DynamicXWidgetLayoutData>();
- }
-
- @Override
- public void initialize(IManagedForm form) {
- super.initialize(form);
- Section section = getSection();
- section.setText("Parameters");
- section.setLayout(new GridLayout());
- section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- updateDataPart();
- }
-
- public VariableMap getData() throws OseeArgumentException {
- VariableMap blamVariableMap = new VariableMap();
- List<XWidget> xWidgets = XWidgetUtility.findXWidgetsInControl(getSection());
- for (XWidget xWidget : xWidgets) {
- blamVariableMap.setValue(xWidget.getLabel(), xWidget.getData());
- }
- return blamVariableMap;
- }
-
- private void updateDataPart() {
- final IManagedForm form = getManagedForm();
- final FormToolkit toolkit = form.getToolkit();
- final Section section = getSection();
-
- Control control = section.getClient();
- if (Widgets.isAccessible(control)) {
- control.dispose();
- }
- Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
- sectionBody.setLayout(new GridLayout());
- sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- createWidgets(sectionBody);
-
- section.setClient(sectionBody);
- toolkit.paintBordersFor(section);
-
- section.layout(true);
- form.getForm().getBody().layout(true);
-
- }
-
- private void createWidgets(Composite parent) {
- try {
- List<DynamicXWidgetLayoutData> layoutDatas = getDynamicXWidgetLayouts();
- WorkPage workPage = new WorkPage(layoutDatas, new DefaultXWidgetOptionResolver(), getAbstractBlam());
- workPage.createBody(getManagedForm(), parent, null, new XModifiedListener() {
-
- @Override
- public void widgetModified(XWidget widget) {
- getManagedForm().reflow(true);
- }
-
- }, true);
- } catch (Exception ex) {
- OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- private List<DynamicXWidgetLayoutData> getDynamicXWidgetLayouts() throws Exception {
- List<DynamicXWidgetLayoutData> itemsToReturn = new ArrayList<DynamicXWidgetLayoutData>();
- itemsToReturn.addAll(getAbstractBlam().getLayoutDatas());
- itemsToReturn.addAll(dynamicInputLayouts);
- return itemsToReturn;
- }
-
- @Override
- public void dispose() {
- super.dispose();
- }
-
- @Override
- public void refresh() {
- super.refresh();
- updateDataPart();
- }
-
- public void setDynamicXWidgetLayouts(Collection<DynamicXWidgetLayout> layouts) {
- if (layouts != null) {
- this.dynamicInputLayouts.clear();
- for (DynamicXWidgetLayout layout : layouts) {
- this.dynamicInputLayouts.addAll(layout.getLayoutDatas());
- }
- refresh();
- }
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.sections;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.osee.framework.core.exception.OseeArgumentException;
+import org.eclipse.osee.framework.logging.OseeLevel;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
+import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
+import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DefaultXWidgetOptionResolver;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.workflow.WorkPage;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+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.Control;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class BlamInputSection extends BaseBlamSection {
+
+ private final Collection<DynamicXWidgetLayoutData> dynamicInputLayouts;
+
+ public BlamInputSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style) {
+ super(editor, abstractBlam, parent, toolkit, style);
+ this.dynamicInputLayouts = new ArrayList<DynamicXWidgetLayoutData>();
+ }
+
+ @Override
+ public void initialize(IManagedForm form) {
+ super.initialize(form);
+ Section section = getSection();
+ section.setText("Parameters");
+ section.setLayout(new GridLayout());
+ section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ updateDataPart();
+ }
+
+ public VariableMap getData() throws OseeArgumentException {
+ VariableMap blamVariableMap = new VariableMap();
+ List<XWidget> xWidgets = XWidgetUtility.findXWidgetsInControl(getSection());
+ for (XWidget xWidget : xWidgets) {
+ blamVariableMap.setValue(xWidget.getLabel(), xWidget.getData());
+ }
+ return blamVariableMap;
+ }
+
+ private void updateDataPart() {
+ final IManagedForm form = getManagedForm();
+ final FormToolkit toolkit = form.getToolkit();
+ final Section section = getSection();
+
+ Control control = section.getClient();
+ if (Widgets.isAccessible(control)) {
+ control.dispose();
+ }
+ Composite sectionBody = toolkit.createComposite(section, toolkit.getBorderStyle());
+ sectionBody.setLayout(new GridLayout());
+ sectionBody.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ createWidgets(sectionBody);
+
+ section.setClient(sectionBody);
+ toolkit.paintBordersFor(section);
+
+ section.layout(true);
+ form.getForm().getBody().layout(true);
+
+ }
+
+ private void createWidgets(Composite parent) {
+ try {
+ List<DynamicXWidgetLayoutData> layoutDatas = getDynamicXWidgetLayouts();
+ WorkPage workPage = new WorkPage(layoutDatas, new DefaultXWidgetOptionResolver(), getAbstractBlam());
+ workPage.createBody(getManagedForm(), parent, null, new XModifiedListener() {
+
+ @Override
+ public void widgetModified(XWidget widget) {
+ getManagedForm().reflow(true);
+ }
+
+ }, true);
+ } catch (Exception ex) {
+ OseeLog.log(SkynetGuiPlugin.class, OseeLevel.SEVERE_POPUP, ex);
+ }
+ }
+
+ private List<DynamicXWidgetLayoutData> getDynamicXWidgetLayouts() throws Exception {
+ List<DynamicXWidgetLayoutData> itemsToReturn = new ArrayList<DynamicXWidgetLayoutData>();
+ itemsToReturn.addAll(getAbstractBlam().getLayoutDatas());
+ itemsToReturn.addAll(dynamicInputLayouts);
+ return itemsToReturn;
+ }
+
+ @Override
+ public void dispose() {
+ super.dispose();
+ }
+
+ @Override
+ public void refresh() {
+ super.refresh();
+ updateDataPart();
+ }
+
+ public void setDynamicXWidgetLayouts(Collection<DynamicXWidgetLayout> layouts) {
+ if (layouts != null) {
+ this.dynamicInputLayouts.clear();
+ for (DynamicXWidgetLayout layout : layouts) {
+ this.dynamicInputLayouts.addAll(layout.getLayoutDatas());
+ }
+ refresh();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamOutputSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamOutputSection.java
index 567a8c6666c..ee799808b2d 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamOutputSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamOutputSection.java
@@ -1,153 +1,153 @@
-/*******************************************************************************
- * 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.framework.ui.skynet.blam.sections;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.ActionContributionItem;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.osee.framework.ui.swt.Widgets;
-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.Text;
-import org.eclipse.ui.forms.IManagedForm;
-import org.eclipse.ui.forms.editor.FormEditor;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BlamOutputSection extends BaseBlamSection {
-
- private Text formText;
- private Appendable appendableOutput;
- private final Action executBlamAction;
-
- public BlamOutputSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style, Action executBlamAction) {
- super(editor, abstractBlam, parent, toolkit, style);
- this.executBlamAction = executBlamAction;
- }
-
- public void simluateRun() {
- this.executBlamAction.run();
- }
-
- @Override
- public void initialize(IManagedForm form) {
- super.initialize(form);
- Section section = getSection();
- section.setText("Execute");
- section.setLayout(new GridLayout());
- section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- final FormToolkit toolkit = getManagedForm().getToolkit();
- Composite composite = toolkit.createComposite(getSection(), toolkit.getBorderStyle() | SWT.WRAP);
- composite.setLayout(new GridLayout());
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- if (executBlamAction != null) {
- ActionContributionItem contributionItem = new ActionContributionItem(executBlamAction);
- contributionItem.setMode(ActionContributionItem.MODE_FORCE_TEXT);
- contributionItem.fill(composite);
- }
-
- formText = toolkit.createText(composite, "BLAM has not yet run\n", SWT.WRAP);
- GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- gd.heightHint = 500;
- gd.widthHint = 200;
- formText.setLayoutData(gd);
-
- getSection().setClient(composite);
- toolkit.paintBordersFor(composite);
-
- section.layout(true);
- form.getForm().getBody().layout(true);
-
- }
-
- public void appendText(final String text) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (Widgets.isAccessible(formText)) {
- formText.append(text);
- getManagedForm().reflow(true);
- }
- }
- });
- }
-
- public void setText(final String text) {
- Displays.ensureInDisplayThread(new Runnable() {
- @Override
- public void run() {
- if (Widgets.isAccessible(formText)) {
- formText.setText(text);
- getManagedForm().reflow(true);
- }
- }
- });
- }
-
- public Appendable getOutput() {
- if (appendableOutput == null) {
- appendableOutput = new InternalAppendable();
- }
- return appendableOutput;
- }
-
- @Override
- public void dispose() {
- if (Widgets.isAccessible(formText)) {
- formText.dispose();
- }
- super.dispose();
- }
-
- @Override
- public void refresh() {
- super.refresh();
- }
-
- private final class InternalAppendable implements Appendable {
-
- private void write(final String text) {
- appendText(text);
- }
-
- @Override
- public Appendable append(CharSequence csq) {
- if (csq == null) {
- write("null");
- } else {
- write(csq.toString());
- }
- return this;
- }
-
- @Override
- public Appendable append(char c) {
- write(new String(new char[] {c}));
- return this;
- }
-
- @Override
- public Appendable append(CharSequence csq, int start, int end) {
- CharSequence cs = csq == null ? "null" : csq;
- write(cs.subSequence(start, end).toString());
- return this;
- }
-
- }
-}
+/*******************************************************************************
+ * 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.framework.ui.skynet.blam.sections;
+
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.ActionContributionItem;
+import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
+import org.eclipse.osee.framework.ui.swt.Displays;
+import org.eclipse.osee.framework.ui.swt.Widgets;
+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.Text;
+import org.eclipse.ui.forms.IManagedForm;
+import org.eclipse.ui.forms.editor.FormEditor;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class BlamOutputSection extends BaseBlamSection {
+
+ private Text formText;
+ private Appendable appendableOutput;
+ private final Action executBlamAction;
+
+ public BlamOutputSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style, Action executBlamAction) {
+ super(editor, abstractBlam, parent, toolkit, style);
+ this.executBlamAction = executBlamAction;
+ }
+
+ public void simluateRun() {
+ this.executBlamAction.run();
+ }
+
+ @Override
+ public void initialize(IManagedForm form) {
+ super.initialize(form);
+ Section section = getSection();
+ section.setText("Execute");
+ section.setLayout(new GridLayout());
+ section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ final FormToolkit toolkit = getManagedForm().getToolkit();
+ Composite composite = toolkit.createComposite(getSection(), toolkit.getBorderStyle() | SWT.WRAP);
+ composite.setLayout(new GridLayout());
+ composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ if (executBlamAction != null) {
+ ActionContributionItem contributionItem = new ActionContributionItem(executBlamAction);
+ contributionItem.setMode(ActionContributionItem.MODE_FORCE_TEXT);
+ contributionItem.fill(composite);
+ }
+
+ formText = toolkit.createText(composite, "BLAM has not yet run\n", SWT.WRAP);
+ GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gd.heightHint = 500;
+ gd.widthHint = 200;
+ formText.setLayoutData(gd);
+
+ getSection().setClient(composite);
+ toolkit.paintBordersFor(composite);
+
+ section.layout(true);
+ form.getForm().getBody().layout(true);
+
+ }
+
+ public void appendText(final String text) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (Widgets.isAccessible(formText)) {
+ formText.append(text);
+ getManagedForm().reflow(true);
+ }
+ }
+ });
+ }
+
+ public void setText(final String text) {
+ Displays.ensureInDisplayThread(new Runnable() {
+ @Override
+ public void run() {
+ if (Widgets.isAccessible(formText)) {
+ formText.setText(text);
+ getManagedForm().reflow(true);
+ }
+ }
+ });
+ }
+
+ public Appendable getOutput() {
+ if (appendableOutput == null) {
+ appendableOutput = new InternalAppendable();
+ }
+ return appendableOutput;
+ }
+
+ @Override
+ public void dispose() {
+ if (Widgets.isAccessible(formText)) {
+ formText.dispose();
+ }
+ super.dispose();
+ }
+
+ @Override
+ public void refresh() {
+ super.refresh();
+ }
+
+ private final class InternalAppendable implements Appendable {
+
+ private void write(final String text) {
+ appendText(text);
+ }
+
+ @Override
+ public Appendable append(CharSequence csq) {
+ if (csq == null) {
+ write("null");
+ } else {
+ write(csq.toString());
+ }
+ return this;
+ }
+
+ @Override
+ public Appendable append(char c) {
+ write(new String(new char[] {c}));
+ return this;
+ }
+
+ @Override
+ public Appendable append(CharSequence csq, int start, int end) {
+ CharSequence cs = csq == null ? "null" : csq;
+ write(cs.subSequence(start, end).toString());
+ return this;
+ }
+
+ }
+}

Back to the top