Delete UML Proxy without loading it [message #651848] |
Tue, 01 February 2011 19:10 |
Roshan S. Messages: 125 Registered: July 2009 |
Senior Member |
|
|
I did some reverse engineering in to create a uml model, however a by product is that the reverse engineering generated some imports to exceptions that I have no intention of modeling nor do I have the libraries to point to in my model.
Since the libraries are not loaded they show up as proxies, but I want to delete the proxies.
In a TransactionalEditiingDomain domain:
domain.runExclusive(new Runnable(){
public void run(){
//Some code to load my UML2 model
//....
//Some code to load the first org.eclipse.uml2.uml.class "clazz"
for(Operation operation:clazz.getOperations){ //Please note over here the operation is NOT a proxy
for(Type raisedException : operation.getRaisedExceptions){
raisedException.destroy();
}
}
At the raisedException.destroy() line I get an error "Cannot modify resource set without a write transaction"
Any help would be greatly appreciated.
Thanks!
[Updated on: Tue, 01 February 2011 19:41] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03902 seconds