alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <?eclipse version="3.4"?>
|
| 3 |
|
| 4 | <!--
|
| 5 | Copyright (c) 2011 Obeo.
|
| 6 | All rights reserved. This program and the accompanying materials
|
| 7 | are made available under the terms of the Eclipse Public License v1.0
|
| 8 | which accompanies this distribution, and is available at
|
| 9 | http://www.eclipse.org/legal/epl-v10.html
|
| 10 |
|
| 11 | Contributors:
|
| 12 | Obeo - initial API and implementation
|
| 13 | -->
|
| 14 |
|
| 15 | <plugin>
|
| 16 | <extension-point id="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension" name="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension" schema="schema/org.eclipse.mylyn.docs.intent.client.ui.ide.template.exsd"/>
|
| 17 |
|
| 18 | <!-- EXTENSIONS OF THE PROJECT EXPLORER -->
|
| 19 | <extension
|
| 20 | point="org.eclipse.ui.navigator.viewer">
|
| 21 | <viewer
|
| 22 | helpContext="org.eclipse.ui.navigator.ProjectExplorer.help"
|
| 23 | inheritBindingsFromViewer="org.eclipse.ui.navigator.ProjectExplorer"
|
| 24 | viewerId="org.eclipse.ui.navigator.ProjectExplorer">
|
| 25 | </viewer>
|
| 26 | <viewerContentBinding
|
| 27 | viewerId="org.eclipse.ui.navigator.ProjectExplorer">
|
| 28 | <includes>
|
| 29 | <contentExtension
|
| 30 | isRoot="false"
|
| 31 | pattern="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent">
|
| 32 | </contentExtension>
|
| 33 | </includes>
|
| 34 | </viewerContentBinding>
|
| 35 |
|
| 36 | </extension>
|
| 37 | <extension
|
| 38 | point="org.eclipse.ui.navigator.navigatorContent">
|
| 39 | <navigatorContent
|
| 40 | activeByDefault="true"
|
| 41 | contentProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryContentProvider"
|
| 42 | icon="icon/ide/workspaceicon.gif"
|
| 43 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent"
|
| 44 | labelProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryLabelProvider"
|
| 45 | name="Repository Content"
|
| 46 | priority="highest"
|
| 47 | providesSaveables="false">
|
| 48 | <triggerPoints>
|
| 49 | <or>
|
| 50 | <adapt type="org.eclipse.core.resources.IProject">
|
| 51 | <and>
|
| 52 | <test
|
| 53 | property="org.eclipse.core.resources.projectNature"
|
| 54 | value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
|
| 55 | </test>
|
| 56 | </and>
|
| 57 | </adapt>
|
| 58 | </or>
|
| 59 | </triggerPoints>
|
| 60 | <possibleChildren>
|
| 61 | <or>
|
| 62 | <instanceof
|
| 63 | value="org.eclipse.mylyn.docs.intent.core.indexer.IntentIndex">
|
| 64 | </instanceof>
|
| 65 | <instanceof
|
| 66 | value="org.eclipse.mylyn.docs.intent.core.indexer.IntentIndexEntry">
|
| 67 | </instanceof>
|
| 68 | </or>
|
| 69 | </possibleChildren>
|
| 70 | <actionProvider
|
| 71 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryActionProvider">
|
| 72 | </actionProvider>
|
| 73 | </navigatorContent>
|
| 74 | </extension>
|
| 75 | <extension
|
| 76 | id="intentBuilder"
|
| 77 | name="Intent Project Builder"
|
| 78 | point="org.eclipse.core.resources.builders">
|
| 79 | <builder
|
| 80 | hasNature="true">
|
| 81 | <run
|
| 82 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentBuilder">
|
| 83 | </run>
|
| 84 | </builder>
|
| 85 | </extension>
|
| 86 | <extension
|
| 87 | id="intentNature"
|
| 88 | name="Intent Project Nature"
|
| 89 | point="org.eclipse.core.resources.natures">
|
| 90 | <runtime>
|
| 91 | <run
|
| 92 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentNature">
|
| 93 | </run>
|
| 94 | </runtime>
|
| 95 | <builder
|
| 96 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentBuilder">
|
| 97 | </builder>
|
| 98 | </extension>
|
| 99 | <extension
|
| 100 | id="xmlProblem"
|
| 101 | name="XML Problem"
|
| 102 | point="org.eclipse.core.resources.markers">
|
| 103 | <super
|
| 104 | type="org.eclipse.core.resources.problemmarker">
|
| 105 | </super>
|
| 106 | <persistent
|
| 107 | value="true">
|
| 108 | </persistent>
|
| 109 | </extension>
|
| 110 | <extension
|
| 111 | point="org.eclipse.ui.ide.projectNatureImages">
|
| 112 | <image
|
| 113 | icon="icon/ide/nature.gif"
|
| 114 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNatureImage"
|
| 115 | natureId="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
|
| 116 | </image>
|
| 117 | </extension>
|
| 118 | <extension
|
| 119 | point="org.eclipse.ui.newWizards">
|
| 120 | <category
|
| 121 | id="org.eclipse.mylyn.docs.intent.client.ui.ide"
|
| 122 | name="Intent">
|
| 123 | </category>
|
| 124 | <wizard
|
| 125 | category="org.eclipse.mylyn.docs.intent.client.ui.ide"
|
| 126 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
|
| 127 | icon="icon/ide/toggle_nature.gif"
|
| 128 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
|
| 129 | name="Intent project"
|
| 130 | project="true">
|
| 131 | </wizard>
|
| 132 | </extension>
|
| 133 | <extension
|
| 134 | point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
|
| 135 | <IntentDocumentTemplate
|
| 136 | description="A simple Intent document."
|
| 137 | name="Default template"
|
| 138 | template="templates/default.intent">
|
| 139 | </IntentDocumentTemplate>
|
| 140 | </extension>
|
| 141 | <extension
|
| 142 | point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
|
| 143 | <IntentDocumentTemplate
|
| 144 | description="This templates helps initializing a documentation of a standard software."
|
| 145 | name="Standard Software Template"
|
| 146 | template="templates/software.intent">
|
| 147 | </IntentDocumentTemplate>
|
| 148 | </extension>
|
| 149 | <extension
|
| 150 | point="org.eclipse.mylyn.docs.intent.collab.repository.extension">
|
| 151 | <Repository
|
| 152 | id="org.eclipse.mylyn.docs.intent.collab.ide.repository"
|
| 153 | repositoryCreatorClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryCreator"
|
| 154 | repositoryStructurerClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryStructurer">
|
| 155 | </Repository>
|
| 156 | </extension>
|
| 157 | <extension
|
| 158 | point="org.eclipse.ui.menus">
|
| 159 | <menuContribution
|
| 160 | allPopups="false"
|
| 161 | locationURI="popup:org.eclipse.ui.popup.any?after=additions">
|
| 162 | <menu
|
| 163 | icon="icon/ide/toggle_nature.gif"
|
| 164 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.menu"
|
| 165 | label="Intent">
|
| 166 | <visibleWhen
|
alagarde | 0ab684e | 2012-05-29 14:44:35 +0200 | [diff] [blame] | 167 | checkEnabled="false">
|
| 168 | <test
|
| 169 | forcePluginActivation="true"
|
| 170 | property="org.eclipse.mylyn.docs.intent.client.ui.ide.isIntentDocument"
|
| 171 | value="true">
|
| 172 | </test>
|
alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 173 | </visibleWhen>
|
| 174 | </menu>
|
| 175 | </menuContribution>
|
| 176 | <menuContribution
|
| 177 | allPopups="false"
|
| 178 | locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
|
| 179 | <command
|
| 180 | commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
|
| 181 | icon="icon/ide/toggle_nature.gif"
|
| 182 | label="Add Intent Nature"
|
| 183 | style="push"
|
| 184 | tooltip="Toggle the Intent Nature on the selected project">
|
| 185 | <visibleWhen
|
| 186 | checkEnabled="false">
|
| 187 | <iterate>
|
| 188 | <adapt
|
| 189 | type="org.eclipse.core.resources.IProject">
|
| 190 | <and>
|
| 191 | <not>
|
| 192 | <test
|
| 193 | property="org.eclipse.core.resources.projectNature"
|
| 194 | value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
|
| 195 | </test>
|
| 196 | </not>
|
| 197 | <test
|
| 198 | property="org.eclipse.core.resources.open"
|
| 199 | value="true">
|
| 200 | </test>
|
| 201 | </and>
|
| 202 | </adapt>
|
| 203 | </iterate>
|
| 204 | </visibleWhen>
|
| 205 | </command>
|
| 206 | <command
|
| 207 | commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
|
| 208 | icon="icon/ide/toggle_nature.gif"
|
| 209 | label="Remove Intent Nature"
|
| 210 | style="push"
|
| 211 | tooltip="Toggle the Intent Nature on the selected project">
|
| 212 | <visibleWhen
|
| 213 | checkEnabled="false">
|
| 214 | <iterate>
|
| 215 | <adapt
|
| 216 | type="org.eclipse.core.resources.IProject">
|
| 217 | <and>
|
| 218 | <test
|
| 219 | property="org.eclipse.core.resources.open"
|
| 220 | value="true">
|
| 221 | </test>
|
| 222 | <test
|
| 223 | property="org.eclipse.core.resources.projectNature"
|
| 224 | value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
|
| 225 | </test>
|
| 226 | </and>
|
| 227 | </adapt>
|
| 228 | </iterate>
|
| 229 | </visibleWhen>
|
| 230 | </command>
|
| 231 | </menuContribution>
|
alagarde | d5b1870 | 2012-03-02 10:11:18 +0100 | [diff] [blame] | 232 | <menuContribution
|
| 233 | allPopups="false"
|
| 234 | locationURI="popup:org.eclipse.ui.views.ProblemView">
|
| 235 | <menu
|
| 236 | icon="icon/ide/toggle_nature.gif"
|
| 237 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview"
|
| 238 | label="Intent">
|
| 239 | <command
|
| 240 | commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview.show_editor"
|
| 241 | label="Show in Intent Editor"
|
| 242 | style="push">
|
| 243 | <visibleWhen
|
| 244 | checkEnabled="false">
|
| 245 | <iterate
|
| 246 | operator="and">
|
| 247 | <test
|
| 248 | forcePluginActivation="true"
|
| 249 | property="org.eclipse.mylyn.docs.intent.client.ui.ide.isIntentProblemMarker">
|
| 250 | </test>
|
| 251 | </iterate>
|
| 252 | </visibleWhen>
|
| 253 | </command>
|
| 254 | </menu>
|
| 255 | </menuContribution>
|
alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 256 | </extension>
|
| 257 | <extension
|
| 258 | point="org.eclipse.ui.commands">
|
| 259 | <command
|
| 260 | categoryId="org.eclipse.ui.category.file"
|
| 261 | defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
|
| 262 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
|
| 263 | name="Add Intent Nature">
|
| 264 | </command>
|
| 265 | <command
|
| 266 | categoryId="org.eclipse.ui.category.file"
|
| 267 | defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
|
| 268 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
|
| 269 | name="Remove Intent Nature">
|
| 270 | </command>
|
alagarde | d5b1870 | 2012-03-02 10:11:18 +0100 | [diff] [blame] | 271 | <command
|
| 272 | category="org.eclipse.ui.views.problems"
|
alagarde | 90918db | 2012-05-15 11:59:39 +0200 | [diff] [blame] | 273 | categoryId="org.eclipse.ui.category.views"
|
alagarde | d5b1870 | 2012-03-02 10:11:18 +0100 | [diff] [blame] | 274 | defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.ShowProblemInEditorHandler"
|
| 275 | id="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview.show_editor"
|
| 276 | name="Show in Intent Editor">
|
| 277 | </command>
|
alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 278 | </extension>
|
| 279 | <extension
|
| 280 | point="org.eclipse.core.expressions.propertyTesters">
|
| 281 | <propertyTester
|
| 282 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsAssociatedToIntentDocumentTester"
|
| 283 | id="org.eclipse.mylyn.docs.intent.IntentPropertyTester"
|
| 284 | namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
|
| 285 | properties="isIntentDocument"
|
| 286 | type="java.lang.Object">
|
| 287 | </propertyTester>
|
alagarde | d5b1870 | 2012-03-02 10:11:18 +0100 | [diff] [blame] | 288 | <propertyTester
|
| 289 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsIntentProblemMarker"
|
| 290 | id="org.eclipse.mylyn.docs.intent.IntentProblemViewPropertyTester"
|
| 291 | namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
|
| 292 | properties="isIntentProblemMarker"
|
| 293 | type="java.lang.Object">
|
| 294 | </propertyTester>
|
alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 295 | </extension>
|
Alex Lagarde | 0759418 | 2012-07-06 15:46:49 +0200 | [diff] [blame] | 296 | <extension
|
| 297 | point="org.eclipse.mylyn.docs.intent.collab.common.repositorymanagercontribution">
|
| 298 | <repositorymanagercontribution
|
| 299 | class="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentProjectBasedRepositoryManagerContribution">
|
| 300 | </repositorymanagercontribution>
|
| 301 | </extension>
|
alagarde | c8dd416 | 2012-02-24 13:10:53 +0100 | [diff] [blame] | 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 | </plugin>
|