Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9af4f5cd25d6e8fb4859206f6a4cd47c7d096009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.eclipse.papyrus.uml.properties.tabbedproperties.appearance;

import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.jface.viewers.IFilter;
import org.eclipse.uml2.uml.NamedElement;

public class NodeNamedElementFilter implements IFilter {

	public boolean select(Object object) {
		if(object instanceof GraphicalEditPart
				&& ((GraphicalEditPart)object).getNotationView().getElement() instanceof NamedElement)
			return true;

		return false;
	}
}

Back to the top