当前位置: 首页>>代码示例>>Java>>正文


Java SubscriberChangeEvent类代码示例

本文整理汇总了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$
		} 
	}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:20,代码来源:SVNWorkspaceSubscriber.java

示例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));
    }
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:13,代码来源:SynchronizeSubscriber.java

示例3: internalResourceChanged

import org.eclipse.team.core.subscribers.SubscriberChangeEvent; //导入依赖的package包/类
/**
 * @param changedResources
 */
private void internalResourceChanged(IResource[] changedResources) {
    fireTeamResourceChange(SubscriberChangeEvent.asSyncChangedDeltas(this, changedResources));
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:7,代码来源:SVNWorkspaceSubscriber.java

示例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});
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:5,代码来源:SVNWorkspaceSubscriber.java

示例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});
}
 
开发者ID:subclipse,项目名称:subclipse,代码行数:5,代码来源:SVNWorkspaceSubscriber.java


注:本文中的org.eclipse.team.core.subscribers.SubscriberChangeEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。