What is the java API to distinguish a folder which represent a SCM component in sandbox.
Hi,
Once the component is loaded into sandbox in an eclipse client, how to differentiate the folders in Package Explorer whether they represent a SCM component or just a normal folder of a project.
I need plain java API to differentiate them. I am looking for solution which uses IResource, IFolder, IProject.
Regards,Swapnil
One answer
I believe IResource#getLocationURI or getRawLocationURI should return the URI with a prefix "source control://" if the resource is under a source control else it should return with a prefix "file://".
Comments
Hi @ Shashikant Padur,
it only differentiate whether a folder belongs to a local project or from a SCM Project (source control).
Mine requirement is - Inside a SCM stream after loading, the loaded folder represent a SCM component or project I need to figure out.
Comments
Swapnil Sahu
Nov 16 '17, 2:09 a.m.@daviddl @rschoon @gmclemm @dnong @sdetweil
Can any one of you help me in this please.
Regards,Swapnil