Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Programatically synchronizing externally modified CVS Team resources
Programatically synchronizing externally modified CVS Team resources [message #292807] Wed, 12 October 2005 16:57 Go to next message
Eclipse UserFriend
Gurus,

We are attempting to customize the CVS Team functionality within Eclipse
to conform to our (relatively complex) build rules. I have successfully
written a plug-in in SWT (for 3.0) which commits, tags and updates our
build database within Eclipse.

All is working well, except... Eclipse is showing an indicator that the
resource is out of sync. This goes away if I manually select
Team->Replace With for the resource(s) in question. However, having to do
this extra step is at odds with our goal of one-click build submissions.

I have tried just about every method in
org.eclipse.team.internal.ccvs.core.resources.EclipseSyncron izer. I also
attempted to have my plug-in extend WorkspaceModifyOperation. These
methods did not work.

Is there any way that I can either: clear Eclipse's internal cache for
that resource's modification and/or trigger a slient update of the
resource from CVS to refresh the internal cache?

My thanks in advance,

Saish
Re: Programatically synchronizing externally modified CVS Team resources [message #292869 is a reply to message #292807] Thu, 13 October 2005 09:06 Go to previous messageGo to next message
Eclipse UserFriend
There is an UpdateOperation in the CVS UI plugin which you can use to
perform an update.

Michael

Saish wrote:
> Gurus,
>
> We are attempting to customize the CVS Team functionality within Eclipse
> to conform to our (relatively complex) build rules. I have successfully
> written a plug-in in SWT (for 3.0) which commits, tags and updates our
> build database within Eclipse.
> All is working well, except... Eclipse is showing an indicator that the
> resource is out of sync. This goes away if I manually select
> Team->Replace With for the resource(s) in question. However, having to
> do this extra step is at odds with our goal of one-click build submissions.
>
> I have tried just about every method in
> org.eclipse.team.internal.ccvs.core.resources.EclipseSyncron izer. I
> also attempted to have my plug-in extend WorkspaceModifyOperation.
> These methods did not work.
> Is there any way that I can either: clear Eclipse's internal cache for
> that resource's modification and/or trigger a slient update of the
> resource from CVS to refresh the internal cache?
>
> My thanks in advance,
>
> Saish
>
Re: Programatically synchronizing externally modified CVS Team resources [message #292896 is a reply to message #292869] Thu, 13 October 2005 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Dear Michael,

Thank you very much for the prompt response. I had one worry, however.
That class, if I am not mistaken, is in the 'internal' package. Do these
classes change frequently between releases? Our development group
regularly upgrades their Eclipse IDE's.

Many thanks,
Saish
Re: Programatically synchronizing externally modified CVS Team resources [message #292972 is a reply to message #292896] Fri, 14 October 2005 04:20 Go to previous messageGo to next message
Eclipse UserFriend
I think that depends on other dependencies that u might have
used/imported.I got this tip from one of the newsgroup members...paul
webster

To find stuff like this go to the plugin view, select all of the plugins,
and add them to the java search.

Then all of the classes will appear in CTRL+SHIFT+T and it shows what
plugin the class came from.

vijai
Re: Programatically synchronizing externally modified CVS Team resources [message #292984 is a reply to message #292896] Fri, 14 October 2005 09:06 Go to previous message
Eclipse UserFriend
Saish,

The CVS plugin has no official API but many do use it. It doesn't change
frequently but, unlike official API, it can. If that is a problem for
you than the answer to your first question is that there is no supported
way to customize CVS Team functionality in Eclipse.

I assumed you had already used non-API to perform the commit, tag and
update. Did you use the command like client for this? That may explain
the change indicators as described in bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=15133.

Michael

Saish wrote:
> Dear Michael,
>
> Thank you very much for the prompt response. I had one worry, however.
> That class, if I am not mistaken, is in the 'internal' package. Do
> these classes change frequently between releases? Our development group
> regularly upgrades their Eclipse IDE's.
>
> Many thanks,
> Saish
>
Previous Topic:Generating Image of an editor view without displaying the editor
Next Topic:getting an error when closing eclipse
Goto Forum:
  


Current Time: Fri Oct 24 15:07:06 EDT 2025

Powered by FUDForum. Page generated in 0.04623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top