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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top