本文整理匯總了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});
}