本文整理汇总了Java中org.eclipse.team.core.subscribers.SubscriberChangeEvent类的典型用法代码示例。如果您正苦于以下问题:Java SubscriberChangeEvent类的具体用法?Java SubscriberChangeEvent怎么用?Java SubscriberChangeEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SubscriberChangeEvent类属于org.eclipse.team.core.subscribers包,在下文中一共展示了SubscriberChangeEvent类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: refresh
import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
private IStatus refresh(IResource resource, int depth, IProgressMonitor monitor) {
try {
// monitor.setTaskName(Policy.bind("SVNWorkspaceSubscriber.refreshingSynchronizationData", resource.getFullPath().toString()));
monitor.worked(100);
// SVNProviderPlugin.getPlugin().getStatusCacheManager().refreshStatus(resource, IResource.DEPTH_INFINITE);
// monitor.worked(300);
monitor.setTaskName(Policy.bind("SVNWorkspaceSubscriber.retrievingSynchronizationData"));
IResource[] lastChangedResources = (IResource[])changesMap.get(resource);
IResource[] changedResources = findChanges(resource, depth, Policy.infiniteSubMonitorFor(monitor, 400));
changesMap.put(resource, changedResources);
fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, changedResources));
if (lastChangedResources != null && lastChangedResources.length > 0) fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, lastChangedResources));
monitor.worked(400);
return Status.OK_STATUS;
} catch (TeamException e) {
return new TeamStatus(IStatus.ERROR, SVNProviderPlugin.ID, 0, Policy.bind("SVNWorkspaceSubscriber.errorWhileSynchronizing.2", resource.getFullPath().toString(), e.getMessage()), e, resource); //$NON-NLS-1$
}
}
示例2: fireTeamResourceChange
import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
/**
* Fire a TeamResourceChange event from a List
*
* @param changed
* List of IResources that have changed
*/
private void fireTeamResourceChange(final Collection<IResource> changed) {
if (changed.size() > 0) {
final IResource[] changedResources = changed.toArray(new IResource[changed.size()]);
fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, changedResources));
}
}
示例3: internalResourceChanged
import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
/**
* @param changedResources
*/
private void internalResourceChanged(IResource[] changedResources) {
fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, changedResources));
}
示例4: projectConfigured
import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
public void projectConfigured(IProject project) {
SubscriberChangeEvent delta = new SubscriberChangeEvent(this, ISubscriberChangeEvent.ROOT_ADDED, project);
fireTeamResourceChange(new SubscriberChangeEvent[] {delta});
}
示例5: projectDeconfigured
import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
public void projectDeconfigured(IProject project) {
SubscriberChangeEvent delta = new SubscriberChangeEvent(this, ISubscriberChangeEvent.ROOT_REMOVED, project);
fireTeamResourceChange(new SubscriberChangeEvent[] {delta});
}