Class SyncInfoCompareInput

    • Constructor Detail

      • SyncInfoCompareInput

        public SyncInfoCompareInput​(java.lang.String description,
                                    SyncInfo sync)
        Creates a compare editor input based on an existing SyncInfo.
        Parameters:
        description - a description of the context of this sync info. This is displayed to the user.
        sync - the SyncInfo used as the base for the compare input.
      • SyncInfoCompareInput

        public SyncInfoCompareInput​(ISynchronizeParticipant participant,
                                    SyncInfo sync)
        Creates a compare editor input based on an existing SyncInfo from the given participant.
        Parameters:
        participant - the participant from which the sync info was obtained. The name of the participant is used as the description which is displayed to the user.
        sync - the SyncInfo used as the base for the compare input.
        Since:
        3.1
    • Method Detail

      • getAdapter

        public <T> T getAdapter​(java.lang.Class<T> adapter)
        Description copied from class: PlatformObject
        Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

        This implementation of the method declared by IAdaptable passes the request along to the platform's adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter). Subclasses may override this method (however, if they do so, they should invoke the method on their superclass to ensure that the Platform's adapter manager is consulted).

        Specified by:
        getAdapter in interface IAdaptable
        Overrides:
        getAdapter in class SaveableCompareEditorInput
        Type Parameters:
        T - the class type
        Parameters:
        adapter - the class to adapt to
        Returns:
        the adapted object or null
        See Also:
        IAdaptable.getAdapter(Class)
      • resourceChanged

        public void resourceChanged​(IResourceChangeEvent event)
        Note that until the compare editor inputs can be part of the compare editors lifecycle we can't register as a listener because there is no dispose() method to remove the listener.
        Specified by:
        resourceChanged in interface IResourceChangeListener
        Parameters:
        event - the resource change event
        See Also:
        IResourceDelta
      • getToolTipText

        public java.lang.String getToolTipText()
        Description copied from interface: IEditorInput
        Returns the tool tip text for this editor input. This text is used to differentiate between two input with the same name. For instance, MyClass.java in folder X and MyClass.java in folder Y. The format of the text varies between input types.
        Specified by:
        getToolTipText in interface IEditorInput
        Overrides:
        getToolTipText in class CompareEditorInput
        Returns:
        the tool tip text; never null.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getSyncInfo

        public SyncInfo getSyncInfo()