Package com.eviware.soapui.support.swing

Examples of com.eviware.soapui.support.swing.RSyntaxAreaPopupMenu$PasteAction


      {
        editArea.requestFocusInWindow();
      }
    } );

    RSyntaxAreaPopupMenu popup = RSyntaxAreaPopupMenu.add( editArea );
    popup.add( new FindAndReplaceDialog( findAndReplaceable ) );
    popup.addSeparator();
    popup.add( new GoToLineAction() );

    toggleLineNumbersMenuItem = new JCheckBoxMenuItem( "Show Line Numbers", scrollPane.getLineNumbersEnabled() );
    toggleLineNumbersMenuItem.setAccelerator( UISupport.getKeyStroke( "alt L" ) );
    toggleLineNumbersMenuItem.addActionListener( new ActionListener()
    {
      public void actionPerformed( ActionEvent e )
      {
        enableLineNumbers( toggleLineNumbersMenuItem.isSelected() );
      }
    } );

    editArea.getInputMap().put( KeyStroke.getKeyStroke( "alt L" ), new AbstractAction()
    {
      public void actionPerformed( ActionEvent e )
      {
        enableLineNumbers( !scrollPane.getLineNumbersEnabled() );
      }
    } );

    popup.add( toggleLineNumbersMenuItem );
    editArea.setPopupMenu( popup );

    enableLineNumbers( settings.getBoolean( UISettings.SHOW_GROOVY_LINE_NUMBERS ) );
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.swing.RSyntaxAreaPopupMenu$PasteAction

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.