Class GotoMarkerAdapter

  • All Implemented Interfaces:
    org.eclipse.ui.ide.IGotoMarker

    public class GotoMarkerAdapter
    extends java.lang.Object
    implements org.eclipse.ui.ide.IGotoMarker
    Adapter for the IGotoMarker protocol that delegates to the EMFFormsRevealService.
    Since:
    1.22
    • Constructor Summary

      Constructors 
      Constructor Description
      GotoMarkerAdapter​(ViewModelContext context, org.eclipse.emf.edit.domain.EditingDomain editingDomain)
      Initializes me.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.emf.ecore.EObject getEObject​(java.util.List<?> targets)
      Extract a domain model element in our editor from a marker's targets.
      protected org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature​(java.util.List<?> targets)
      Extract a domain model feature in our editor from a marker's targets.
      void gotoMarker​(org.eclipse.core.resources.IMarker marker)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GotoMarkerAdapter

        public GotoMarkerAdapter​(ViewModelContext context,
                                 org.eclipse.emf.edit.domain.EditingDomain editingDomain)
        Initializes me.
        Parameters:
        context - the editor's view model context
        editingDomain - the eeditor's editing domain
    • Method Detail

      • gotoMarker

        public void gotoMarker​(org.eclipse.core.resources.IMarker marker)
        Specified by:
        gotoMarker in interface org.eclipse.ui.ide.IGotoMarker
      • getEObject

        protected org.eclipse.emf.ecore.EObject getEObject​(java.util.List<?> targets)
        Extract a domain model element in our editor from a marker's targets.
        Parameters:
        targets - the target objects resolved from a marker to navigate
        Returns:
        the domain model object to reveal
      • getEStructuralFeature

        protected org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature​(java.util.List<?> targets)
        Extract a domain model feature in our editor from a marker's targets.
        Parameters:
        targets - the target objects resolved from a marker to navigate
        Returns:
        the feature of the domain model object to reveal, or null if none