Вопрос

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