Examples of currentValue()


Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

        
         // NOTE: This can fail if the document is empty
         if (!cursor.moveToPosition(cursorPosition))
            return;
        
         if (cursor.currentValue() == "(" || cursor.findOpeningBracket("(", false))
         {
            if (cursor.moveToPreviousToken())
            {
               // Check to see if this really is the name of a function
               JsArray<ScopeFunction> functionsInScope =
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

            {
               // Check to see if this really is the name of a function
               JsArray<ScopeFunction> functionsInScope =
                     codeModel.getAllFunctionScopes();
              
               String tokenName = cursor.currentValue();
               for (int i = 0; i < functionsInScope.length(); i++)
               {
                  ScopeFunction rFunction = functionsInScope.get(i);
                  String fnName = rFunction.getFunctionName();
                  if (tokenName == fnName)
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

        
         if (cursor.moveToPosition(input_.getCursorPosition()))
         {
            String token = "";
            if (cursor.currentType() == "identifier")
               token = cursor.currentValue();
           
            String cursorPos = "left";
            if (cursor.currentValue() == "=")
               cursorPos = "right";
           
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

            String token = "";
            if (cursor.currentType() == "identifier")
               token = cursor.currentValue();
           
            String cursorPos = "left";
            if (cursor.currentValue() == "=")
               cursorPos = "right";
           
            TokenCursor clone = cursor.cloneCursor();
            if (clone.moveToPreviousToken())
               if (clone.currentValue() == "=")
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

            if (cursor.currentValue() == "=")
               cursorPos = "right";
           
            TokenCursor clone = cursor.cloneCursor();
            if (clone.moveToPreviousToken())
               if (clone.currentValue() == "=")
                  cursorPos = "right";
           
            // Try to get a dplyr join completion
            DplyrJoinContext joinContext =
                  codeModel.getDplyrJoinContextFromInfixChain(cursor);
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

        
      if (!cursor.moveToPosition(input_.getCursorPosition()))
         return false;
     
      // Move back to the '$'
      while (cursor.currentValue() != "$" && cursor.currentValue() != "@")
         if (!cursor.moveToPreviousToken())
            return false;
     
      int type = cursor.currentValue() == "$" ?
            AutocompletionContext.TYPE_DOLLAR :
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

        
      if (!cursor.moveToPosition(input_.getCursorPosition()))
         return false;
     
      // Move back to the '$'
      while (cursor.currentValue() != "$" && cursor.currentValue() != "@")
         if (!cursor.moveToPreviousToken())
            return false;
     
      int type = cursor.currentValue() == "$" ?
            AutocompletionContext.TYPE_DOLLAR :
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

      // Move back to the '$'
      while (cursor.currentValue() != "$" && cursor.currentValue() != "@")
         if (!cursor.moveToPreviousToken())
            return false;
     
      int type = cursor.currentValue() == "$" ?
            AutocompletionContext.TYPE_DOLLAR :
            AutocompletionContext.TYPE_AT;
     
      // Put a cursor here
      TokenCursor contextEndCursor = cursor.cloneCursor();
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

     
      TokenCursor startCursor = tokenCursor.cloneCursor();
      boolean startedOnEquals = tokenCursor.currentValue() == "=";
      if (startCursor.currentType() == "identifier")
         if (startCursor.moveToPreviousToken())
            if (startCursor.currentValue() == "=")
            {
               startedOnEquals = true;
               startCursor.moveToNextToken();
            }
     
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.TokenCursor.currentValue()

      // default case: use start cursor
      Position endPos = startCursor.currentPosition();
      endPos.setColumn(endPos.getColumn() + startCursor.currentValue().length());
     
      // try to look forward for closing paren
      if (endOfDecl.currentValue() == "(")
      {
         TokenCursor closingParenCursor = endOfDecl.cloneCursor();
         if (closingParenCursor.fwdToMatchingToken())
         {
            endPos = closingParenCursor.currentPosition();
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.