Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 19:29:33 EDT 2025

Powered by FUDForum. Page generated in 0.03839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top