當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。