Revision: 6540
http://pmd.svn.sourceforge.net/pmd/?rev=6540&view=rev
Author: xlv
Date: 2008-09-30 00:59:06 +0000 (Tue, 30 Sep 2008)
Log Message:
-----------
package name refactoring: extension point mappings were incorrect
Modified Paths:
--------------
trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/plugin.xml
trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDBuilder.java
trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDNature.java
Modified: trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/plugin.xml
===================================================================
--- trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/plugin.xml 2008-09-29 20:53:20 UTC (rev 6539)
+++ trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/plugin.xml 2008-09-30 00:59:06 UTC (rev 6540)
@@ -32,7 +32,7 @@
name="%marker.task"
point="org.eclipse.core.resources.markers">
<super
- type="net.sourceforge.pmd.eclipse.runtime.pmdMarker">
+ type="net.sourceforge.pmd.eclipse.plugin.pmdMarker">
</super>
<super
type="org.eclipse.core.resources.taskmarker">
@@ -71,7 +71,7 @@
</run>
</runtime>
<builder
- id="net.sourceforge.pmd.eclipse.runtime.pmdBuilder">
+ id="net.sourceforge.pmd.eclipse.plugin.pmdBuilder">
</builder>
<requires-nature
id="org.eclipse.jdt.core.javanature">
@@ -104,7 +104,7 @@
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
- markerType="net.sourceforge.pmd.eclipse.runtime.pmdMarker"
+ markerType="net.sourceforge.pmd.eclipse.plugin.pmdMarker"
class="net.sourceforge.pmd.eclipse.ui.quickfix.PMDResolutionGenerator">
</markerResolutionGenerator>
</extension>
Modified: trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDBuilder.java
===================================================================
--- trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDBuilder.java 2008-09-29 20:53:20 UTC (rev 6539)
+++ trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDBuilder.java 2008-09-30 00:59:06 UTC (rev 6540)
@@ -60,7 +60,7 @@
*/
public class PMDBuilder extends IncrementalProjectBuilder {
public static final Logger log = Logger.getLogger(PMDBuilder.class);
- public static final String PMD_BUILDER = "net.sourceforge.pmd.eclipse.runtime.pmdBuilder";
+ public static final String PMD_BUILDER = "net.sourceforge.pmd.eclipse.plugin.pmdBuilder";
/**
* @see org.eclipse.core.resources.IncrementalProjectBuilder#build(int, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
Modified: trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDNature.java
===================================================================
--- trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDNature.java 2008-09-29 20:53:20 UTC (rev 6539)
+++ trunk/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/builder/PMDNature.java 2008-09-30 00:59:06 UTC (rev 6540)
@@ -13,10 +13,10 @@
/**
* A project nature for PMD. Add a PMDBuilder to a project
- *
+ *
* @author Philippe Herlin
* @version $Revision$
- *
+ *
* $Log$
* Revision 1.2 2006/10/06 18:42:59 phherlin
* Fix 1554639 Clear markers in Project JAVA-files and other bugs related to dataflows
@@ -35,7 +35,7 @@
*
*/
public class PMDNature implements IProjectNature {
- public static final String PMD_NATURE = "net.sourceforge.pmd.eclipse.runtime.pmdNature";
+ public static final String PMD_NATURE = "net.sourceforge.pmd.eclipse.plugin.pmdNature";
private IProject project;
/**
@@ -90,14 +90,14 @@
/**
* Add the PMD Nature to a project
* @param project a project to set the PMD Nature
- * @param monitor a progess monitor
+ * @param monitor a progress monitor
* @return success true if the nature has been correctly set; false means
* the project already had PMD nature.
* @throws CoreException if any error occurs
*/
public static boolean addPMDNature(final IProject project, final IProgressMonitor monitor) throws CoreException {
boolean success = false;
-
+
if (!project.hasNature(PMD_NATURE)) {
final IProjectDescription description = project.getDescription();
final String[] natureIds = description.getNatureIds();
@@ -108,10 +108,10 @@
project.setDescription(description, monitor);
success = true;
}
-
+
return success;
}
-
+
/**
* Remove the PMD Nature from a project
* @param project a project to remove the PMD Nature
@@ -122,7 +122,7 @@
*/
public static boolean removePMDNature(final IProject project, final IProgressMonitor monitor) throws CoreException {
boolean success = false;
-
+
if (project.hasNature(PMD_NATURE)) {
final IProjectDescription description = project.getDescription();
final String[] natureIds = description.getNatureIds();
@@ -137,12 +137,12 @@
project.deleteMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE);
project.deleteMarkers(PMDRuntimeConstants.PMD_DFA_MARKER, true, IResource.DEPTH_INFINITE);
}
-
+
return success;
}
/**
- * Check if PMD builder is allready in command list
+ * Check if PMD builder is already in command list
* @param commands a command list
*/
private boolean pmdBuilderFound(ICommand[] commands) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|