Class NonTranslatingProject
java.lang.Object
org.eclipse.core.runtime.PlatformObject
com.e1c.langtool.platform.AbstractTranslateProject
com.e1c.langtool.internal.platform.NonTranslatingProject
- All Implemented Interfaces:
ITranslateProject,ITranslatingProject,org.eclipse.core.runtime.IAdaptable
public final class NonTranslatingProject
extends AbstractTranslateProject
implements ITranslatingProject
The default implementation of
ITranslatingProject for some project that is NOT registered as project need
to translate. It always return false on call AbstractTranslateProject.isTranslating().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default language of the project.Gets the interface languages of the project.Gets the model languages that the project model data translating onto.Gets the translated projects from settings of this project.Methods inherited from class com.e1c.langtool.platform.AbstractTranslateProject
getAdapter, getProject, isTranslated, isTranslatingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface com.e1c.langtool.platform.ITranslateProject
dispose, getProject, isTranslated, isTranslating
-
Constructor Details
-
NonTranslatingProject
public NonTranslatingProject(org.eclipse.core.resources.IProject project)
-
-
Method Details
-
getDefaultLanguage
Description copied from interface:ITranslateProjectGets the default language of the project.- Specified by:
getDefaultLanguagein interfaceITranslateProject- Returns:
- the default language
-
getModelLanguages
Description copied from interface:ITranslatingProjectGets the model languages that the project model data translating onto.Note that returning languages should be sorted by
TranslateLanguage.getName()- Specified by:
getModelLanguagesin interfaceITranslatingProject- Returns:
- the model languages, cannot be
null
-
getInterfaceLanguages
Description copied from interface:ITranslatingProjectGets the interface languages of the project.Note that returning languages should be sorted by
TranslateLanguage.getName()- Specified by:
getInterfaceLanguagesin interfaceITranslatingProject- Returns:
- the interface languages
-
getTranslatedProjects
Description copied from interface:ITranslatingProjectGets the translated projects from settings of this project.Note that returning projects should be sorted by
ITranslatedProject.getProjectName()- Specified by:
getTranslatedProjectsin interfaceITranslatingProject- Returns:
- the translated projects
-