carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.templates/diagram/editparts/CompartmentEditPart.xpt
author cawthron
Fri, 04 Dec 2009 11:06:59 -0600
changeset 422 033392511bf7
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
422
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     1
/*
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     2
 * Copyright (c) 2006, 2007 Borland Software Corporation
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     3
 * 
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     4
 * All rights reserved. This program and the accompanying materials
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     5
 * are made available under the terms of the Eclipse Public License v1.0
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     6
 * which accompanies this distribution, and is available at
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     7
 * http://www.eclipse.org/legal/epl-v10.html
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     8
 *
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
     9
 * Contributors:
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    10
 *    Dmitry Stadnik (Borland) - initial API and implementation
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    11
 *    Alexander Shatalin (Borland) - initial API and implementation
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    12
 */
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    13
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    14
«IMPORT "http://www.eclipse.org/gmf/2008/GenModel"»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    15
«EXTENSION xpt::diagram::editparts::Utils»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    16
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    17
«DEFINE Main FOR gmfgen::GenCompartment-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    18
«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    19
package «getDiagram().editPartsPackageName»;
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    20
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    21
«EXPAND xpt::Common::generatedClassComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    22
public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    23
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    24
	«EXPAND attributes-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    25
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    26
	«EXPAND impl::diagram::editparts::CompartmentEditPart::contsructor-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    27
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    28
	«EXPAND impl::diagram::editparts::CompartmentEditPart::hasModelChildrenChanged-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    29
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    30
	«EXPAND impl::diagram::editparts::CompartmentEditPart::getCompartmentName-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    31
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    32
	«EXPAND impl::diagram::editparts::CompartmentEditPart::createFigure-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    33
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    34
	«EXPAND createDefaultEditPolicies-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    35
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    36
	«EXPAND impl::diagram::editparts::CompartmentEditPart::refreshVisuals-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    37
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    38
	«EXPAND handleNotificationEvent-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    39
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    40
	«EXPAND impl::diagram::editparts::CompartmentEditPart::refreshBounds-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    41
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    42
	«EXPAND impl::diagram::editparts::CompartmentEditPart::setRatio-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    43
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    44
	«EXPAND additions-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    45
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    46
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    47
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    48
«DEFINE extendsList FOR gmfgen::GenCompartment-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    49
extends «IF listLayout»org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart«ELSE»org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart«ENDIF-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    50
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    51
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    52
«DEFINE implementsList FOR gmfgen::GenCompartment»«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    53
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    54
«DEFINE attributes FOR gmfgen::GenCompartment-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    55
	«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    56
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    57
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    58
«DEFINE createDefaultEditPolicies FOR gmfgen::GenCompartment-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    59
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    60
	protected void createDefaultEditPolicies() {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    61
		«EXPAND impl::diagram::editparts::CompartmentEditPart::createDefaultEditPoliciesBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    62
	}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    63
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    64
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    65
«DEFINE handleNotificationEvent FOR gmfgen::GenCompartment-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    66
	«IF isStoringChildPositions(node)-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    67
		«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    68
		protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification notification) {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    69
			«EXPAND impl::diagram::editparts::CompartmentEditPart::handleNotificationEventBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    70
		}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    71
	«ENDIF-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    72
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    73
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    74
«DEFINE additions FOR gmfgen::GenCompartment»«ENDDEFINE»