Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 itemis AG ( and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at /
 package org.eclipse.xtext.ui.resource;
This class configures org.eclipse.xtext.resource.IResourceDescriptions for a org.eclipse.emf.ecore.resource.ResourceSet so that
  • in stand-alone mode, the IResourceDescriptions are created based on the current ResourceSets contents.
  • in workspace mode, the IResourceDescriptions is the one from the Xtext Index, shadowed by the dirty state of the text editors, shadowed by the contents of the current ResourceSet.
During linking/content-assist/serialization, the Xtext's scope providers populate their scopes based on the IResourceDescriptions' contents.

Moritz Eysholdt - Initial contribution and API
See also:

	public void initialize(ResourceSet resourceSet) {
New to GrepCode? Check out our FAQ X