| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:org.eclipse.egit.ui.RepositoriesView?before=group.open"> |
| <separator |
| name="group.gitflow" |
| visible="true"> |
| </separator> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.gitflow"> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.init" |
| label="%TeamGitFlowInit.name" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <not> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isInitialized"> |
| </test> |
| </adapt> |
| </not> |
| </and> |
| </iterate> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.gitflow"> |
| <menu |
| label="%TeamGitFlowMenu.name"> |
| <visibleWhen |
| checkEnabled="false"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isInitialized"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </visibleWhen> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureStart" |
| label="%TeamGitFlowFeatureStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureFinish" |
| label="%TeamGitFlowFeatureFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureRebase" |
| label="%TeamGitFlowFeatureRebase.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureCheckout" |
| label="%TeamGitFlowFeatureCheckout.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureTrack" |
| label="%TeamGitFlowFeatureTrack.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featurePublish" |
| label="%TeamGitFlowFeaturePublish.name" |
| style="push"> |
| </command> |
| <separator |
| name="org.eclipse.egit.gitflow.ui.separator1" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseStart" |
| label="%TeamGitFlowReleaseStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseFinish" |
| label="%TeamGitFlowReleaseFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releasePublish" |
| label="%TeamGitFlowReleasePublish.name" |
| style="push"> |
| </command> |
| <separator |
| name="org.eclipse.egit.gitflow.ui.separator2" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixStart" |
| label="%TeamGitFlowHotfixStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixFinish" |
| label="%TeamGitFlowHotfixFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixPublish" |
| label="%TeamGitFlowHotfixPublish.name" |
| style="push"> |
| </command> |
| </menu> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| categoryId="org.eclipse.egit.ui.commandCategory" |
| id="org.eclipse.egit.gitflow.ui.command.init" |
| name="%TeamGitFlowInit.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featureStart" |
| name="%TeamGitFlowFeatureStart.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featureFinish" |
| name="%TeamGitFlowFeatureFinish.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.releaseStart" |
| name="%TeamGitFlowReleaseStart.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.releaseFinish" |
| name="%TeamGitFlowReleaseFinish.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featurePublish" |
| name="%TeamGitFlowFeaturePublish.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.releasePublish" |
| name="%TeamGitFlowReleasePublish.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.hotfixPublish" |
| name="%TeamGitFlowHotfixPublish.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featureTrack" |
| name="%TeamGitFlowFeatureTrack.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featureCheckout" |
| name="%TeamGitFlowFeatureCheckout.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.featureRebase" |
| name="%TeamGitFlowFeatureRebase.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.hotfixStart" |
| name="%TeamGitFlowHotfixStart.name"> |
| </command> |
| <command |
| id="org.eclipse.egit.gitflow.ui.command.hotfixFinish" |
| name="%TeamGitFlowHotfixFinish.name"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.init"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.InitHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <not> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isInitialized"> |
| </test> |
| </adapt> |
| </not> |
| </and> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featureStart"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeatureStartHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isDevelop"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featureFinish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeatureFinishHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| |
| <and> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isFeature"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseStart"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.ReleaseStartHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <instanceof |
| value="org.eclipse.jgit.revwalk.RevCommit"> |
| </instanceof> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isDevelop"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseFinish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.ReleaseFinishHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isRelease"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featurePublish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeaturePublishHandler"> |
| </class> |
| |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isFeature"> |
| </test> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.hasDefaultRemote"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.releasePublish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.ReleasePublishHandler"> |
| </class> |
| |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isRelease"> |
| </test> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.hasDefaultRemote"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixPublish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.HotfixPublishHandler"> |
| </class> |
| |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isHotfix"> |
| </test> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.hasDefaultRemote"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featureTrack"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeatureTrackHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.hasDefaultRemote"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featureCheckout"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeatureCheckoutHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.featureRebase"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.FeatureRebaseHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isFeature"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixStart"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.HotfixStartHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isDevelop"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixFinish"> |
| <class |
| class="org.eclipse.egit.gitflow.ui.internal.actions.HotfixFinishHandler"> |
| </class> |
| <activeWhen> |
| <iterate> |
| <or> |
| <reference |
| definitionId="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| </reference> |
| </or> |
| </iterate> |
| </activeWhen> |
| <enabledWhen> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <and> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isHotfix"> |
| </test> |
| </and> |
| </adapt> |
| </iterate> |
| </enabledWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.egit.gitflow.ui.internal.selection.SelectionPropertyTester" |
| id="org.eclipse.egit.gitflow.ui.propertyTester" |
| namespace="GitFlowRepository" |
| properties="isFeature,isRelease,isHotfix,isDevelop,isMaster,isInitialized,hasDefaultRemote" |
| type="org.eclipse.jgit.lib.Repository"> |
| </propertyTester> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| <definition |
| id="org.eclipse.egit.gitflow.ui.commandEnabled"> |
| <or> |
| <instanceof |
| value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"> |
| </instanceof> |
| <instanceof |
| value="org.eclipse.core.resources.IResource"> |
| </instanceof> |
| </or> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.core.runtime.adapters"> |
| <factory adaptableType="org.eclipse.core.resources.IResource" |
| class="org.eclipse.egit.gitflow.ui.internal.factories.GitFlowAdapterFactory"> |
| <adapter type="org.eclipse.jgit.lib.Repository"/> |
| </factory> |
| </extension> |
| <extension |
| point="org.eclipse.core.runtime.adapters"> |
| <factory adaptableType="org.eclipse.team.ui.history.IHistoryView" |
| class="org.eclipse.egit.gitflow.ui.internal.factories.GitFlowAdapterFactory"> |
| <adapter type="org.eclipse.jgit.lib.Repository"/> |
| </factory> |
| </extension> |
| |
| |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:team.main?after=group11"> |
| <menu |
| label="%TeamGitFlowMenu.name"> |
| <visibleWhen |
| checkEnabled="false"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <instanceof |
| value="org.eclipse.core.resources.IProject"> |
| </instanceof> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isInitialized"> |
| </test> |
| </adapt> |
| </and> |
| </iterate> |
| </visibleWhen> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureStart" |
| label="%TeamGitFlowFeatureStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureFinish" |
| label="%TeamGitFlowFeatureFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureRebase" |
| label="%TeamGitFlowFeatureRebase.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureCheckout" |
| label="%TeamGitFlowFeatureCheckout.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featureTrack" |
| label="%TeamGitFlowFeatureTrack.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.featurePublish" |
| label="%TeamGitFlowFeaturePublish.name" |
| style="push"> |
| </command> |
| <separator |
| name="org.eclipse.egit.gitflow.ui.team.separator1" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseStart" |
| label="%TeamGitFlowReleaseStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releaseFinish" |
| label="%TeamGitFlowReleaseFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.releasePublish" |
| label="%TeamGitFlowReleasePublish.name" |
| style="push"> |
| </command> |
| <separator |
| name="org.eclipse.egit.gitflow.ui.team.separator2" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixStart" |
| label="%TeamGitFlowHotfixStart.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixFinish" |
| label="%TeamGitFlowHotfixFinish.name" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.hotfixPublish" |
| label="%TeamGitFlowHotfixPublish.name" |
| style="push"> |
| </command> |
| </menu> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:team.main?after=group11"> |
| <command |
| commandId="org.eclipse.egit.gitflow.ui.command.init" |
| label="%TeamGitFlowInit.name" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <and> |
| <instanceof |
| value="org.eclipse.core.resources.IProject"> |
| </instanceof> |
| <not> |
| <adapt type="org.eclipse.jgit.lib.Repository"> |
| <test |
| forcePluginActivation="true" |
| property="GitFlowRepository.isInitialized"> |
| </test> |
| </adapt> |
| </not> |
| </and> |
| </iterate> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.egit.ui.historyPageContributions?after=additions"> |
| <menu |
| label="%TeamGitFlowMenu.name"> |
| <dynamic |
| class="org.eclipse.egit.gitflow.ui.internal.menu.DynamicHistoryMenu" |
| id="org.eclipse.egit.gitflow.menu.history"> |
| </dynamic> |
| </menu> |
| </menuContribution> |
| </extension> |
| </plugin> |