Stephan Wahlbrink | 2821c04 | 2018-03-14 15:34:14 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <?eclipse version="3.4"?> |
| 3 | <!-- |
| 4 | #=============================================================================# |
Stephan Wahlbrink | f9b2c8b | 2021-01-21 11:08:44 +0100 | [diff] [blame] | 5 | # Copyright (c) 2007, 2021 Stephan Wahlbrink and others. |
Stephan Wahlbrink | 2821c04 | 2018-03-14 15:34:14 +0100 | [diff] [blame] | 6 | # |
| 7 | # This program and the accompanying materials are made available under the |
| 8 | # terms of the Eclipse Public License 2.0 which is available at |
| 9 | # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| 10 | # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| 11 | # |
| 12 | # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| 13 | # |
| 14 | # Contributors: |
| 15 | # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| 16 | #=============================================================================# |
| 17 | --> |
| 18 | |
| 19 | <plugin> |
| 20 | |
| 21 | <extension-point id="org.eclipse.statet.autonature.AutoConfigurations" |
| 22 | name="Auto Project Configurations" |
| 23 | schema="schema/AutoConfigurations.exsd"/> |
| 24 | |
| 25 | <extension |
| 26 | point="org.eclipse.ui.startup"> |
| 27 | <startup |
| 28 | class="org.eclipse.statet.internal.eutils.autonature.nostart.AutoNatureStartup"> |
| 29 | </startup> |
| 30 | </extension> |
| 31 | |
| 32 | <extension |
| 33 | point="org.eclipse.ui.keywords"> |
| 34 | <keyword |
| 35 | id="org.eclipse.statet.autonature.keywords.project" |
| 36 | label="project nature"> |
| 37 | </keyword> |
| 38 | </extension> |
| 39 | <extension |
| 40 | point="org.eclipse.ui.preferencePages"> |
| 41 | <page |
| 42 | id="org.eclipse.statet.autonature.preferencePages.Config" |
| 43 | category="org.eclipse.ui.preferencePages.Workspace" |
| 44 | class="org.eclipse.statet.internal.eutils.autonature.AutoNaturePreferencePage" |
| 45 | name="%preferencePages_name"> |
| 46 | <keywordReference |
| 47 | id="org.eclipse.statet.autonature.keywords.project"> |
| 48 | </keywordReference> |
| 49 | </page> |
| 50 | </extension> |
| 51 | |
| 52 | <extension |
| 53 | point="org.eclipse.ui.commands"> |
| 54 | <command |
| 55 | id="org.eclipse.statet.autonature.commands.DetectAndConfigureProject" |
| 56 | categoryId="org.eclipse.ui.category.project" |
| 57 | name="%commands_DetectAndConfigureProject_name"> |
| 58 | </command> |
| 59 | </extension> |
| 60 | <extension |
| 61 | point="org.eclipse.ui.handlers"> |
| 62 | <handler |
| 63 | commandId="org.eclipse.statet.autonature.commands.DetectAndConfigureProject" |
| 64 | class="org.eclipse.statet.internal.eutils.autonature.wizards.ConfigureProjectHandler"> |
| 65 | <activeWhen> |
| 66 | <with |
| 67 | variable="activeMenuSelection"> |
| 68 | <or> |
| 69 | <and> |
| 70 | <count |
| 71 | value="1"/> |
| 72 | <iterate> |
| 73 | <adapt |
| 74 | type="org.eclipse.core.resources.IProject"/> |
| 75 | </iterate> |
| 76 | </and> |
| 77 | <and> |
| 78 | <count |
| 79 | value="!"/> |
| 80 | <with |
| 81 | variable="activeSelection"> |
| 82 | <count |
| 83 | value="1"/> |
| 84 | <iterate> |
| 85 | <adapt |
| 86 | type="org.eclipse.core.resources.IProject"/> |
| 87 | </iterate> |
| 88 | </with> |
| 89 | </and> |
| 90 | </or> |
| 91 | </with> |
| 92 | </activeWhen> |
| 93 | </handler> |
| 94 | </extension> |
| 95 | |
| 96 | <extension |
| 97 | point="org.eclipse.ui.menus"> |
| 98 | <menuContribution |
| 99 | locationURI="popup:org.eclipse.ui.projectConfigure"> |
| 100 | <command |
| 101 | commandId="org.eclipse.statet.autonature.commands.DetectAndConfigureProject" |
| 102 | style="push"> |
| 103 | </command> |
| 104 | </menuContribution> |
| 105 | </extension> |
| 106 | |
| 107 | </plugin> |