Problem referencing other Files during clean all [message #555832] |
Sun, 29 August 2010 10:40 |
Johannes Stelzer Messages: 30 Registered: October 2009 |
Member |
|
|
When I'm editing one of my files the #include is resolved perfectly to other files in in the project.
But when I'm doing a 'clean all' on my projects the references cannot be resolved.
Before 1.0 this did work (until M6 I think).
This is the way I'm resolving the reference:
public class InputFileGlobalScope extends AbstractDeclarativeScopeProvider
implements IGlobalScopeProvider {
....
@Inject
private IResourceDescriptions allDescriptions;
public IScope scope_Include_includedInputFile(InputFile inputFile,
EReference reference) {
List<IEObjectDescription> allElements = new ArrayList<IEObjectDescription>();
for (IResourceDescription resource : allDescriptions
.getAllResourceDescriptions()) {
IEObjectDescription objectDescription = Iterables
.getOnlyElement(resource
.getExportedObjects(InputFilePackage.eINSTANCE
.getInputFile()));
allElements.add(objectDescription);
}
return new SimpleScope(allElements);
}
}
Any ideas?
[Updated on: Sun, 29 August 2010 10:42] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03201 seconds