Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 08cdc54a66340db11ffd96e5f770eabe67895377 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package org.eclipse.papyrus.paletteconfiguration.customization.queries;
import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
import org.eclipse.papyrus.uml.diagram.paletteconfiguration.DrawerConfiguration;

/** Returns the label for a drawer */
public class GetDrawerLabelQuery implements IJavaModelQuery<DrawerConfiguration, String> {
	public String evaluate(final DrawerConfiguration context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		
		return (context.getLabel() !=null ? context.getLabel() : "<>");
	}
}

Back to the top