Fan-In pluglet details |
All the relevant information in this sample is in the FanAction Java class. You can see from the sample that a variety of UML2 and model extensibility classes are used. The sample initiates in the plugletMain method, which iterates through the user selections. If a selection is an instance of a UML2.0 class, then the calcFanIn method is called. In this method, the model is accessed through the execute method of the ResourceSetReadOperation class. The class references are calculated using methods getReferencingClassesByOperation and getReferencingClassesByProperty. These two methods execute through the use of the IEObjectHelper.getReferencers method. |