Frage

as explained in the title: I want to change the Steretypes of multiple Packages at once, which are selected in the Project Browser. I want to do this with the built-in scripting function.

I tried to stick to the "VBScript Project Browser Multi Selection Example" but it seems impossible to change the Stereotypes of multiple packages.

Does anybody know how to do this?

Thanks in advance

War es hilfreich?

Lösung

Packages and Elements are treated differently in the Project Browser, so Repository.GetTreeSelectedElements() will return an empty collection if a Package is selected. What EA needs is a Repository.GetTreeSelectedPackages() method, but until then I'm afraid you're out of luck.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top