| M4 IRemoteResource api question [message #144232] |
Tue, 14 October 2003 22:14  |
|
Originally posted by: m.botbait.loonsoft.com
Hi,
I have a quick question about a new method added to the
IRemoteResource.getBufferedStorage(IProgressMonitor) method.
The javadoc states :
"Returns an IStorage that contains (or provides access to) the buffered
contents of the remote resource. Returns <code>null</code> if the remote
resource does not have contents (i.e. is not a file)."
What exactly does this mean in terms of a team plugin? Should it return a
cached version of the clean latest in the repository as I assume?
What about things that aren't files, but have versioned content? For
instance, subversion directories have versioned contents.
Thanks,
-mml
|
|
|
| Re: M4 IRemoteResource api question [message #144454 is a reply to message #144232] |
Wed, 15 October 2003 11:25  |
|
Originally posted by: Michael_Valenta.oti.com
McClain,
I will answer your question below but want to point you to the
platform-vcm-dev mailing list for future questions in this area. The
reason is that the API you are using is still being defined as part of
Eclipse 3.0. It is great that you are using it but chances are that it
will change (hopefully only slightly) in the next month or so. It may be
worthwhile to post on the mailing list what parts of the API you are
using so we can let you know if and when they change. You may also want
to have a look at the component plan to see what changes are planned
( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-vcm-home/docs/online/team3.0/milestone-plan.html).
As for your question, the reason for this addition is that compare
editors in Eclipse require that contents of files displayed by the
editor to be buffered locally. Things that are not files should return
null for getBufferedStorage(). The code that uses this interface will
only invoke the method for files (i.e. when
IRemoteResource#isContainer() return false).
As for your first question, I hesitate to answer your question directly
because I'm not familiar with subversion. I can easily describe this
from a CVS standpoint. Each CVS remote handle has a revision number
associated with it and the cached contents are the contents for that
revision. The remote handle (and revision number) may have been the
"clean latest" at a particular time but may not be at some future time.
The new clean latest would be represented by another remote handle (with
the new revision number).
Hope this helps. If the last answer isn't clear enough, please post a
followup question on the platform-vcm-dev mailing list.
Michael
McClain Looney wrote:
> Hi,
>
> I have a quick question about a new method added to the
> IRemoteResource.getBufferedStorage(IProgressMonitor) method.
>
> The javadoc states :
>
> "Returns an IStorage that contains (or provides access to) the buffered
> contents of the remote resource. Returns <code>null</code> if the remote
> resource does not have contents (i.e. is not a file)."
>
> What exactly does this mean in terms of a team plugin? Should it return a
> cached version of the clean latest in the repository as I assume?
>
> What about things that aren't files, but have versioned content? For
> instance, subversion directories have versioned contents.
>
> Thanks,
>
> -mml
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.01549 seconds