1
Automation Interface, Add-Ins and Tools / [Java-API] How to move Elements between Packages?
« on: December 11, 2007, 04:37:46 am »
Hello,
the Project Browser window has the ability to move elements from one package into another package.
It would be nice, if this can be done with the Java API.
Unfortunately i can not find any method to move an element from a collection of one package into the collection of another package.
org.sparx.Package.GetElements() returns a collection (org.sparx.Collection).
The only method to extened a collection is AddNew(String name, String type).
It seems to me that i have to remove the element from the original package and must create a new element within the destination package.
Is there any other way to move elements?
Thanks a lot!
the Project Browser window has the ability to move elements from one package into another package.
It would be nice, if this can be done with the Java API.
Unfortunately i can not find any method to move an element from a collection of one package into the collection of another package.
org.sparx.Package.GetElements() returns a collection (org.sparx.Collection).
The only method to extened a collection is AddNew(String name, String type).
It seems to me that i have to remove the element from the original package and must create a new element within the destination package.
Is there any other way to move elements?
Thanks a lot!