Author: snjeza
Date: 2009-03-10 17:49:25 -0400 (Tue, 10 Mar 2009)
New Revision: 14159
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/marker/MarkerResolutionGenerator.java
Log:
JBIDE-3979 Seam markers have invalid type
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java
===================================================================
---
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10
20:42:31 UTC (rev 14158)
+++
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamProjectPropertyValidator.java 2009-03-10
21:49:25 UTC (rev 14159)
@@ -43,7 +43,7 @@
public class SeamProjectPropertyValidator implements IValidatorJob {
protected static final String VALIDATING_PROJECT = "VALIDATING_PROJECT";
- protected static final String INVALID_SEAM_RUNTIME = "INVALID_SEAM_RUNTIME";
+ public static final String INVALID_SEAM_RUNTIME = "INVALID_SEAM_RUNTIME";
protected static final String INVALID_WEBFOLDER = "INVALID_WEBFOLDER";
protected static final String INVALID_PARENT_PROJECT =
"INVALID_PARENT_PROJECT";
protected static final String INVALID_EJB_PROJECT = "INVALID_EJB_PROJECT";
Modified: branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-03-10
20:42:31 UTC (rev 14158)
+++ branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-03-10
21:49:25 UTC (rev 14159)
@@ -535,7 +535,7 @@
<extension point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="org.jboss.tools.seam.ui.marker.MarkerResolutionGenerator"
- markerType="org.jboss.tools.seam.core.seamProjectProblem"/>
+ markerType="org.eclipse.wst.validation.problemmarker"/>
</extension>
<!-- Refactorng -->
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/marker/MarkerResolutionGenerator.java
===================================================================
---
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/marker/MarkerResolutionGenerator.java 2009-03-10
20:42:31 UTC (rev 14158)
+++
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/marker/MarkerResolutionGenerator.java 2009-03-10
21:49:25 UTC (rev 14159)
@@ -3,11 +3,23 @@
import org.eclipse.core.resources.IMarker;
import org.eclipse.ui.IMarkerResolution;
import org.eclipse.ui.IMarkerResolutionGenerator2;
+import org.jboss.tools.seam.internal.core.validation.SeamProjectPropertyValidator;
public class MarkerResolutionGenerator implements IMarkerResolutionGenerator2 {
+ /** Copied from org.eclipse.wst.validation.internal.TaskListUtility */
+ private static final String VALIDATION_MARKER_MESSAGEID = "messageId";
//$NON-NLS-1$
+
+
public boolean hasResolutions(IMarker marker) {
- return true;
+ if (marker == null) {
+ return false;
+ }
+ String runtime = marker.getAttribute(VALIDATION_MARKER_MESSAGEID, "");
+ if (SeamProjectPropertyValidator.INVALID_SEAM_RUNTIME.equals(runtime)) {
+ return true;
+ }
+ return false;
}
public IMarkerResolution[] getResolutions(IMarker marker) {
Show replies by date