Class TranslatedConfigurationProject
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.platform.TranslatedConfigurationProject
- All Implemented Interfaces:
IConfigurationAware,ITranslatedProject,ITranslateProject,ITranslatedConfigurationProject,ITranslatedV8Project,ITranslateV8Project,org.eclipse.core.runtime.IAdaptable
public class TranslatedConfigurationProject
extends AbstractTranslateV8Project
implements ITranslatedConfigurationProject
-
Constructor Summary
ConstructorsConstructorDescriptionTranslatedConfigurationProject(org.eclipse.core.resources.IProject project, V8TranslatedProject translatedProject, ITranslatingConfigurationProject sourceProject) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the instance and all holding resources if any.Gets the configuration of translated project.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
getProject, isTranslatingMethods inherited from interface com.e1c.langtool.v8.dt.platform.ITranslateV8Project
getV8Project
-
Constructor Details
-
TranslatedConfigurationProject
public TranslatedConfigurationProject(org.eclipse.core.resources.IProject project, V8TranslatedProject translatedProject, ITranslatingConfigurationProject sourceProject) - Parameters:
project-
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:ITranslateProjectDispose the instance and all holding resources if any.- Specified by:
disposein interfaceITranslateProject
-
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.
-
getDefaultLanguage
Description copied from interface:ITranslateProjectGets the default language of the project.- Specified by:
getDefaultLanguagein interfaceITranslateProject- Returns:
- the default language
-
getConfiguration
Description copied from interface:ITranslatedConfigurationProjectGets the configuration of translated project.- Specified by:
getConfigurationin interfaceIConfigurationAware- Specified by:
getConfigurationin interfaceITranslatedConfigurationProject- Returns:
- the configuration, may return
nullif translated project is not created yet.
-
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
-
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
-
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.
-