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 Summary
Constructors Constructor Description LocationResolver(String location, Object parent)
-
Method Summary
Modifier and Type Method Description Collection<? extends Object>
getChildren()
Get all children of this location.String
getFilterPart()
Detect part of location that denotes the filter component.Object
getParentFolder()
Get base folder this location refers to.String
getParentString()
Get a string representation of the resolved location folder.static boolean
isWindows()
Detect windows operating system.
-
Constructor Details
-
LocationResolver
-
-
Method Details
-
isWindows
public static final boolean isWindows()Detect windows operating system.- Returns:
true
when executed on a windows based OS
-
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
Get base folder this location refers to.- Returns:
- base folder of this location
-
getChildren
Get all children of this location. Returns the content ofgetParentFolder()
.- Returns:
- content of location base folder
-
getParentString
Get a string representation of the resolved location folder.- Returns:
- location base folder representation
-