blob: f53b3b6be8196e088ef08361ec8ce0dfe28f91c9 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2013 CEA LIST.
*
* 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:
* R�gis CHEVREL: chevrel.regis <at> gmail.com
* CEA LIST - Initial API and implementation
* Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Bug 496905
*
*****************************************************************************/
package org.eclipse.papyrus.sysml.diagram.parametric.edit.part;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.internationalization.utils.utils.LabelInternationalization;
import org.eclipse.papyrus.sysml.diagram.common.edit.part.BlockLabelNameEditPart;
public class CustomBlockLabelNameEditPart extends BlockLabelNameEditPart {
public CustomBlockLabelNameEditPart(View view) {
super(view);
}
/**
* Respect the SysML diagram frame "par [Block] Block1 [DiagramName]"
*/
@Override
protected String getLabelText() {
String diagramName = LabelInternationalization.getInstance().getDiagramLabel(getDiagramView());
return super.getLabelText() + " [" + diagramName + "]";
}
}