| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| Copyright (c) 2017 CEA LIST. |
| |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License 2.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-2.0/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| |
| Contributors: |
| CEA LIST - Initial API and implementation |
| --> |
| |
| <plugin> |
| <extension |
| point="org.eclipse.papyrus.uml.tools.importSources"> |
| <importSource |
| class="org.eclipse.papyrus.cdo.uml.internal.ui.importsources.CDOPackageImportSource" |
| name="%importSource.name"> |
| <enablement> |
| <iterate> |
| <or> |
| <adapt |
| type="org.eclipse.emf.ecore.EObject"> |
| <test |
| property="org.eclipse.papyrus.cdo.core.isCDOObject"> |
| </test> |
| <instanceof |
| value="org.eclipse.uml2.uml.Package"> |
| </instanceof> |
| </adapt> |
| </or> |
| </iterate> |
| </enablement> |
| </importSource> |
| </extension> |
| |
| </plugin> |