|
|
Re: Creating PARENT-5-PROJECT_LOC links programmatically [message #1830042 is a reply to message #1829992] |
Thu, 16 July 2020 06:51   |
Rolf Theunissen Messages: 259 Registered: April 2012 |
Senior Member |
|
|
There is a org.eclipse.core.internal.resources.PathVariableUtil.buildParentPathVariable(String, int, boolean) method that generates the 'PARENT-count-' string.
Snippets from the call hierarchy:
org.eclipse.core.internal.resources.PathVariableUtil.convertToRelative(IPathVariableManager, URI, IResource, boolean, String)
org.eclipse.core.internal.resources.ProjectPathVariableManager.convertToRelative(URI, boolean, String)
org.eclipse.ui.wizards.datatransfer.ImportOperation.createRelativePath(IPath, IResource)
org.eclipse.ui.wizards.datatransfer.ImportOperation.importFolder(Object, int, IProgressMonitor) [line 730]
You probably want to use ProjectPathVariableManager.convertToRelative. ImportOperation.createRelativePath and ImportOperation.importFolder should give you enough context on how to use it.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02487 seconds