Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 itemis AG (http://www.itemis.eu) 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 http://www.eclipse.org/legal/epl-v10.html /
 
 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.

Author(s):
Moritz Eysholdt - Initial contribution and API
Since:
2.6
See also:
org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider

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