Class TranslationsView

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.e1c.langtool.ui.TranslationsView
All Implemented Interfaces:
SelectionCollectingRequester, EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class TranslationsView extends org.eclipse.ui.part.ViewPart implements SelectionCollectingRequester
This class creates and show the Translation panel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    protected static final String
     

    Fields inherited from interface org.eclipse.ui.IWorkbenchPart

    PROP_TITLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canProcessPart(org.eclipse.ui.IWorkbenchPart part)
    Can process part on not.
    protected void
    Create the actions.
    void
    createPartControl(org.eclipse.swt.widgets.Composite parent)
     
    protected void
     
    protected void
    Creates the viewer columns.
    void
     
    <T> T
    getAdapter(Class<T> adapter)
     
    Gets the collecting parameters from the requestor.
    protected void
     
    boolean
     
    boolean
     
    void
     
    void
    Status changed and requester may react on it.

    Methods inherited from class org.eclipse.ui.part.ViewPart

    checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName

    Methods inherited from class org.eclipse.ui.part.WorkbenchPart

    addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.ui.IWorkbenchPart

    addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
  • Field Details

  • Constructor Details

    • TranslationsView

      public TranslationsView()
  • Method Details

    • createPartControl

      public void createPartControl(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.eclipse.ui.part.WorkbenchPart
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.ui.part.WorkbenchPart
    • getCollectingParameters

      public ICollectingParameters getCollectingParameters()
      Description copied from interface: SelectionCollectingRequester
      Gets the collecting parameters from the requestor.
      Specified by:
      getCollectingParameters in interface SelectionCollectingRequester
      Returns:
      the collecting parameters, cannot be null.
    • canProcessPart

      public boolean canProcessPart(org.eclipse.ui.IWorkbenchPart part)
      Description copied from interface: SelectionCollectingRequester
      Can process part on not. Usually this method may filter itself UI part to prevent reaction of selection listener on focus in the current UI-requester.
      Specified by:
      canProcessPart in interface SelectionCollectingRequester
      Parameters:
      part - the part, cannot be null.
      Returns:
      true, if can process collection from this UI part.
    • statusChanged

      public void statusChanged(SelectionCollectingEvent event)
      Description copied from interface: SelectionCollectingRequester
      Status changed and requester may react on it.
      Specified by:
      statusChanged in interface SelectionCollectingRequester
      Parameters:
      event - the event, cannot be null.
    • isPinned

      public boolean isPinned()
      Returns:
      whether this translations view is currently pinned
    • isTranslating

      public boolean isTranslating()
    • createViewerColumns

      protected void createViewerColumns()
      Creates the viewer columns.
    • createUpdateLanguageColumns

      protected void createUpdateLanguageColumns()
    • hideAllLanguageColumns

      protected void hideAllLanguageColumns()
    • createActions

      protected void createActions()
      Create the actions.
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
      Overrides:
      getAdapter in class org.eclipse.ui.part.WorkbenchPart