New Autoactivation for PHP ("$") and PHPDoc ("@") added
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPUnitEditor.java
index 8c567f9..01a0a96 100644 (file)
@@ -6,6 +6,7 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 
+import net.sourceforge.phpdt.internal.ui.text.ContentAssistPreference;
 import net.sourceforge.phpdt.internal.ui.text.PHPPairMatcher;
 import net.sourceforge.phpdt.internal.ui.text.link.LinkedPositionManager;
 import net.sourceforge.phpdt.internal.ui.text.link.LinkedPositionUI;
@@ -30,6 +31,7 @@ import org.eclipse.jface.text.ITextSelection;
 import org.eclipse.jface.text.ITextViewerExtension;
 import org.eclipse.jface.text.ITypedRegion;
 import org.eclipse.jface.text.IWidgetTokenKeeper;
+import org.eclipse.jface.text.contentassist.ContentAssistant;
 import org.eclipse.jface.text.contentassist.IContentAssistant;
 import org.eclipse.jface.text.source.IAnnotationModel;
 import org.eclipse.jface.text.source.ISourceViewer;
@@ -1311,9 +1313,9 @@ public class PHPUnitEditor extends PHPEditor {
           }
         }
 
-//        IContentAssistant c= asv.getContentAssistant();
-//        if (c instanceof ContentAssistant)
-//          ContentAssistPreference.changeConfiguration((ContentAssistant) c, getPreferenceStore(), event);
+        IContentAssistant c= asv.getContentAssistant();
+        if (c instanceof ContentAssistant)
+          ContentAssistPreference.changeConfiguration((ContentAssistant) c, getPreferenceStore(), event);
       }
                                
     } finally {