diff options
Diffstat (limited to 'org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/GitSubscriberResourceMappingContext.java')
-rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/GitSubscriberResourceMappingContext.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/GitSubscriberResourceMappingContext.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/GitSubscriberResourceMappingContext.java new file mode 100644 index 0000000000..f24a1892b1 --- /dev/null +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/GitSubscriberResourceMappingContext.java @@ -0,0 +1,37 @@ +/******************************************************************************* + * Copyright (C) 2010, Dariusz Luksza <dariusz@luksza.org> + * + * 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 + *******************************************************************************/ +package org.eclipse.egit.core.synchronize; + +import org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet; +import org.eclipse.team.core.subscribers.SubscriberResourceMappingContext; + +/** + * + */ +public class GitSubscriberResourceMappingContext extends + SubscriberResourceMappingContext { + + private final GitSynchronizeDataSet data; + + /** + * @param data + */ + public GitSubscriberResourceMappingContext(GitSynchronizeDataSet data) { + super(new GitResourceVariantTreeSubscriber(data), true); + this.data = data; + } + + /** + * @return git synchronize data set + */ + public GitSynchronizeDataSet getSyncData() { + return data; + } + +} |