Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 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.refactoring.impl;
 
import  org.eclipse.core.resources.IProject;
Provides the correctly configured ResourceSet that is used during refactoring. It's based on the dirty state, i.e. the content of unsaved editors can be accessed. Furthermore changed resources inside the resource set shadow existing ones.

Author(s):
Jan Koehnlein - Initial contribution and API
	public ResourceSet get(IProject project) {
		ResourceSet resourceSet = super.get(project);
		configure(resourceSet);
		return resourceSet;
	}
	protected void configure(ResourceSet resourceSet) {
	}
New to GrepCode? Check out our FAQ X