blob: 9ea54c4ef479e26bfddc1801b420ee3be9b40a1f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2011 Obeo.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Obeo - initial API and implementation
-->
<plugin>
<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"/>
<!-- EXTENSIONS OF THE PROJECT EXPLORER -->
<extension
point="org.eclipse.ui.navigator.viewer">
<viewer
helpContext="org.eclipse.ui.navigator.ProjectExplorer.help"
inheritBindingsFromViewer="org.eclipse.ui.navigator.ProjectExplorer"
viewerId="org.eclipse.ui.navigator.ProjectExplorer">
</viewer>
<viewerContentBinding
viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<contentExtension
isRoot="false"
pattern="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent">
</contentExtension>
</includes>
</viewerContentBinding>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<navigatorContent
activeByDefault="true"
contentProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryContentProvider"
icon="icon/ide/workspaceicon.gif"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent"
labelProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryLabelProvider"
name="Repository Content"
priority="highest"
providesSaveables="false">
<triggerPoints>
<or>
<adapt type="org.eclipse.core.resources.IProject">
<and>
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
</test>
</and>
</adapt>
</or>
</triggerPoints>
<possibleChildren>
<or>
<instanceof
value="org.eclipse.mylyn.docs.intent.core.indexer.IntentIndex">
</instanceof>
<instanceof
value="org.eclipse.mylyn.docs.intent.core.indexer.IntentIndexEntry">
</instanceof>
</or>
</possibleChildren>
<actionProvider
class="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryActionProvider">
</actionProvider>
</navigatorContent>
</extension>
<extension
id="intentBuilder"
name="Intent Project Builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="true">
<run
class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentBuilder">
</run>
</builder>
</extension>
<extension
id="intentNature"
name="Intent Project Nature"
point="org.eclipse.core.resources.natures">
<runtime>
<run
class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentNature">
</run>
</runtime>
<builder
id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentBuilder">
</builder>
</extension>
<extension
id="xmlProblem"
name="XML Problem"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<persistent
value="true">
</persistent>
</extension>
<extension
point="org.eclipse.ui.ide.projectNatureImages">
<image
icon="icon/ide/nature.gif"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNatureImage"
natureId="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
</image>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="org.eclipse.mylyn.docs.intent.client.ui.ide"
name="Intent">
</category>
<wizard
category="org.eclipse.mylyn.docs.intent.client.ui.ide"
class="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
icon="icon/ide/toggle_nature.gif"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
name="Intent project"
project="true">
</wizard>
</extension>
<extension
point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
<IntentDocumentTemplate
description="A simple Intent document."
name="Default template"
template="templates/default.intent">
</IntentDocumentTemplate>
</extension>
<extension
point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
<IntentDocumentTemplate
description="This templates helps initializing a documentation of a standard software."
name="Standard Software Template"
template="templates/software.intent">
</IntentDocumentTemplate>
</extension>
<extension
point="org.eclipse.mylyn.docs.intent.collab.repository.extension">
<Repository
id="org.eclipse.mylyn.docs.intent.collab.ide.repository"
repositoryCreatorClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryCreator"
repositoryStructurerClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryStructurer">
</Repository>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icon/ide/toggle_nature.gif"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.menu"
label="Intent">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
<command
commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
icon="icon/ide/toggle_nature.gif"
label="Add Intent Nature"
style="push"
tooltip="Toggle the Intent Nature on the selected project">
<visibleWhen
checkEnabled="false">
<iterate>
<adapt
type="org.eclipse.core.resources.IProject">
<and>
<not>
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
</test>
</not>
<test
property="org.eclipse.core.resources.open"
value="true">
</test>
</and>
</adapt>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
icon="icon/ide/toggle_nature.gif"
label="Remove Intent Nature"
style="push"
tooltip="Toggle the Intent Nature on the selected project">
<visibleWhen
checkEnabled="false">
<iterate>
<adapt
type="org.eclipse.core.resources.IProject">
<and>
<test
property="org.eclipse.core.resources.open"
value="true">
</test>
<test
property="org.eclipse.core.resources.projectNature"
value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
</test>
</and>
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.ui.category.file"
defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
name="Add Intent Nature">
</command>
<command
categoryId="org.eclipse.ui.category.file"
defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
id="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
name="Remove Intent Nature">
</command>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsAssociatedToIntentDocumentTester"
id="org.eclipse.mylyn.docs.intent.IntentPropertyTester"
namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
properties="isIntentDocument"
type="java.lang.Object">
</propertyTester>
</extension>
</plugin>