how is the "dirty with respect to CVS" computation done? [message #94918] |
Wed, 16 July 2003 10:43  |
Eclipse User |
|
|
|
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 #95235 is a reply to message #95117] |
Wed, 16 July 2003 16:10  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08932 seconds