Package com.eviware.soapui.support.actions

Examples of com.eviware.soapui.support.actions.FindAndReplaceDialog


    }

    editArea.getInputMap().put( KeyStroke.getKeyStroke( "F3" ), "find-action" );
    editArea.getInputMap().put( KeyStroke.getKeyStroke( "ctrl F" ), "find-action" );
    RSyntaxTextAreaFindAndReplaceable findAndReplaceable = new RSyntaxTextAreaFindAndReplaceable();
    editArea.getActionMap().put( "find-action", new FindAndReplaceDialog( findAndReplaceable ) );

    groovyDocumentListener = new GroovyDocumentListener();
    editArea.getDocument().addDocumentListener( groovyDocumentListener );

    settingsListener = new InternalSettingsListener();
    settings.addSettingsListener( settingsListener );

    // scrollPane = new RTextScrollPane( 500, 300, editArea, true );
    scrollPane = new RTextScrollPane( editArea, true );
    scrollPane.setPreferredSize( new Dimension( 500, 300 ) );
    add( scrollPane );

    UISupport.addPreviewCorner( scrollPane, true );

    addFocusListener( new FocusAdapter()
    {
      public void focusGained( FocusEvent e )
      {
        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" ) );
View Full Code Here


  }

  protected void findAndReplace()
  {
    if( findAndReplaceAction == null )
      findAndReplaceAction = new FindAndReplaceDialog( this );

    findAndReplaceAction.show();
  }
View Full Code Here

    undoAction = new UndoAction();
    getInputHandler().addKeyBinding( "C+Z", undoAction );
    redoAction = new RedoAction();
    getInputHandler().addKeyBinding( "C+Y", redoAction );
    findAndReplaceAction = new FindAndReplaceDialog( this );
    getInputHandler().addKeyBinding( "C+F", findAndReplaceAction );
    getInputHandler().addKeyBinding( "F3", findAndReplaceAction );
    getInputHandler().addKeyBinding( "A+RIGHT", new NextElementValueAction() );
    getInputHandler().addKeyBinding( "A+LEFT", new PreviousElementValueAction() );
    getInputHandler().addKeyBinding( "C+D", new DeleteLineAction() );
View Full Code Here

        init();
    }

    protected void findAndReplace() {
        if (findAndReplaceAction == null) {
            findAndReplaceAction = new FindAndReplaceDialog(this);
        }

        findAndReplaceAction.show();
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.actions.FindAndReplaceDialog

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.