edelta.scoping.EdeltaImplicitlyImportedFeatures Maven / Gradle / Ivy
The newest version!
/**
*
*/
package edelta.scoping;
import java.util.List;
import org.eclipse.xtext.xbase.scoping.batch.ImplicitlyImportedFeatures;
import edelta.lib.EdeltaEcoreUtil;
import edelta.lib.EdeltaUtils;
/**
* Make {@link EdeltaUtils} automatically statically imported and its static
* methods automatically available as extension methods.
*
* @author Lorenzo Bettini
*/
public class EdeltaImplicitlyImportedFeatures extends ImplicitlyImportedFeatures {
@Override
protected List> getExtensionClasses() {
final var extensionClasses = super.getExtensionClasses();
extensionClasses.add(EdeltaUtils.class);
extensionClasses.add(EdeltaEcoreUtil.class);
return extensionClasses;
}
@Override
protected List> getStaticImportClasses() {
final var staticImportClasses = super.getStaticImportClasses();
staticImportClasses.add(EdeltaUtils.class);
staticImportClasses.add(EdeltaEcoreUtil.class);
return staticImportClasses;
}
}