Class PathVariableResolver


  • public abstract class PathVariableResolver
    extends java.lang.Object
    An interface that variable providers should implement in order to extends the default path variable list used to resolve relative locations of linked resources.
    Since:
    3.6
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getValue​(java.lang.String variable, IResource resource)
      Returns a variable value
      java.lang.String[] getVariableNames​(java.lang.String variable, IResource resource)
      This method can return a list of possible variables resolved by this resolver.
      • Methods inherited from class java.lang.Object

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

      • PathVariableResolver

        public PathVariableResolver()
    • Method Detail

      • getVariableNames

        public java.lang.String[] getVariableNames​(java.lang.String variable,
                                                   IResource resource)
        This method can return a list of possible variables resolved by this resolver.

        This default implementation always returns null. Subclasses should override to provide custom extensions.

        Parameters:
        variable - The current variable name.
        resource - The resource that the variable is being resolved for.
        Returns:
        the list of supported variables
      • getValue

        public abstract java.lang.String getValue​(java.lang.String variable,
                                                  IResource resource)
        Returns a variable value
        Parameters:
        variable - The current variable name.
        resource - The resource that the variable is being resolved for.
        Returns:
        the variable value.