Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1

0 votes

Comments

@daviddl @rschoon @gmclemm @dnong  @sdetweil
Can any one of you help me in this please.
Regards,Swapnil



One answer

Permanent link

 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://".

0 votes

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.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,203
× 457
× 411
× 38
× 14
× 14

Question asked: Nov 15 '17, 1:45 a.m.

Question was seen: 2,550 times

Last updated: Nov 23 '17, 7:31 a.m.

Confirmation Cancel Confirm