|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.etrice.generator.base.FileSystemHelpers
public class FileSystemHelpers
| Constructor Summary | |
|---|---|
FileSystemHelpers()
|
|
| Method Summary | |
|---|---|
static URI |
getMarkerFileURI(EObject obj,
java.lang.String markerFileName)
determines the URI of the first directory in the path of an object's resource which contains a file with a given name |
static URI |
getProjectURI(EObject obj)
calls getMarkerFileURI(EObject, String) to determine the URI of the
parent Eclipse project containing this object |
static java.lang.String |
getRelativePath(java.lang.String base,
java.lang.String path)
the given paths are converted to file URIs (using URI#createFileURI(String)
and then getRelativePath(URI, URI, boolean) is called with goUpIfNeeded=false. |
static java.lang.String |
getRelativePath(java.lang.String base,
java.lang.String path,
boolean goUpIfNeeded)
the given paths are converted to file URIs (using URI#createFileURI(String)
and then getRelativePath(URI, URI, boolean) is called. |
static java.lang.String |
getRelativePath(URI base,
URI path)
getRelativePath(URI, URI, boolean) is called with
goUpIfNeeded=false |
static java.lang.String |
getRelativePath(URI base,
URI path,
boolean goUpIfNeeded)
compute a relative path to a given base path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemHelpers()
| Method Detail |
|---|
public static URI getProjectURI(EObject obj)
getMarkerFileURI(EObject, String) to determine the URI of the
parent Eclipse project containing this object
obj - an objected which should be located in a resource
public static URI getMarkerFileURI(EObject obj,
java.lang.String markerFileName)
obj - an objected which should be located in a resourcemarkerFileName - name of marker file
null if not found
public static java.lang.String getRelativePath(java.lang.String base,
java.lang.String path)
URI#createFileURI(String)
and then getRelativePath(URI, URI, boolean) is called with goUpIfNeeded=false.
base - the base pathpath - the path for which the relative path is computed
nullif there is none)
public static java.lang.String getRelativePath(java.lang.String base,
java.lang.String path,
boolean goUpIfNeeded)
URI#createFileURI(String)
and then getRelativePath(URI, URI, boolean) is called.
base - the base pathpath - the path for which the relative path is computedgoUpIfNeeded - allow also ascending to parent directories
nullif there is none)
public static java.lang.String getRelativePath(URI base,
URI path)
getRelativePath(URI, URI, boolean) is called with
goUpIfNeeded=false
base - the base pathpath - the path for which the relative path is computed
nullif there is none)
public static java.lang.String getRelativePath(URI base,
URI path,
boolean goUpIfNeeded)
null is returned.
base - the base pathpath - the path for which the relative path is computedgoUpIfNeeded - allow also ascending to parent directories
nullif there is none)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||