Skip to content

Commit

Permalink
guard in configureWorkspace
Browse files Browse the repository at this point in the history
only add the ProjectConfigAdapter if it's not already there
  • Loading branch information
LorenzoBettini committed May 17, 2024
1 parent b0bf485 commit bd8ea14
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ public boolean launch() {
* @since 2.35
*/
protected void configureWorkspace(ResourceSet resourceSet) {
ProjectConfigAdapter result = ProjectConfigAdapter.findInEmfObject(resourceSet);
if (result != null) {
return;
}
FileProjectConfig projectConfig = new FileProjectConfig(new File(baseDir), baseDir);
for (String sourceDir : sourceDirs) {
projectConfig.addSourceFolder(sourceDir);
Expand Down

0 comments on commit bd8ea14

Please sign in to comment.