diff options
author | Tomasz Zarna | 2014-03-12 07:37:53 +0000 |
---|---|---|
committer | Tomasz Zarna | 2014-03-17 11:39:16 +0000 |
commit | 4c85c0ddada4871565f967d98aa21c29ded57925 (patch) | |
tree | edfcb6bf19591954065079175e205063b8faef05 /org.eclipse.egit.core | |
parent | d6a9e12bc2535a4ed335ad426f5cebfc13e67cb8 (diff) | |
download | egit-4c85c0ddada4871565f967d98aa21c29ded57925.tar.gz egit-4c85c0ddada4871565f967d98aa21c29ded57925.tar.xz egit-4c85c0ddada4871565f967d98aa21c29ded57925.zip |
Add a text content type for patches
This enables proper content type detection of patches (i.e. files with .patch extension) when drag and dropping commits
Bug: 358691
Change-Id: Ic656f3e1a1925e4e7655ee03498342552376ca4b
Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
Diffstat (limited to 'org.eclipse.egit.core')
-rw-r--r-- | org.eclipse.egit.core/plugin.properties | 1 | ||||
-rw-r--r-- | org.eclipse.egit.core/plugin.xml | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/plugin.properties b/org.eclipse.egit.core/plugin.properties index 4a44d5fa0c..632dc22753 100644 --- a/org.eclipse.egit.core/plugin.properties +++ b/org.eclipse.egit.core/plugin.properties @@ -8,3 +8,4 @@ ############################################################################### plugin_name=Git Team Provider Core provider_name=Eclipse EGit +patch_ContentTypeName=Patch File
\ No newline at end of file diff --git a/org.eclipse.egit.core/plugin.xml b/org.eclipse.egit.core/plugin.xml index 029a29fb7a..31db1ac465 100644 --- a/org.eclipse.egit.core/plugin.xml +++ b/org.eclipse.egit.core/plugin.xml @@ -21,4 +21,14 @@ enabled="true" pattern="*/.git/*"/> </extension> + <extension + point="org.eclipse.core.contenttype.contentTypes"> + <content-type + base-type="org.eclipse.core.runtime.text" + file-extensions="patch" + id="org.eclipse.egit.patch" + name="%patch_ContentTypeName" + priority="normal"> + </content-type> + </extension> </plugin> |