Package org.zaproxy.zap.view

Examples of org.zaproxy.zap.view.NodeSelectDialog


    JButton selectButton = new JButton(Constant.messages.getString("all.button.select"));
    selectButton.setIcon(new ImageIcon(View.class.getResource("/resource/icon/16/094.png"))); // Globe icon
    selectButton.addActionListener(new java.awt.event.ActionListener() {
      @Override
      public void actionPerformed(java.awt.event.ActionEvent e) {
        NodeSelectDialog nsd = new NodeSelectDialog(View.getSingleton().getMainFrame());
        SiteNode node = null;
        try {
          node = Model.getSingleton().getSession().getSiteTree().findNode(new URI(getUrlField().getText(), false));
        } catch (Exception e2) {
          // Ignore
        }
        node = nsd.showDialog(node);
        if (node != null && node.getHistoryReference() != null) {
          try {
            getUrlField().setText(node.getHistoryReference().getURI().toString());
          } catch (Exception e1) {
            // Ignore
View Full Code Here

TOP

Related Classes of org.zaproxy.zap.view.NodeSelectDialog

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.