Author: dazarov
Date: 2011-11-07 14:17:36 -0500 (Mon, 07 Nov 2011)
New Revision: 36205
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/xpl/AddQualifiersToBeanComposite.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/wizard/xpl/AddQualifiersToBeanComposite.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/xpl/AddQualifiersToBeanComposite.java 2011-11-07
19:17:04 UTC (rev 36204)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/xpl/AddQualifiersToBeanComposite.java 2011-11-07
19:17:36 UTC (rev 36205)
@@ -18,11 +18,8 @@
import java.util.HashSet;
import java.util.Iterator;
-import org.eclipse.core.internal.resources.Workspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.IJobChangeListener;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.jdt.core.Flags;
@@ -74,7 +71,6 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.SearchPattern;
import org.jboss.tools.cdi.core.CDIConstants;
-import org.jboss.tools.cdi.core.CDICoreMessages;
import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.core.CDIImages;
import org.jboss.tools.cdi.core.IBean;
@@ -449,14 +445,7 @@
PlatformUI.getWorkbench().getProgressService().busyCursorWhile(new
IRunnableWithProgress(){
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
-// Job autoBuildJob = null;
-// Job[] jobs = Job.getJobManager().find(ResourcesPlugin.FAMILY_AUTO_BUILD);
-// for(Job j : jobs){
-// autoBuildJob = j;
-// }
-// if(autoBuildJob != null && autoBuildJob.getState() == Job.RUNNING){
- Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
-// }
+ Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
}
});
}catch(InterruptedException ie){