Examples of ISelectionListenerWithAST


Examples of org.eclipse.dltk.ui.viewsupport.ISelectionListenerWithAST

        reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
        String[] contentTypes = getConfiguredContentTypes(sourceViewer);
        ITextEditor textEditor = ((PHPStructuredTextViewer) sourceViewer).getTextEditor();


        SelectionListenerWithASTManager.getDefault().addListener(textEditor, new ISelectionListenerWithAST()
        {

            @Override
            public void selectionChanged(IEditorPart part, ITextSelection selection,
                    ISourceModule module, IModuleDeclaration astRoot)
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.viewsupport.ISelectionListenerWithAST

  public WicketFunMarkOccurrenceInstaller(JavaEditor editor) {
    this.editor = editor;
  }

  public void installOccurrencesFinder(boolean forceUpdate) {
    fPostSelectionListenerWithAST = new ISelectionListenerWithAST()
    {
      public void selectionChanged(IEditorPart part, ITextSelection selection, CompilationUnit astRoot)
      {
        if(editor.getViewer() == null)
        {
View Full Code Here

Examples of org.eclipse.php.internal.ui.viewsupport.ISelectionListenerWithAST

  }

  protected void installOccurrencesFinder(boolean forceUpdate) {
    fMarkOccurrenceAnnotations = true;

    fPostSelectionListenerWithAST = new ISelectionListenerWithAST() {
      public void selectionChanged(IEditorPart part,
          ITextSelection selection, Program astRoot) {
        updateOccurrenceAnnotations(selection, astRoot);
      }
    };
View Full Code Here

Examples of org.eclipse.php.internal.ui.viewsupport.ISelectionListenerWithAST

    return PreferenceConstants.getPreferenceStore().getBoolean(
        PreferenceConstants.EDITOR_QUICKASSIST_LIGHTBULB);
  }

  private void installSelectionListener() {
    fListener = new ISelectionListenerWithAST() {
      public void selectionChanged(IEditorPart part,
          ITextSelection selection, Program astRoot) {
        doSelectionChanged(selection.getOffset(),
            selection.getLength(), astRoot);
      }
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.