Package org.rstudio.studio.client.workbench.views.console.shell.editor

Examples of org.rstudio.studio.client.workbench.views.console.shell.editor.InputEditorPosition


                                                true);
                                               
     
      if (sel != null)
      {
         InputEditorPosition titlePos = sel.getStart().moveToPreviousLine();
         String title = docDisplay_.getLine(
                           docDisplay_.selectionToPosition(titlePos).getRow());
         title = title.trim();
         if (title.length() > 0 && SLIDE_PATTERN.match(title, 0) == null)
            return title;
View Full Code Here


                                          null,    // from selection
                                          null,    // range (search all)
                                          true);   // regexp mode
            if (doc != null)
            { 
               InputEditorPosition pos = doc.getEnd().moveToNextLine();
               docDisplay_.insertCode(pos, "\\SweaveOpts{concordance=TRUE}\n");
            }
         }
      }
   }
View Full Code Here

            position = Position.create(position.getRow() + 1, 0);
         }
      }

      InputEditorPosition pos = new AceInputEditorPosition(session_, position);
      return boundary == null ? pos :
             (upwards && pos.compareTo(boundary) >= 0) ? pos :
             (!upwards && pos.compareTo(boundary) <= 0) ? pos :
             null;
   }
View Full Code Here

   {
      setPopupPositionAndShow(new PositionCallback()
      {
         public void setPosition(int offsetWidth, int offsetHeight)
         {
            InputEditorPosition position =
               docDisplay_.createInputEditorPosition(
                                    completionPosition_.getPosition())
            Rectangle bounds = docDisplay_.getPositionBounds(position);
           
            int windowBottom = Window.getScrollTop() +
View Full Code Here

                     cursorColumn > 0 &&
                     isAcceptableCharSequence)
               {
                  // manually remove the previous character
                  InputEditorSelection selection = input_.getSelection();
                  InputEditorPosition start = selection.getStart().movePosition(-1, true);
                  InputEditorPosition end = selection.getStart();

                  if (currentLine.charAt(cursorColumn) == ')' && currentLine.charAt(cursorColumn - 1) == '(')
                     end = selection.getStart().movePosition(1, true);

                  input_.setSelection(new InputEditorSelection(start, end));
View Full Code Here

                               final String extractedCode = indentation
                                                            + input.trim()
                                                            + " <- "
                                                            + code
                                                            + "\n";
                               InputEditorPosition insertPosition = docDisplay_
                                       .getSelection()
                                       .extendToLineStart()
                                       .getStart();
                               docDisplay_.replaceSelection(
                                       input.trim());
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.workbench.views.console.shell.editor.InputEditorPosition

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.