Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-03-16 14:50:59 -0400
committerashatalin2009-03-16 14:50:59 -0400
commit82c76b4789ce0f73e629004fe5e4c3b595b7f39a (patch)
tree3cc24e56740047b14312d9be93ac34a19c6dc3da /plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt
parent98dea06fc7837abfea09e3169ea1ca7cf36e4bba (diff)
downloadorg.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.tar.gz
org.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.tar.xz
org.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.zip
All migrated templates were moved to the original folders (/templates).
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt63
1 files changed, 0 insertions, 63 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt
deleted file mode 100644
index cd996909c..000000000
--- a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/diagram/commands/ReorientLinkViewCommand.xpt
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2007, 2008 Borland Software Corporation
- *
- * 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:
- * Dmitry Stadnik (Borland) - initial API and implementation
- */
-
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
-
-«DEFINE ReorientLinkViewCommand FOR gmfgen::GenDiagram-»
-«EXPAND xpt::Common::copyright FOR editorGen-»
-package «editCommandsPackageName»;
-
-«EXPAND xpt::Common::generatedClassComment»
-public class «reorientConnectionViewCommandClassName»
- extends org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand {
-
- «EXPAND xpt::Common::generatedMemberComment»
- private org.eclipse.core.runtime.IAdaptable edgeAdaptor;
-
- «EXPAND xpt::Common::generatedMemberComment»
- public «reorientConnectionViewCommandClassName»(
- org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, String label) {
- super(editingDomain, label, null);
- }
-
- «EXPAND xpt::Common::generatedMemberComment»
- public java.util.List getAffectedFiles() {
- org.eclipse.gmf.runtime.notation.View view =
- (org.eclipse.gmf.runtime.notation.View) edgeAdaptor.getAdapter(org.eclipse.gmf.runtime.notation.View.class);
- if (view != null) {
- return getWorkspaceFiles(view);
- }
- return super.getAffectedFiles();
- }
-
- «EXPAND xpt::Common::generatedMemberComment»
- public org.eclipse.core.runtime.IAdaptable getEdgeAdaptor() {
- return edgeAdaptor;
- }
-
- «EXPAND xpt::Common::generatedMemberComment»
- public void setEdgeAdaptor(org.eclipse.core.runtime.IAdaptable edgeAdaptor) {
- this.edgeAdaptor = edgeAdaptor;
- }
-
- «EXPAND xpt::Common::generatedMemberComment»
- protected org.eclipse.gmf.runtime.common.core.command.CommandResult doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.core.runtime.IAdaptable info) {
- «EXPAND xpt::Common::_assert('null != edgeAdaptor : \"Null child in ' + reorientConnectionViewCommandClassName + '\"')-»
- org.eclipse.gmf.runtime.notation.Edge edge = (org.eclipse.gmf.runtime.notation.Edge) getEdgeAdaptor().getAdapter(org.eclipse.gmf.runtime.notation.Edge.class);
- «EXPAND xpt::Common::_assert('null != edge : \"Null edge in ' + reorientConnectionViewCommandClassName + '\"')-»
- org.eclipse.gmf.runtime.notation.View tempView = edge.getSource();
- edge.setSource(edge.getTarget());
- edge.setTarget(tempView);
- return org.eclipse.gmf.runtime.common.core.command.CommandResult.newOKCommandResult();
- }
-}
-«ENDDEFINE»

Back to the top