Class AbstractDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject>

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.forms.editor.FormPage
com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage<M>
com._1c.g5.v8.dt.md.ui.editor.aef.AbstractDtGranularEditorAefPage<M>
All Implemented Interfaces:
IDtGranularEditorAefPage<M>, IDtEditor<M>, IDtGranularEditorPage<M>, IGotoSelection, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.forms.editor.IFormPage, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IShowEditorInput, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IShowInSource, org.eclipse.ui.part.IWorkbenchPartOrientation
Direct Known Subclasses:
DtGranularEditorAefDescriptorBasedPage, DtGranularEditorAefPage

public abstract class AbstractDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject> extends DtGranularEditorPage<M> implements IDtGranularEditorAefPage<M>
Base class for granular editor pages with AEF 2.0 components.
  • Constructor Details

    • AbstractDtGranularEditorAefPage

      protected AbstractDtGranularEditorAefPage(String id, String title)
      Creates a new page.
      Parameters:
      id - the id of the page, cannot be null.
      title - the title, cannot be null.
  • Method Details

    • deactivate

      public void deactivate()
      Description copied from interface: IDtGranularEditorPage
      Performs necessary actions when this page is deactivated (i. e. ceases to be visible and active).
      Specified by:
      deactivate in interface IDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
      Overrides:
      deactivate in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
    • getPageFeatures

      public Collection<org.eclipse.emf.ecore.EStructuralFeature> getPageFeatures()
      Description copied from interface: IDtGranularEditorAefPage
      Returns the collection of the page features.
      Specified by:
      getPageFeatures in interface IDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject>
      Returns:
      the collection of features, never null.
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
    • showEditorInput

      public void showEditorInput(IDtEditorInput<M> editorInput)
      Description copied from interface: IDtEditor
      Shows the editor input.
      Specified by:
      showEditorInput in interface IDtEditor<M extends org.eclipse.emf.ecore.EObject>
      Overrides:
      showEditorInput in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
      Parameters:
      editorInput - the editor input to show, cannot be null.
      See Also:
      • IShowEditorInput.showEditorInput(org.eclipse.ui.IEditorInput)
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      setFocus in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
    • getScene

      public IScene getScene()
      Returns the AEF2 scene used by the page.
      Returns:
      the AEF2 scene of the page (may be null if called before the controls have been created on the page)
    • refresh

      protected void refresh()
      Description copied from class: DtGranularEditorPage
      Fully refreshes the contents of the page as if it was just opened for the first time.
      Overrides:
      refresh in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
    • onEventGateClosed

      protected void onEventGateClosed()
      Description copied from class: DtGranularEditorPage
      Performs necessary actions when the event gate manager transitions into CLOSED state.
      Overrides:
      onEventGateClosed in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
    • getEngine

      protected IEngine getEngine()
      Returns the editor IEngine.
      Returns:
      the IEngine instance, never null.
    • createRenderingParameters

      protected IRenderingParameters createRenderingParameters(org.eclipse.ui.forms.IManagedForm managedForm)
      Creates new composite at managedForm body and rendering parameters.
      Parameters:
      managedForm - the managed form, cannot be null.
      Returns:
      newly created rendering parameters.
    • createPageLayout

      protected org.eclipse.swt.widgets.Layout createPageLayout()
      Overrides:
      createPageLayout in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
      Returns:
      layout for this page.
    • createPageControls

      protected void createPageControls(org.eclipse.ui.forms.IManagedForm managedForm)
      Description copied from class: DtGranularEditorPage
      Creates the controls of this page.
      Specified by:
      createPageControls in class DtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
      Parameters:
      managedForm - managed form that will contain the controls.
    • getDefinition

      protected final IDtGranularEditorManagingDefinition getDefinition()
      Returns the IDtGranularEditorManagingDefinition instance that keeps information about page layout and AEF 2.0 definitions placed on the page.
      Returns:
      the IDtGranularEditorManagingDefinition instance, never null.
    • setSelection

      protected void setSelection(org.eclipse.emf.ecore.EStructuralFeature feature, Object object)
      Sets the selection to the component if they presents on scene (defined by component feature).
      Parameters:
      feature - the component feature, cannot be null
      object - the selected object (because may be navigator adapter), cannot be null
    • createDefinition

      protected abstract IDtGranularEditorManagingDefinition createDefinition()
      Creates and returns the IDtGranularEditorManagingDefinition.
      Returns:
      a newly created IDtGranularEditorManagingDefinition instance, never null.