| 1 | /* |
| 2 | * Copyright 2007, IPD, SDQ, University of Karlsruhe |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcm.gmf.repository.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 "repository_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$ |
| 24 | } |
| 25 | |
| 26 | } |