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::GenExternalNodeLabel-»
|
|
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::ExternalNodeLabelEditPart::initializer-»
|
|
26 |
|
|
27 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::constructor-»
|
|
28 |
|
|
29 |
«EXPAND createDefaultEditPolicies-»
|
|
30 |
|
|
31 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::getBorderItemLocator-»
|
|
32 |
|
|
33 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::refreshBounds-»
|
|
34 |
|
|
35 |
«EXPAND impl::diagram::editparts::TextAware::methods(false, readOnly, elementIcon, viewmap, modelFacet, node, getDiagram())-»
|
|
36 |
|
|
37 |
«EXPAND handleNotificationEvent-»
|
|
38 |
|
|
39 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createFigure-»
|
|
40 |
|
|
41 |
«EXPAND additions-»
|
|
42 |
}
|
|
43 |
«ENDDEFINE»
|
|
44 |
|
|
45 |
«DEFINE extendsList FOR gmfgen::GenExternalNodeLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart«ENDDEFINE»
|
|
46 |
|
|
47 |
«DEFINE implementsList FOR gmfgen::GenExternalNodeLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart, org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart«ENDDEFINE»
|
|
48 |
|
|
49 |
«DEFINE attributes FOR gmfgen::GenExternalNodeLabel-»
|
|
50 |
«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
|
|
51 |
|
|
52 |
«EXPAND impl::diagram::editparts::TextAware::fields FOR this-»
|
|
53 |
«ENDDEFINE»
|
|
54 |
|
|
55 |
«DEFINE createDefaultEditPolicies FOR gmfgen::GenExternalNodeLabel-»
|
|
56 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
57 |
protected void createDefaultEditPolicies() {
|
|
58 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createDefaultEditPoliciesBody-»
|
|
59 |
}
|
|
60 |
«ENDDEFINE»
|
|
61 |
|
|
62 |
«DEFINE handleNotificationEvent FOR gmfgen::GenExternalNodeLabel-»
|
|
63 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
64 |
protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
|
|
65 |
«EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::handleNotificationEventBody-»
|
|
66 |
}
|
|
67 |
«ENDDEFINE»
|
|
68 |
|
|
69 |
«DEFINE additions FOR gmfgen::GenExternalNodeLabel»«ENDDEFINE»
|