Examples of DocumentEvent


Examples of ag.ion.bion.officelayer.internal.event.DocumentEvent

   */
  public void fireDocumentEvent(String documentEventName) {
    if (documentListenerList == null)
      return;

    IDocumentEvent documentEvent = new DocumentEvent(new EventObject(getXComponent(),
        documentEventName));

    for (int i = 0, n = documentListenerList.size(); i < n; i++) {
      Object object = documentListenerList.get(i);
      if (object instanceof IDocumentListener) {
View Full Code Here

Examples of com.intellij.openapi.editor.event.DocumentEvent

      public void run() {
        final SelectionModel selectionModel = editor.getSelectionModel();
        if (selectionModel.hasBlockSelection()) {
          RangeMarker guard = selectionModel.getBlockSelectionGuard();
          if (guard != null) {
            DocumentEvent evt = new MockDocumentEvent(editor.getDocument(), editor.getCaretModel().getOffset());
            ReadOnlyFragmentModificationException e = new ReadOnlyFragmentModificationException(evt, guard);
            EditorActionManager.getInstance().getReadonlyFragmentModificationHandler().handle(e);
            return;
          }
        }
View Full Code Here

Examples of com.qspin.qtaste.tools.converter.model.event.DocumentEvent

class PythonDocumentEventFactory extends PythonEventFactory {

  @Override
  public String createPythonEvent(Event pEvent, long pPreviousTimestamp) {
    DocumentEvent evt = (DocumentEvent) pEvent;
    StringBuilder builder = new StringBuilder();

    String command = "javaguiMI.setText(" + getComponentIdentifier(evt.getComponentName()) + ", \"";
    if (!evt.getChange().contains(LINE_BREAK)) {
       command += evt.getChange();
    } else {
      command += evt.getChange().replace(LINE_BREAK, "\\n");
    }
    command += "\")";
    insertSleep(pEvent, pPreviousTimestamp, builder);
    builder.append(getPythonIndentation(1) + command + LINE_BREAK);
    return builder.toString();
View Full Code Here

Examples of javax.swing.event.DocumentEvent

        assertEquals(6, part.getStartOffset());
        assertEquals(13, part.getEndOffset());
        doc.insertString(5, "^^^", null);
        assertEquals(9, part.getStartOffset());
        assertEquals(16, part.getEndOffset());
        DocumentEvent event = createEvent(5, 3, EventType.INSERT);
        part.insertUpdate(event, null, null);
        assertEquals(9, part.getStartOffset());
        assertEquals(16, part.getEndOffset());
    }
View Full Code Here

Examples of nextapp.echo2.app.event.DocumentEvent

     * @param text The new text.
     *
     * @see nextapp.echo2.app.text.Document#setText(String)
     */
    public void setText(String text) {
        DocumentEvent e = new DocumentEvent(this);
        this.text = text;
        fireDocumentUpdate(e);
    }
View Full Code Here

Examples of org.apache.lenya.cms.observation.DocumentEvent

    public void eventFired(RepositoryEvent event) {
        if (!(event instanceof DocumentEvent)) {
            return;
        }
        DocumentEvent docEvent = (DocumentEvent) event;
        if (!(docEvent.getDescriptor() instanceof WorkflowEventDescriptor)) {
            return;
        }

        WorkflowEventDescriptor descriptor = (WorkflowEventDescriptor) docEvent.getDescriptor();
        Version version = descriptor.getVersion();
    }
View Full Code Here

Examples of org.eclipse.jface.text.DocumentEvent

            if (fProgressMonitor != null && fThread.isActive()) {
                fProgressMonitor.setCanceled(true);
            }

            if (fIsIncrementalReconciler) {
                final DocumentEvent e = new DocumentEvent(fDocument, 0,
                        fDocument.getLength(), fDocument.get());
                createDirtyRegion(e);
            }

            startReconciling();
View Full Code Here

Examples of org.eclipse.jface.text.DocumentEvent

  /**
   * Notifies listener about a document change.
   */
  public void fireDocumentChanged() {
    DocumentEvent ev = new DocumentEvent();
    ev.fDocument = this;
    fireDocumentChanged(ev);
  }
View Full Code Here

Examples of org.eclipse.jface.text.DocumentEvent

  /**
   * Notifies listener about a document change.
   */
  private void fireDocumentChanged() {
    DocumentEvent ev = new DocumentEvent();
    ev.fDocument = this;
    fireDocumentChanged(ev);
  }
View Full Code Here

Examples of org.eclipse.jface.text.DocumentEvent

        }

        // re-inject events accumulated in the meantime.
        try {
          do {
            DocumentEvent event;
            synchronized (DocumentLineDiffer.this) {
              if (isCanceled(monitor))
                return Status.CANCEL_STATUS;

              if (fStoredEvents.isEmpty()) {
                // we are back in sync with the life documents
                fInitializationJob= null;
                fState= SYNCHRONIZED;
                fLastDifference= null;

                // replace the private documents with the actual
                leftEquivalent.setDocument(left);
                rightEquivalent.setDocument(right);

                break;
              }

              event= (DocumentEvent) fStoredEvents.remove(0);
            }
           
            // access documents non synchronized:
            IDocument copy= null;
            if (event.fDocument == right)
              copy= actual;
            else if (event.fDocument == left)
              copy= reference;
            else
              Assert.isTrue(false);
           
            // copy the event to inject it into our diff copies
            // don't modify the original event! See https://bugs.eclipse.org/bugs/show_bug.cgi?id=134227
            event= new DocumentEvent(copy, event.fOffset, event.fLength, event.fText);
            handleAboutToBeChanged(event);
           
            // inject the event into our private copy
            actual.replace(event.fOffset, event.fLength, event.fText);
           
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.