carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.templates/diagram/editparts/ChildNodeLabelEditPart.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::GenChildLabelNode-»
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::ChildNodeLabelEditPart::contsructor-»
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 getDragTracker-»
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::TextAware::methods(false, labelReadOnly, labelElementIcon, viewmap, labelModelFacet, this, getDiagram()) FOR this-»
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 xpt::diagram::editparts::Common::notationalListeners FOR this-»
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 handleNotificationEvent-»
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 xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
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 additions-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    40
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    41
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    42
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    43
«DEFINE extendsList FOR gmfgen::GenChildLabelNode»extends org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart«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 implementsList FOR gmfgen::GenChildLabelNode»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«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 attributes FOR gmfgen::GenChildLabelNode-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    48
	«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    49
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    50
	«EXPAND impl::diagram::editparts::TextAware::fields FOR this-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    51
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    52
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    53
«DEFINE getDragTracker FOR gmfgen::GenChildLabelNode-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    54
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    55
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request) {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    56
	«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::getDragTrackerBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    57
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    58
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    59
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    60
«DEFINE createDefaultEditPolicies FOR gmfgen::GenChildLabelNode-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    61
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    62
protected void createDefaultEditPolicies() {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    63
	«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::createDefaultEditPoliciesBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    64
}
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    65
«ENDDEFINE»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    66
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    67
«DEFINE handleNotificationEvent FOR gmfgen::GenChildLabelNode-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    68
	«EXPAND xpt::Common::generatedMemberComment»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    69
protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    70
	«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::handleNotificationEventBody-»
033392511bf7 add files for RCL_2_2
cawthron
parents:
diff changeset
    71
}
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::GenChildLabelNode»«ENDDEFINE»