StructuredContentAssistant contentAssistant = (StructuredContentAssistant) configuration
.getPHPContentAssistant(sourceViewer);
IPreferencesService preferencesService = Platform
.getPreferencesService();
contentAssistant
.enableAutoActivation(preferencesService
.getBoolean(
PHPCorePlugin.ID,
PHPCoreConstants.CODEASSIST_AUTOACTIVATION,
false, null));