Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/team.collaborative/org.eclipse.papyrus.team.collaborative.svn/src/org/eclipse/papyrus/team/collaborative/svn/versioncontroller/SVNReverter.java')
-rw-r--r--extraplugins/team.collaborative/org.eclipse.papyrus.team.collaborative.svn/src/org/eclipse/papyrus/team/collaborative/svn/versioncontroller/SVNReverter.java70
1 files changed, 0 insertions, 70 deletions
diff --git a/extraplugins/team.collaborative/org.eclipse.papyrus.team.collaborative.svn/src/org/eclipse/papyrus/team/collaborative/svn/versioncontroller/SVNReverter.java b/extraplugins/team.collaborative/org.eclipse.papyrus.team.collaborative.svn/src/org/eclipse/papyrus/team/collaborative/svn/versioncontroller/SVNReverter.java
deleted file mode 100644
index 8c46acee065..00000000000
--- a/extraplugins/team.collaborative/org.eclipse.papyrus.team.collaborative.svn/src/org/eclipse/papyrus/team/collaborative/svn/versioncontroller/SVNReverter.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Atos
- * 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:
- * Arthur Daussy - initial implementation
- *******************************************************************************/
-package org.eclipse.papyrus.team.collaborative.svn.versioncontroller;
-
-/*******************************************************************************
- * Copyright (c) 2013 Atos.
- * 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:
- * Arthur Daussy <a href="mailto:arthur.daussy@atos.net"> - initial API and implementation
- ******************************************************************************/
-import java.io.File;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.papyrus.team.collaborative.core.IExtendedURI;
-import org.eclipse.papyrus.team.collaborative.core.participants.version.IReverter;
-import org.eclipse.papyrus.team.collaborative.svn.tracing.ITracingConstant;
-import org.eclipse.papyrus.team.collaborative.svn.tracing.Tracer;
-
-
-/**
- * SVN Implementation for {@link IReverter}
- *
- * @author adaussy
- *
- */
-public class SVNReverter extends SVNWorkOnModifiedFile implements IReverter {
-
-
- public SVNReverter(Set<IExtendedURI> uris, ResourceSet resourceSet) {
- super(uris, resourceSet);
- }
-
- @Override
- public IStatus revert() {
- File[] modifiedFiles = getModifiedFile(getTargetResources());
- if (ITracingConstant.REVERT_TRACING) {
- StringBuilder stringBuilder = new StringBuilder();
- stringBuilder.append("Reverting: ").append("\n");
- for (File f : modifiedFiles) {
- stringBuilder.append(f).append("\n");
- }
- Tracer.logInfo(stringBuilder.toString());
- }
- // Revert operation
- RevertOperation mainOp = new RevertOperation(modifiedFiles, true);
- CompositeOperation op = new CompositeOperation(mainOp.getId(), mainOp.getMessagesClass());
- op.add(mainOp);
- op.add(new RefreshResourcesOperation(getTargetFiles(getTargetResources())));
- ICancellableOperationWrapper runnable = UIMonitorUtility.doTaskNowDefault(op, false);
- IActionOperation resultStatus = runnable.getOperation();
-
- return resultStatus.getStatus();
- }
-
-
-}

Back to the top