blob: b85649072ab3892c05e50e52b7b7fac66e8ebc1f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
/*******************************************************************************
* Copyright (c) 2010 Sean Muir
* 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:
* Sean Muir (JKM Software) - initial API and implementation
*
* $Id$
*******************************************************************************/
-->
<plugin>
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type base-type="org.eclipse.core.runtime.xml"
describer="org.eclipse.mdht.cda.xml.CDAContentHandler"
file-extensions="xml" id="org.eclipse.mdht.cda" name="Clinical Document Architecture (CDA)"
priority="normal">
</content-type>
</extension>
<extension id="xml" name="CDA Validator"
point="org.eclipse.wst.validation.validatorV2">
<validator build="false" class="org.eclipse.mdht.cda.xml.Validator"
markerId="org.eclipse.mdht.cda.xml.validationMarker" manual="true">
<include>
<rules>
<contentType id="org.eclipse.mdht.cda"></contentType>
<fileext caseSensitive="false" ext="xml" />
</rules>
</include>
</validator>
</extension>
<extension id="org.eclipse.mdht.cda.xml.validationMarker"
name="CDA Validation" point="org.eclipse.core.resources.markers">
<super type="org.eclipse.wst.validation.problemmarker" />
<persistent value="false" />
</extension>
<extension point="org.eclipse.ui.commands">
<command id="org.eclipse.mdht.cda.xml.ui.commands.analyzeCDA"
name="ANALYZECDA" defaultHandler="org.eclipse.mdht.cda.xml.ui.handlers.AnalyzeCDAHandler">
</command>
<command id="org.eclipse.mdht.cda.xml.ui.commands.deidentifyCDA"
name="DEIDENTIFYCDA" defaultHandler="org.eclipse.mdht.cda.xml.ui.handlers.DeidentifyCDAHandler">
</command>
<command id="org.eclipse.mdht.cda.xml.ui.commands.generateCDAData"
name="GENERATECDADATA" defaultHandler="org.eclipse.mdht.cda.xml.ui.handlers.GenerateCDADataHandler">
</command>
<command id="org.eclipse.mdht.cda.xml.ui.commands.openUsingStylesSheet"
name="GENERATECDADATA" defaultHandler="org.eclipse.mdht.cda.xml.ui.handlers.OpenUsingStyleSheet">
</command>
<command id="org.eclipse.mdht.cda.xml.ui.commands.openCDAViewer"
name="GENERATECDADATA" defaultHandler="org.eclipse.mdht.cda.xml.ui.handlers.OpenCDAViewer">
</command>
</extension>
<extension point="org.eclipse.ui.views">
<category name="CDA Analysis" id="cdaanalysis">
</category>
<view name="Entries" icon="icons/analyzer/analysis.ico"
category="cdaanalysis" class="org.eclipse.mdht.cda.xml.ui.views.EntriesView"
id="org.eclipse.mdht.cda.xml.ui.views.entriesview">
</view>
<view name="Narrative" icon="icons/analyzer/analysis.ico"
category="cdaanalysis" class="org.eclipse.mdht.cda.xml.ui.views.NarrativeView"
id="org.eclipse.mdht.cda.xml.ui.views.narrativeview">
</view>
<view name="Issues" icon="icons/analyzer/analysis.ico"
category="cdaanalysis" class="org.eclipse.mdht.cda.xml.ui.views.ValidationsView"
id="org.eclipse.mdht.cda.xml.ui.views.validationsview">
</view>
<view name="Contents" icon="icons/analyzer/analysis.ico"
category="cdaanalysis" class="org.eclipse.mdht.cda.xml.ui.views.RawView"
id="org.eclipse.mdht.cda.xml.ui.views.rawview">
</view>
<view name="Document Metrics Details" icon="icons/analyzer/analysis.ico"
category="cdaanalysis" class="org.eclipse.mdht.cda.xml.ui.views.MetricsView"
id="org.eclipse.mdht.cda.xml.ui.views.metricsview">
</view>
</extension>
<extension point="org.eclipse.ui.editors">
<editor class="org.eclipse.mdht.cda.xml.ui.editors.CDAAnalyzer"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
extensions="xml" icon="icons/analyzer/editor_area.gif"
id="org.eclipse.mdht.cda.xml.ui.editors.CDAAnalyzer" name="CDA Analyzer">
</editor>
<editor class="org.eclipse.mdht.cda.xml.ui.editors.CDAAnalyzer2"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
extensions="xml" icon="icons/analyzer/metharg_obj.gif"
id="org.eclipse.mdht.cda.xml.ui.editors.CDAAnalyzer2" name="CDA Metrics">
</editor>
<editor class="org.eclipse.mdht.cda.xml.ui.editors.CDAXSL"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
extensions="xml" icon="icons/analyzer/internal_browser.gif"
id="org.eclipse.mdht.cda.xml.ui.editors.CDAXSL" name="CDA XSL">
</editor>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu label="CDA Utilities">
<command commandId="org.eclipse.mdht.cda.xml.ui.commands.analyzeCDA"
label="Analyze CDA Document(s)" id="org.eclipse.mdht.cda.xml.ui.menu.analyzeCDA"
mnemonic="A">
<visibleWhen>
<with variable="selection">
<iterate>
<adapt type="org.eclipse.core.resources.IFolder" />
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="org.eclipse.mdht.cda.xml.ui.commands.deidentifyCDA"
label="Deidentify CDA Document(s)" id="org.eclipse.mdht.cda.xml.ui.menu.deidentifyCDA"
mnemonic="D">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false" operator="or">
<or>
<and>
<instanceof value="org.eclipse.core.resources.IFolder" />
</and>
<and>
<instanceof value="org.eclipse.core.resources.IFile" />
</and>
</or>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="org.eclipse.mdht.cda.xml.ui.commands.openUsingStylesSheet"
label="Open CDA Document" id="org.eclipse.mdht.cda.xml.ui.menu.openCDA"
mnemonic="O">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false" operator="or">
<or>
<and>
<instanceof value="org.eclipse.core.resources.IFile" />
</and>
</or>
</iterate>
</with>
</visibleWhen>
</command>
<!-- Need to add the ability to enable just when consol2 is available -->
<command commandId="org.eclipse.mdht.cda.xml.ui.commands.generateCDAData"
label="Generate CDA Analysis Report" id="org.eclipse.mdht.cda.xml.ui.menu.generateCDAData"
mnemonic="G">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false" operator="and">
<and>
<and>
<instanceof value="org.eclipse.core.resources.IFolder" />
</and>
</and>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="org.eclipse.mdht.cda.xml.ui.commands.openCDAViewer"
label="Open CDA Viewer" id="org.eclipse.mdht.cda.xml.ui.menu.openCDAViewer"
mnemonic="O">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false" operator="or">
<or>
<and>
<instanceof value="org.eclipse.core.resources.IResource" />
</and>
</or>
</iterate>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
</plugin>