public void traversePackages(EA.Collection packages) { for (short i = 0; i < packages.Count; i++) { EA.Package package = (EA.Package) packages.GetAt(i); if (package.Packages.Count > 0) { traversePackages(package.Packages); } if (package.Elements.Count > 0) { traverseElements(package.Elements); } } }
public void traverseElements(EA.Collection elements) { for (short i = 0; i < elements.Count; i++) { EA.Element elem = (EA.Element)elements.GetAt(i); if (elem.Type.Equals("Class")) { if (!checkClassName(elem.Name)) { MessageBox.Show(elem.Name + " is not correct name for class (Slovak)"); } } } }