Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2010-01-31 14:16:34 -0500
committerashatalin2010-01-31 14:16:34 -0500
commit58ac38ffac77bd0c57df820268261b84c3320adb (patch)
treea820983a1fffb10d538e14f90121e0d7937358c7
parent80cf9726d4382bdf4b2ebf4d29a14004cb1ea0b0 (diff)
downloadorg.eclipse.gmf-tooling-58ac38ffac77bd0c57df820268261b84c3320adb.tar.gz
org.eclipse.gmf-tooling-58ac38ffac77bd0c57df820268261b84c3320adb.tar.xz
org.eclipse.gmf-tooling-58ac38ffac77bd0c57df820268261b84c3320adb.zip
Regenerating sources with latest templates.v20100131-2359
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/commands/EcoreReorientConnectionViewCommand.java78
1 files changed, 0 insertions, 78 deletions
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/commands/EcoreReorientConnectionViewCommand.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/commands/EcoreReorientConnectionViewCommand.java
deleted file mode 100644
index 96a756045..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/commands/EcoreReorientConnectionViewCommand.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * 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:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.edit.commands;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EcoreReorientConnectionViewCommand extends AbstractTransactionalCommand {
-
- /**
- * @generated
- */
- private IAdaptable edgeAdaptor;
-
- /**
- * @generated
- */
- public EcoreReorientConnectionViewCommand(TransactionalEditingDomain editingDomain, String label) {
- super(editingDomain, label, null);
- }
-
- /**
- * @generated
- */
- public List getAffectedFiles() {
- View view = (View) edgeAdaptor.getAdapter(View.class);
- if (view != null) {
- return getWorkspaceFiles(view);
- }
- return super.getAffectedFiles();
- }
-
- /**
- * @generated
- */
- public IAdaptable getEdgeAdaptor() {
- return edgeAdaptor;
- }
-
- /**
- * @generated
- */
- public void setEdgeAdaptor(IAdaptable edgeAdaptor) {
- this.edgeAdaptor = edgeAdaptor;
- }
-
- /**
- * @generated
- */
- protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) {
- assert null != edgeAdaptor : "Null child in EcoreReorientConnectionViewCommand"; //$NON-NLS-1$
- Edge edge = (Edge) getEdgeAdaptor().getAdapter(Edge.class);
- assert null != edge : "Null edge in EcoreReorientConnectionViewCommand"; //$NON-NLS-1$
- View tempView = edge.getSource();
- edge.setSource(edge.getTarget());
- edge.setTarget(tempView);
- return CommandResult.newOKCommandResult();
- }
-}

Back to the top