Class RemoteMonitoredProxyCreationListener
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.AbstractMonitoredProxyCreationListener
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.RemoteMonitoredProxyCreationListener
- All Implemented Interfaces:
IProxyCreationListener
Implementation of
IProxyCreationListener
for remote resources.-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Whether this listener should process proxies.protected final IResourceDependencyRemoteResolver
The remote resolver.Fields inherited from class org.eclipse.emf.compare.ide.ui.internal.logical.resolver.AbstractMonitoredProxyCreationListener
diagnostic, tspm
-
Constructor Summary
ConstructorDescriptionRemoteMonitoredProxyCreationListener
(ThreadSafeProgressMonitor monitor, IResourceDependencyRemoteResolver remoteResolver, DiagnosticSupport diagnostic) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
proxyCreated
(Resource source, EObject eObject, EStructuralFeature feature, EObject proxy, int position) This will be called when a proxy is created from one of the parser pool's parsers.
-
Field Details
-
remoteResolver
The remote resolver. -
processProxies
protected final boolean processProxiesWhether this listener should process proxies.
-
-
Constructor Details
-
RemoteMonitoredProxyCreationListener
public RemoteMonitoredProxyCreationListener(ThreadSafeProgressMonitor monitor, IResourceDependencyRemoteResolver remoteResolver, DiagnosticSupport diagnostic) Constructor.- Parameters:
monitor
- The progress monitordependencyProvider
- The dependency providerdiagnostic
- The diagnostic
-
-
Method Details
-
proxyCreated
public void proxyCreated(Resource source, EObject eObject, EStructuralFeature feature, EObject proxy, int position) This will be called when a proxy is created from one of the parser pool's parsers.- Parameters:
source
- The resource in which a proxy has been created towards another.eObject
- The EObject on which some feature is going to be set with a proxy value.feature
- The structural feature which value will contain a proxy.proxy
- The actual proxy created for this eObject's feature.position
- Position at which the proxy is going to be inserted. This will be set to-1
when the proxy is added at the end of theeStructuralFeature
's values list (for multi-valued features) or if said feature is single-valued.
-