Package org.rstudio.studio.client.workbench.views.source.model

Examples of org.rstudio.studio.client.workbench.views.source.model.SourcePosition


         // if we got a hit
         if (def != null && def.getName() != null)
         {        
            // try to search for the function locally
            SourcePosition position = searchLocally_ ?
                  docDisplay_.findFunctionPositionFromCursor(def.getName()) :
                  null;
                 
            if (position != null)
            {
View Full Code Here


         @Override
         public void execute(EditingTarget target)
         {
            if (position != null)
            {
               SourcePosition endPosition = null;
               if (isDebugNavigation)
               {
                  DebugFilePosition filePos =
                        (DebugFilePosition) position.cast();
                  endPosition = SourcePosition.create(
View Full Code Here

         moveCursorNearTop();
   }
  
   public void scrollToBottom()
   {
      SourcePosition pos = SourcePosition.create(getCurrentLineCount() - 1, 0);
      navigate(pos, false);
   }
View Full Code Here

         fireRecordNavigationPosition(position);
   }
  
   private void fireRecordNavigationPosition(Position pos)
   {
      SourcePosition srcPos = SourcePosition.create(pos.getRow(),
                                                    pos.getColumn());
      fireEvent(new RecordNavigationPositionEvent(srcPos));
   }
View Full Code Here

                {  
                   // search locally if a function navigator was provided
                   if (navigableSourceEditor_ != null)
                   {
                      // try to search for the function locally
                      SourcePosition position =
                         navigableSourceEditor_.findFunctionPositionFromCursor(
                                                         def.getFunctionName());
                      if (position != null)
                      {
                         navigableSourceEditor_.navigateToPosition(position,
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.workbench.views.source.model.SourcePosition

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.