![JAR search and dependency download from the Maven repository](/logo.png)
edu.stanford.protege.webprotege.lang.ActiveLanguagesManager Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.lang;
import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.change.OntologyChange;
import edu.stanford.protege.webprotege.common.DictionaryLanguage;
import edu.stanford.protege.webprotege.inject.ProjectSingleton;
import javax.annotation.Nonnull;
import java.util.List;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2019-08-05
*/
@ProjectSingleton
public interface ActiveLanguagesManager {
/**
* Gets the languages used in the project, ranked in descending order in terms
* of usage – the most commonly used languages appear first. This ranking may change
* as the ontologies in a project are edited.
*/
@Nonnull
ImmutableList getLanguagesRankedByUsage();
/**
* Gets the languages used in the project, ranked in descending order in terms of usage. The most commonly
* user languages appear first.
*/
@Nonnull
ImmutableList getLanguageUsage();
/**
* Updates the active languages from the list of applied changes
*
* @param changes The changes.
*/
void handleChanges(@Nonnull List changes);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy