Author: dazarov
Date: 2011-10-31 20:20:11 -0400 (Mon, 31 Oct 2011)
New Revision: 36099
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MarkerResolutionUtils.java
Log:
Quickfix and Wizard for fixing ambigious injection warning is confusing
https://issues.jboss.org/browse/JBIDE-9940
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MarkerResolutionUtils.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MarkerResolutionUtils.java 2011-11-01
00:16:15 UTC (rev 36098)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/MarkerResolutionUtils.java 2011-11-01
00:20:11 UTC (rev 36099)
@@ -522,10 +522,10 @@
IFile file = (IFile)injectionPoint.getClassBean().getResource();
TextFileChange fileChange = new TextFileChange(file.getName(), file);
- if(isEditorOpened(file))
- fileChange.setSaveMode(TextFileChange.LEAVE_DIRTY);
- else
- fileChange.setSaveMode(TextFileChange.FORCE_SAVE);
+// if(isEditorOpened(file))
+// fileChange.setSaveMode(TextFileChange.LEAVE_DIRTY);
+// else
+// fileChange.setSaveMode(TextFileChange.FORCE_SAVE);
MultiTextEdit edit = new MultiTextEdit();
try{
@@ -569,10 +569,10 @@
IFile file = (IFile)bean.getBeanClass().getResource();
TextFileChange fileChange = new TextFileChange(file.getName(), file);
- if(isEditorOpened(file))
- fileChange.setSaveMode(TextFileChange.LEAVE_DIRTY);
- else
- fileChange.setSaveMode(TextFileChange.FORCE_SAVE);
+// if(isEditorOpened(file))
+// fileChange.setSaveMode(TextFileChange.LEAVE_DIRTY);
+// else
+// fileChange.setSaveMode(TextFileChange.FORCE_SAVE);
MultiTextEdit edit = new MultiTextEdit();
IJavaElement beanElement = null;