It's all about the answers!

Ask a question

Is it possible to adapt IChangeSet to a list of IResource?


Jingwen Ou (5610) | asked Aug 26 '08, 6:35 p.m.
Is it possible to adapt IChangeSet to a list of IResource? If not, how to get the IResource behind a IChangeSet?

Thanks

6 answers



permanent link
Geoffrey Clemm (30.1k23035) | answered Aug 28 '08, 11:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Jingwen: Did you want just the "resource" (what ClearCase calls an
"element"), or did you want the particular "state" (version) of that
resource that was created by that changeset? If it is a particular
state, then there is no workspace/component context needed.

Cheers,
Geoff

Dmitry Karasik wrote:
Is it possible to adapt IChangeSet to a list of IResource? If not, how
to get the IResource behind a IChangeSet?

What is an "IResource behind a IChangeSet"? Is it just resources that
have the same item id? Or is it resources that have the same item id and
also in the same workspace/component?

- Dmitry

permanent link
Dmitry Karasik (1.8k11) | answered Aug 28 '08, 5:37 a.m.
JAZZ DEVELOPER
On Wed, 27 Aug 2008 22:47:54 +0000, jingweno wrote:

I don't care whether they are in the
same workspace/component or not.

In that case you can call FileSystemCore.getSharingManager
().findShareables(FileSystemCore.getSharingManager().getDefaultCFARoot(),
versionable, monitor) to get a list of 0 or more shareables that have the
given item id.

- Dmitry

permanent link
Jingwen Ou (5610) | answered Aug 27 '08, 6:44 p.m.

What is an "IResource behind a IChangeSet"? Is it just resources that
have the same item id? Or is it resources that have the same item id and
also in the same workspace/component?

- Dmitry


Well...I would like to get the changed files: all the elements'(IChange) path names (e.g. IResource.getFullPath()) in an IChangeSet, whenever I accept/deliver a change. Actually I don't care whether they are in the same workspace/component or not.

permanent link
Jingwen Ou (5610) | answered Aug 27 '08, 2:17 p.m.
Is it possible to adapt IChangeSet to a list of IResource? If not, how
to get the IResource behind a IChangeSet?

What is an "IResource behind a IChangeSet"? Is it just resources that
have the same item id? Or is it resources that have the same item id and
also in the same workspace/component?

- Dmitry

I meant get the changed files in an IChangeSet.

permanent link
Dmitry Karasik (1.8k11) | answered Aug 27 '08, 10:51 a.m.
JAZZ DEVELOPER
I meant get the changed files in an IChangeSet.

Sorry but that does not answer my question, nor does it clarify your
original question.

- Dmitry

permanent link
Dmitry Karasik (1.8k11) | answered Aug 27 '08, 5:00 a.m.
JAZZ DEVELOPER
Is it possible to adapt IChangeSet to a list of IResource? If not, how
to get the IResource behind a IChangeSet?

What is an "IResource behind a IChangeSet"? Is it just resources that
have the same item id? Or is it resources that have the same item id and
also in the same workspace/component?

- Dmitry

Your answer


Register or to post your answer.