Package com.e1c.langtool.ui
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final StringFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanProcessPart(org.eclipse.ui.IWorkbenchPart part) Can process part on not.protected voidCreate the actions.voidcreatePartControl(org.eclipse.swt.widgets.Composite parent) protected voidprotected voidCreates the viewer columns.voiddispose()<T> TgetAdapter(Class<T> adapter) Gets the collecting parameters from the requestor.protected voidbooleanisPinned()booleanvoidsetFocus()voidStatus changed and requester may react on it.Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
GROUP_TRANSLATION_STORAGE
- See Also:
-
GROUP_PREFERENCES
- See Also:
-
GROUP_STORAGE
- See Also:
-
GROUP_SHOW
- See Also:
-
ID
- See Also:
-
PREFERENCE_PAGE_ID
- See Also:
-
-
Constructor Details
-
TranslationsView
public TranslationsView()
-
-
Method Details
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
getCollectingParameters
Description copied from interface:SelectionCollectingRequesterGets the collecting parameters from the requestor.- Specified by:
getCollectingParametersin interfaceSelectionCollectingRequester- Returns:
- the collecting parameters, cannot be
null.
-
canProcessPart
public boolean canProcessPart(org.eclipse.ui.IWorkbenchPart part) Description copied from interface:SelectionCollectingRequesterCan 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:
canProcessPartin interfaceSelectionCollectingRequester- Parameters:
part- the part, cannot benull.- Returns:
- true, if can process collection from this UI part.
-
statusChanged
Description copied from interface:SelectionCollectingRequesterStatus changed and requester may react on it.- Specified by:
statusChangedin interfaceSelectionCollectingRequester- Parameters:
event- the event, cannot benull.
-
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
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.ui.part.WorkbenchPart
-