Configuring cell entries - dependencies
In order to get the dependencies between row and column elements in the dependency matrix, components of the com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyExtractor interface are used. These components allow to
Define custom dependencies that can be created in a cell.
Add shortcut menu commands for navigation (other than opening the Specification window of the element and selecting the element in the Containment tree).
Construct smart listener configurations that define cases when some element dependencies should be updated instantly (without the full rebuild of the matrix).
Use the com.nomagic.magicdraw.dependencymatrix.configuration.DependencyMatrixConfigurator.configureDependencyHandlers(java.util.Collection<DependencyExtractor>, java.util.Collection<DependencyEditor>) method to register a custom dependency extractor. The method can remove the default dependency extractor from the collection and leave only a custom extractor.
The most important method is com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyExtractor.getDependencies(ElementNode, ElementNode). It is called to add dependencies in the matrix cell. By using custom algorithms you can create additional instances of the com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyEntry class for each cell.