Interface ISettingsEditingContext
- All Known Implementing Classes:
AbstractSettingsEditingContext,NewWizardEditingContext,ProjectEditorEditingContext
public interface ISettingsEditingContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLanguageChangedListener(ILanguageChangedListener languageChangedListener) voiddispose()Dispose the instance.voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) Saves the settings in workspace resources.Gets the defaul project language.Gets the full collection of languages based on the possible languages of the project.org.eclipse.core.resources.IProjectGets the project of settings.Gets the project languages.booleanisDirty()Checks if settings is dirty.booleanChecks if this editing context is disposed.voidMark the settings as dirty.voidremoveLanguageChangedListener(ILanguageChangedListener languageChangedListener) voidsetDirty(boolean isDirty) Sets the settings is dirty.
-
Method Details
-
getProject
org.eclipse.core.resources.IProject getProject()Gets the project of settings.- Returns:
- the project
-
getLanguages
List<V8TranslateLanguage> getLanguages()Gets the full collection of languages based on the possible languages of the project.- Returns:
- the languages, cannot return
null.
-
getProjectLanguages
List<V8TranslateLanguage> getProjectLanguages()Gets the project languages. This set of project languages cannot be modified from this context.- Returns:
- the project languages, cannot return
null.
-
isDisposed
boolean isDisposed()Checks if this editing context is disposed.- Returns:
- true, if it is disposed
-
doSave
void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) Saves the settings in workspace resources.- Parameters:
monitor- the monitor
-
markDirty
void markDirty()Mark the settings as dirty. -
isDirty
boolean isDirty()Checks if settings is dirty.- Returns:
- true, if the settings is dirty
-
setDirty
void setDirty(boolean isDirty) Sets the settings is dirty.- Parameters:
isDirty- the new dirty
-
dispose
void dispose()Dispose the instance. -
getDefaulProjectLanguage
V8TranslateLanguage getDefaulProjectLanguage()Gets the defaul project language.- Returns:
- the defaul project language
-
getContext
Object getContext() -
addLanguageChangedListener
-
removeLanguageChangedListener
-
getExternalProjectSettings
IExternalProjectSettings getExternalProjectSettings() -
getTranslatedProjectSettings
ITranslatedProjectSettings getTranslatedProjectSettings() -
getTranslateLanguageSettings
ITranslateLanguageSettings getTranslateLanguageSettings()
-