Problem with load [message #1798685] |
Thu, 22 November 2018 16:55 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
Hi there,
When I load the resource with resource.load(null) it does not clear the previous content. What shall I do?
In the below code, the `Test` method is called several times. First, I load the resource and at the end I delete the resource in order the previous content is cleared for next method call but it still has the previous content.
public ArrayList<EObject> Test(Resource r) {
try {
r.load(null);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//do something and store results in expressions variable
try {
r.delete(null);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return expressions;
}
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Thu, 22 November 2018 16:56] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06779 seconds