Examples of AnchoredSelection


Examples of org.rstudio.studio.client.workbench.views.source.editors.text.DocDisplay.AnchoredSelection

   {
      // save the selection and scroll position for restoration
      int scrollPosition = docDisplay_.getScrollTop();
      Position start = docDisplay_.getSelectionStart();
      Position end = docDisplay_.getSelectionEnd();
      AnchoredSelection anchoredSelection =
                           docDisplay_.createAnchoredSelection(start,end);
     
      // execute the command
      command.execute();
     
      // restore the selection and scroll position
      anchoredSelection.apply();
      docDisplay_.scrollToY(scrollPosition);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.