blob: c0da2f77e5c5beec6949506a3ad6832fbe8a7472 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2005, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*
* </copyright>
*
* $Id: ChangedSynchRequest.java,v 1.3 2007/11/14 18:14:08 cdamus Exp $
*/
package org.eclipse.egf.core.workspace;
import org.eclipse.emf.ecore.resource.Resource;
/**
* Concrete synchronization request for resource content changes.
*
* @author Christian W. Damus (cdamus)
*/
class EGFChangedSynchRequest extends EGFSynchRequest {
/**
* Initializes me with the synchronizer on whose behalf I perform a
* synchronization and the resource whose workspace partner is changed.
*
* @param synch
* the workspace synchronizer
* @param resource
* the resource that has changed
*/
EGFChangedSynchRequest(EGFWorkspaceSynchronizer synch, Resource resource) {
super(synch, resource);
}
@Override
protected void doPerform() {
if (!synch.getDelegate().handleResourceChanged(resource)) {
// note that if our delegate is the default, it
// will always return true
EGFWorkspaceSynchronizer.defaultDelegate.handleResourceChanged(resource);
}
}
}