Package org.owasp.webscarab.util.swing

Examples of org.owasp.webscarab.util.swing.SwingWorker


                if (content == null || content.length == 0) {
                    JOptionPane.showMessageDialog(ComparePanel.this, "Selected conversation has no content", "Error", JOptionPane.ERROR_MESSAGE);
                    return;
                }
                final String dst = new String(content);
                new SwingWorker() {
                    public Object construct() {
                        return Diff.getEdits(_base, dst);
                    }
                    public void finished() {
                        @SuppressWarnings("unchecked")
View Full Code Here


        for (int i=0; i<selection.length; i++) {
            CIDs[i]= (ConversationID) tm.getValueAt(i,0); // UGLY hack! FIXME!!!!           
        }
                      
        checkButton.setText("Stop");
        new SwingWorker() {
            public Object construct() {               
                    _xsscrlf.checkSelected(CIDs);                   
                    return null;
               
            }
View Full Code Here

                if (content == null || content.length == 0) {
                    JOptionPane.showMessageDialog(ComparePanel.this, "Selected conversation has no content", "Error", JOptionPane.ERROR_MESSAGE);
                    return;
                }
                final String dst = new String(content);
                new SwingWorker() {
                    public Object construct() {
                        return Diff.getEdits(_base, dst);
                    }
                    public void finished() {
                        List edits = (List) get();
View Full Code Here

        final HttpUrl[] urls = new HttpUrl[selection.length];
        for (int i=0; i<selection.length; i++) {
            urls[i] = (HttpUrl) selection[i].getLastPathComponent();
        }
        checkButton.setText("Stop");
        new SwingWorker() {
            public Object construct() {
                if (urls.length>1) {
                    _extensions.checkExtensionsFor(urls);
                } else {
                    _extensions.checkExtensionsUnder(urls[0]);
View Full Code Here

        for (int i=0; i<selection.length; i++) {
            CIDs[i]= (ConversationID) tm.getValueAt(i,0); // UGLY hack! FIXME!!!!           
        }
                      
        checkButton.setText("Stop");
        new SwingWorker() {
            public Object construct() {               
                    _xsscrlf.checkSelected(CIDs);                   
                    return null;
               
            }
View Full Code Here

                final File dir = jfc.getSelectedFile();
                if (FileSystemStore.isExistingSession(dir)) {
                    JOptionPane.showMessageDialog(null, new String[] {dir + " already contains a session ", }, "Error", JOptionPane.ERROR_MESSAGE);
                    return;
                } else {
                    new SwingWorker() {
                        public Object construct() {
                            try {
                                closeSession();
                                TempDir.recursiveCopy(_tempDir, dir);
                                TempDir.recursiveDelete(_tempDir);
View Full Code Here

    private void wrapTextCheckBoxMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_wrapTextCheckBoxMenuItemActionPerformed
        Preferences.setPreference("TextPanel.wrap", Boolean.toString(wrapTextCheckBoxMenuItem.isSelected()));
    }//GEN-LAST:event_wrapTextCheckBoxMenuItemActionPerformed
   
    private void loadSession(final File sessionDir) {
        new SwingWorker() {
            public Object construct() {
                try {
                    closeSession();
                    _framework.setSession("FileSystem", sessionDir, "");
                    _framework.startPlugins();
View Full Code Here

            if (request == null) {
                return;
            }
            testButton.setEnabled(false);
            final Component parent = this;
            new SwingWorker() {
                public Object construct() {
                    try {
                        _sa.setRequest(request);
                        _sa.fetchResponse();
                        return _sa.getResponse();
View Full Code Here

   
    private void mainTabbedPaneStateChanged(ChangeEvent evt) {
        int selected = mainTabbedPane.getSelectedIndex();
        if(mainTabbedPane.getTitleAt(selected).equals("Visualisation")) {
            if (_chart == null) { // subject to race condition!
                new SwingWorker() {
                    public Object construct() {
                        return createChart(_sidd);
                    }
                   
                    public void finished() {
View Full Code Here

                final File dir = jfc.getSelectedFile();
                if (FileSystemStore.isExistingSession(dir)) {
                    JOptionPane.showMessageDialog(null, new String[] {dir + " already contains a session ", }, "Error", JOptionPane.ERROR_MESSAGE);
                    return;
                } else {
                    new SwingWorker() {
                        public Object construct() {
                            try {
                                closeSession();
                                TempDir.recursiveCopy(_tempDir, dir);
                                TempDir.recursiveDelete(_tempDir);
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.util.swing.SwingWorker

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.