Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Delete UML Proxy without loading it(I'm trying to remove RaisedException proxy from my operation.)
icon9.gif  Delete UML Proxy without loading it [message #651848] Tue, 01 February 2011 14:10 Go to next message
Roshan S. is currently offline 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 14:41]

Report message to a moderator

Re: Delete UML Proxy without loading it [message #652246 is a reply to message #651848] Thu, 03 February 2011 05:31 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Which tool do you use ?
Re: Delete UML Proxy without loading it [message #652305 is a reply to message #652246] Thu, 03 February 2011 09:23 Go to previous message
Roshan S. is currently offline Roshan S.
Messages: 125
Registered: July 2009
Senior Member
Rational Software Architect
Previous Topic:Setting a Default value for a Property doesn't raise a Notificaton
Next Topic:How do you specify a Type when calling Parameter.setType(Type)?
Goto Forum:
  


Current Time: Thu Apr 17 00:00:12 EDT 2014

Powered by FUDForum. Page generated in 0.02016 seconds