]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/winterwell.markdown/plugin.xml
Tycho compilation changes for SVN version also.
[simantics/platform.git] / bundles / winterwell.markdown / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.7"?>
3 <plugin>
4
5    <extension
6          point="org.eclipse.ui.editors">
7       <editor
8             name="Markdown Editor"
9             extensions="txt,md,mdown,markdown,mdwn"
10             icon="icons/notepad.gif"
11             contributorClass="winterwell.markdown.editors.ActionBarContributor"
12             class="winterwell.markdown.editors.MarkdownEditor"
13             id="winterwell.markdown.editors.MarkdownEditor"
14             default="true">
15       </editor>
16       
17       <editor
18             class="winterwell.markdown.editors.MarkdownEditor"
19             contributorClass="winterwell.markdown.editors.ActionBarContributor"
20             default="true"
21             extensions="litcoffee"
22             icon="icons/coffee.png"
23             id="org.nodeclipse.ui.editors.LitCoffeeEditor"
24             name="LitCoffee (Markdown) Editor">
25       </editor>
26       
27    </extension>
28    
29    <extension
30          point="org.eclipse.ui.menus">
31       <menuContribution
32             allPopups="false"
33             locationURI="toolbar:winterwell.markdown.views.MarkdownPreview">
34          <command
35                commandId="winterwell.markdown.commands.OpenGfmView"
36                icon="icons/github-cat_yellow.png"
37                style="push">
38          </command>
39          <command
40                commandId="winterwell.markdown.commands.Preferences"
41                icon="icons/settings16_yellow.png"
42                style="push">
43          </command>
44       </menuContribution>
45       <menuContribution
46             allPopups="false"
47             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
48          <toolbar
49                id="winterwell.markdown.MarkdownEditor">
50             <command
51                   commandId="winterwell.markdown.commands.OpenMdView"
52                   icon="icons/notepad.gif"
53                   style="push">
54                <visibleWhen
55                      checkEnabled="true">
56                </visibleWhen>
57             </command>
58          </toolbar>
59       </menuContribution>
60    </extension>
61    <extension
62          point="org.eclipse.ui.commands">
63       <command
64             defaultHandler="winterwell.markdown.commands.OpenGfmView"
65             id="winterwell.markdown.commands.OpenGfmView"
66             name="Open GitHub Flavored Markdown View">
67       </command>
68       <command
69             id="winterwell.markdown.commands.OpenMdView"
70             name="Open Markdown View">
71       </command>
72       <command
73             defaultHandler="winterwell.markdown.commands.Preferences"
74             id="winterwell.markdown.commands.Preferences"
75             name="Preferences">
76       </command>
77    </extension>
78    
79    <extension
80          point="org.eclipse.ui.views">
81       <category
82             id="winterwell.markdown"
83             name="Markdown"/>
84       <view
85             category="winterwell.markdown"
86             class="winterwell.markdown.views.MarkdownPreview"
87             icon="icons/notepad.gif"
88             id="winterwell.markdown.views.MarkdownPreview"
89             name="Markdown View"/>
90    </extension>
91    <extension
92          point="org.eclipse.ui.preferencePages">
93       <page
94             class="winterwell.markdown.preferences.MarkdownPreferencePage"
95             id="winterwell.markdown.preferences.MarkdownPreferencePage"
96             name="Markdown"
97             category="org.eclipse.ui.preferencePages.GeneralTextEditor">
98          <keywordReference
99                id="winterwell.markdown.prefsKeywordReference">
100          </keywordReference>
101       </page>
102    </extension>
103    <extension
104          point="org.eclipse.ui.keywords">
105       <keyword
106             id="winterwell.markdown.prefsKeywordReference"
107             label="word wrapping tool tags">
108       </keyword>
109    </extension>
110    <extension
111          point="org.eclipse.ui.commands">
112       <command
113             defaultHandler="winterwell.markdown.editors.FormatAction"
114             description="Format the paragraph under the caret to fit the print margins by inserting/removing line-breaks"
115             id="winterwell.markdown.formatParagraphCommand"
116             name="Format paragraph">
117       </command>
118    </extension>
119    <extension
120          point="org.eclipse.ui.bindings">
121       <key
122             commandId="winterwell.markdown.formatParagraphCommand"
123             contextId="org.eclipse.ui.contexts.window"
124             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
125             sequence="Alt+Q">
126       </key>
127    </extension>
128    <extension
129          point="org.eclipse.ui.actionSets">
130       <actionSet
131             id="winterwell.markdown.actionSet"
132             label="winterwell.markdown.actionSet">
133          <action
134                class="winterwell.markdown.editors.FormatAction"
135                definitionId="winterwell.markdown.formatParagraphCommand"
136                id="winterwell.markdown.formatParagraphAction"
137                label="Format paragraph"
138                menubarPath="edit"
139                style="push">
140          </action>
141       </actionSet>
142    </extension>
143    <extension
144          point="org.eclipse.ui.handlers">
145       <handler
146             class="winterwell.markdown.commands.OpenMdView"
147             commandId="winterwell.markdown.commands.OpenMdView">
148          <activeWhen>
149             <with
150                   variable="activeEditorId">
151                <equals
152                      value="winterwell.markdown.editors.MarkdownEditor">
153                </equals>
154             </with>
155          </activeWhen>
156       </handler>
157    </extension>
158
159 </plugin>