Package org.eclipse.wst.sse.ui

Examples of org.eclipse.wst.sse.ui.StructuredTextInvocationContext


    final IEvaluationContext context = (IEvaluationContext) event.getApplicationContext();
   
    final PHPStructuredEditor editor = (PHPStructuredEditor) context.getVariable(ISources.ACTIVE_PART_NAME);
    final ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection();
   
    final StructuredTextInvocationContext assistInvocation = new StructuredTextInvocationContext(editor.getViewer(), selection.getOffset(), selection.getLength(), new HashMap());
   
    final ICompletionProposal[] proposals = phpCorrectionProcessor.computeQuickAssistProposals(assistInvocation);
   
    if (proposals == null || proposals.length == 0) {
      return null;
View Full Code Here


          Map attributes = null;
          if (anno instanceof TemporaryAnnotation) {
            attributes = ((TemporaryAnnotation) anno).getAttributes();
          }
          Position pos = model.getPosition(anno);
          StructuredTextInvocationContext sseContext = new StructuredTextInvocationContext(viewer, pos.getOffset(), pos.getLength(), attributes);

          // call each processor
          for (int i = 0; i < processors.size(); ++i) {
            List proposals = new ArrayList();
            collectProposals((IQuickAssistProcessor) processors.get(i), anno, sseContext, proposals);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.StructuredTextInvocationContext

Copyright © 2018 www.massapicom. 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.