diff options
Diffstat (limited to 'plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/description/style/spec/EndLabelStyleDescriptionSpec.java')
-rw-r--r-- | plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/description/style/spec/EndLabelStyleDescriptionSpec.java | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/description/style/spec/EndLabelStyleDescriptionSpec.java b/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/description/style/spec/EndLabelStyleDescriptionSpec.java deleted file mode 100644 index b713440a0e..0000000000 --- a/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/metamodel/description/style/spec/EndLabelStyleDescriptionSpec.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 THALES GLOBAL SERVICES. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.eclipse.sirius.diagram.business.internal.metamodel.description.style.spec; - -import org.eclipse.sirius.diagram.description.style.impl.EndLabelStyleDescriptionImpl; -import org.eclipse.sirius.viewpoint.description.style.StylePackage; - -/** - * A specific class to override the default labelExpression. - * - * @author <a href="mailto:laurent.redor@obeo.fr">Laurent Redor</a> - */ -public class EndLabelStyleDescriptionSpec extends EndLabelStyleDescriptionImpl { - /** - * The default value of the '{@link #getLabelExpression() - * <em>Label Expression</em>}' attribute. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getLabelExpression() - * @not-generated - * @ordered - */ - protected static final String LABEL_EXPRESSION_EDEFAULT = ""; //$NON-NLS-1$ - - /** - * Default constructor. - */ - public EndLabelStyleDescriptionSpec() { - super(); - setLabelExpression(LABEL_EXPRESSION_EDEFAULT); - } - - /** - * Override to change the default value of LabelExpression. - * - * {@inheritDoc} - */ - @Override - public boolean eIsSet(int featureID) { - // CHECKSTYLE:OFF - switch (featureID) { - case StylePackage.BASIC_LABEL_STYLE_DESCRIPTION__LABEL_EXPRESSION: - return LABEL_EXPRESSION_EDEFAULT == null ? super.getLabelExpression() != null : !LABEL_EXPRESSION_EDEFAULT.equals(super.getLabelExpression()); - } - // CHECKSTYLE:ON - return super.eIsSet(featureID); - } - - /** - * Override to change the default value of LabelExpression. {@inheritDoc} - */ - @Override - public void eUnset(int featureID) { - // CHECKSTYLE:OFF - switch (featureID) { - case StylePackage.BASIC_LABEL_STYLE_DESCRIPTION__LABEL_EXPRESSION: - setLabelExpression(LABEL_EXPRESSION_EDEFAULT); - return; - } - // CHECKSTYLE:ON - super.eUnset(featureID); - } -} |