forked from phoedos/pmd
295 lines
11 KiB
XML
295 lines
11 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<?eclipse version="3.0"?>
|
||
|
<plugin>
|
||
|
<extension
|
||
|
id="pmdPreferencePages"
|
||
|
name="PMDPreferencePages"
|
||
|
point="org.eclipse.ui.preferencePages">
|
||
|
<page
|
||
|
name="%preferences.pmd"
|
||
|
class="net.sourceforge.pmd.ui.preferences.GeneralPreferencesPage"
|
||
|
id="net.sourceforge.pmd.ui.preferences.generalPreferencesPage">
|
||
|
</page>
|
||
|
<page
|
||
|
name="%preferences.rulesets"
|
||
|
category="net.sourceforge.pmd.ui.preferences.generalPreferencesPage"
|
||
|
class="net.sourceforge.pmd.ui.preferences.PMDPreferencePage"
|
||
|
id="net.sourceforge.pmd.ui.preferences.pmdPreferencePage">
|
||
|
</page>
|
||
|
<page
|
||
|
name="%preferences.cpd"
|
||
|
category="net.sourceforge.pmd.ui.preferences.generalPreferencesPage"
|
||
|
class="net.sourceforge.pmd.ui.preferences.CPDPreferencePage"
|
||
|
id="net.sourceforge.pmd.ui.preferences.cpdPreferencePage">
|
||
|
</page>
|
||
|
</extension>
|
||
|
|
||
|
<extension
|
||
|
point="org.eclipse.ui.ide.markerResolution">
|
||
|
<markerResolutionGenerator
|
||
|
markerType="net.sourceforge.pmd.runtime.pmdMarker"
|
||
|
class="net.sourceforge.pmd.ui.quickfix.PMDResolutionGenerator">
|
||
|
</markerResolutionGenerator>
|
||
|
</extension>
|
||
|
|
||
|
<extension
|
||
|
id="pmdPropertyPage"
|
||
|
name="PMD Property Page"
|
||
|
point="org.eclipse.ui.propertyPages">
|
||
|
<page
|
||
|
objectClass="org.eclipse.core.resources.IProject"
|
||
|
adaptable="true"
|
||
|
name="%properties.pmd"
|
||
|
nameFilter="*"
|
||
|
class="net.sourceforge.pmd.ui.properties.PMDPropertyPage"
|
||
|
id="net.sourceforge.pmd.ui.properties.pmdPropertyPage">
|
||
|
</page>
|
||
|
</extension>
|
||
|
|
||
|
<extension
|
||
|
id="pmdPopupMenus"
|
||
|
name="PMD Popup Menus"
|
||
|
point="org.eclipse.ui.popupMenus">
|
||
|
<objectContribution
|
||
|
objectClass="org.eclipse.core.resources.IProject"
|
||
|
adaptable="true"
|
||
|
nameFilter="*"
|
||
|
id="net.sourceforge.pmd.ui.pmdProjectContribution">
|
||
|
<menu
|
||
|
label="%menu.pmd"
|
||
|
path="additions"
|
||
|
id="pmd.menu">
|
||
|
<separator
|
||
|
name="group">
|
||
|
</separator>
|
||
|
</menu>
|
||
|
<action
|
||
|
label="%action.checkpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDCheckAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdCheckProjectAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveMarkersAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.checkcpd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.CPDCheckProjectAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="1"
|
||
|
id="net.sourceforge.pmd.ui.cpdCheckProjectAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearreviews"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.ClearReviewsAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdClearReviewsAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.generatereport"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.GenerateReportAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="1"
|
||
|
id="net.sourceforge.pmd.ui.generateReportAction">
|
||
|
</action>
|
||
|
</objectContribution>
|
||
|
<objectContribution
|
||
|
objectClass="org.eclipse.core.resources.IFolder"
|
||
|
adaptable="true"
|
||
|
nameFilter="*"
|
||
|
id="net.sourceforge.pmd.ui.pmdFolderContribution">
|
||
|
<menu
|
||
|
label="%menu.pmd"
|
||
|
path="additions"
|
||
|
id="pmd.menu">
|
||
|
<separator
|
||
|
name="group">
|
||
|
</separator>
|
||
|
</menu>
|
||
|
<action
|
||
|
label="%action.checkpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDCheckAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdCheckProjectAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveMarkersAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearreviews"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.ClearReviewsAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdClearReviewsAction">
|
||
|
</action>
|
||
|
</objectContribution>
|
||
|
<objectContribution
|
||
|
objectClass="org.eclipse.core.resources.IFile"
|
||
|
adaptable="true"
|
||
|
nameFilter="*.java"
|
||
|
id="net.sourceforge.pmd.ui.pmdFileContribution">
|
||
|
<menu
|
||
|
label="%menu.pmd"
|
||
|
path="additions"
|
||
|
id="pmd.menu">
|
||
|
<separator
|
||
|
name="group">
|
||
|
</separator>
|
||
|
</menu>
|
||
|
<action
|
||
|
label="%action.checkpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDCheckAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdCheckFileAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveMarkersAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.ast"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDGenerateASTAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdGenerateAstAction">
|
||
|
</action>
|
||
|
<action
|
||
|
label="%action.clearreviews"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.ClearReviewsAction"
|
||
|
menubarPath="pmd.menu/group"
|
||
|
enablesFor="+"
|
||
|
id="net.sourceforge.pmd.ui.pmdClearReviewsAction">
|
||
|
</action>
|
||
|
</objectContribution>
|
||
|
<viewerContribution
|
||
|
id="net.sourceforge.pmd.ui.pmdTaskListContribution"
|
||
|
targetID="org.eclipse.ui.views.TaskList">
|
||
|
<action
|
||
|
label="%action.clearall"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="additions"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveAllMarkersAction">
|
||
|
</action>
|
||
|
</viewerContribution>
|
||
|
<viewerContribution
|
||
|
id="net.sourceforge.pmd.ui.pmdVioaltionViewContribution"
|
||
|
targetID="net.sourceforge.pmd.ui.views.ViolationView">
|
||
|
<action
|
||
|
label="%action.clearall"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="additions"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveAllMarkersAction">
|
||
|
</action>
|
||
|
</viewerContribution>
|
||
|
<viewerContribution
|
||
|
id="net.sourceforge.pmd.ui.pmdOverviewContribution"
|
||
|
targetID="net.sourceforge.pmd.ui.views.violationOverview">
|
||
|
<action
|
||
|
label="%action.clearpmd"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.PMDRemoveMarkersAction"
|
||
|
menubarPath="additions"
|
||
|
id="net.sourceforge.pmd.ui.pmdRemoveMarkersAction">
|
||
|
</action>
|
||
|
</viewerContribution>
|
||
|
<viewerContribution
|
||
|
id="net.sourceforge.pmd.ui.pmdOutlineContribution"
|
||
|
targetID="net.sourceforge.pmd.ui.views.violationOutline">
|
||
|
<action
|
||
|
label="%action.clearreviews"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.ClearReviewsAction"
|
||
|
menubarPath="additions"
|
||
|
id="net.sourceforge.pmd.ui.pmdClearReviewsAction"/>
|
||
|
</viewerContribution>
|
||
|
<objectContribution
|
||
|
adaptable="true"
|
||
|
objectClass="org.eclipse.jdt.core.IMethod"
|
||
|
nameFilter="*"
|
||
|
id="net.sourceforge.pmd.ui.pmdMethodContribution">
|
||
|
<action
|
||
|
label="%action.showdataflow"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.actions.ShowDataflowAction"
|
||
|
menubarPath="additions"
|
||
|
id="net.sourceforge.pmd.ui.pmdShowDataflowAction"/>
|
||
|
</objectContribution>
|
||
|
</extension>
|
||
|
|
||
|
<extension
|
||
|
id="pmdViews"
|
||
|
point="org.eclipse.ui.views">
|
||
|
<category
|
||
|
name="%view.category"
|
||
|
id="net.sourceforge.pmd.ui.views">
|
||
|
</category>
|
||
|
<view
|
||
|
allowMultiple="false"
|
||
|
name="%view.violation"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
category="net.sourceforge.pmd.ui.views"
|
||
|
class="net.sourceforge.pmd.ui.views.legacy.ViolationView"
|
||
|
id="net.sourceforge.pmd.ui.views.legacy.ViolationView"/>
|
||
|
<view
|
||
|
allowMultiple="false"
|
||
|
icon="icons/icon_outline.gif"
|
||
|
class="net.sourceforge.pmd.ui.views.ViolationOutline"
|
||
|
category="net.sourceforge.pmd.ui.views"
|
||
|
name="%view.outline"
|
||
|
id="net.sourceforge.pmd.ui.views.violationOutline"/>
|
||
|
<view
|
||
|
allowMultiple="false"
|
||
|
icon="icons/icon_overview.gif"
|
||
|
class="net.sourceforge.pmd.ui.views.ViolationOverview"
|
||
|
category="net.sourceforge.pmd.ui.views"
|
||
|
name="%view.overview"
|
||
|
id="net.sourceforge.pmd.ui.views.violationOverview"/>
|
||
|
<view
|
||
|
allowMultiple="false"
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.views.DataflowView"
|
||
|
category="net.sourceforge.pmd.ui.views"
|
||
|
name="%view.dataflowview"
|
||
|
id="net.sourceforge.pmd.ui.views.dataflowView"/>
|
||
|
</extension>
|
||
|
|
||
|
<extension
|
||
|
point="org.eclipse.ui.perspectives">
|
||
|
<perspective
|
||
|
icon="icons/pmd-icon-16.gif"
|
||
|
class="net.sourceforge.pmd.ui.views.PMDPerspective"
|
||
|
name="%view.perspective"
|
||
|
id="net.sourceforge.pmd.ui.views.pmdPerspective"/>
|
||
|
</extension>
|
||
|
|
||
|
</plugin>
|