diff options
Diffstat (limited to 'plugins/toolsmiths/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/NodeLabelEditPart.xtend')
-rw-r--r-- | plugins/toolsmiths/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/NodeLabelEditPart.xtend | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/NodeLabelEditPart.xtend b/plugins/toolsmiths/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/NodeLabelEditPart.xtend deleted file mode 100644 index e7bb5969d29..00000000000 --- a/plugins/toolsmiths/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/NodeLabelEditPart.xtend +++ /dev/null @@ -1,81 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2006, 2009, 2013 Borland Software Corporation and others - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Dmitry Stadnik (Borland) - initial API and implementation - * Alexander Shatalin (Borland) - initial API and implementation - * Michael Golubev (Montages) - #386838 - migrate to Xtend2 - * - *****************************************************************************/ -package aspects.diagram.editparts - -import com.google.inject.Inject -import com.google.inject.Singleton -import org.eclipse.papyrus.gmf.codegen.gmfgen.GenNodeLabel -import xpt.Common - -//DOCUMENTATION: PapyrusGenCode -//add in the addition codes in order to refresh the labels -@Singleton class NodeLabelEditPart extends diagram.editparts.NodeLabelEditPart { - @Inject extension Common; - - @Inject impl.diagram.editparts.NodeLabelEditPart xptNodeLabelEditPart; - -override implementsList(GenNodeLabel it)'''implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart, org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit''' - -//BEGIN: PapyrusGenCode -//Definition of the inheritance -override extendsList (GenNodeLabel it) '''extends org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart''' -//END: PapyrusGenCode - - override handleNotificationEvent(GenNodeLabel it) ''' - «generatedMemberComment» - protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event) { - refreshLabel(); - «xptNodeLabelEditPart.handleNotificationEventBody(it)» - } - ''' - - override additions(GenNodeLabel it) ''' - ««« Code to refresh icon - - «generatedMemberComment» - private static final String ADD_PARENT_MODEL = "AddParentModel"; - - - «generatedMemberComment» - public void activate() { - super.activate(); - addOwnerElementListeners(); - } - - «generatedMemberComment» - protected void addOwnerElementListeners() { - addListenerFilter(ADD_PARENT_MODEL, this, ((org.eclipse.gmf.runtime.notation.View) getParent().getModel())); - - } - - «generatedMemberComment» - public void deactivate() { - removeOwnerElementListeners(); - super.deactivate(); - - } - - - «generatedMemberComment» - protected void removeOwnerElementListeners() { - removeListenerFilter(ADD_PARENT_MODEL); - - } - - «««END: PapyrusGenCode - ''' -} |