Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IRewriteTarget.endCompoundChange()


                    }
                } catch (final BadLocationException e) {
                    ErlLogger.warn(e);
                }
                if (target != null) {
                    target.endCompoundChange();
                    target.setRedraw(true);
                }
            }
        });
    }
View Full Code Here


    IRewriteTarget target= (IRewriteTarget)editor.getAdapter(IRewriteTarget.class);
    if (target != null)
      target.beginCompoundChange();
    runCompoundChange();
    if (target != null)
      target.endCompoundChange();

  }

  /*
   * @see org.eclipse.ui.texteditor.IUpdate#update()
View Full Code Here

    if (!fEditInProgress || fEditor == null)
      return;

    IRewriteTarget target= (IRewriteTarget)fEditor.getAdapter(IRewriteTarget.class);
    if (target != null) {
      target.endCompoundChange();
    }

    fEditInProgress= false;
  }
View Full Code Here

   
    if (editor != null) {
      IRewriteTarget target= (IRewriteTarget) editor.getAdapter(IRewriteTarget.class);
      if (target != null) {
        fExitStrategy.disarm();
        target.endCompoundChange();
      }
    }

    fDocument= null;
  }
View Full Code Here

    IRewriteTarget target= (IRewriteTarget)editor.getAdapter(IRewriteTarget.class);
    if (target != null)
      target.beginCompoundChange();
    runCompoundChange();
    if (target != null)
      target.endCompoundChange();

  }

  /*
   * @see org.eclipse.ui.texteditor.IUpdate#update()
View Full Code Here

           
            if (fTextDragAndDropToken == null) {
              // Move in same editor - end compound change
              IRewriteTarget target= (IRewriteTarget)getAdapter(IRewriteTarget.class);
              if (target != null)
                target.endCompoundChange();
            }
           
          }
        } finally {
          fTextDragAndDropToken= null;
View Full Code Here

  private void endCompoundChange() {
    if (fHasOpenCompoundChange) {
      ITextViewerExtension extension= (ITextViewerExtension) fCurrentTarget.getViewer();
      IRewriteTarget target= extension.getRewriteTarget();
      target.endCompoundChange();
      fHasOpenCompoundChange= false;
    }
  }

  private void beginCompoundChange() {
View Full Code Here

        fContentAssistant.showContextInformation(null, -1);


    } finally {
      if (target != null)
        target.endCompoundChange();

      if (fViewer instanceof IEditingSupportRegistry) {
        IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer;
        registry.unregister(helper);
      }
View Full Code Here

      fContentAssistant.fireProposalChosen(p);

    } finally {
      if (target != null)
        target.endCompoundChange();

      if (registry != null)
        registry.unregister(fModificationEditingSupport);

      fInserting= false;
View Full Code Here

            if (document instanceof IDocumentExtension4) {
              IDocumentExtension4 extension= (IDocumentExtension4) document;
              extension.stopRewriteSession(rewriteSession);
            } else {
              target.endCompoundChange();
              setRedraw(true);
            }

            restoreSelection();
            if (context != null)
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.