Class ModeLinkEditor

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class ModeLinkEditor
    extends org.eclipse.ui.part.MultiEditor
    implements org.eclipse.jface.viewers.ISelectionChangedListener
    Two-way or three-way model editor. Can use both the default registered editors or the Exeed editors.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.ui.part.MultiEditor

        org.eclipse.ui.part.MultiEditor.Gradient
    • Field Summary

      • Fields inherited from interface org.eclipse.ui.IEditorPart

        PROP_DIRTY, PROP_INPUT
      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

        PROP_TITLE
    • Constructor Summary

      Constructors 
      Constructor Description
      ModeLinkEditor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.swt.widgets.Composite createInnerPartControl​(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.IEditorPart e)  
      void createPartControl​(org.eclipse.swt.widgets.Composite parent)  
      protected void drawGradient​(org.eclipse.ui.IEditorPart innerEditor, org.eclipse.ui.part.MultiEditor.Gradient g)  
      <T> T getAdapter​(Class<T> key)  
      ModeLinkEditorInput getEditorInput()  
      String getPartName()  
      org.eclipse.swt.widgets.ToolBar getToolbar()  
      void selectionChanged​(org.eclipse.jface.viewers.SelectionChangedEvent event)  
      void setFocus()  
      • Methods inherited from class org.eclipse.ui.part.MultiEditor

        activateEditor, getInnerEditorContainer, getShellActivated, innerEditorsCreated, updateGradient
      • Methods inherited from class org.eclipse.ui.part.AbstractMultiEditor

        dispose, doSave, doSaveAs, getActiveEditor, getIndex, getInnerEditors, handlePropertyChange, init, init, isDirty, isSaveAsAllowed, setChildren
      • Methods inherited from class org.eclipse.ui.part.EditorPart

        checkSite, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
      • Methods inherited from class org.eclipse.ui.part.WorkbenchPart

        addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, 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 interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
    • Constructor Detail

      • ModeLinkEditor

        public ModeLinkEditor()
    • Method Detail

      • getToolbar

        public org.eclipse.swt.widgets.ToolBar getToolbar()
      • 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
      • getEditorInput

        public ModeLinkEditorInput getEditorInput()
        Specified by:
        getEditorInput in interface org.eclipse.ui.IEditorPart
        Overrides:
        getEditorInput in class org.eclipse.ui.part.EditorPart
      • createInnerPartControl

        public org.eclipse.swt.widgets.Composite createInnerPartControl​(org.eclipse.swt.widgets.Composite parent,
                                                                        org.eclipse.ui.IEditorPart e)
        Overrides:
        createInnerPartControl in class org.eclipse.ui.part.MultiEditor
      • getPartName

        public String getPartName()
        Specified by:
        getPartName in interface org.eclipse.ui.IWorkbenchPart2
        Overrides:
        getPartName in class org.eclipse.ui.part.WorkbenchPart
      • setFocus

        public void setFocus()
        Specified by:
        setFocus in interface org.eclipse.ui.IWorkbenchPart
        Overrides:
        setFocus in class org.eclipse.ui.part.MultiEditor
      • getAdapter

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

        public void selectionChanged​(org.eclipse.jface.viewers.SelectionChangedEvent event)
        Specified by:
        selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener
      • drawGradient

        protected void drawGradient​(org.eclipse.ui.IEditorPart innerEditor,
                                    org.eclipse.ui.part.MultiEditor.Gradient g)
        Specified by:
        drawGradient in class org.eclipse.ui.part.MultiEditor