Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IMarkSelection


    if (selection instanceof ITextSelection) {
      ITextSelection ts = (ITextSelection) selection;
      showText(ts.getText());
    }
    if (selection instanceof IMarkSelection) {
      IMarkSelection ms = (IMarkSelection) selection;
      try {
        showText(ms.getDocument().get(ms.getOffset(), ms.getLength()));
      } catch (BadLocationException e) {
        Log.error(e);
      }
    }
  }
View Full Code Here

TOP

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

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.