use of org.jetbrains.jps.model.JpsGlobal in project intellij-community by JetBrains.
the class JpsLibraryOrderEntry method getLibraryLevel.
@Override
public String getLibraryLevel() {
final JpsElementReference<? extends JpsCompositeElement> reference = myDependencyElement.getLibraryReference().getParentReference();
final JpsCompositeElement parent = reference.resolve();
if (parent instanceof JpsGlobal)
return LibraryTablesRegistrar.APPLICATION_LEVEL;
if (parent instanceof JpsProject)
return LibraryTablesRegistrar.PROJECT_LEVEL;
if (parent instanceof JpsModule)
return LibraryTableImplUtil.MODULE_LEVEL;
return LibraryTablesRegistrar.PROJECT_LEVEL;
}
Aggregations