Merge pull request #709 from eclipse/se/projectConfigAdapter_install

made ProjectConfigAdapter constructor protected and changed all callers to use ProjectConfigAdapter#install
This commit is contained in:
Sven Efftinge 2015-10-20 16:38:43 +02:00
commit 54eb9880f9

View file

@ -7,14 +7,18 @@
*******************************************************************************/
package org.eclipse.xtext.workspace
import org.eclipse.xtext.util.internal.EmfAdaptable
import org.eclipse.xtend.lib.annotations.Data
import org.eclipse.emf.ecore.resource.ResourceSet
import org.eclipse.xtend.lib.annotations.Accessors
import org.eclipse.xtext.util.internal.EmfAdaptable
@EmfAdaptable
@Data
@Accessors
class ProjectConfigAdapter {
IProjectConfig projectConfig
val IProjectConfig projectConfig
protected new (IProjectConfig projectConfig) {
this.projectConfig = projectConfig
}
def static void install(ResourceSet resourceSet, IProjectConfig config) {
new ProjectConfigAdapter(config).attachToEmfObject(resourceSet)