mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
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:
commit
54eb9880f9
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue