carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.templates/diagram/editparts/ExternalNodeLabelEditPart.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
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    16
«DEFINE Main FOR gmfgen::GenExternalNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    17
«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    18
package «getDiagram().editPartsPackageName»;
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    19
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    20
«EXPAND xpt::Common::generatedClassComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    21
public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    22
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    23
	«EXPAND attributes-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    24
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    25
	«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::initializer-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    26
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    27
	«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::constructor-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    28
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    29
	«EXPAND createDefaultEditPolicies-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    30
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    31
	«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::getBorderItemLocator-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    32
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    33
	«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::refreshBounds-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    34
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    35
	«EXPAND impl::diagram::editparts::TextAware::methods(false, readOnly, elementIcon, viewmap, modelFacet, node, getDiagram())-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    36
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    37
	«EXPAND handleNotificationEvent-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    38
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    39
	«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createFigure-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    40
	
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    41
	«EXPAND additions-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    42
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    43
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    44
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    45
«DEFINE extendsList FOR gmfgen::GenExternalNodeLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    46
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    47
«DEFINE implementsList FOR gmfgen::GenExternalNodeLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart, org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    48
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    49
«DEFINE attributes FOR gmfgen::GenExternalNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    50
	«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    51
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    52
	«EXPAND impl::diagram::editparts::TextAware::fields FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    53
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    54
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    55
«DEFINE createDefaultEditPolicies FOR gmfgen::GenExternalNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    56
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    57
	protected void createDefaultEditPolicies() {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    58
		«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createDefaultEditPoliciesBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    59
	}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    60
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    61
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    62
«DEFINE handleNotificationEvent FOR gmfgen::GenExternalNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    63
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    64
	protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    65
		«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::handleNotificationEventBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    66
	}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    67
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    68
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    69
«DEFINE additions FOR gmfgen::GenExternalNodeLabel»«ENDDEFINE»