This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 122199
Collapse All | Expand All

(-)GemPanel.java (-19 / +30 lines)
Lines 55-60 Link Here
55
import javax.swing.JTextField;
55
import javax.swing.JTextField;
56
import javax.swing.JTextPane;
56
import javax.swing.JTextPane;
57
import javax.swing.ListSelectionModel;
57
import javax.swing.ListSelectionModel;
58
import javax.swing.SwingUtilities;
58
import javax.swing.event.ListSelectionEvent;
59
import javax.swing.event.ListSelectionEvent;
59
import javax.swing.event.ListSelectionListener;
60
import javax.swing.event.ListSelectionListener;
60
import org.netbeans.api.options.OptionsDisplayer;
61
import org.netbeans.api.options.OptionsDisplayer;
Lines 379-389 Link Here
379
        if (updatedList.getSelectedIndex() != -1) {
380
        if (updatedList.getSelectedIndex() != -1) {
380
            updateGemDescription(updatedDesc, null);
381
            updateGemDescription(updatedDesc, null);
381
        }
382
        }
382
        updatedProgress.setVisible(true);
383
        SwingUtilities.invokeLater(new Runnable() {
383
        updatedProgressLabel.setVisible(true);
384
            public void run() {
384
        refreshInstalled(false);
385
                updatedProgress.setVisible(true);
385
        refreshNew(false);
386
                updatedProgressLabel.setVisible(true);
386
        refreshGemLists();
387
                refreshInstalled(false);
388
                refreshNew(false);
389
                refreshGemLists();
390
            }
391
        });
387
    }
392
    }
388
    
393
    
389
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
394
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
Lines 898-911 Link Here
898
                    }
903
                    }
899
                    
904
                    
900
                    // Recompute lists
905
                    // Recompute lists
901
                    boolean done = updateGems();
906
                    SwingUtilities.invokeLater(new Runnable() {
902
                    
907
                        public void run() {
903
                    if (!done) {
908
                            if (updateGems()) {
904
                        // Just filter
909
                                // Just filter
905
                        updateList(tab, false);
910
                                updateList(tab, false);
906
                    } else if (tab == INSTALLED_TAB_INDEX) {
911
                            } else if (tab == INSTALLED_TAB_INDEX) {
907
                        updateList(tab, true);
912
                                updateList(tab, true);
908
                    }
913
                            }
914
                        }
915
                    });
909
                }
916
                }
910
            }
917
            }
911
        };
918
        };
Lines 933-945 Link Here
933
                    }
940
                    }
934
                    
941
                    
935
                    // Recompute lists
942
                    // Recompute lists
936
                    updateGems();
943
                    SwingUtilities.invokeLater(new Runnable() {
937
                    updateList(INSTALLED_TAB_INDEX, true);
944
                        public void run() {
945
                            updateGems();
946
                            updateList(INSTALLED_TAB_INDEX, true);
947
                            if (remoteFailure != null && !fetchingLocal) {
948
                                // Update the local list which shouldn't have any errors
949
                                refreshInstalled(true);
950
                            }
951
                        }
952
                    });
938
                    
953
                    
939
                    if (remoteFailure != null && !fetchingLocal) {
940
                        // Update the local list which shouldn't have any errors
941
                        refreshInstalled(true);
942
                    }
943
                }
954
                }
944
            }
955
            }
945
        };
956
        };

Return to bug 122199