Interface ILanguageMappingChangeEvent

  • All Known Implementing Classes:
    LanguageMappingChangeEvent

    public interface ILanguageMappingChangeEvent
    Contains the details of changes that occurred as a result of modifying language mappings.
    Since:
    4.0
    Restriction:
    This interface is not intended to be implemented by clients.
    Restriction:
    This interface is not intended to be extended by clients.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.core.runtime.content.IContentType[] getAffectedContentTypes()
      Returns an array of IContentTypes for which mappings have been changed, or an empty collection if there are no affected content types.
      org.eclipse.core.resources.IFile getFile()
      Returns an IFile corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
      String getFilename()
      Returns a String corresponding to the full path to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
      org.eclipse.core.runtime.IPath getPath()
      Returns an IPath corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
      org.eclipse.core.resources.IProject getProject()
      Returns an IProject corresponding to the project for which settings have changed if this event's type is TYPE_PROJECT or TYPE_FILE, or null otherwise.
      int getType()
      Returns the type of even being reported.
    • Method Detail

      • getFile

        org.eclipse.core.resources.IFile getFile()
        Returns an IFile corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
        Returns:
        an IFile corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
        Since:
        4.0
      • getFilename

        String getFilename()
        Returns a String corresponding to the full path to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise. In order to obtain the full context for the file it may be required that you also call getProject(), as it is possible that this file may not live inside the workspace.
        Returns:
        a String corresponding to the full path to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
        Since:
        4.0
        See Also:
        getProject()
      • getPath

        org.eclipse.core.runtime.IPath getPath()
        Returns an IPath corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise.
        Returns:
        an IPath corresponding to the file for which settings have changed if this event's type is TYPE_FILE, or null otherwise. In order to obtain the full context for the file it may be required that you also call getProject(), as it is possible that this file may not live inside the workspace.
        Since:
        4.0
        See Also:
        getProject()
      • getProject

        org.eclipse.core.resources.IProject getProject()
        Returns an IProject corresponding to the project for which settings have changed if this event's type is TYPE_PROJECT or TYPE_FILE, or null otherwise.
        Returns:
        an IProject corresponding to the project for which settings have changed if this event's type is TYPE_PROJECT or TYPE_FILE, or null otherwise.
        Since:
        4.0
      • getAffectedContentTypes

        org.eclipse.core.runtime.content.IContentType[] getAffectedContentTypes()
        Returns an array of IContentTypes for which mappings have been changed, or an empty collection if there are no affected content types. Since there currently should be no change event unless a content type has changed, this should always contain at least one content type, but clients should theoretically be prepared to handle an empty collection.
        Returns:
        the content types for which mappings have been changed.