Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-vcm-dev] Re: Notification when file added to team project?

Nadine et Jean-Michel wrote:

> Boris,
>
> If you mean when a resource is added via the workbench (e.g. New > File
> or Class) then the answer is that a provider should listen to resource
> deltas generated by the resources plug-in (see IResourceChangeListener
> and IResourceChangeEvent).
>
> One could argue that there should be a unique listener for all providers
> such that if multple additions/deletions occur across different repo
> types a common prompt could be shown instead of one for each provider
> type. This scenario does not occur often, and I would much prefer to
> allow the provider listen (it's easy code to wrte) and then have the
> freedom to do anything it likes with the deltas.
>
> Use ITeamProvider::checkin() to add a resource to source control.
>
> -- jean-michel
>
> > Hi,
>
> >  I was just wondering whether there is any mechanism to notify me,
> when a new
> >  resource is added to a project under team control. Or do I have to
> use a
> >  general eclipse mechanism for that ?
>
> >  Regards,
> >  Boris
>
> >  BTW: I think I didn't found a general class for adding files to the
> source
> >  control, just checkin/checkout, or did I miss something ?



Back to the top