Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/uml-compare-1.X/org.eclipse.papyrus.uml.compare/src/org/eclipse/papyrus/uml/compare/utils/PapyrusModelCompareInput.java')
-rw-r--r--deprecated/uml-compare-1.X/org.eclipse.papyrus.uml.compare/src/org/eclipse/papyrus/uml/compare/utils/PapyrusModelCompareInput.java148
1 files changed, 0 insertions, 148 deletions
diff --git a/deprecated/uml-compare-1.X/org.eclipse.papyrus.uml.compare/src/org/eclipse/papyrus/uml/compare/utils/PapyrusModelCompareInput.java b/deprecated/uml-compare-1.X/org.eclipse.papyrus.uml.compare/src/org/eclipse/papyrus/uml/compare/utils/PapyrusModelCompareInput.java
deleted file mode 100644
index 0eecf0f29b2..00000000000
--- a/deprecated/uml-compare-1.X/org.eclipse.papyrus.uml.compare/src/org/eclipse/papyrus/uml/compare/utils/PapyrusModelCompareInput.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * 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:
- * Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.compare.utils;
-
-import java.util.List;
-
-import org.eclipse.emf.compare.diff.metamodel.ComparisonResourceSetSnapshot;
-import org.eclipse.emf.compare.diff.metamodel.ComparisonResourceSnapshot;
-import org.eclipse.emf.compare.diff.metamodel.DiffElement;
-import org.eclipse.emf.compare.diff.metamodel.DiffModel;
-import org.eclipse.emf.compare.diff.metamodel.DiffResourceSet;
-import org.eclipse.emf.compare.match.metamodel.MatchModel;
-import org.eclipse.emf.compare.match.metamodel.MatchResourceSet;
-import org.eclipse.emf.compare.ui.ICompareInputDetailsProvider;
-import org.eclipse.emf.compare.ui.ModelCompareInput;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.papyrus.infra.emf.compare.diff.service.TransactionalMergeService;
-
-/**
- *
- * This input allows to use the Papyrus TransactionalMergeService
- *
- */
-public class PapyrusModelCompareInput extends ModelCompareInput {
-
- /**
- * The editing domain used to do the merge
- */
- final private TransactionalEditingDomain domain;
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param matchResourceSet
- * @param diffResourceSet
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, MatchResourceSet matchResourceSet, DiffResourceSet diffResourceSet) {
- super(matchResourceSet, diffResourceSet);
- this.domain = domain;
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param snapshot
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, ComparisonResourceSetSnapshot snapshot) {
- super(snapshot);
- this.domain = domain;
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param snapshot
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, ComparisonResourceSnapshot snapshot) {
- super(snapshot);
- this.domain = domain;
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param matchModel
- * @param diffModel
- * @param provider
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, MatchModel matchModel, DiffModel diffModel, ICompareInputDetailsProvider provider) {
- super(matchModel, diffModel, provider);
- this.domain = domain;
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param matchResourceset
- * @param diffResourceSet
- * @param provider
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, MatchResourceSet matchResourceset, DiffResourceSet diffResourceSet, ICompareInputDetailsProvider provider) {
- super(matchResourceset, diffResourceSet, provider);
- this.domain = domain;
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * @param match
- * @param diff
- */
- public PapyrusModelCompareInput(final TransactionalEditingDomain domain, MatchModel match, DiffModel diff) {
- super(match, diff);
- this.domain = domain;
- }
-
- /**
- * Applies the changes implied by a given {@link DiffElement} in the
- * direction specified by <code>leftToRight</code>.
- *
- * @param element
- * {@link DiffElement} containing the copy information.
- * @param leftToRight
- * <code>True</code> if the changes must be applied from the left
- * to the right model, <code>False</code> otherwise.
- */
- protected void doCopy(DiffElement element, boolean leftToRight) {
- TransactionalMergeService.merge(domain, element, leftToRight);
- }
-
- /**
- * Applies the changes implied by a list of {@link DiffElement} in the
- * direction specified by <code>leftToRight</code>.
- *
- * @param elements
- * {@link DiffElement}s containing the copy information.
- * @param leftToRight
- * <code>True</code> if the changes must be applied from the left
- * to the right model, <code>False</code> otherwise.
- */
- protected void doCopy(List<DiffElement> elements, boolean leftToRight) {
- TransactionalMergeService.merge(domain, elements, leftToRight);
- }
-
-}

Back to the top