Search in sources :

Example 1 with TypeResourceDescription

use of org.eclipse.xtext.common.types.ui.notification.TypeResourceDescription in project xtext-eclipse by eclipse.

the class JdtToBeBuiltComputer method queueJavaChange.

protected void queueJavaChange(String typeName) {
    URI typeURI = URIHelperConstants.OBJECTS_URI.appendSegment(typeName);
    QualifiedName qualifiedName = QualifiedName.create(Strings.split(typeName, '.'));
    NameBasedEObjectDescription nameBasedEObjectDescription = new NameBasedEObjectDescription(qualifiedName);
    TypeResourceDescription oldDescription = new TypeResourceDescription(typeURI, Collections.<IEObjectDescription>singletonList(nameBasedEObjectDescription));
    Delta delta = new ChangedResourceDescriptionDelta(oldDescription, null);
    queuedBuildData.queueChange(delta);
}
Also used : ChangedResourceDescriptionDelta(org.eclipse.xtext.resource.impl.ChangedResourceDescriptionDelta) NameBasedEObjectDescription(org.eclipse.xtext.common.types.ui.notification.NameBasedEObjectDescription) Delta(org.eclipse.xtext.resource.IResourceDescription.Delta) ChangedResourceDescriptionDelta(org.eclipse.xtext.resource.impl.ChangedResourceDescriptionDelta) QualifiedName(org.eclipse.xtext.naming.QualifiedName) TypeResourceDescription(org.eclipse.xtext.common.types.ui.notification.TypeResourceDescription) URI(org.eclipse.emf.common.util.URI)

Aggregations

URI (org.eclipse.emf.common.util.URI)1 NameBasedEObjectDescription (org.eclipse.xtext.common.types.ui.notification.NameBasedEObjectDescription)1 TypeResourceDescription (org.eclipse.xtext.common.types.ui.notification.TypeResourceDescription)1 QualifiedName (org.eclipse.xtext.naming.QualifiedName)1 Delta (org.eclipse.xtext.resource.IResourceDescription.Delta)1 ChangedResourceDescriptionDelta (org.eclipse.xtext.resource.impl.ChangedResourceDescriptionDelta)1