Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem deleting model element
Problem deleting model element [message #592850] Wed, 11 August 2010 16:11 Go to next message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
I am trying to delete an element from my target model using the following in an ETL file,

var subroutines := tgtIL1!`Subroutine`.allInstances();

if(s.`temporary` = true){
deleteElement(s);
}

any ideas why I get the following error: Method 'deleteElement' not found.

cheers, Andy
Re: Problem deleting model element [message #592877 is a reply to message #592850] Wed, 11 August 2010 19:24 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Andy,

Does the following work?

delete s;

Epsilon provides a built-in delete keyword, but not a deleteElements method.

Cheers,
Louis.
Re: Problem deleting model element [message #592930 is a reply to message #592850] Thu, 12 August 2010 09:57 Go to previous message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
using delete s I get an exception,

Internal error: java.util.ConcurrentModificationException

the trace points to the line,

for(s in subroutines){ ....

in a loop,

for(s in subroutines){
if(s.`temporary` = true){
delete s;
}
}

How should I overcome this?
Previous Topic:[HUTN] Syntax for EDataType values
Next Topic:Problems with computing title of a fix
Goto Forum:
  


Current Time: Fri Apr 26 22:14:34 GMT 2024

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

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

Back to the top