Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IDocumentListener


        return fDetailSelectionChangedListener;
    }

    protected IDocumentListener getDetailDocumentListener() {
        if (fDetailDocumentListener == null) {
            fDetailDocumentListener = new IDocumentListener() {
                public void documentAboutToBeChanged(DocumentEvent event) {
                }

                public void documentChanged(DocumentEvent event) {
                    updateAction(ITextEditorActionConstants.FIND);
View Full Code Here


    return listeners.contains(listener);
  }

  public void run()
    {
        IDocumentListener changeListener = new IDocumentListener() {
            public void documentAboutToBeChanged(DocumentEvent event) { }
            public void documentChanged(DocumentEvent event)
            {
                synchronized (IdleTimer.this)
                {
View Full Code Here

        consoleInputText.setWordWrap(true);
        consoleInputText.setFocus();

        // end layout

        final IDocumentListener documentListener = new IDocumentListener() {
            @Override
            public void documentAboutToBeChanged(final DocumentEvent event) {
            }

            @Override
View Full Code Here

            // see bug 181914
            document.set(condition == null ? "" : condition); //$NON-NLS-1$
            fViewer.setDocument(document);
            fViewer.setUndoManager(new TextViewerUndoManager(10));
            fViewer.getUndoManager().connect(fViewer);
            fDocumentListener = new IDocumentListener() {
                @Override
                public void documentAboutToBeChanged(final DocumentEvent event) {
                }

                @Override
View Full Code Here

            setPageText( text,
                         "Text Editor" );
            setPageText( rete,
                         "Rete Tree" );

            textEditor.getDocumentProvider().getDocument( getEditorInput() ).addDocumentListener( new IDocumentListener() {

                public void documentAboutToBeChanged(DocumentEvent event) {
                }

                public void documentChanged(DocumentEvent event) {
View Full Code Here

            setPageText(graph, "Graph");
            setPageText(xml, "XML");

            xmlEditor.getDocumentProvider().getDocument(getEditorInput())
                .addDocumentListener(new IDocumentListener() {
                        public void documentAboutToBeChanged(DocumentEvent event) {
                        }
                        public void documentChanged(DocumentEvent event) {
                            editor.setInput(getEditorInput());
                        }
View Full Code Here

    textViewer.setDocument(new Document());
    textViewer.setHyperlinkPresenter(new DefaultHyperlinkPresenter(new RGB(0, 0, 255)));
    textViewer.setHyperlinkDetectors(new IHyperlinkDetector[] { new URLHyperlinkDetector() }, SWT.MOD1);
    textViewer.setUndoManager(new TextViewerUndoManager(100));
    textViewer.setTextDoubleClickStrategy(new DefaultTextDoubleClickStrategy(), IDocument.DEFAULT_CONTENT_TYPE);
    textViewer.getDocument().addDocumentListener(new IDocumentListener() {
      public void documentAboutToBeChanged(DocumentEvent event) {
       
      }
      public void documentChanged(DocumentEvent event) {
        setDirty(true);
View Full Code Here

      }
    };
   
    parser.mateText.viewer.addViewportListener(viewportListener);
   
    documentListener = new IDocumentListener() {
      public void documentAboutToBeChanged(DocumentEvent e) {
        verifyEventCallback(e.fOffset, e.fOffset + e.fLength, e.fText);
      }
     
      public void documentChanged(DocumentEvent e) {
View Full Code Here

         * @see VerifyListener#verifyText(org.eclipse.swt.events.VerifyEvent)
         */
        public void verifyText(VerifyEvent e) {
          IDocument document= getDocumentProvider().getDocument(getEditorInput());
          final boolean[] documentChanged= new boolean[1];
          IDocumentListener listener= new IDocumentListener() {
            public void documentAboutToBeChanged(DocumentEvent event) {
            }
            public void documentChanged(DocumentEvent event) {
              documentChanged[0]= true;
            }
View Full Code Here

    public DelegablePresentation(final Delegable delegable, String name, String variableName, String replacement) {
        super(variableName, replacement);
        this.delegable = delegable;
        this.name = name;
        document.addDocumentListener(new IDocumentListener() {
            public void documentAboutToBeChanged(DocumentEvent de) {
            }
            public void documentChanged(DocumentEvent de) {
                delegable.setDelegationConfiguration(de.getDocument().get());
            }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IDocumentListener

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.