Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how is the "dirty with respect to CVS" computation done?
how is the "dirty with respect to CVS" computation done? [message #94918] Wed, 16 July 2003 10:43 Go to next message
Eclipse UserFriend
WinXP, R2.1

the Decorator code must be able to do the computation of whether a
resource has been modified, in order to determine whether to prefix the
">", right? (On another list, Daniel Megert said "... that's CVS
plug-ins internal code. You have to ask on eclipse.platform ...") So --
where do I look? (I tried debugging through and got tangled up and
thrown off by the threading.)

Using code like this:
_labeler = initLabeler();

protected LabelProvider initLabeler () {
final ILabelDecorator theDecorator =

PlatformUI.getWorkbench().getDecoratorManager().getLabelDeco rator();

return new DecoratingLabelProvider(new Labeler(), theDecorator);

}

ourTableViewer.setLabelProvider(_labeler);

in our ViewPart, and making our data-object class implement IAdaptable:
public Object getAdapter (final Class adapter) {
return (adapter == IResource.class && _ref instanceof Node)
? Resources.getFile((Node) _ref)
: null;
}

I can get the CVS-Decorators to appear in our TreeViewer in our
ViewPart. Now I wanted to find out how the Decorator found out whether
to prefix the ">" -- where is that code?

thanks,
Paul K
Re: how is the "dirty with respect to CVS" computation done? [message #95117 is a reply to message #94918] Wed, 16 July 2003 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MarkP.softlanding.com

Paul,

I have never looked at the code, but I asked a similar question a while
back on the VCM mailing list and received this response:

"To find out if a CVS resource has been modified locally you can look at
the CVSLightweightDecorator::isDirty() method. "

Mark
Re: how is the "dirty with respect to CVS" computation done? [message #95235 is a reply to message #95117] Wed, 16 July 2003 16:10 Go to previous message
Eclipse UserFriend
Thanks -- now do you know who told you that? Because I cannot access that
class for compilation.

Paul K

MarkP@softlanding.com wrote:

> Paul,
>
> I have never looked at the code, but I asked a similar question a while
> back on the VCM mailing list and received this response:
>
> "To find out if a CVS resource has been modified locally you can look at
> the CVSLightweightDecorator::isDirty() method. "
>
> Mark
Previous Topic:Install/update site for plugins?
Next Topic:FreeBSD Eclipse NoClassDefFoundError
Goto Forum:
  


Current Time: Tue Jul 22 00:47:32 EDT 2025

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

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

Back to the top