├── .sonarcloud.properties ├── DsmSuite.Analyzer.Cpp.Test.Data ├── PackageA1 │ ├── FileA.cpp │ ├── FileA.h │ ├── FileB.cpp │ ├── FileB.h │ ├── FileC.cpp │ └── FileC.h ├── PackageA2 │ ├── FileA.h │ ├── FileD.cpp │ └── FileD.h ├── PackageA3 │ ├── FileA.h │ ├── FileE.cpp │ └── FileE.h └── DsmSuite.Analyzer.Cpp.Test.Data.vcxproj.filters ├── moqnote..txt ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp ├── DirA │ ├── ClassA2.h │ ├── ClassA1.cpp │ ├── ClassA1.h │ ├── ClassA2.cpp │ └── ClassA3.h ├── DirB │ ├── ClassB1.cpp │ └── ClassB1.h ├── DirC │ ├── ClassC1.cpp │ └── ClassC1.h ├── DirD │ ├── ClassD1.cpp │ └── ClassD1.h ├── DirE │ ├── ClassE1.cpp │ └── ClassE1.h ├── DirF │ ├── ClassF1.cpp │ └── ClassF1.h ├── DirG │ ├── ClassG1.cpp │ └── ClassG1.h ├── DirClones │ ├── Identical │ │ ├── ClassA1.cpp │ │ └── CopyClassA1.cpp │ └── NotIdentical │ │ └── ClassA1.cpp ├── DirExternal │ ├── readme.txt │ └── External.h ├── targetver.h ├── DirInterfaces │ └── ClassA3.h ├── DirIDL │ ├── IInterface2.idl │ └── IInterface1.idl ├── Includes.props └── dlldata.c ├── DsmSuite.Common.Util.Test ├── TestFile.txt ├── TestFile.zip ├── StringExtensionsTest.cs ├── DsmSuite.Common.Util.Test.csproj └── FilePathTest.cs ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Com ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Com.rgs ├── ComA.cpp ├── resource.h ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Com.rc ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Com.aps ├── stdafx.cpp ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Com.def ├── targetver.h ├── ComA.rgs ├── xdlldata.h ├── dllmain.h ├── xdlldata.c ├── dllmain.cpp ├── stdafx.h ├── DsmSuiteAnalyzerVisualStudioTestDataCom.idl ├── dlldata.c └── ComA.h ├── create_test_report.bat ├── DsmSuite.Analyzer.Uml.Test ├── SampleModel.EAP ├── AnalyzerTest.cs ├── SetupAssemblyInitializer.cs ├── app.config ├── packages.config └── DsmSuite.Analyzer.Uml.Test.csproj ├── DsmSuite.Analyzer.Uml ├── libs │ └── Interop.EA.dll ├── App.config └── DsmSuite.Analyzer.Uml.csproj ├── DsmSuite.DsmViewer.View ├── partition.design ├── show cycles.design ├── App.config ├── Properties │ ├── Settings.settings │ └── Settings.Designer.cs ├── Windows │ ├── ProgressWindow.xaml.cs │ └── ProgressWindow.xaml ├── Matrix │ ├── MatrixMetricsSelectorView.xaml.cs │ ├── MatrixTopCornerView.xaml.cs │ ├── MatrixTopCornerView.xaml │ ├── MatrixView.xaml.cs │ └── MatrixMetricsSelectorView.xaml ├── UserControls │ ├── ElementSearchBox.xaml.cs │ └── LegendView.xaml.cs ├── Settings │ └── SettingsDialog.xaml.cs ├── Editing │ ├── ElementEditDialog.xaml.cs │ ├── SnapshotCreateDialog.xaml.cs │ └── RelationEditDialog.xaml.cs ├── Validation │ ├── ElementNameMustBeNonEmptyRule.cs │ └── WeightMustBePositiveNumberRule.cs ├── Lists │ ├── ActionListView.xaml.cs │ ├── ElementListView.xaml.cs │ └── RelationListView.xaml.cs ├── ValueConverters │ ├── MatrixSizeToVisbilityConverter.cs │ ├── MetricsExpandedToViewWidthConverter.cs │ ├── SearchElementFoundToVisibilityConverter.cs │ ├── SearchStateOffToVisibilityConverter.cs │ ├── SearchElementNotFoundToVisibilityConverter.cs │ ├── SearchStateNotOffToVisibilityConverter.cs │ ├── DefaultIndicatorModeToVisibilityConverter.cs │ ├── SearchIndicatorModeToVisibilityConverter.cs │ ├── BookmarkIndicatorModeToVisibilityConverter.cs │ ├── MetricsExpandedToButtonContentConverter.cs │ └── SearchStateToColorConverter.cs ├── DsmSuite.DsmViewer.View.csproj ├── App.xaml └── Resources │ ├── Themes │ └── ThemeResourceDictionary.cs │ └── Converters.xaml ├── DsmSuite.Analyzer.DotNet.Test.Data ├── BaseType.cs ├── FieldType.cs ├── ReturnType.cs ├── ParameterEnum.cs ├── ParameterType.cs ├── PropertyEnum.cs ├── PropertyType.cs ├── GenericFieldType.cs ├── GenericReturnType.cs ├── MethodVariableType.cs ├── GenericPropertyType.cs ├── GenericParameterType.cs ├── DelegateGenericParameter.cs ├── EventsArgsGenericParameter.cs ├── GenericFieldTypeParameter.cs ├── GenericReturnTypeParameter.cs ├── ReturnEnum.cs ├── GenericPropertyTypeParameter.cs ├── GenericParameterTypeParameter.cs ├── InterfaceA.cs ├── DsmSuite.Analyzer.DotNet.Test.Data.csproj ├── MainClient.cs └── MainType.cs ├── DsmSuite.Analyzer.VisualStudio.Test.Data.Clr ├── resource.h ├── MyClrClass.cpp ├── app.ico ├── app.rc ├── Stdafx.h ├── Stdafx.cpp ├── MyClrClass.h └── AssemblyInfo.cpp ├── README.md ├── run_tests_dsmsuite_opencover.bat ├── DsmSuite.Analyzer.DotNet ├── packages.config ├── App.config └── DsmSuite.Analyzer.DotNet.csproj ├── DsmSuite.DsmViewer.ViewModel ├── Settings │ ├── Theme.cs │ └── ViewerSetting.cs ├── Editing │ ├── Relation │ │ └── RelationEditViewModelType.cs │ ├── Element │ │ └── ElementEditViewModelType.cs │ └── Snapshot │ │ └── SnapshotMakeViewModel.cs ├── Main │ ├── IndicatorViewMode.cs │ ├── SearchState.cs │ └── IMainViewModel.cs ├── Matrix │ ├── LegendColor.cs │ ├── MatrixColor.cs │ ├── MetricType.cs │ ├── LegendViewModel.cs │ ├── IMatrixViewModel.cs │ ├── MatrixColorConverter.cs │ ├── CellToolTipViewModel.cs │ └── ElementToolTipViewModel.cs ├── Lists │ ├── RelationsListViewModelType.cs │ ├── ElementListViewModelType.cs │ ├── ActionListItemViewModel.cs │ └── ElementListItemViewModel.cs ├── DsmSuite.DsmViewer.ViewModel.csproj └── Common │ └── ViewModelBase.cs ├── DsmSuite.Common.Model ├── Interface │ └── IMetaDataItem.cs ├── Core │ └── MetaDataItem.cs ├── Persistency │ └── IMetaDataModelFileCallback.cs └── DsmSuite.Common.Model.csproj ├── DsmSuite.Analyzer.Cpp ├── App.config ├── IncludeResolve │ ├── IncludeCandidate.cs │ ├── IIncludeResolveStrategy.cs │ ├── IgnoreIncludeFileResolveStrategy.cs │ └── AllIncludeFileResolveStrategy.cs └── DsmSuite.Analyzer.Cpp.csproj ├── DsmSuite.Analyzer.Jdeps ├── App.config └── DsmSuite.Analyzer.Jdeps.csproj ├── DsmSuite.Analyzer.Compare ├── App.config └── DsmSuite.Analyzer.Compare.csproj ├── DsmSuite.DsmViewer.Model ├── Interfaces │ ├── CycleType.cs │ ├── RelationScope.cs │ ├── RelationDirection.cs │ ├── ISortResult.cs │ ├── IDsmAction.cs │ └── IDsmRelation.cs ├── Persistency │ ├── IDsmActionModelFileCallback.cs │ ├── IDsmRelationModelFileCallback.cs │ └── IDsmElementModelFileCallback.cs ├── Core │ ├── DsmAction.cs │ ├── DsmActionModel.cs │ └── NameRegistration.cs └── DsmSuite.DsmViewer.Model.csproj ├── DsmSuite.DsmViewer.Application ├── Sorting │ ├── ISortAlgorithm.cs │ ├── AlphabeticalSortAlgorithm.cs │ ├── WeightsMatrix.cs │ ├── SortAlgorithmFactory.cs │ └── Permutation.cs ├── Interfaces │ ├── IAction.cs │ └── ActionType.cs ├── Actions │ ├── Management │ │ ├── IActionContext.cs │ │ ├── IActionManager.cs │ │ └── ActionContext.cs │ ├── Base │ │ └── ActionAttributes.cs │ ├── Snapshot │ │ └── MakeSnapshotAction.cs │ └── Element │ │ └── ElementDeleteAction.cs ├── Metrics │ └── DsmMetrics.cs └── DsmSuite.DsmViewer.Application.csproj ├── DsmSuite.DsmViewer.ViewModel.Test ├── UnitTest1.cs ├── SetupAssemblyInitializer.cs ├── app.config ├── packages.config └── DsmSuite.DsmViewer.ViewModel.Test.csproj ├── DsmSuite.Analyzers.Python ├── Properties │ └── launchSettings.json └── DsmSuite.Analyzers.Python.csproj ├── DsmSuite.Analyzer.Cpp.Test ├── Analysis │ └── AnalyzerTest.cs ├── SetupAssemblyInitializer.cs ├── app.config ├── packages.config ├── Util │ └── TestData.cs ├── IncludeResolve │ ├── IgnoreIncludeFileResolveStrategyTest.cs │ ├── BestMatchIncludeFileResolveStrategyTest.cs │ └── AllIncludeFileResolveStrategyTest.cs ├── Sources │ └── SourceDirectoryTest.cs └── DsmSuite.Analyzer.Cpp.Test.csproj ├── DsmSuite.Common.Util ├── LogLevel.cs ├── ProgressInfo.cs ├── DsmSuite.Common.Util.csproj ├── StringExtensions.cs ├── SystemInfo.cs └── ElementName.cs ├── DsmSuite.Analyzer.VisualStudio.Test.Data.DotNet ├── MyDotNetClass.cs └── Properties │ └── AssemblyInfo.cs ├── DsmSuite.Analyzer.Model ├── Interface │ ├── IDsiElement.cs │ └── IDsiRelation.cs ├── Persistency │ ├── IDsiElementModelFileCallback.cs │ └── IDsiRelationModelFileCallback.cs ├── DsmSuite.Analyzer.Model.csproj └── Core │ ├── DsiElement.cs │ └── DsiRelation.cs ├── DsmSuite.Analyzer.Transformations ├── Settings │ └── TransformationModuleMergeRule.cs ├── DsmSuite.Analyzer.Transformations.csproj └── Transformation │ └── TransformationAction.cs ├── DsmSuite.DsmViewer.Application.Test ├── Actions │ ├── Element │ │ ├── ElementCutActionTest.cs │ │ ├── ElementCopyActionTest.cs │ │ ├── ElementPasteActionTest.cs │ │ └── ElementDeleteActionTest.cs │ └── Snapshot │ │ └── MakeSnapshotActionTest.cs ├── SetupAssemblyInitializer.cs ├── Stubs │ └── StubbedSortAlgorithm.cs ├── packages.config ├── app.config └── DsmSuite.DsmViewer.Application.Test.Input.dsi ├── DsmSuite.Analyzer.DotNet.Lib ├── DotNetType.cs ├── DotNetRelation.cs ├── DsmSuite.Analyzer.DotNet.Lib.csproj └── DotNetResolver.cs ├── DsmSuite.Analyzer.Jdeps.Test ├── example.dot ├── SetupAssemblyInitializer.cs ├── app.config ├── packages.config └── DsmSuite.Analyzer.Jdeps.Test.csproj ├── DsmSuite.Analyzer.Model.Test ├── SetupAssemblyInitializer.cs ├── app.config ├── packages.config ├── DsmSuite.Analyzer.Model.Test.Input.dsi ├── Core │ ├── DsiElementTest.cs │ └── DsiRelationTest.cs └── DsmSuite.Analyzer.Model.Test.csproj ├── DsmSuite.Analyzer.DotNet.Test ├── SetupAssemblyInitializer.cs ├── Util │ └── TestData.cs ├── app.config ├── packages.config └── DsmSuite.Analyzer.DotNet.Test.csproj ├── DsmSuite.DsmViewer.Model.Test ├── SetupAssemblyInitializer.cs ├── Core │ └── NameRegistrationTest.cs └── DsmSuite.DsmViewer.Model.Test.csproj ├── DsmSuite.Analyzer.Transformations.Test ├── SetupAssemblyInitializer.cs └── DsmSuite.Analyzer.Transformations.Test.csproj ├── DsmSuite.Common.Model.Test ├── Core │ └── MetaDataItemTest.cs └── DsmSuite.Common.Model.Test.csproj ├── DsmSuite.Analyzer.CompareLib └── DsmSuite.Analyzer.CompareLib.csproj ├── LICENSE ├── test.runsettings ├── PropertySheets └── DsmSuite.Common.props ├── run_tests_dsmsuite.bat ├── DsmSuite.Analyzer.Compare.Test └── DsmSuite.Analyzer.Compare.Test.csproj ├── .gitignore ├── DsmSuite.Installer └── DsmSuite.Installer.wixproj └── Hierarchical.graphml /.sonarcloud.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileA.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileA.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileB.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileB.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileC.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA1/FileC.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA2/FileA.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA2/FileD.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA2/FileD.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA3/FileA.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA3/FileE.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test.Data/PackageA3/FileE.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /moqnote..txt: -------------------------------------------------------------------------------- 1 | https://github.com/moq/moq4/issues/566 -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirA/ClassA2.h: -------------------------------------------------------------------------------- 1 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Common.Util.Test/TestFile.txt: -------------------------------------------------------------------------------- 1 | line0 2 | line1 3 | line2 4 | line3 -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirA/ClassA1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassA1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirB/ClassB1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassB1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirC/ClassC1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassC1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirD/ClassD1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassD1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirE/ClassE1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassD1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirF/ClassF1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassD1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirG/ClassG1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassD1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirClones/Identical/ClassA1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassA1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirClones/Identical/CopyClassA1.cpp: -------------------------------------------------------------------------------- 1 | #include "ClassA1.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.rgs: -------------------------------------------------------------------------------- 1 | HKCR 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /create_test_report.bat: -------------------------------------------------------------------------------- 1 | packages\ReportGenerator.4.3.6\tools\net47\reportgenerator.exe -reports:results.xml -targetdir:build\coverage -------------------------------------------------------------------------------- /DsmSuite.Common.Util.Test/TestFile.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Common.Util.Test/TestFile.zip -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml.Test/SampleModel.EAP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.Uml.Test/SampleModel.EAP -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml/libs/Interop.EA.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.Uml/libs/Interop.EA.dll -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/partition.design: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.DsmViewer.View/partition.design -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/show cycles.design: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.DsmViewer.View/show cycles.design -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirC/ClassC1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory defined in includes.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/BaseType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class BaseType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by app.rc 4 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/FieldType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class FieldType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/ReturnType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class ReturnType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/MyClrClass.cpp: -------------------------------------------------------------------------------- 1 | // This is the main DLL file. 2 | 3 | #include "stdafx.h" 4 | 5 | #include "MyClrClass.h" 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirExternal/readme.txt: -------------------------------------------------------------------------------- 1 | These source file represent external files and are deliberately not included in the vcxproj file -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/ParameterEnum.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public enum ParameterEnum 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/ParameterType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class ParameterType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/PropertyEnum.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class PropertyEnum 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/PropertyType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class PropertyType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/app.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/app.ico -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/app.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/app.rc -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirExternal/External.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve external directory specified in analyzer settings file 2 | #pragma once -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This archive contains all source code of the DSM suite to visualize software dependencies. 2 | Ported to DotNetCore/Linux underway. Updated 2 aug 2021. 3 | -------------------------------------------------------------------------------- /run_tests_dsmsuite_opencover.bat: -------------------------------------------------------------------------------- 1 | packages\OpenCover.4.7.922\tools\OpenCover.Console.exe -target:run_tests_dsmsuite.bat -register:user -filter:"+[DsmSuite*]* -[*Test]*" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericFieldType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericFieldType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericReturnType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericReturnType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/MethodVariableType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class MethodVariableType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/ComA.cpp: -------------------------------------------------------------------------------- 1 | // ComA.cpp : Implementation of CComA 2 | 3 | #include "stdafx.h" 4 | #include "ComA.h" 5 | 6 | 7 | // CComA 8 | 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.VisualStudio.Test.Data.Com/resource.h -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericPropertyType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericPropertyType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericParameterType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericParameterType 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirB/ClassB1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory defined in vcxproj file using property defined in paths.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/DelegateGenericParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class DelegateGenericParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/EventsArgsGenericParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class EventsArgsGenericParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericFieldTypeParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericFieldTypeParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericReturnTypeParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericReturnTypeParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/ReturnEnum.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public enum ReturnEnum 4 | { 5 | A, 6 | B, 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirA/ClassA1.h: -------------------------------------------------------------------------------- 1 | // Required for to test resolve include directory defined in DsmSuite.Analyzer.VisualStudio.Test.Data.vcxproj file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericPropertyTypeParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericPropertyTypeParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/GenericParameterTypeParameter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class GenericParameterTypeParameter 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirClones/NotIdentical/ClassA1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "ClassA1.h" 3 | 4 | // This line is added to make the file a non identical clone of ClassA1 -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirD/ClassD1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory directly defined in includes.props file using property defined in paths.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirE/ClassE1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory directly defined in includes.props file using property defined in paths.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirF/ClassF1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory directly defined in includes.props file using property defined in paths.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirG/ClassG1.h: -------------------------------------------------------------------------------- 1 | // Required to test resolve include directory directly defined in includes.props file using property defined in paths.props file 2 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Settings/Theme.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Settings 2 | { 3 | [Serializable] 4 | public enum Theme 5 | { 6 | Light, 7 | Pastel 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.Common.Model/Interface/IMetaDataItem.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Common.Model.Interface 2 | { 3 | public interface IMetaDataItem 4 | { 5 | string Name { get; } 6 | string Value { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Compare/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Interfaces/CycleType.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace DsmSuite.DsmViewer.Model.Interfaces 3 | { 4 | public enum CycleType 5 | { 6 | None, 7 | System, 8 | Hierarchical 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Interfaces/RelationScope.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Model.Interfaces 2 | { 3 | public enum RelationScope 4 | { 5 | Internal, 6 | External, 7 | Both 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.rc -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Sorting/ISortAlgorithm.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Sorting 2 | { 3 | public interface ISortAlgorithm 4 | { 5 | SortResult Sort(); 6 | string Name { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Interfaces/RelationDirection.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Model.Interfaces 2 | { 3 | public enum RelationDirection 4 | { 5 | Ingoing, 6 | Outgoing, 7 | Both 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Editing/Relation/RelationEditViewModelType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Editing.Relation 2 | { 3 | public enum RelationEditViewModelType 4 | { 5 | Modify, 6 | Add 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Main/IndicatorViewMode.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Main 2 | { 3 | public enum IndicatorViewMode 4 | { 5 | Default, 6 | Search, 7 | Bookmarks, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsmsuite/dsmsuite.sourcecode/HEAD/DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.aps -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/Stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, 3 | // but are changed infrequently 4 | 5 | #pragma once 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Main/SearchState.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Main 2 | { 3 | public enum SearchState 4 | { 5 | Off, 6 | NoInput, 7 | NoMatch, 8 | Match, 9 | Selected 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel.Test/UnitTest1.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Test 2 | { 3 | [TestClass] 4 | public class UnitTest1 5 | { 6 | [TestMethod] 7 | public void TestMethod1() 8 | { 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/LegendColor.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 2 | { 3 | public enum LegendColor 4 | { 5 | Consumer, 6 | Provider, 7 | Cycle, 8 | Search, 9 | Bookmark, 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Analyzers.Python/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "DsmSuite.Analyzers.Python": { 4 | "commandName": "Project", 5 | "commandLineArgs": "C:\\Github\\dsmsuite.sourcecode\\build\\Release\\net8.0\\Analzyer.Python.xml" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test/Analysis/AnalyzerTest.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.Test.Analysis 2 | { 3 | [TestClass] 4 | public class AnalyzerTest 5 | { 6 | [TestMethod] 7 | public void TestMethod1() 8 | { 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Common.Util/LogLevel.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Common.Util 2 | { 3 | [Serializable] 4 | public enum LogLevel 5 | { 6 | None, 7 | User, 8 | Warning, 9 | Error, 10 | Info, 11 | Data, 12 | All 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Interfaces/ISortResult.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Model.Interfaces 2 | { 3 | public interface ISortResult 4 | { 5 | int GetIndex(int currentIndex); 6 | int GetNumberOfElements(); 7 | bool IsValid { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/MatrixColor.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 2 | { 3 | public enum MatrixColor 4 | { 5 | Background, 6 | Color1, 7 | Color2, 8 | Color3, 9 | Color4, 10 | Cycle, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/Stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // DsmSuite.Analyzer.VisualStudio.Test.Data.Clr.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // DsmSuite.Analyzer.VisualStudio.Test.Data.Com.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.DotNet/MyDotNetClass.cs: -------------------------------------------------------------------------------- 1 | using DsmSuiteAnalyzerVisualStudioTestDataClr; 2 | 3 | namespace DsmSuite.Analyzer.VisualStudio.Test.Data.DotNet 4 | { 5 | public class MyDotNetClass 6 | { 7 | private MyClrClass _b = new MyClrClass(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Interfaces/IDsmAction.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Model.Interfaces 2 | { 3 | public interface IDsmAction 4 | { 5 | int Id { get; } 6 | 7 | string Type { get; } 8 | 9 | IReadOnlyDictionary Data { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Editing/Element/ElementEditViewModelType.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace DsmSuite.DsmViewer.ViewModel.Editing.Element 3 | { 4 | public enum ElementEditViewModelType 5 | { 6 | Modify, 7 | AddChild, 8 | AddSiblingAbove, 9 | AddSiblingBelow 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Interface/IDsiElement.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Model.Interface 2 | { 3 | public interface IDsiElement 4 | { 5 | int Id { get; } 6 | string Name { get; } 7 | string Type { get; } 8 | IDictionary Properties { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml.Test/AnalyzerTest.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; 2 | 3 | namespace DsmSuite.Analyzer.Uml.Test 4 | { 5 | [TestClass] 6 | public class AnalyzerTest 7 | { 8 | [TestMethod] 9 | public void TestMethod1() 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Transformations/Settings/TransformationModuleMergeRule.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Transformations.Settings 2 | { 3 | [Serializable] 4 | public class TransformationModuleMergeRule 5 | { 6 | public string From { get; set; } 7 | 8 | public string To { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Clr/MyClrClass.h: -------------------------------------------------------------------------------- 1 | // DsmSuite.Analyzer.VisualStudio.Test.Data.Clr.h 2 | 3 | #pragma once 4 | 5 | using namespace System; 6 | 7 | namespace DsmSuiteAnalyzerVisualStudioTestDataClr { 8 | 9 | public ref class MyClrClass 10 | { 11 | // TODO: Add your methods for this class here. 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Lists/RelationsListViewModelType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Lists 2 | { 3 | public enum RelationsListViewModelType 4 | { 5 | ElementIngoingRelations, 6 | ElementOutgoingRelations, 7 | ElementInternalRelations, 8 | ConsumerProviderRelations, 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Lists/ElementListViewModelType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Lists 2 | { 3 | public enum ElementListViewModelType 4 | { 5 | RelationConsumers, 6 | RelationProviders, 7 | ElementConsumers, 8 | ElementProvidedInterface, 9 | ElementRequiredInterface, 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Common.Util/ProgressInfo.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Common.Util 2 | { 3 | public class ProgressInfo 4 | { 5 | public string ActionText; 6 | public int TotalItemCount; 7 | public int CurrentItemCount; 8 | public string ItemType; 9 | public int? Percentage; 10 | public bool Done; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Interface/IDsiRelation.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Model.Interface 2 | { 3 | public interface IDsiRelation 4 | { 5 | int ConsumerId { get; } 6 | int ProviderId { get; } 7 | string Type { get; } 8 | int Weight { get; } 9 | IDictionary Properties { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuite.Analyzer.VisualStudio.Test.Data.Com.def: -------------------------------------------------------------------------------- 1 | ; DsmSuite.Analyzer.VisualStudio.Test.Data.Com.def : Declares the module parameters. 2 | 3 | LIBRARY 4 | 5 | EXPORTS 6 | DllCanUnloadNow PRIVATE 7 | DllGetClassObject PRIVATE 8 | DllRegisterServer PRIVATE 9 | DllUnregisterServer PRIVATE 10 | DllInstall PRIVATE 11 | -------------------------------------------------------------------------------- /DsmSuite.Common.Util/DsmSuite.Common.Util.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/Actions/Element/ElementCutActionTest.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Test.Actions.Element 2 | { 3 | [TestClass] 4 | public class ElementCutActionTest 5 | { 6 | [TestMethod] 7 | public void TestMethod1() 8 | { 9 | Assert.Inconclusive(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/Actions/Element/ElementCopyActionTest.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Test.Actions.Element 2 | { 3 | [TestClass] 4 | public class ElementCopyActionTest 5 | { 6 | [TestMethod] 7 | public void TestMethod1() 8 | { 9 | Assert.Inconclusive(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/Actions/Element/ElementPasteActionTest.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Test.Actions.Element 2 | { 3 | [TestClass] 4 | public class ElementPasteActionTest 5 | { 6 | [TestMethod] 7 | public void TestMethod1() 8 | { 9 | Assert.Inconclusive(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Lib/DotNetType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Lib 2 | { 3 | public class DotNetType 4 | { 5 | public DotNetType(string name, string type) 6 | { 7 | Name = name; 8 | Type = type; 9 | } 10 | 11 | public string Name { get; } 12 | public string Type { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Windows/ProgressWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.View.Windows 2 | { 3 | /// 4 | /// Interaction logic for ProgressWindow.xaml 5 | /// 6 | public partial class ProgressWindow 7 | { 8 | public ProgressWindow() 9 | { 10 | InitializeComponent(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/IncludeResolve/IncludeCandidate.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.IncludeResolve 2 | { 3 | public class IncludeCandidate 4 | { 5 | public IncludeCandidate(string filename) 6 | { 7 | Filename = filename; 8 | } 9 | public string Filename { get; } 10 | public bool Resolved { set; get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/InterfaceA.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public interface INterfaceA 4 | { 5 | ReturnType MethodA(ParameterType a, GenericParameterType b, ParameterEnum c); 6 | GenericReturnType MethodB(); 7 | ReturnEnum MethodC(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/IncludeResolve/IIncludeResolveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.IncludeResolve 2 | { 3 | public interface IIncludeResolveStrategy 4 | { 5 | IList GetCandidates(string relativeIncludeFilename); 6 | IList Resolve(string sourceFilename, string relativeIncludeFilename, IList candidates); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/DsmSuite.Analyzer.DotNet.Test.Data.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirA/ClassA2.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | # include "ClassA2.h" 4 | 5 | #include "ClassA1.h" // Some comment 6 | #include "ClassB1.h" /* Some comment */ 7 | #include "ClassC1.h" 8 | #include "ClassD1.h" 9 | #include "ClassE1.h" 10 | #include "ClassF1.h" 11 | #include "ClassG1.h" 12 | 13 | #include "External.h" 14 | 15 | #include "..\DirInterfaces\ClassA3.h" -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/ComA.rgs: -------------------------------------------------------------------------------- 1 | HKCR 2 | { 3 | NoRemove CLSID 4 | { 5 | ForceRemove {A53A09F4-443C-44D1-9827-76FBC460BF2B} = s 'ComA Class' 6 | { 7 | ForceRemove Programmable 8 | InprocServer32 = s '%MODULE%' 9 | { 10 | val ThreadingModel = s 'Apartment' 11 | } 12 | TypeLib = s '{0EDBCC3A-E7CA-4E3F-B8C8-49EBC57EAF03}' 13 | Version = s '1.0' 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Matrix/MatrixMetricsSelectorView.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.View.Matrix 2 | { 3 | /// 4 | /// Interaction logic for MatrixMetricsSelectorView.xaml 5 | /// 6 | public partial class MatrixMetricsSelectorView 7 | { 8 | public MatrixMetricsSelectorView() 9 | { 10 | InitializeComponent(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps.Test/example.dot: -------------------------------------------------------------------------------- 1 | digraph "jce.jar" { 2 | // Path: C:\Program Files\Java\jdk1.8.0_45\jre\lib\jce.jar 3 | "javax.crypto.Cipher" -> "javax.crypto.spec.RC5ParameterSpec"; 4 | "javax.crypto.Cipher" -> "sun.security.jca.GetInstance (JDK internal API (rt.jar))"; 5 | "javax.crypto.Cipher$Transform" -> "java.lang.CharSequence"; 6 | } 7 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/xdlldata.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _MERGE_PROXYSTUB 4 | 5 | extern "C" 6 | { 7 | BOOL WINAPI PrxDllMain(HINSTANCE hInstance, DWORD dwReason, 8 | LPVOID lpReserved); 9 | STDAPI PrxDllCanUnloadNow(void); 10 | STDAPI PrxDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv); 11 | STDAPI PrxDllRegisterServer(void); 12 | STDAPI PrxDllUnregisterServer(void); 13 | } 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Interfaces/IAction.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Interfaces 2 | { 3 | public interface IAction 4 | { 5 | ActionType Type { get; } 6 | string Title { get; } 7 | string Description { get; } 8 | 9 | object Do(); 10 | void Undo(); 11 | 12 | bool IsValid(); 13 | 14 | IReadOnlyDictionary Data { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/UserControls/ElementSearchBox.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace DsmSuite.DsmViewer.View.UserControls 4 | { 5 | /// 6 | /// Interaction logic for SearchBox.xaml 7 | /// 8 | public partial class ElementSearchBox : UserControl 9 | { 10 | public ElementSearchBox() 11 | { 12 | InitializeComponent(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Common.Model/Core/MetaDataItem.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Model.Interface; 2 | 3 | namespace DsmSuite.Common.Model.Core 4 | { 5 | public class MetaDataItem : IMetaDataItem 6 | { 7 | public MetaDataItem(string name, string value) 8 | { 9 | Name = name; 10 | Value = value; 11 | } 12 | 13 | public string Name { get; } 14 | public string Value { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.Common.Util/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Text.RegularExpressions; 2 | 3 | namespace DsmSuite.Common.Util 4 | { 5 | public static class StringExtensions 6 | { 7 | public static string ReplaceIgnoreCase(this string input, string oldValue, string newValue) 8 | { 9 | return Regex.Replace(input, Regex.Escape(oldValue), newValue.Replace("$", "$$"), RegexOptions.IgnoreCase); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Persistency/IDsmActionModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Model.Persistency 4 | { 5 | public interface IDsmActionModelFileCallback 6 | { 7 | IDsmAction ImportAction(int id, string type, IReadOnlyDictionary data); 8 | IEnumerable GetExportedActions(); 9 | int GetExportedActionCount(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.Analyzer.Cpp.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.Analyzer.Jdeps.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.Analyzer.Model.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.Analyzer.DotNet.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Persistency/IDsiElementModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Analyzer.Model.Interface; 2 | 3 | namespace DsmSuite.Analyzer.Model.Persistency 4 | { 5 | public interface IDsiElementModelFileCallback 6 | { 7 | IDsiElement ImportElement(int id, string name, string type, IDictionary properties); 8 | IEnumerable GetElements(); 9 | int CurrentElementCount { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.DsmViewer.Model.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/MetricType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 2 | { 3 | public enum MetricType 4 | { 5 | NumberOfElements, 6 | RelativeSizePercentage, 7 | IngoingRelations, 8 | OutgoingRelations, 9 | InternalRelations, 10 | ExternalRelations, 11 | HierarchicalCycles, 12 | SystemCycles, 13 | Cycles, 14 | CycalityPercentage, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.DsmViewer.ViewModel.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.DsmViewer.Application.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Actions/Management/IActionContext.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Application.Actions.Management 4 | { 5 | public interface IActionContext 6 | { 7 | void AddElementToClipboard(IDsmElement element); 8 | void RemoveElementFromClipboard(IDsmElement element); 9 | IDsmElement GetElementOnClipboard(); 10 | bool IsElementOnClipboard(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Transformations.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Util; 2 | using System.Reflection; 3 | 4 | namespace DsmSuite.Analyzer.Transformations.Test 5 | { 6 | [TestClass] 7 | public class SetupAssemblyInitializer 8 | { 9 | [AssemblyInitialize] 10 | public static void AssemblyInit(TestContext context) 11 | { 12 | Logger.Init(Assembly.GetExecutingAssembly(), true); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Common.Model/Persistency/IMetaDataModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Model.Interface; 2 | 3 | namespace DsmSuite.Common.Model.Persistency 4 | { 5 | public interface IMetaDataModelFileCallback 6 | { 7 | IMetaDataItem ImportMetaDataItem(string group, string name, string value); 8 | 9 | IEnumerable GetExportedMetaDataGroups(); 10 | IEnumerable GetExportedMetaDataGroupItems(string group); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test.Data/MainClient.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Data 2 | { 3 | public class MainClient 4 | { 5 | MainClient() 6 | { 7 | MainType main = new MainType(); 8 | main.GenericEvent += HandleEvent; 9 | } 10 | 11 | private void HandleEvent(object sender, EventsArgsGenericParameter e) 12 | { 13 | throw new NotImplementedException(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Persistency/IDsiRelationModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Analyzer.Model.Interface; 2 | 3 | namespace DsmSuite.Analyzer.Model.Persistency 4 | { 5 | public interface IDsiRelationModelFileCallback 6 | { 7 | IDsiRelation ImportRelation(int consumerId, int providerId, string type, int weight, IDictionary properties); 8 | IEnumerable GetRelations(); 9 | int CurrentRelationCount { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /DsmSuite.Common.Model/DsmSuite.Common.Model.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test/Util/TestData.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Test.Util 2 | { 3 | class TestData 4 | { 5 | public static string RootDirectory 6 | { 7 | get 8 | { 9 | string testData = ""; 10 | string pathExecutingAssembly = AppDomain.CurrentDomain.BaseDirectory; 11 | return Path.GetFullPath(Path.Combine(pathExecutingAssembly, testData)); 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Actions/Management/IActionManager.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Application.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Application.Actions.Management 4 | { 5 | public interface IActionManager 6 | { 7 | bool Validate(); 8 | void Clear(); 9 | void Add(IAction action); 10 | object Execute(IAction action); 11 | IEnumerable GetActionsInChronologicalOrder(); 12 | IActionContext GetContext(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml.Test/SetupAssemblyInitializer.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using DsmSuite.Common.Util; 3 | using Microsoft.VisualStudio.TestTools.UnitTesting; 4 | 5 | namespace DsmSuite.Analyzer.Uml.Test 6 | { 7 | [TestClass] 8 | public class SetupAssemblyInitializer 9 | { 10 | [AssemblyInitialize] 11 | public static void AssemblyInit(TestContext context) 12 | { 13 | Logger.Init(Assembly.GetExecutingAssembly(), true); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/LegendViewModel.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Common; 2 | 3 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 4 | { 5 | public class LegendViewModel : ViewModelBase 6 | { 7 | public LegendViewModel(LegendColor color, string description) 8 | { 9 | Color = color; 10 | Description = description; 11 | } 12 | 13 | public LegendColor Color { get; } 14 | public string Description { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/IncludeResolve/IgnoreIncludeFileResolveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.IncludeResolve 2 | { 3 | public class IgnoreIncludeFileResolveStrategy : IncludeResolveStrategy 4 | { 5 | public IgnoreIncludeFileResolveStrategy(IList includeDirectories) : base(includeDirectories) 6 | { 7 | } 8 | 9 | protected override void SelectCandidates(string sourceFilename, IList candidates) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Lib/DotNetRelation.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.DotNet.Lib 2 | { 3 | public class DotNetRelation 4 | { 5 | public DotNetRelation(string consumerName, string providerName, string type) 6 | { 7 | ConsumerName = consumerName; 8 | ProviderName = providerName; 9 | Type = type; 10 | } 11 | 12 | public string ConsumerName { get; } 13 | public string ProviderName { get; } 14 | public string Type { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/dllmain.h: -------------------------------------------------------------------------------- 1 | // dllmain.h : Declaration of module class. 2 | 3 | class CDsmSuiteAnalyzerVisualStudioTestDataComModule : public ATL::CAtlDllModuleT< CDsmSuiteAnalyzerVisualStudioTestDataComModule > 4 | { 5 | public : 6 | DECLARE_LIBID(LIBID_DsmSuiteAnalyzerVisualStudioTestDataComLib) 7 | DECLARE_REGISTRY_APPID_RESOURCEID(IDR_DSMSUITEANALYZERVISUALSTUDIOTESTDATACOM, "{594FA1E4-4877-4C92-BFE5-9B877CCFA28F}") 8 | }; 9 | 10 | extern class CDsmSuiteAnalyzerVisualStudioTestDataComModule _AtlModule; 11 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Persistency/IDsmRelationModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Model.Persistency 4 | { 5 | public interface IDsmRelationModelFileCallback 6 | { 7 | IDsmRelation ImportRelation(int id, IDsmElement consumer, IDsmElement provider, string type, int weight, IDictionary properties, bool deleted); 8 | 9 | IEnumerable GetExportedRelations(); 10 | int GetExportedRelationCount(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.Common.Util/SystemInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | namespace DsmSuite.Common.Util 4 | { 5 | public class SystemInfo 6 | { 7 | public static string GetExecutableInfo(Assembly assembly) 8 | { 9 | string name = assembly.GetName().Name; 10 | string version = assembly.GetName().Version.ToString(); 11 | DateTime buildDate = new FileInfo(assembly.Location).LastWriteTime; 12 | return $"{name} version={version} build={buildDate}"; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp.Test/Util/TestData.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.Test.Util 2 | { 3 | class TestData 4 | { 5 | public static string RootDirectory 6 | { 7 | get 8 | { 9 | // Assemblies in build\Release\net8.0 or 10 | string pathExecutingAssembly = AppDomain.CurrentDomain.BaseDirectory; 11 | return Path.GetFullPath(Path.Combine(pathExecutingAssembly, @"..\..\..\DsmSuite.Analyzer.Cpp.Test.Data")); 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/Stubs/StubbedSortAlgorithm.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Application.Sorting; 2 | 3 | namespace DsmSuite.DsmViewer.Application.Test.Stubs 4 | { 5 | public class StubbedSortAlgorithm : ISortAlgorithm 6 | { 7 | private const string SortResult = "2,0,1"; 8 | 9 | public StubbedSortAlgorithm(object[] args) { } 10 | 11 | public string Name => "Stub"; 12 | 13 | public SortResult Sort() 14 | { 15 | return new SortResult(SortResult); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Settings/SettingsDialog.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace DsmSuite.DsmViewer.View.Settings 4 | { 5 | /// 6 | /// Interaction logic for SettingsView.xaml 7 | /// 8 | public partial class SettingsView 9 | { 10 | public SettingsView() 11 | { 12 | InitializeComponent(); 13 | } 14 | 15 | private void OnOkButtonClicked(object sender, RoutedEventArgs e) 16 | { 17 | DialogResult = true; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/IMatrixViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Input; 2 | 3 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 4 | { 5 | public interface IMatrixViewModel 6 | { 7 | ICommand ToggleElementExpandedCommand { get; } 8 | ICommand SortElementCommand { get; } 9 | ICommand MoveUpElementCommand { get; } 10 | ICommand MoveDownElementCommand { get; } 11 | 12 | ICommand ToggleElementBookmarkCommand { get; } 13 | 14 | ICommand ChangeElementParentCommand { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Persistency/IDsmElementModelFileCallback.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Model.Persistency 4 | { 5 | public interface IDsmElementModelFileCallback 6 | { 7 | IDsmElement FindElementById(int elementId); 8 | IDsmElement ImportElement(int id, string name, string type, IDictionary properties, int order, bool expanded, int? parent, bool deleted); 9 | IDsmElement RootElement { get; } 10 | int GetExportedElementCount(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Editing/ElementEditDialog.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace DsmSuite.DsmViewer.View.Editing 4 | { 5 | /// 6 | /// Interaction logic for ElementEditDialog.xaml 7 | /// 8 | public partial class ElementEditDialog 9 | { 10 | public ElementEditDialog() 11 | { 12 | InitializeComponent(); 13 | } 14 | 15 | private void OnOkButtonClicked(object sender, RoutedEventArgs e) 16 | { 17 | DialogResult = true; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/Core/DsmAction.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Model.Core 4 | { 5 | public class DsmAction : IDsmAction 6 | { 7 | public DsmAction(int id, string type, IReadOnlyDictionary data) 8 | { 9 | Id = id; 10 | Type = type; 11 | Data = data; 12 | } 13 | 14 | public int Id { get; } 15 | 16 | public string Type { get; } 17 | 18 | public IReadOnlyDictionary Data { get; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Editing/SnapshotCreateDialog.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace DsmSuite.DsmViewer.View.Editing 4 | { 5 | /// 6 | /// Interaction logic for SnapshotCreateDialog.xaml 7 | /// 8 | public partial class SnapshotCreateDialog 9 | { 10 | public SnapshotCreateDialog() 11 | { 12 | InitializeComponent(); 13 | } 14 | 15 | private void OnOkButtonClicked(object sender, RoutedEventArgs e) 16 | { 17 | DialogResult = true; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Validation/ElementNameMustBeNonEmptyRule.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace DsmSuite.DsmViewer.View.Validation 4 | { 5 | public class ElementNameMustBeNonEmptyRule : ValidationRule 6 | { 7 | public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) 8 | { 9 | string name = value.ToString(); 10 | return name.Length == 0 ? new ValidationResult(false, "Please enter non empty string") : new ValidationResult(true, null); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirA/ClassA3.h: -------------------------------------------------------------------------------- 1 | // The header file ClassA3.h in the DirInterfaces directory represents a clone from the same file ClassA3.h in the DirA directory and must be exactly identical. 2 | // -The version in DirA is included in the visual studio project 3 | // -The version in DirInterfaces is included in the file ClassA2.cpp 4 | // The aim is that the include of the file ClassA3.h in the DirInterfaces is resolved to the original file in DirA. 5 | // This is done to support projects which clone their interfaces to a single path to simplify includes. 6 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/xdlldata.c: -------------------------------------------------------------------------------- 1 | // wrapper for dlldata.c 2 | 3 | #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL 4 | 5 | #define REGISTER_PROXY_DLL //DllRegisterServer, etc. 6 | 7 | #define _WIN32_WINNT 0x0500 //for WinNT 4.0 or Win95 with DCOM 8 | #define USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf 9 | 10 | #pragma comment(lib, "rpcns4.lib") 11 | #pragma comment(lib, "rpcrt4.lib") 12 | 13 | #define ENTRY_PREFIX Prx 14 | 15 | #include "dlldata.c" 16 | #include "DsmSuite.Analyzer.VisualStudio.Test.Data.Com_p.c" 17 | 18 | #endif //_MERGE_PROXYSTUB 19 | -------------------------------------------------------------------------------- /DsmSuite.Common.Model.Test/Core/MetaDataItemTest.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Common.Model.Core; 2 | using DsmSuite.Common.Model.Interface; 3 | 4 | namespace DsmSuite.Common.Model.Test.Core 5 | { 6 | [TestClass] 7 | public class DsiMetaDataItemTest 8 | { 9 | [TestMethod] 10 | public void WhenItemIsConstructedThenPropertiesAreSetAccordingArguments() 11 | { 12 | IMetaDataItem item = new MetaDataItem("name", "value"); 13 | Assert.AreEqual("name", item.Name); 14 | Assert.AreEqual("value", item.Value); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirInterfaces/ClassA3.h: -------------------------------------------------------------------------------- 1 | // The header file ClassA3.h in the DirInterfaces directory represents a clone from the same file ClassA3.h in the DirA directory and must be exactly identical. 2 | // -The version in DirA is included in the visual studio project 3 | // -The version in DirInterfaces is included in the file ClassA2.cpp 4 | // The aim is that the include of the file ClassA3.h in the DirInterfaces is resolved to the original file in DirA. 5 | // This is done to support projects which clone their interfaces to a single path to simplify includes. 6 | #pragma once -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Jdeps/DsmSuite.Analyzer.Jdeps.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/DsmSuite.Analyzer.Model.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.CompareLib/DsmSuite.Analyzer.CompareLib.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Transformations/DsmSuite.Analyzer.Transformations.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Interfaces/ActionType.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.Application.Interfaces 2 | { 3 | public enum ActionType 4 | { 5 | ElementChangeName, 6 | ElementChangeParent, 7 | ElementChangeType, 8 | ElementCreate, 9 | ElementDelete, 10 | ElementMoveUp, 11 | ElementMoveDown, 12 | ElementSort, 13 | ElementCopy, 14 | ElementCut, 15 | ElementPaste, 16 | 17 | RelationChangeType, 18 | RelationChangeWeight, 19 | RelationCreate, 20 | RelationDelete, 21 | 22 | Snapshot 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Lists/ActionListItemViewModel.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Application.Interfaces; 2 | using DsmSuite.DsmViewer.ViewModel.Common; 3 | 4 | namespace DsmSuite.DsmViewer.ViewModel.Lists 5 | { 6 | public class ActionListItemViewModel : ViewModelBase 7 | { 8 | public ActionListItemViewModel(int index, IAction action) 9 | { 10 | Index = index; 11 | Action = action.Title; 12 | Details = action.Description; 13 | } 14 | 15 | public int Index { get; } 16 | public string Action { get; } 17 | public string Details { get; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // dllmain.cpp : Implementation of DllMain. 2 | 3 | #include "stdafx.h" 4 | #include "resource.h" 5 | #include "DsmSuiteAnalyzerVisualStudioTestDataCom_i.h" 6 | #include "dllmain.h" 7 | #include "xdlldata.h" 8 | 9 | CDsmSuiteAnalyzerVisualStudioTestDataComModule _AtlModule; 10 | 11 | // DLL Entry Point 12 | extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) 13 | { 14 | #ifdef _MERGE_PROXYSTUB 15 | if (!PrxDllMain(hInstance, dwReason, lpReserved)) 16 | return FALSE; 17 | #endif 18 | hInstance; 19 | return _AtlModule.DllMain(dwReason, lpReserved); 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/IncludeResolve/AllIncludeFileResolveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.Analyzer.Cpp.IncludeResolve 2 | { 3 | public class AllIncludeFileResolveStrategy : IncludeResolveStrategy 4 | { 5 | public AllIncludeFileResolveStrategy(IList includeDirectories) : base(includeDirectories) 6 | { 7 | } 8 | 9 | protected override void SelectCandidates(string sourceFilename, IList candidates) 10 | { 11 | foreach (IncludeCandidate candidate in candidates) 12 | { 13 | candidate.Resolved = true; 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /DsmSuite.Analyzers.Python/DsmSuite.Analyzers.Python.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, 3 | // but are changed infrequently 4 | 5 | #pragma once 6 | 7 | #ifndef STRICT 8 | #define STRICT 9 | #endif 10 | 11 | #include "targetver.h" 12 | 13 | #define _ATL_APARTMENT_THREADED 14 | 15 | #define _ATL_NO_AUTOMATIC_NAMESPACE 16 | 17 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 18 | 19 | 20 | #define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW 21 | 22 | #include "resource.h" 23 | #include 24 | #include 25 | #include 26 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Lists/ActionListView.xaml.cs: -------------------------------------------------------------------------------- 1 | 2 | using DsmSuite.DsmViewer.ViewModel.Lists; 3 | using System.Windows; 4 | 5 | namespace DsmSuite.DsmViewer.View.Lists 6 | { 7 | /// 8 | /// Interaction logic for HistoryView.xaml 9 | /// 10 | public partial class ActionListView 11 | { 12 | private ActionListViewModel _viewModel; 13 | 14 | public ActionListView() 15 | { 16 | InitializeComponent(); 17 | } 18 | 19 | private void ActionListView_OnLoaded(object sender, RoutedEventArgs e) 20 | { 21 | _viewModel = DataContext as ActionListViewModel; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Lists/ElementListView.xaml.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Lists; 2 | using System.Windows; 3 | 4 | namespace DsmSuite.DsmViewer.View.Lists 5 | { 6 | /// 7 | /// Interaction logic for ElementListView.xaml 8 | /// 9 | public partial class ElementListView 10 | { 11 | private ElementListViewModel _viewModel; 12 | 13 | public ElementListView() 14 | { 15 | InitializeComponent(); 16 | } 17 | 18 | private void ElementListView_OnLoaded(object sender, RoutedEventArgs e) 19 | { 20 | _viewModel = DataContext as ElementListViewModel; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Metrics/DsmMetrics.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Application.Metrics 4 | { 5 | public class DsmMetrics 6 | { 7 | public int GetElementSize(IDsmElement element) 8 | { 9 | int count = 0; 10 | CountChildren(element, ref count); 11 | return count; 12 | } 13 | 14 | private void CountChildren(IDsmElement element, ref int count) 15 | { 16 | count++; 17 | 18 | foreach (IDsmElement child in element.Children) 19 | { 20 | CountChildren(child, ref count); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model/DsmSuite.DsmViewer.Model.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Compare/DsmSuite.Analyzer.Compare.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Cpp/DsmSuite.Analyzer.Cpp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Lib/DsmSuite.Analyzer.DotNet.Lib.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Library 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/UserControls/LegendView.xaml.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Windows; 3 | using System.Windows.Controls; 4 | 5 | namespace DsmSuite.DsmViewer.View.UserControls 6 | { 7 | /// 8 | /// Interaction logic for LegendView.xaml 9 | /// 10 | public partial class LegendView : UserControl 11 | { 12 | private MainViewModel _mainViewModel; 13 | 14 | public LegendView() 15 | { 16 | InitializeComponent(); 17 | } 18 | 19 | private void LegendView_OnLoaded(object sender, RoutedEventArgs e) 20 | { 21 | _mainViewModel = DataContext as MainViewModel; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirIDL/IInterface2.idl: -------------------------------------------------------------------------------- 1 | // Required to test IDL generated files using output directory 2 | import "oaidl.idl"; 3 | import "ocidl.idl"; 4 | 5 | // Something in the IDL file must be defined to ensure files are generated 6 | [ 7 | object, 8 | uuid(7381D5D8-8669-44A8-8A2F-3DFE8070C2E1), 9 | pointer_default(unique) 10 | ] 11 | interface IInterface2 : IUnknown 12 | { 13 | HRESULT MyMethod(); 14 | }; 15 | 16 | [ 17 | uuid(2C235B12-24FF-4167-A473-B81E0BBC0A3A), 18 | version (1.0), 19 | ] 20 | library Lib2 21 | { 22 | importlib("stdole2.tlb"); 23 | 24 | [ 25 | uuid(94617AA0-2D3A-47F5-A9E0-818D2C800416), 26 | ] 27 | coclass CoClass2 28 | { 29 | [default, source] interface IInterface2; 30 | }; 31 | }; 32 | 33 | 34 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/MatrixSizeToVisbilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System.Globalization; 2 | using System.Windows; 3 | using System.Windows.Data; 4 | 5 | namespace DsmSuite.DsmViewer.View.ValueConverters 6 | { 7 | public class MatrixSizeToVisbilityConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 10 | { 11 | int matrixSize = (int)value; 12 | return (matrixSize > 0) ? Visibility.Visible : Visibility.Collapsed; 13 | } 14 | 15 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 16 | { 17 | throw new NotImplementedException(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/MetricsExpandedToViewWidthConverter.cs: -------------------------------------------------------------------------------- 1 | using System.Globalization; 2 | using System.Windows.Data; 3 | 4 | namespace DsmSuite.DsmViewer.View.ValueConverters 5 | { 6 | public class MetricsExpandedToViewWidthConverter : IValueConverter 7 | { 8 | public double ViewWidth { get; set; } 9 | 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | bool expanded = (bool)value; 13 | return expanded ? ViewWidth : 0.0; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Uml/DsmSuite.Analyzer.Uml.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | libs\Interop.EA.dll 19 | True 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Core/DsiElement.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Analyzer.Model.Interface; 2 | 3 | namespace DsmSuite.Analyzer.Model.Core 4 | { 5 | /// 6 | /// Represents element of a component. Both the ElementId and Name uniquely identify an element. 7 | /// 8 | public class DsiElement : IDsiElement 9 | { 10 | public DsiElement(int id, string name, string type, IDictionary properties) 11 | { 12 | Id = id; 13 | Name = name; 14 | Type = type; 15 | Properties = properties; 16 | } 17 | 18 | public int Id { get; } 19 | public string Name { get; set; } 20 | public string Type { get; } 21 | public IDictionary Properties { get; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/Includes.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | DirC;$(FolderD);$(FolderE);%(AdditionalIncludeDirectories) 7 | 8 | 9 | 10 | 11 | DirC;$(FolderD);$(FolderE);%(AdditionalIncludeDirectories) 12 | 13 | 14 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet/DsmSuite.Analyzer.DotNet.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | Exe 6 | enable 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Application/Actions/Management/ActionContext.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | 3 | namespace DsmSuite.DsmViewer.Application.Actions.Management 4 | { 5 | public class ActionContext : IActionContext 6 | { 7 | private IDsmElement _element; 8 | 9 | public void AddElementToClipboard(IDsmElement element) 10 | { 11 | _element = element; 12 | } 13 | 14 | public void RemoveElementFromClipboard(IDsmElement element) 15 | { 16 | _element = null; 17 | } 18 | 19 | public IDsmElement GetElementOnClipboard() 20 | { 21 | return _element; 22 | } 23 | 24 | public bool IsElementOnClipboard() 25 | { 26 | return (_element == null); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/DsmSuite.DsmViewer.ViewModel.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0-windows 5 | enable 6 | true 7 | enable 8 | ..\build 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/SearchElementFoundToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class SearchElementFoundToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | IDsmElement foundElememt = (IDsmElement)value; 13 | return (foundElememt != null) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/SearchStateOffToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class SearchStateOffToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | SearchState searchState = (SearchState)value; 13 | return (searchState == SearchState.Off) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/DsmSuite.DsmViewer.View.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WinExe 5 | net8.0-windows 6 | enable 7 | enable 8 | true 9 | ..\build 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/SearchElementNotFoundToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Interfaces; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class SearchElementNotFoundToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | IDsmElement foundElememt = (IDsmElement)value; 13 | return (foundElememt == null) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/SearchStateNotOffToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class SearchStateNotOffToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | SearchState searchState = (SearchState)value; 13 | return (searchState != SearchState.Off) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Editing/RelationEditDialog.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Text.RegularExpressions; 2 | using System.Windows; 3 | using System.Windows.Input; 4 | 5 | namespace DsmSuite.DsmViewer.View.Editing 6 | { 7 | /// 8 | /// Interaction logic for RelationEditTypeDialog.xaml 9 | /// 10 | public partial class RelationEditDialog 11 | { 12 | public RelationEditDialog() 13 | { 14 | InitializeComponent(); 15 | } 16 | 17 | private void OnOkButtonClicked(object sender, RoutedEventArgs e) 18 | { 19 | DialogResult = true; 20 | } 21 | 22 | private void NumberValidationTextBox(object sender, TextCompositionEventArgs e) 23 | { 24 | Regex regex = new Regex("[^0-9]+"); 25 | e.Handled = regex.IsMatch(e.Text); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/DefaultIndicatorModeToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class DefaultIndicatorModeToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | IndicatorViewMode viewMode = (IndicatorViewMode)value; 13 | return (viewMode == IndicatorViewMode.Default) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/SearchIndicatorModeToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class SearchIndicatorModeToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | IndicatorViewMode viewMode = (IndicatorViewMode)value; 13 | return (viewMode == IndicatorViewMode.Search) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Cpp/DirIDL/IInterface1.idl: -------------------------------------------------------------------------------- 1 | // Required to test IDL generated files using no output directory 2 | // -Empty setting for implementation file 3 | // -%(Filename) for header file 4 | // -Directly declared name to type library 5 | import "oaidl.idl"; 6 | import "ocidl.idl"; 7 | 8 | // Something in the IDL file must be defined to ensure files are generated 9 | [ 10 | object, 11 | uuid(E0BFEE0D-D227-4E00-B3C5-6D26D636A0D3), 12 | pointer_default(unique) 13 | ] 14 | interface IInterface1 : IUnknown 15 | { 16 | HRESULT MyMethod(); 17 | }; 18 | 19 | [ 20 | uuid(98874237-AD43-47B6-AF7F-78592744FB12), 21 | version (1.0), 22 | ] 23 | library Lib1 24 | { 25 | importlib("stdole2.tlb"); 26 | 27 | [ 28 | uuid(94617AA0-2D3A-47F5-A9E0-818D2C800416), 29 | ] 30 | coclass CoClass1 31 | { 32 | [default, source] interface IInterface1; 33 | }; 34 | }; 35 | 36 | 37 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/BookmarkIndicatorModeToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Main; 2 | using System.Globalization; 3 | using System.Windows; 4 | using System.Windows.Data; 5 | 6 | namespace DsmSuite.DsmViewer.View.ValueConverters 7 | { 8 | public class BookmarkIndicatorModeToVisibilityConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | IndicatorViewMode viewMode = (IndicatorViewMode)value; 13 | return (viewMode == IndicatorViewMode.Bookmarks) ? Visibility.Visible : Visibility.Collapsed; 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Validation/WeightMustBePositiveNumberRule.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace DsmSuite.DsmViewer.View.Validation 4 | { 5 | public class WeightMustBePositiveNumberRule : ValidationRule 6 | { 7 | public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) 8 | { 9 | ValidationResult result; 10 | int weight; 11 | if (int.TryParse(value.ToString(), out weight)) 12 | { 13 | result = new ValidationResult(false, "Please enter a valid integer value."); 14 | } 15 | else 16 | { 17 | result = weight <= 0 ? new ValidationResult(false, "Please enter a positive integer value.") : new ValidationResult(true, null); 18 | } 19 | return result; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model/Core/DsiRelation.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.Analyzer.Model.Interface; 2 | 3 | namespace DsmSuite.Analyzer.Model.Core 4 | { 5 | /// 6 | /// Represents a relation of a specific type between two elements 7 | /// 8 | public class DsiRelation : IDsiRelation 9 | { 10 | public DsiRelation(int consumerId, int providerId, string type, int weight, IDictionary properties) 11 | { 12 | ConsumerId = consumerId; 13 | ProviderId = providerId; 14 | Type = type; 15 | Weight = weight; 16 | Properties = properties; 17 | } 18 | 19 | public int ConsumerId { get; } 20 | public int ProviderId { get; } 21 | public string Type { get; } 22 | public int Weight { get; set; } 23 | public IDictionary Properties { get; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Windows/ProgressWindow.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.VisualStudio.Test.Data.Com/DsmSuiteAnalyzerVisualStudioTestDataCom.idl: -------------------------------------------------------------------------------- 1 | // DsmSuiteAnalyzerVisualStudioTestDataCom.idl : IDL source for DsmSuite.Analyzer.VisualStudio.Test.Data.Com 2 | // 3 | 4 | // This file will be processed by the MIDL tool to 5 | // produce the type library (DsmSuiteAnalyzerVisualStudioTestDataCom.tlb) and marshalling code. 6 | 7 | import "oaidl.idl"; 8 | import "ocidl.idl"; 9 | 10 | [ 11 | object, 12 | uuid(5C80B193-5ABB-437B-9AA7-855BA880FE69), 13 | dual, 14 | nonextensible, 15 | pointer_default(unique) 16 | ] 17 | interface IComA : IDispatch{ 18 | }; 19 | [ 20 | uuid(0EDBCC3A-E7CA-4E3F-B8C8-49EBC57EAF03), 21 | version(1.0), 22 | ] 23 | library DsmSuiteAnalyzerVisualStudioTestDataComLib 24 | { 25 | importlib("stdole2.tlb"); 26 | [ 27 | uuid(A53A09F4-443C-44D1-9827-76FBC460BF2B) 28 | ] 29 | coclass ComA 30 | { 31 | [default] interface IComA; 32 | }; 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/ValueConverters/MetricsExpandedToButtonContentConverter.cs: -------------------------------------------------------------------------------- 1 | using System.Globalization; 2 | using System.Windows.Data; 3 | 4 | namespace DsmSuite.DsmViewer.View.ValueConverters 5 | { 6 | public class MetricsExpandedToButtonContentConverter : IValueConverter 7 | { 8 | private static readonly string LeftPointingTriangle = '\u25C0'.ToString(); 9 | private static readonly string RightPointingTriangle = '\u25B6'.ToString(); 10 | 11 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 12 | { 13 | bool expanded = (bool)value; 14 | return expanded ? LeftPointingTriangle : RightPointingTriangle; 15 | } 16 | 17 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 18 | { 19 | throw new NotImplementedException(); 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.Model.Test/DsmSuite.Analyzer.Model.Test.Input.dsi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.ViewModel/Matrix/MatrixColorConverter.cs: -------------------------------------------------------------------------------- 1 | namespace DsmSuite.DsmViewer.ViewModel.Matrix 2 | { 3 | public class MatrixColorConverter 4 | { 5 | public static MatrixColor GetColor(int depth) 6 | { 7 | MatrixColor color; 8 | switch (depth % 4) 9 | { 10 | case 0: 11 | color = MatrixColor.Color1; 12 | break; 13 | case 1: 14 | color = MatrixColor.Color2; 15 | break; 16 | case 2: 17 | color = MatrixColor.Color3; 18 | break; 19 | case 3: 20 | color = MatrixColor.Color4; 21 | break; 22 | default: 23 | color = MatrixColor.Background; 24 | break; 25 | } 26 | return color; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.Model.Test/Core/NameRegistrationTest.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.Model.Core; 2 | 3 | namespace DsmSuite.DsmViewer.Model.Test.Core 4 | { 5 | [TestClass] 6 | public class NameRegistrationTest 7 | { 8 | [TestMethod] 9 | public void TestNameRegistration() 10 | { 11 | string typeA = "type1"; 12 | string typeB = "type2"; 13 | string typeC = "type3"; 14 | NameRegistration typeRegistration = new NameRegistration(); 15 | char ida = typeRegistration.RegisterName(typeA); 16 | char idb = typeRegistration.RegisterName(typeB); 17 | char idc = typeRegistration.RegisterName(typeC); 18 | Assert.AreEqual(typeA, typeRegistration.GetRegisteredName(ida)); 19 | Assert.AreEqual(typeB, typeRegistration.GetRegisteredName(idb)); 20 | Assert.AreEqual(typeC, typeRegistration.GetRegisteredName(idc)); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Matrix/MatrixTopCornerView.xaml.cs: -------------------------------------------------------------------------------- 1 | using DsmSuite.DsmViewer.ViewModel.Matrix; 2 | using System.Windows; 3 | 4 | 5 | namespace DsmSuite.DsmViewer.View.Matrix 6 | { 7 | /// 8 | /// Interaction logic for MatrixTopCornerView.xaml 9 | /// 10 | public partial class MatrixTopCornerView 11 | { 12 | private MatrixViewModel _viewModel; 13 | 14 | public MatrixTopCornerView() 15 | { 16 | InitializeComponent(); 17 | 18 | DataContextChanged += OnDataContextChanged; 19 | } 20 | 21 | private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) 22 | { 23 | _viewModel = DataContext as MatrixViewModel; 24 | } 25 | 26 | private void OnClearSelection(object sender, RoutedEventArgs e) 27 | { 28 | _viewModel.SelectCell(null, null); 29 | _viewModel.SelectTreeItem(null); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /DsmSuite.Analyzer.DotNet.Lib/DotNetResolver.cs: -------------------------------------------------------------------------------- 1 | using Mono.Cecil; 2 | 3 | namespace DsmSuite.Analyzer.DotNet.Lib 4 | { 5 | public class DotNetResolver 6 | { 7 | private readonly HashSet _paths = new HashSet(); 8 | 9 | public void AddSearchPath(BinaryFile assemblyFile) 10 | { 11 | string path = assemblyFile.FileInfo.DirectoryName; 12 | if (path != null && !_paths.Contains(path)) 13 | { 14 | _paths.Add(path); 15 | } 16 | } 17 | 18 | public ReaderParameters ReaderParameters 19 | { 20 | get 21 | { 22 | DefaultAssemblyResolver resolver = new DefaultAssemblyResolver(); 23 | 24 | foreach (string path in _paths) 25 | { 26 | resolver.AddSearchDirectory(path); 27 | } 28 | 29 | return new ReaderParameters() { AssemblyResolver = resolver }; 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /DsmSuite.DsmViewer.View/Matrix/MatrixTopCornerView.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 |