carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.templates/diagram/editparts/NodeLabelEditPart.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::GenNodeLabel-»
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::NodeLabelEditPart::constructor-»
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 createDefaultEditPolicies-»
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::TextAware::methods(isStoringChildPositions(node), readOnly, elementIcon, viewmap, modelFacet, node, getDiagram())-»
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 xpt::diagram::editparts::Common::notationalListeners-»
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 impl::diagram::editparts::NodeLabelEditPart::refreshBounds-»
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 handleNotificationEvent-»
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 xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
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 additions-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    41
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    42
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    43
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    44
«DEFINE extendsList FOR gmfgen::GenNodeLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    45
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    46
«DEFINE implementsList FOR gmfgen::GenNodeLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«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 attributes FOR gmfgen::GenNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    49
	«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    50
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    51
	«EXPAND impl::diagram::editparts::TextAware::fields FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    52
«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 createDefaultEditPolicies FOR gmfgen::GenNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    55
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    56
	protected void createDefaultEditPolicies() {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    57
		«EXPAND impl::diagram::editparts::NodeLabelEditPart::createDefaultEditPoliciesBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    58
	}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    59
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    60
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    61
«DEFINE handleNotificationEvent FOR gmfgen::GenNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    62
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    63
	protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    64
		«EXPAND impl::diagram::editparts::NodeLabelEditPart::handleNotificationEventBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    65
	}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    66
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    67
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    68
«DEFINE additions FOR gmfgen::GenNodeLabel-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    69
«ENDDEFINE»