| Summary: | Project Clean gets Resources twice | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Ed Willink <ed> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.0.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
This has been fixed and only happens if you run low on memory. Requested via bug 522520. -M. Requested via bug 522520. -M. |
M5: In an Eclipse workspace comprising a single Xtext nature project and a single Xtext file, invoke Project Clean All. AbstractLinker.afterModelLinked is invoked twice requiring my OCL editors that perform Concrete to Abstract Syntax model mapping in a derived afterModelLinked to convert twice; this is an expensive activity. [Particularly since the invoking protocol does not identify the sub-tree root that actually needs re-linking.] The problem appears to be line 271 of ClusteringBuilderState resourceSet.getResources().clear(); // Empty the resource set so that the next phase starts afresh. as result of which the two calls to resourceSet.getResource each start from scratch.