| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| <!-- |
| Copyright (c) 2009, 2018 Red Hat, Inc. |
| |
| This program and the accompanying materials are made |
| available under the terms of the Eclipse Public License 2.0 |
| which is available at https://www.eclipse.org/legal/epl-2.0/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| |
| Contributors: |
| Red Hat - initial API and implementation |
| --> |
| |
| <plugin> |
| <extension |
| id="rpmnature" |
| name="%extension.name" |
| point="org.eclipse.core.resources.natures"> |
| <runtime> |
| <run class="org.eclipse.linuxtools.rpm.core.RPMProjectNature"></run> |
| </runtime> |
| </extension> |
| <extension point="org.eclipse.core.runtime.preferences"> |
| <initializer |
| class="org.eclipse.linuxtools.internal.rpm.core.RPMCoreInitializer" /> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| <definition |
| id="org.eclipse.linuxtools.rpm.core.rpmfile"> |
| <and> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false"> |
| <or> |
| <adapt |
| type="org.eclipse.core.resources.IProject"> |
| <test |
| property="org.eclipse.core.resources.projectNature" |
| value="org.eclipse.linuxtools.rpm.core.rpmnature"> |
| </test> |
| </adapt> |
| <adapt |
| type="org.eclipse.core.resources.IResource"> |
| <test |
| property="org.eclipse.core.resources.name" |
| value="*.spec"> |
| </test> |
| </adapt> |
| </or> |
| </iterate> |
| </and> |
| </definition> |
| <definition |
| id="org.eclipse.linuxtools.rpm.core.rpmselection"> |
| <or> |
| <with |
| variable="activeMenuSelection"> |
| <reference |
| definitionId="org.eclipse.linuxtools.rpm.core.rpmfile"> |
| </reference> |
| </with> |
| <with |
| variable="activeMenuEditorInput"> |
| <reference |
| definitionId="org.eclipse.linuxtools.rpm.core.rpmfile"> |
| </reference> |
| </with> |
| </or> |
| </definition> |
| </extension> |
| </plugin> |