|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nokia.carbide.cdt.builder.EpocEnginePathHelper
public class EpocEnginePathHelper
This class manages conversion of IPaths provided by an EPOC engine view back and forth to real-world paths in the filesystem or workspace.
Use MMPViewPathHelper for any MMP-provided IPaths, which have interesting semantics for absolute paths. This is only suitable for bld.inf or Makefiles.
This also handles correcting the capitalization in a path. Eclipse's IPaths are not case-insensitive, as they should be, so we need to match up file references to real references and provide IPaths that will find real content in the workspace.
Field Summary | |
---|---|
protected IProject |
project
|
protected java.lang.String |
projectName
|
protected IPath |
projectRoot
|
Constructor Summary | |
---|---|
EpocEnginePathHelper(IData data,
boolean unused)
Construct an instance using the given data, to provide the project root. |
|
EpocEnginePathHelper(IPath projectRoot)
Construct an instance with the project root. |
Method Summary | |
---|---|
IPath |
convertFilesystemToWorkspace(IPath fullPath)
Convert a filesystem path to the workspace, taking care to account for incorrect capitalization. |
IPath |
convertPathToView(IPath path)
Convert a project-relative or absolute path to the format expected by the view. |
IPath |
convertToFilesystem(IPath path)
Convert the given path (from an IView API) into a canonical full path in the local filesystem. |
IPath |
convertToProject(IPath path)
Convert the given path (from an IView API) into a project-relative path, if possible. |
IPath |
convertToWorkspace(IPath path)
Convert the given path (from an IView API) into a workspace-relative path, if possible. |
IPath |
resolve(java.lang.String projectName,
IPath path)
Resolve a project-relative path to correct any problems in capitalization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String projectName
protected IPath projectRoot
protected IProject project
Constructor Detail |
---|
public EpocEnginePathHelper(IPath projectRoot)
projectRoot
- filesystem path to root of projectpublic EpocEnginePathHelper(IData data, boolean unused)
The data may not be null.
data
- unused
- data to distinguish IData from IView constructorMethod Detail |
---|
public IPath convertFilesystemToWorkspace(IPath fullPath)
fullPath
-
public IPath convertToWorkspace(IPath path)
path
- relative or absolute path
public IPath convertToProject(IPath path)
path
- relative or absolute path
public IPath convertToFilesystem(IPath path)
path
- relative or absolute path
public IPath resolve(java.lang.String projectName, IPath path)
projectName
- path
- project-relative path
public IPath convertPathToView(IPath path)
path
- relative path for project-relative path, or full path
for filesystem path
|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |