Skip to main content
summaryrefslogtreecommitdiffstats
blob: a533c67770e06c5ca87f4b51418fe30bd0c9c362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.eclipse.papyrus.palette.customization.constraints;

import org.eclipse.papyrus.diagram.common.service.palette.IAspectAction;
import org.eclipse.papyrus.properties.constraints.AbstractConstraint;
import org.eclipse.papyrus.properties.constraints.Constraint;


public class AspectActionConstraint extends AbstractConstraint {

	public boolean match(Object selection) {
		return selection instanceof IAspectAction;
	}

	@Override
	protected boolean equivalent(Constraint constraint) {
		return constraint instanceof AspectActionConstraint;
	}

}

Back to the top