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 |
«EXTENSION xpt::diagram::editparts::Utils»
|
|
16 |
|
|
17 |
«DEFINE Main FOR gmfgen::GenCompartment-»
|
|
18 |
«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
|
|
19 |
package «getDiagram().editPartsPackageName»;
|
|
20 |
|
|
21 |
«EXPAND xpt::Common::generatedClassComment»
|
|
22 |
public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
|
|
23 |
|
|
24 |
«EXPAND attributes-»
|
|
25 |
|
|
26 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::contsructor-»
|
|
27 |
|
|
28 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::hasModelChildrenChanged-»
|
|
29 |
|
|
30 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::getCompartmentName-»
|
|
31 |
|
|
32 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::createFigure-»
|
|
33 |
|
|
34 |
«EXPAND createDefaultEditPolicies-»
|
|
35 |
|
|
36 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::refreshVisuals-»
|
|
37 |
|
|
38 |
«EXPAND handleNotificationEvent-»
|
|
39 |
|
|
40 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::refreshBounds-»
|
|
41 |
|
|
42 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::setRatio-»
|
|
43 |
|
|
44 |
«EXPAND additions-»
|
|
45 |
}
|
|
46 |
«ENDDEFINE»
|
|
47 |
|
|
48 |
«DEFINE extendsList FOR gmfgen::GenCompartment-»
|
|
49 |
extends «IF listLayout»org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart«ELSE»org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart«ENDIF-»
|
|
50 |
«ENDDEFINE»
|
|
51 |
|
|
52 |
«DEFINE implementsList FOR gmfgen::GenCompartment»«ENDDEFINE»
|
|
53 |
|
|
54 |
«DEFINE attributes FOR gmfgen::GenCompartment-»
|
|
55 |
«EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR this-»
|
|
56 |
«ENDDEFINE»
|
|
57 |
|
|
58 |
«DEFINE createDefaultEditPolicies FOR gmfgen::GenCompartment-»
|
|
59 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
60 |
protected void createDefaultEditPolicies() {
|
|
61 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::createDefaultEditPoliciesBody-»
|
|
62 |
}
|
|
63 |
«ENDDEFINE»
|
|
64 |
|
|
65 |
«DEFINE handleNotificationEvent FOR gmfgen::GenCompartment-»
|
|
66 |
«IF isStoringChildPositions(node)-»
|
|
67 |
«EXPAND xpt::Common::generatedMemberComment»
|
|
68 |
protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification notification) {
|
|
69 |
«EXPAND impl::diagram::editparts::CompartmentEditPart::handleNotificationEventBody-»
|
|
70 |
}
|
|
71 |
«ENDIF-»
|
|
72 |
«ENDDEFINE»
|
|
73 |
|
|
74 |
«DEFINE additions FOR gmfgen::GenCompartment»«ENDDEFINE» |