| java.lang.Object newprocess.diagram.cust.annotations.utils.URIConvertUtil
URIConvertUtil | public class URIConvertUtil (Code) | | This class handles the conversion of stored
Annotations uri and the project path uri
author: sh |
Method Summary | |
public IFile | getFileforPath(String path, String projectName) This method is used to open the file for the given
path. | public String | getPathForFile(IFile file, String projectName) This method checks if the given file is in the same project. | public String | getPathForFile(IFile file, String projectName, String diaProject) This method is used by the Selection Dialog and
checks if the given file is in the same project. |
URIConvertUtil | public URIConvertUtil()(Code) | | Constructor
|
getFileforPath | public IFile getFileforPath(String path, String projectName)(Code) | | This method is used to open the file for the given
path. If the file is in the project we can open
the file directly by the given project name. If the
seems to be in an separate project. The first part
of the path specifies in wich project the file is
located.
Parameters: path - Parameters: projectName - |
getPathForFile | public String getPathForFile(IFile file, String projectName)(Code) | | This method checks if the given file is in the same project.
If so return just the relative path without the project prefix.
If the given file is in an other project return the path
with the projects prefix
|
getPathForFile | public String getPathForFile(IFile file, String projectName, String diaProject)(Code) | | This method is used by the Selection Dialog and
checks if the given file is in the same project.
If so return just the relative path without the project prefix.
If the given file is in an other project return the path
with the projects prefix
|
|
|