1 | /* |
2 | * Copyright 2006 SDQ Research Group, University of Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.seff.part; |
5 | |
6 | import org.eclipse.core.expressions.PropertyTester; |
7 | import org.eclipse.emf.common.ui.URIEditorInput; |
8 | |
9 | /** |
10 | * @generated |
11 | */ |
12 | public class PalladioComponentModelUriEditorInputTester extends PropertyTester { |
13 | |
14 | /** |
15 | * @generated |
16 | */ |
17 | public boolean test(Object receiver, String method, Object[] args, |
18 | Object expectedValue) { |
19 | if (false == receiver instanceof URIEditorInput) { |
20 | return false; |
21 | } |
22 | URIEditorInput editorInput = (URIEditorInput) receiver; |
23 | return "seff_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$ |
24 | } |
25 | |
26 | } |