Package org.fife.ui.rsyntaxtextarea

Examples of org.fife.ui.rsyntaxtextarea.RSyntaxTextArea$RSyntaxTextAreaMutableCaretEvent


    // should be performed
    public RSyntaxTextArea  commonEditingActions(String selectedValue, boolean isMainFrame) {
        currentFrame = new JFrame("Editing "+selectedValue);    // keep the current frame handle
        GlobalValues.globalRSyntaxFrame  = currentFrame;  // keep a reference to the JFrame where the rsyntax editor resides
        editedFileName = selectedValue;    // keep the edited filename
        jep = new  RSyntaxTextArea();   // construct a JEditorPane component
       
        jep.setToolTipText("Type here ScalaLab code. Use the corresponding Help menu for help on the available keystrokes");
       
        jep.setFont(new Font(GlobalValues.paneFontName, Font.PLAIN, GlobalValues.paneFontSize));
     
View Full Code Here


            JOptionPane.showMessageDialog(this.currentFrame, "Text not found");
    }
   
     // edit the file with name selectedValue
    public rsyntaxEditor(String selectedValue) {
        RSyntaxTextArea  jep = commonEditingActions(selectedValue, false);
        GlobalValues.globalRSyntaxEditorPane = jep;
        GCompletionProvider.installAutoCompletion();
       
}
View Full Code Here

}
   

         // edit the file with name selectedValue
    public rsyntaxEditor(String selectedValue, boolean initConsoleWindow) {
        RSyntaxTextArea  jep = commonEditingActions(selectedValue, true);
        GlobalValues.globalRSyntaxEditorPane = jep;
        jep.setCaretPosition(0);
        scalaExec.Interpreter.GlobalValues.editorPane.requestFocus();
        GCompletionProvider.installAutoCompletion();
       
    }
View Full Code Here

                    @Override
                    public void actionPerformed(ActionEvent e) {
                 
     CUDAOps.KernelOps   km = new CUDAOps.KernelOps();
     String  cudaInfo = km.getCUDADeviceInfo();
     org.fife.ui.rsyntaxtextarea.RSyntaxTextArea     cudaArea = new  RSyntaxTextArea();  
     cudaArea.setText(cudaInfo);
    
     cudaArea.setToolTipText("CUDA Configuration information");
       
        cudaArea.setFont(new Font(GlobalValues.paneFontName, Font.PLAIN, GlobalValues.paneFontSize));
     
        cudaArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_SCALA);
        cudaArea.setCodeFoldingEnabled(true);
       
     RTextScrollPane  cudaScrPane = new RTextScrollPane(cudaArea);
    
     JFrame cudaHelpFrame = new JFrame("CUDA Configuration Information");
     cudaHelpFrame.add(cudaScrPane);
View Full Code Here

   
// RSyntaxDocument doc = new RSyntaxDocument(new RenjinTokenMakerFactory(), RenjinTokenMakerFactory.SYNTAX_STYLE_R);
   
    RSyntaxDocument doc = new RSyntaxDocument(TokenMakerFactory.getDefaultInstance(), "text/plain");
   
    textArea = new RSyntaxTextArea(doc, null, 20, 60);
    textArea.setCodeFoldingEnabled(true);
    textArea.setAntiAliasingEnabled(true);
    textArea.setText("f<-function() { \n\t42\n}");
    textArea.addKeyListener(new KeyAdapter() {
View Full Code Here

    syntaxModel.add((SyntaxConstants.SYNTAX_STYLE_SQL), UtilMessages.getInstance().getString("RSyntaxAreaLanguages.SQL"));
    syntaxModel.add((SyntaxConstants.SYNTAX_STYLE_XML), UtilMessages.getInstance().getString("RSyntaxAreaLanguages.XML"));
    syntaxModel.add((SyntaxConstants.SYNTAX_STYLE_PYTHON), UtilMessages.getInstance().getString("RSyntaxAreaLanguages.Python"));
    syntaxModel.add((SyntaxConstants.SYNTAX_STYLE_TCL), UtilMessages.getInstance().getString("RSyntaxAreaLanguages.TCL"));

    textArea = new RSyntaxTextArea();
    textArea.setBracketMatchingEnabled(true);
    textArea.setSyntaxEditingStyle(RSyntaxTextArea.SYNTAX_STYLE_JAVA);
    textArea.setColumns(60);
    textArea.setRows(20);
View Full Code Here

  public ScriptingExpressionEditor()
  {
    statusText = new JLabel();

    textArea = new RSyntaxTextArea();
    textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);

    final JPanel queryContentHolder = new JPanel(new BorderLayout());
    queryContentHolder.add(BorderLayout.NORTH,
        new JLabel(EditorExpressionsMessages.getString("ScriptingExpressionEditor.Script")));
View Full Code Here

    return "ReportDesigner.Core.TextAreaPropertyEditor";
  }

  protected JTextArea createTextArea()
  {
    final RSyntaxTextArea textArea = new RSyntaxTextArea();
    textArea.setBracketMatchingEnabled(true);
    textArea.setSyntaxEditingStyle(RSyntaxTextArea.SYNTAX_STYLE_JAVA);
    textArea.setColumns(60);
    textArea.setRows(20);
    textArea.getDocument().addDocumentListener(new DocumentUpdateHandler());
    return textArea;
  }
View Full Code Here

    public void actionPerformed(final ActionEvent e)
    {
      final Object o = syntaxModel.getSelectedKey();
      if (o instanceof String)
      {
        final RSyntaxTextArea textArea = (RSyntaxTextArea) getTextArea();
        textArea.setSyntaxEditingStyle((String) o);
      }
    }
View Full Code Here

    queryNameTextField = new JTextField(null, 0);
    queryNameTextField.setColumns(35);
    queryNameTextField.getDocument().addDocumentListener(new QueryNameTextFieldDocumentListener());

    queryTextArea = new RSyntaxTextArea();
    queryTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);
    queryTextArea.getDocument().addDocumentListener(new QueryDocumentListener());

    initScriptTextArea = new RSyntaxTextArea();
    initScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);

    shutdownScriptTextArea = new RSyntaxTextArea();
    shutdownScriptTextArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);

    languageField = new JList(new DefaultComboBoxModel(InternalBSFManager.getRegisteredLanguages()));
    languageField.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    languageField.getSelectionModel().addListSelectionListener(new UpdateLanguageHandler());
View Full Code Here

TOP

Related Classes of org.fife.ui.rsyntaxtextarea.RSyntaxTextArea$RSyntaxTextAreaMutableCaretEvent

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.