Skip to content

Commit

Permalink
merge eclipse settings instead of overwriting them
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Jun 4, 2014
1 parent eb3bb35 commit 49cf8e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ class XtextEclipsePreferences extends EclipsePreferences {
override public save() throws BackingStoreException {
super.save
}

override public load() throws BackingStoreException {
super.load
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class XtextEclipseSettings extends DefaultTask {
def writeSettings() {
xtext.languages.forEach [ Language language |
val prefs = new XtextEclipsePreferences(project, language.name)
prefs.load
prefs.putBoolean("is_project_specific", true)
language.outputs.forEach [ output |
prefs.put(output.getKey("directory"), project.file(output.dir).absolutePath)
Expand Down

0 comments on commit 49cf8e9

Please sign in to comment.