Package at.bestsolution.efxclipse.text.jface

Examples of at.bestsolution.efxclipse.text.jface.ITextViewerExtension


  public boolean prependVerifyKeyListener(EventHandler<VerifyEvent> verifyKeyListener) {
    /*if (contentAssistSubjectControl != null) {
      return contentAssistSubjectControl.prependVerifyKeyListener(verifyKeyListener);
    } else */
    if (viewer instanceof ITextViewerExtension) {
      ITextViewerExtension e= (ITextViewerExtension) viewer;
      e.prependVerifyKeyListener(verifyKeyListener);
      return true;
    } else {
      StyledTextArea textWidget= viewer.getTextWidget();
//      if (Helper.okToUse(textWidget)) {
        textWidget.addEventHandler(VerifyEvent.VERIFY, verifyKeyListener);
View Full Code Here


  public boolean appendVerifyKeyListener(EventHandler<VerifyEvent> verifyKeyListener) {
    /*if (contentAssistSubjectControl != null)
      return contentAssistSubjectControl.appendVerifyKeyListener(verifyKeyListener);
    else */
    if (viewer instanceof ITextViewerExtension) {
      ITextViewerExtension extension= (ITextViewerExtension)viewer;
      extension.appendVerifyKeyListener(verifyKeyListener);
      return true;
    } else {
      StyledTextArea textWidget= viewer.getTextWidget();
//      if (Helper.okToUse(textWidget)) {
        textWidget.addEventHandler(VerifyEvent.VERIFY,verifyKeyListener);
View Full Code Here

  public void removeVerifyKeyListener(EventHandler<VerifyEvent> verifyKeyListener) {
//    if (fContentAssistSubjectControl != null) {
//      fContentAssistSubjectControl.removeVerifyKeyListener(verifyKeyListener);
//    } else
    if (viewer instanceof ITextViewerExtension) {
      ITextViewerExtension extension= (ITextViewerExtension) viewer;
      extension.removeVerifyKeyListener(verifyKeyListener);
    } else {
      StyledTextArea textWidget= viewer.getTextWidget();
//      if (Helper.okToUse(textWidget))
        textWidget.removeEventHandler(VerifyEvent.VERIFY, verifyKeyListener);
    }
View Full Code Here

    try {

      IDocument document= contentAssistSubjectControlAdapter.getDocument();

      if (viewer instanceof ITextViewerExtension) {
        ITextViewerExtension extension= (ITextViewerExtension) viewer;
        target= extension.getRewriteTarget();
      }

      if (target != null)
        target.beginCompoundChange();
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.text.jface.ITextViewerExtension

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.