Author: dazarov
Date: 2011-12-12 20:55:56 -0500 (Mon, 12 Dec 2011)
New Revision: 37251
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
Log:
Add @SuppressWarnings quick fix
https://issues.jboss.org/browse/JBIDE-10187
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-13
01:03:28 UTC (rev 37250)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-13
01:55:56 UTC (rev 37251)
@@ -133,7 +133,8 @@
if(projectValue != null){
MessageDialog dialog = new MessageDialog(getShell(), label, null,
- "Do you want to disable 'Unsupported @SuppressWarnings'
error/warning",
+ "This quick fix uses warning names that are not supported by Java Validator
and will cause \"Unsupported @SuppressWarning\" problem message\n\n"+
+ "Do you want to disable 'Unsupported @SuppressWarnings'
validation",
MessageDialog.QUESTION_WITH_CANCEL,
new String[]{"Cancel", "Disable"},
0);
@@ -149,7 +150,8 @@
}
}else{
MessageDialog dialog = new MessageDialog(getShell(), label, null,
- "Do you want to disable 'Unsupported @SuppressWarnings' error/warning
on the Workspace or only on the project
'"+file.getProject().getName()+"'",
+ "This quick fix uses warning names that are not supported by Java Validator
and will cause \"Unsupported @SuppressWarning\" problem message\n\n"+
+ "Do you want to disable 'Unsupported @SuppressWarnings' validation on
the Workspace or only on the project
'"+file.getProject().getName()+"'",
MessageDialog.QUESTION_WITH_CANCEL,
new String[]{"Cancel", "Workspace",
file.getProject().getName()},
0);