API to determine local (not checked in) changes?
Hello,
Was wondering if there is any public API to determine the presence of
and/or details about files not checked in? We need to do our operation
only when no changes have been made to the workspace. All the API I have
seen are to do with ChangeSets, and when the user does not check-in,
there is no changeset.
Regards,
Srimanth.
Was wondering if there is any public API to determine the presence of
and/or details about files not checked in? We need to do our operation
only when no changes have been made to the workspace. All the API I have
seen are to do with ChangeSets, and when the user does not check-in,
there is no changeset.
Regards,
Srimanth.
8 answers
Note that the RTC repository has no notion of a "checked out file" (in
RTC, that is a client-side only concept). So you'll be looking for an
Eclipse client API call, not a server API call.
Cheers,
Geoff
On 10/24/2010 12:56 AM, Srimanth Gunturi wrote:
RTC, that is a client-side only concept). So you'll be looking for an
Eclipse client API call, not a server API call.
Cheers,
Geoff
On 10/24/2010 12:56 AM, Srimanth Gunturi wrote:
Hello,
Was wondering if there is any public API to determine the presence of
and/or details about files not checked in? We need to do our operation
only when no changes have been made to the workspace. All the API I have
seen are to do with ChangeSets, and when the user does not check-in,
there is no changeset.
Regards,
Srimanth.
Srimanth
The API you want is the ILocalChangeManager which can be obtain using
FileSystemCore.getSharingManager().getLocalChanegManager().
Michael
Srimanth Gunturi wrote:
The API you want is the ILocalChangeManager which can be obtain using
FileSystemCore.getSharingManager().getLocalChanegManager().
Michael
Srimanth Gunturi wrote:
Hello,
Was wondering if there is any public API to determine the presence of
and/or details about files not checked in? We need to do our operation
only when no changes have been made to the workspace. All the API I have
seen are to do with ChangeSets, and when the user does not check-in,
there is no changeset.
Regards,
Srimanth.
Hi,
I'm facing the same problem. When I try to use FileSystemCore I've always get some null object.
For example if I use FileSystemCore.getSharingManager.allShares I got an empty IShare array, and every try I made for findShareable returns null.
How do I have to use FileSystemCore in order to have these objects? I've seen there is a startUp method, how it has to be used?
Thanks,
Michele.
I'm facing the same problem. When I try to use FileSystemCore I've always get some null object.
For example if I use FileSystemCore.getSharingManager.allShares I got an empty IShare array, and every try I made for findShareable returns null.
How do I have to use FileSystemCore in order to have these objects? I've seen there is a startUp method, how it has to be used?
Thanks,
Michele.
Srimanth
The API you want is the ILocalChangeManager which can be obtain using
FileSystemCore.getSharingManager().getLocalChanegManager().
Michael
Srimanth Gunturi wrote:
Hello,
Was wondering if there is any public API to determine the presence of
and/or details about files not checked in? We need to do our operation
only when no changes have been made to the workspace. All the API I have
seen are to do with ChangeSets, and when the user does not check-in,
there is no changeset.
Regards,
Srimanth.
Yes I'm using plain java client. I've a workspace repository and I've load on a local eclipse workspace using RTC eclipse client. Do I have do load repository using java plain api in order to use these methods?
Thanks,
Michele.
Thanks,
Michele.
Are you using the plain java client? Have you loaded content from the repository? You won't get any shares until something is either loaded from the repository or shared.
It seems that FileSystemCore does not work properly with me. I've obtained ISharable object but only using ISandbox.findSharable and not using ISharingManager.findSharable/s. And also I can't get any ILocalChange using ILocalChangeManager.getPendingChanges.
Here is my code:
I've obtained IWorkspaceHandle and IComponentHandle using queries.
Can you see something I'm doing wrong using ISharingManager?
Thanks
Michele.
Here is my code:
IWorkspaceConnection iwc = wm.getWorkspaceConnection(wsHandles.get(0), null);
FileSystemCore.startUp();
ISharingManager sm = FileSystemCore.getSharingManager();
ISandbox sbox = sm.getSandbox(pathObj, false);
ILocalChangeManager lcm = sm.getLocalChangeManager();
IShareable shareable = sbox.findShareable(ola, false);
ILocalChange[] localChanges = lcm.getPendingChanges(iwc.getContextHandle(), compHandles.get(0), sbox);
I've obtained IWorkspaceHandle and IComponentHandle using queries.
Can you see something I'm doing wrong using ISharingManager?
Thanks
Michele.