Examples of PHPCompletionProcessor


Examples of org.eclipse.php.internal.ui.editor.contentassist.PHPCompletionProcessor

      if (phpCompletionProcessor == null) {
        ContentAssistant phpContentAssistant = (ContentAssistant) getPHPContentAssistant(sourceViewer);
        // phpCompletionProcessor may be initialized in
        // getPHPContentAssistant call
        if (phpCompletionProcessor == null) {
          phpCompletionProcessor = new PHPCompletionProcessor(
              textEditor, phpContentAssistant,
              PHPPartitionTypes.PHP_DEFAULT);
          addContentAssistProcessors(sourceViewer);
        }
      } else {
        ContentAssistant phpContentAssistant = (ContentAssistant) getPHPContentAssistant(sourceViewer);
        // make sure current contentAssistant install dltk's
        // ContentAssistProcessor.CompletionListener,so we can call
        // IContentAssistantExtension3.setRepeatedInvocationTrigger for
        // PHPContentAssistant,so we can press "ctrl+space" to switch
        // between different template categories
        if (phpCompletionProcessor.getAssistant() != phpContentAssistant) {
          phpCompletionProcessor = new PHPCompletionProcessor(
              textEditor, phpContentAssistant,
              PHPPartitionTypes.PHP_DEFAULT);
        }
      }
View Full Code Here

Examples of org.eclipse.php.internal.ui.editor.contentassist.PHPCompletionProcessor

            return processors;
        }
        processors = new ArrayList();
        ITextEditor textEditor = ((PHPStructuredTextViewer) sourceViewer)
                .getTextEditor();
        processors.add(new PHPCompletionProcessor(textEditor,
                (ContentAssistant) getPHPContentAssistant(sourceViewer),
                TwigPartitionTypes.TWIG_DEFAULT));
        String processorsExtensionName = "org.eclipse.php.ui.phpContentAssistProcessor"; //$NON-NLS-1$

        IConfigurationElement[] elements = Platform.getExtensionRegistry()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.