Examples of endCompoundChange()


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

            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

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

                    selectionAfter = new LineRange(selectionBefore.getStartLine() + 1,
                            selectionBefore.getNumberOfLines());
                }
            } finally {
                if (target != null) {
                    target.endCompoundChange();
                    if (!getMoveUp()) {
                        target.setRedraw(true);
                    }
                }
            }
View Full Code Here

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

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

            restoreSelection();
            if (context != null)
View Full Code Here

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

  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

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

      fContentAssistant.fireProposalChosen(p);

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

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

      fInserting= false;
View Full Code Here

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

        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

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

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

      if (change != null) {
        change.dispose();
      }
View Full Code Here

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

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

      }
    } finally {
      fTextDragAndDropToken= null;
View Full Code Here

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

          editor.setHighlightRange(selectioner.getOffset() + openComment.length(), 1, true);
        } else {
          editor.selectAndReveal(selectioner.getOffset(), selectionLength);
        }
        if (target != null)
          target.endCompoundChange();

      }
    } catch (BadLocationException e) {
      e.printStackTrace(System.err);
    }
View Full Code Here

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

      }

      TextSelection selection = new TextSelection(doc, cursorOffset, selectionLength);
      editor.getSelectionProvider().setSelection(selection);
      if (target != null)
        target.endCompoundChange();

      // foldingSetter.restoreSnapshot();
    } catch (Exception blx) {
      blx.printStackTrace();
    }
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.