blob: 4844c34c630d69bf5f150a01dfa5c45fb1353f81 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016, 2017 Obeo.
* 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.editor.properties.ext.widgets.reference.internal;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.sirius.editor.properties.filters.common.ViewpointPropertyFilter;
import org.eclipse.sirius.properties.ext.widgets.reference.propertiesextwidgetsreference.PropertiesExtWidgetsReferencePackage;
/**
* The filter used for the property section for the expression used to compute the name of the reference.
*
* @author sbegaudeau
*/
public class ExtReferenceDescriptionReferenceNameExpressionFilter extends ViewpointPropertyFilter {
@Override
protected EStructuralFeature getFeature() {
return PropertiesExtWidgetsReferencePackage.eINSTANCE.getAbstractExtReferenceDescription_ReferenceNameExpression();
}
@Override
protected boolean isRightInputType(Object arg0) {
return arg0 instanceof org.eclipse.sirius.properties.ext.widgets.reference.propertiesextwidgetsreference.AbstractExtReferenceDescription;
}
}