Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt74
1 files changed, 74 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt
new file mode 100644
index 000000000..88cbef8c3
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2006, 2007 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
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«EXTENSION xpt::diagram::editparts::Utils»
+
+«DEFINE Main FOR gmfgen::GenCompartment-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::contsructor-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::hasModelChildrenChanged-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::getCompartmentName-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::createFigure-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::refreshVisuals-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::refreshBounds-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::setRatio-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenCompartment-»
+extends «IF listLayout»org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart«ELSE»org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenCompartment»«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenCompartment-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenCompartment-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenCompartment-»
+ «IF isStoringChildPositions(node)-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification notification) {
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::handleNotificationEventBody-»
+ }
+ «ENDIF-»
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenCompartment»«ENDDEFINE» \ No newline at end of file

Back to the top