Class TranslatedExtensionProject
java.lang.Object
org.eclipse.core.runtime.PlatformObject
com.e1c.langtool.platform.AbstractTranslateProject
com.e1c.langtool.v8.dt.platform.AbstractTranslateV8Project
com.e1c.langtool.v8.dt.internal.extension.TranslatedExtensionProject
- All Implemented Interfaces:
IConfigurationAware,ITranslatedProject,ITranslateProject,ITranslatedExtensionProject,ITranslatedV8Project,ITranslateV8Project,org.eclipse.core.runtime.IAdaptable
public class TranslatedExtensionProject
extends AbstractTranslateV8Project
implements ITranslatedExtensionProject
-
Constructor Summary
ConstructorsConstructorDescriptionTranslatedExtensionProject(org.eclipse.core.resources.IProject project, V8TranslatedExtensionProject translatedProject, ITranslatingExtensionProject sourceProject) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.resources.IProjectReturn this extension base project ornull.Gets the V8 configuration.Gets the default language of the project.Gets the interface languages that needs to be added.Gets the full list of languages from source project that includes in translated V8 project.Gets the project name.Gets the script variant of the translated project.Gets the source project.booleanChecks if in this project default language is changed from the source project default language.booleanChecks if in this project script variant is changed from the source project script variant.booleanChecks if the project is translated.Methods inherited from class com.e1c.langtool.v8.dt.platform.AbstractTranslateV8Project
getV8ProjectMethods inherited from class com.e1c.langtool.platform.AbstractTranslateProject
getAdapter, getProject, 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, isTranslatingMethods inherited from interface com.e1c.langtool.v8.dt.platform.ITranslateV8Project
getV8Project
-
Constructor Details
-
TranslatedExtensionProject
public TranslatedExtensionProject(org.eclipse.core.resources.IProject project, V8TranslatedExtensionProject translatedProject, ITranslatingExtensionProject sourceProject) - Parameters:
project-sourceProject-translatedProjectModel-
-
-
Method Details
-
isTranslated
public boolean isTranslated()Description copied from interface:ITranslateProjectChecks if the project is translated.- Specified by:
isTranslatedin interfaceITranslateProject- Overrides:
isTranslatedin classAbstractTranslateProject- Returns:
- true, if it is translated
-
getDefaultLanguage
Description copied from interface:ITranslateProjectGets the default language of the project.- Specified by:
getDefaultLanguagein interfaceITranslateProject- Returns:
- the default language
-
getSourceProject
Description copied from interface:ITranslatedProjectGets the source project.- Specified by:
getSourceProjectin interfaceITranslatedProject- Returns:
- the source project, cannot return
null.
-
getInterfaceLanguages
Description copied from interface:ITranslatedProjectGets the interface languages that needs to be added.- Specified by:
getInterfaceLanguagesin interfaceITranslatedProject- Returns:
- the interface languages, cannot return
null.
-
getProjectName
Description copied from interface:ITranslatedProjectGets the project name.- Specified by:
getProjectNamein interfaceITranslatedProject- Returns:
- the project name, cannot return
null.
-
getScriptVariant
Description copied from interface:ITranslatedV8ProjectGets the script variant of the translated project.- Specified by:
getScriptVariantin interfaceITranslatedV8Project- Specified by:
getScriptVariantin interfaceITranslateV8Project- Returns:
- the script variant
-
isChangeScriptVariant
public boolean isChangeScriptVariant()Description copied from interface:ITranslatedV8ProjectChecks if in this project script variant is changed from the source project script variant.- Specified by:
isChangeScriptVariantin interfaceITranslatedV8Project- Returns:
- true, if the script variant is changing
-
isChangeDefaultLanguage
public boolean isChangeDefaultLanguage()Description copied from interface:ITranslatedV8ProjectChecks if in this project default language is changed from the source project default language.- Specified by:
isChangeDefaultLanguagein interfaceITranslatedV8Project- Returns:
- true, if it is change default language
-
getBaseProject
public org.eclipse.core.resources.IProject getBaseProject()Description copied from interface:ITranslatedExtensionProjectReturn this extension base project ornull.- Specified by:
getBaseProjectin interfaceITranslatedExtensionProject- Returns:
- extension base project or
null
-
getConfiguration
Description copied from interface:ITranslatedExtensionProjectGets the V8 configuration.- Specified by:
getConfigurationin interfaceIConfigurationAware- Specified by:
getConfigurationin interfaceITranslatedExtensionProject- Returns:
- the configuration
-
getLanguages
Description copied from interface:ITranslatedV8ProjectGets the full list of languages from source project that includes in translated V8 project. The list contains translate languages and native V8 project languages that includes in translated project.- Specified by:
getLanguagesin interfaceITranslatedV8Project- Returns:
- the immutable list of languages, cannot return
null.
-