Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ChildNodeLabelEditPart.xpt90
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt74
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/DiagramEditPart.xpt65
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ExternalNodeLabelEditPart.xpt69
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkEditPart.xpt61
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkLabelEditPart.xpt68
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeEditPart.xpt131
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeLabelEditPart.xpt69
8 files changed, 627 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ChildNodeLabelEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ChildNodeLabelEditPart.xpt
new file mode 100644
index 000000000..77cdb1be3
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ChildNodeLabelEditPart.xpt
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2006, 2008 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«EXTENSION xpt::diagram::editparts::Utils»
+
+«DEFINE Main FOR gmfgen::GenChildLabelNode-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::contsructor-»
+
+ «EXPAND getDragTracker-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::TextAware::methods(false, labelReadOnly, labelElementIcon, viewmap, labelModelFacet, self, getDiagram())-»
+
+ «EXPAND xpt::diagram::editparts::Common::notationalListeners-»
+
+«IF getAssistantOutgoingLinks(self)->size() > 0-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnSource-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnSourceAndTarget-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMATypesForTarget-»
+«ENDIF-»
+
+«IF getAssistantIncomingLinks(self)->size() > 0-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnTarget-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMATypesForSource-»
+«ENDIF-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenChildLabelNode»extends org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenChildLabelNode»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenChildLabelNode-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+
+ «EXPAND impl::diagram::editparts::TextAware::fields FOR self-»
+«ENDDEFINE»
+
+«DEFINE getDragTracker FOR gmfgen::GenChildLabelNode-»
+ «EXPAND xpt::Common::generatedMemberComment»
+public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request) {
+ «EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::getDragTrackerBody-»
+}
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenChildLabelNode-»
+ «EXPAND xpt::Common::generatedMemberComment»
+protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::createDefaultEditPoliciesBody-»
+}
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenChildLabelNode-»
+ «EXPAND xpt::Common::generatedMemberComment»
+protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
+ «EXPAND impl::diagram::editparts::ChildNodeLabelEditPart::handleNotificationEventBody-»
+}
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenChildLabelNode»«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt
new file mode 100644
index 000000000..88cbef8c3
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/CompartmentEditPart.xpt
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«EXTENSION xpt::diagram::editparts::Utils»
+
+«DEFINE Main FOR gmfgen::GenCompartment-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::contsructor-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::hasModelChildrenChanged-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::getCompartmentName-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::createFigure-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::refreshVisuals-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::refreshBounds-»
+
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::setRatio-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenCompartment-»
+extends «IF listLayout»org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart«ELSE»org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenCompartment»«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenCompartment-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenCompartment-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenCompartment-»
+ «IF isStoringChildPositions(node)-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification notification) {
+ «EXPAND impl::diagram::editparts::CompartmentEditPart::handleNotificationEventBody-»
+ }
+ «ENDIF-»
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenCompartment»«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/DiagramEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/DiagramEditPart.xpt
new file mode 100644
index 000000000..a5bfee2c1
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/DiagramEditPart.xpt
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«DEFINE Main FOR gmfgen::GenDiagram-»
+«EXPAND xpt::Common::copyright FOR editorGen-»
+package «editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::DiagramEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::DiagramEditPart::createFigure-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenDiagram»extends org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenDiagram»«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenDiagram-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ public final static String MODEL_ID = "«editorGen.modelID»"; «EXPAND xpt::Common::nonNLS»
+
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenDiagram-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::DiagramEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE definionName FOR gmfgen::GenDiagram-»
+«ENDDEFINE»
+
+«DEFINE definionName FOR gmfgen::GenDiagram-»
+«ENDDEFINE»
+
+«DEFINE definionName FOR gmfgen::GenDiagram-»
+«ENDDEFINE»
+
+«DEFINE definionName FOR gmfgen::GenDiagram-»
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenDiagram»«ENDDEFINE»
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ExternalNodeLabelEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ExternalNodeLabelEditPart.xpt
new file mode 100644
index 000000000..1ca07ce36
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/ExternalNodeLabelEditPart.xpt
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«DEFINE Main FOR gmfgen::GenExternalNodeLabel-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::initializer-»
+
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::getBorderItemLocator-»
+
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::refreshBounds-»
+
+ «EXPAND impl::diagram::editparts::TextAware::methods(false, readOnly, elementIcon, viewmap, modelFacet, node, getDiagram())-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createFigure-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenExternalNodeLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenExternalNodeLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart, org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenExternalNodeLabel-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+
+ «EXPAND impl::diagram::editparts::TextAware::fields FOR self-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenExternalNodeLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenExternalNodeLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
+ «EXPAND impl::diagram::editparts::ExternalNodeLabelEditPart::handleNotificationEventBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenExternalNodeLabel»«ENDDEFINE»
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkEditPart.xpt
new file mode 100644
index 000000000..ea6902e16
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkEditPart.xpt
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«DEFINE Main FOR gmfgen::GenLink-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::addFixedChild-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::addChildVisual-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::removeFixedChild-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::removeChildVisual-»
+
+ «EXPAND impl::diagram::editparts::LinkEditPart::createLinkFigure-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenLink»extends org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenLink-»
+ «IF treeBranch»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenLink-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenLink-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::LinkEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenLink-»
+«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkLabelEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkLabelEditPart.xpt
new file mode 100644
index 000000000..930ca5b41
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/LinkLabelEditPart.xpt
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«DEFINE Main FOR gmfgen::GenLinkLabel-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::LinkLabelEditPart::initializer-»
+
+ «EXPAND impl::diagram::editparts::LinkLabelEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::LinkLabelEditPart::getKeyPoint-»
+
+ «EXPAND impl::diagram::editparts::TextAware::methods(false, readOnly, elementIcon, viewmap, modelFacet, link, getDiagram())-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenLinkLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenLinkLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenLinkLabel-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant-»
+
+ «EXPAND impl::diagram::editparts::TextAware::fields-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenLinkLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::LinkLabelEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenLinkLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
+ «EXPAND impl::diagram::editparts::LinkLabelEditPart::handleNotificationEventBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenLinkLabel-»
+«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeEditPart.xpt
new file mode 100644
index 000000000..be08f7974
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeEditPart.xpt
@@ -0,0 +1,131 @@
+/*
+ * Copyright (c) 2006, 2008 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+
+«EXTENSION xpt::diagram::editparts::Utils»
+
+«DEFINE Main FOR gmfgen::GenNode-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::createLayoutEditPolicy-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::createNodeShape(self) FOR viewmap-»
+
+«IF hasFixedChildren(self)-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::addFixedChild-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::removeFixedChild-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::addChildVisual-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::removeChildVisual-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getContentPaneFor-»
+«ENDIF-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::addBorderItem-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::createNodePlate-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getPrimaryDragEditPolicy-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::createFigure-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::setupContentPane-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getContentPane-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::setForegroundColor-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::setBackgroundColor-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::setLineWidth-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::setLineStyle-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getPrimaryChildEditPart-»
+
+«IF getAssistantOutgoingLinks(self)->size() > 0-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnSource-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnSourceAndTarget-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMATypesForTarget-»
+«ENDIF-»
+
+«IF getAssistantIncomingLinks(self)->size() > 0-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMARelTypesOnTarget-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::getMATypesForSource-»
+«ENDIF-»
+
+«IF hasChildrenInListCompartments(self)-»
+ «EXPAND impl::diagram::editparts::NodeEditPart::getTargetEditPartMethod-»
+«ENDIF-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND impl::diagram::editparts::NodeEditPart::innerClassDeclaration FOR viewmap-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenNode»extends «EXPAND impl::diagram::editparts::NodeEditPart::extendsListContents»«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenNode»«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenNode-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected org.eclipse.draw2d.IFigure contentPane;
+
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected org.eclipse.draw2d.IFigure primaryShape;
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenNode-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::NodeEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenNode-»
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenTopLevelNode-»
+ «REM»This code is important for refreshing shortcut decoration
+ on adding corresponding annotation to the View instance.«ENDREM»
+ «IF getDiagram().generateShortcutIcon()-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
+ «EXPAND impl::diagram::editparts::NodeEditPart::handleNotificationEventBody-»
+ }
+ «ENDIF-»
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenNode-»
+«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeLabelEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeLabelEditPart.xpt
new file mode 100644
index 000000000..d38fc18ee
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/diagram/editparts/NodeLabelEditPart.xpt
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Alexander Shatalin (Borland) - initial API and implementation
+ */
+
+«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«EXTENSION xpt::diagram::editparts::Utils»
+
+«DEFINE Main FOR gmfgen::GenNodeLabel-»
+«EXPAND xpt::Common::copyright FOR getDiagram().editorGen-»
+package «getDiagram().editPartsPackageName»;
+
+«EXPAND xpt::Common::generatedClassComment»
+public class «editPartClassName» «EXPAND extendsList» «EXPAND implementsList» {
+
+ «EXPAND attributes-»
+
+ «EXPAND impl::diagram::editparts::NodeLabelEditPart::_constructor-»
+
+ «EXPAND createDefaultEditPolicies-»
+
+ «EXPAND impl::diagram::editparts::TextAware::methods(isStoringChildPositions(node), readOnly, elementIcon, viewmap, modelFacet, node, getDiagram())-»
+
+ «EXPAND xpt::diagram::editparts::Common::notationalListeners-»
+
+ «EXPAND impl::diagram::editparts::NodeLabelEditPart::refreshBounds-»
+
+ «EXPAND handleNotificationEvent-»
+
+ «EXPAND xpt::diagram::editparts::Common::labelFigure FOR viewmap-»
+
+ «EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE extendsList FOR gmfgen::GenNodeLabel»extends org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart«ENDDEFINE»
+
+«DEFINE implementsList FOR gmfgen::GenNodeLabel»implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart«ENDDEFINE»
+
+«DEFINE attributes FOR gmfgen::GenNodeLabel-»
+ «EXPAND xpt::diagram::editparts::Common::visualIDConstant FOR self-»
+
+ «EXPAND impl::diagram::editparts::TextAware::fields FOR self-»
+«ENDDEFINE»
+
+«DEFINE createDefaultEditPolicies FOR gmfgen::GenNodeLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void createDefaultEditPolicies() {
+ «EXPAND impl::diagram::editparts::NodeLabelEditPart::createDefaultEditPoliciesBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE handleNotificationEvent FOR gmfgen::GenNodeLabel-»
+ «EXPAND xpt::Common::generatedMemberComment»
+ protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) {
+ «EXPAND impl::diagram::editparts::NodeLabelEditPart::handleNotificationEventBody-»
+ }
+«ENDDEFINE»
+
+«DEFINE additions FOR gmfgen::GenNodeLabel-»
+«ENDDEFINE» \ No newline at end of file

Back to the top