Class NavigatorTranslateLanguageAdapter

java.lang.Object
org.eclipse.core.runtime.PlatformObject
com.e1c.langtool.stat.internal.ui.NavigatorTranslateLanguageAdapter
All Implemented Interfaces:
TranslateLanguage, org.eclipse.core.runtime.IAdaptable

public class NavigatorTranslateLanguageAdapter extends org.eclipse.core.runtime.PlatformObject implements TranslateLanguage
The adapter class of TranslateLanguage that adds to navigator content. It is wrapping actual TranslateLanguage, containing project and parent object. This instance may obtains Statistics for the representing resource object.
  • Constructor Details

    • NavigatorTranslateLanguageAdapter

      public NavigatorTranslateLanguageAdapter(org.eclipse.core.resources.IResource resource, Object parent, TranslateLanguage language)
  • Method Details

    • getUuid

      public UUID getUuid()
      Description copied from interface: TranslateLanguage
      Returns unique identifier of this language.
      Specified by:
      getUuid in interface TranslateLanguage
      Returns:
      unique identifier of this language. It can't be null.
    • getName

      public String getName()
      Description copied from interface: TranslateLanguage
      Returns a name of this language.
      Specified by:
      getName in interface TranslateLanguage
      Returns:
      a name of this language. It can't be null.
    • getPresentation

      public String getPresentation()
      Description copied from interface: TranslateLanguage
      Returns a presentation (synonym) of this language.
      Specified by:
      getPresentation in interface TranslateLanguage
      Returns:
      a presentation (synonym) of this language. It can't be null.
    • getLanguageCode

      public String getLanguageCode()
      Description copied from interface: TranslateLanguage
      Returns a code of this language.
      Specified by:
      getLanguageCode in interface TranslateLanguage
      Returns:
      a code of this language. It can't be null.
    • getOption

      public TranslationOption getOption()
      Description copied from interface: TranslateLanguage
      Returns a translation option of this language.
      Specified by:
      getOption in interface TranslateLanguage
      Returns:
      a translation option of this language. It can't be null.
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
      Overrides:
      getAdapter in class org.eclipse.core.runtime.PlatformObject
    • getParent

      public Object getParent()
    • getResource

      public org.eclipse.core.resources.IResource getResource()
    • getStatistic

      public Statistics getStatistic()