public final class ResourceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getResourceExtension(IResource resource)
Returns the extension of the resource name if there is such, otherwise
returns
null. |
static String |
getResourcePureName(IResource resource)
Returns the name of a resource without the extension.
|
public static String getResourceExtension(IResource resource)
null. If there is a dot but there is no extension,
then this method returns the empty string.
For example:
""nullresource - resource who's name extension will be returned.public static String getResourcePureName(IResource resource)
For example:
"sample""sample"resource - resource who's pure name will be returned.Copyright © 2010–2018 Eclipse Foundation. All rights reserved.