Skip to main content


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 19:10 Go to next message
Roshan S. is currently offline Roshan S.Friend
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

Re: Delete UML Proxy without loading it [message #652246 is a reply to message #651848] Thu, 03 February 2011 10:31 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
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 14:23 Go to previous message
Roshan S. is currently offline Roshan S.Friend
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: Fri Apr 19 11:20:56 GMT 2024

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

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

Back to the top