422
|
1 |
/*
|
|
2 |
* Copyright (c) 2006, 2007 Borland Software Corporation
|
|
3 |
*
|
|
4 |
* All rights reserved. This program and the accompanying materials
|
|
5 |
* are made available under the terms of the Eclipse Public License v1.0
|
|
6 |
* which accompanies this distribution, and is available at
|
|
7 |
* http://www.eclipse.org/legal/epl-v10.html
|
|
8 |
*
|
|
9 |
* Contributors:
|
|
10 |
* Dmitry Stadnik (Borland) - initial API and implementation
|
|
11 |
* Alexander Shatalin (Borland) - initial API and implementation
|
|
12 |
*/
|
|
13 |
|
|
14 |
«IMPORT "http://www.eclipse.org/gmf/2008/GenModel"»
|
|
15 |
|
|
16 |
«DEFINE Main FOR gmfgen::GenChildLabelNode-»
|
|
17 |
«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
|
|
18 |
package «getDiagram().editPartsPackageName»;
|
|
19 |
|
|
20 |
«EXPAND xpt::Common::generatedClassComment»
|
|
21 |
public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
|
|
22 |
|
|
23 |
«EXPAND attributes-»
|
|
24 |
|
|
25 |
«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::contsructor-»
|
|
26 |
|
|
27 |
«EXPAND getDragTracker-»
|
|
28 |
|
|
29 |
«EXPAND createDefaultEditPolicies-»
|
|
30 |
|
|
31 |
«EXPAND impl::diagram::editparts::TextAware::methods(false, labelReadOnly, labelElementIcon, viewmap, labelModelFacet, this, getDiagram()) FOR this-»
|
|
32 |
|
|
33 |
«EXPAND xpt::diagram::editparts::Common::notationalListeners FOR this-»
|
|
34 |
|
|
35 |
«EXPAND handleNotificationEvent-»
|
|
36 |
|
|
37 |
«EXPAND xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
|
|
38 |
|
|
39 |
«EXPAND additions-»
|
|
40 |
}
|
|
41 |
«ENDDEFINE»
|
|
42 |
|
|
43 |
«DEFINE extendsList FOR gmfgen::GenChildLabelNode»extends org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart«ENDDEFINE»
|
|
44 |
|
|
45 |
«DEFINE implementsList FOR gmfgen::GenChildLabelNode»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«ENDDEFINE»
|
|
46 |
|
|
47 |
«DEFINE attributes FOR gmfgen::GenChildLabelNode-»
|
|
48 |
«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
|
|
49 |
|
|
50 |
«EXPAND impl::diagram::editparts::TextAware::fields FOR this-»
|
|
51 |
«ENDDEFINE»
|
|
52 |
|
|
53 |
«DEFINE getDragTracker FOR gmfgen::GenChildLabelNode-»
|
|
54 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
55 |
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request) {
|
|
56 |
«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::getDragTrackerBody-»
|
|
57 |
}
|
|
58 |
«ENDDEFINE»
|
|
59 |
|
|
60 |
«DEFINE createDefaultEditPolicies FOR gmfgen::GenChildLabelNode-»
|
|
61 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
62 |
protected void createDefaultEditPolicies() {
|
|
63 |
«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::createDefaultEditPoliciesBody-»
|
|
64 |
}
|
|
65 |
«ENDDEFINE»
|
|
66 |
|
|
67 |
«DEFINE handleNotificationEvent FOR gmfgen::GenChildLabelNode-»
|
|
68 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
69 |
protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
|
|
70 |
«EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::handleNotificationEventBody-»
|
|
71 |
}
|
|
72 |
«ENDDEFINE»
|
|
73 |
|
|
74 |
«DEFINE additions FOR gmfgen::GenChildLabelNode»«ENDDEFINE» |