Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.ITextListener


                    updateAction((String) iterator.next());
                }
            }
        };

        textListener = new ITextListener() {

            public void textChanged(TextEvent event) {
                IUpdate findReplace = (IUpdate) globalActions
                    .get(ActionFactory.FIND.getId());
                if (findReplace != null) {
View Full Code Here


    public void createPartControl(Composite parent)
    {
        super.createPartControl(parent);
        Control[] children = parent.getChildren();
        control = children[children.length - 1];
        getSourceViewer().addTextListener(new ITextListener()
        {
            public void textChanged(TextEvent event)
            {
                if (editor != null)
                {
View Full Code Here

      GridData data= new GridData(GridData.FILL_BOTH);
      data.widthHint= convertWidthInCharsToPixels(80);
      data.heightHint= convertHeightInCharsToPixels(nLines);
      control.setLayoutData(data);

      viewer.addTextListener(new ITextListener() {
        public void textChanged(TextEvent event) {
          if (event .getDocumentEvent() != null)
            doSourceChanged(event.getDocumentEvent().getDocument());
        }
      });
View Full Code Here

              store, (ITextEditor) null);
      viewer.configure(configuration);
      setInformation("");
      compositeQueryRules.layout();

      viewer.addTextListener(new ITextListener() {

        public void textChanged(TextEvent arg0) {
          setRutaQuerySyntaxError(false);
        }
      });
View Full Code Here

    //
    final SourceViewer viewer = createCssViewer(parent, SWT.NONE);
    final StyledText viewerControl = viewer.getTextWidget();
    GridDataFactory.create(viewerControl).grabH().fill();
    viewer.getDocument().set(rule);
    viewer.addTextListener(new ITextListener() {
      public void textChanged(TextEvent event) {
        updateContentSize();
      }
    });
    // setup navigation
View Full Code Here

    super.createPartControl(editorParent);

    _breadcrumb = new TemplateBreadcrumb(this, templateParent, SWT.NONE);
    _breadcrumb.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    getViewer().addTextListener(new ITextListener() {
      public void textChanged(TextEvent event) {
        setCacheOutOfSync(true);
      }
    });
View Full Code Here

      GridData data= new GridData(GridData.FILL_BOTH);
      data.widthHint= convertWidthInCharsToPixels(80);
      data.heightHint= convertHeightInCharsToPixels(nLines);
      control.setLayoutData(data);

      viewer.addTextListener(new ITextListener() {
        public void textChanged(TextEvent event) {
          if (event .getDocumentEvent() != null)
            doSourceChanged(event.getDocumentEvent().getDocument());
        }
      });
View Full Code Here

    commentViewer = new CommitMessageViewer(commentAndDiffComposite,
        getSite(), getPartSite());
    commentViewer.getControl().setLayoutData(
        GridDataFactory.fillDefaults().grab(true, false).create());

    commentViewer.addTextListener(new ITextListener() {
      public void textChanged(TextEvent event) {
        resizeCommentAndDiffScrolledComposite();
      }
    });
View Full Code Here

          }

        });

    if (editable)
      sourceViewer.addTextListener(new ITextListener() {

        public void textChanged(TextEvent event) {
          textWidget.setStyleRanges(
              new StyleRange[0]);
          StyleRange[] styleRanges = UIUtils
View Full Code Here

  }

  @Override
  protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) {
    SourceViewer sourceViewer = new SourceViewer(parent, ruler, styles);
    sourceViewer.addTextListener(new ITextListener() {
      @Override
      public void textChanged(TextEvent event) {
        if(!internalTextChange) {
          DocumentEvent docEvent = event.getDocumentEvent();
          if(docEvent != null)
View Full Code Here

TOP

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

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.