Skip to content

Commit

Permalink
Don't attempt to register multiple packages for the same language if …
Browse files Browse the repository at this point in the history
…one already exists
  • Loading branch information
Thomas Degueule committed Aug 4, 2015
1 parent bcd1bd4 commit 5de17a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ class EPackageProvider
/**
* Register {@link root} and its sub EPackages as packages of {@link modElem}
*/
def void registerPackages(ModelingElement modElem, EPackage root){
if (root !== null) {
def void registerPackages(ModelingElement modElem, EPackage root) {
if (!packages.keySet.contains(modElem.fqn) && root !== null) {
val pkgs = newArrayList

pkgs += root
Expand Down

0 comments on commit 5de17a1

Please sign in to comment.