Class LocationResolver

java.lang.Object
org.eclipse.ease.ui.completion.provider.LocationResolver

public class LocationResolver extends Object
Resolves file location completion proposals. Helper for file location completion provider.
  • Constructor Details

    • LocationResolver

      public LocationResolver(String location, Object parent)
  • Method Details

    • isWindows

      public static final boolean isWindows()
      Detect windows operating system.
      Returns:
      true when executed on a windows based OS
    • getFilterPart

      public String getFilterPart()
      Detect part of location that denotes the filter component. This is the text string following the last delimiter (eg '/').
      Returns:
      filter part of location
    • getParentFolder

      public Object getParentFolder()
      Get base folder this location refers to.
      Returns:
      base folder of this location
    • getChildren

      public Collection<? extends Object> getChildren()
      Get all children of this location. Returns the content of getParentFolder().
      Returns:
      content of location base folder
    • getParentString

      public String getParentString()
      Get a string representation of the resolved location folder.
      Returns:
      location base folder representation