1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

[269135] - [view model][breadcrumb] Opening a drop-down causes an installed delta to be sent to the tree viewer.

This commit is contained in:
Pawel Piech 2009-03-18 05:18:58 +00:00
parent 4eddcf9290
commit 195a008c99

View file

@ -254,6 +254,17 @@ abstract public class AbstractVMProvider implements IVMProvider, IVMEventListene
crm.setDoneCount(activeModelProxies.size());
for (final IVMModelProxy proxyStrategy : activeModelProxies) {
// If the event is generated by the model proxy, only process it for the proxy that created it.
if ( event instanceof ModelProxyInstalledEvent &&
!((ModelProxyInstalledEvent)event).getModelProxy().equals(proxyStrategy) )
{
crm.done();
continue;
}
// Process the event only if there are potential delta flags that may be generated.
// Also, process the event if it is a result of the user modifying something
// so that the cache is properly updated.
if (proxyStrategy.isDeltaEvent(event) || event instanceof UserEditEvent) {
if (DEBUG_DELTA && (DEBUG_PRESENTATION_ID == null || getPresentationContext().getId().equals(DEBUG_PRESENTATION_ID))) {
DsfUIPlugin.debug("eventReceived(proxyRoot = " + proxyStrategy .getRootElement() + ", event = " + event + ")" ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$