Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IMarkRegionTarget


    ITextEditor editor= getTextEditor();
    if (editor == null)
      return;

    IMarkRegionTarget target= (IMarkRegionTarget) editor.getAdapter(IMarkRegionTarget.class);
    if (target == null)
      return;

    switch (fType) {
    case SET_MARK:
      target.setMarkAtCursor(true);
      break;

    case CLEAR_MARK:
      target.setMarkAtCursor(false);
      break;

    case SWAP_MARK:
      target.swapMarkAndCursor();
      break;
    }
  }
View Full Code Here

TOP

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

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.