@@ -295,7 +295,9 @@ private void updateHeatMap(CyNetworkView networkView) {
295
295
296
296
invokeOnEDT (() -> {
297
297
HeatMapContentPanel contentPanel = getContentPanel ();
298
- contentPanel .update (network , map , params , rankOptions , union , inter , clusterRankingOption );
298
+ resetWithoutListeners (() -> {
299
+ contentPanel .update (network , map , params , rankOptions , union , inter , clusterRankingOption );
300
+ });
299
301
300
302
if (propertyManager .getValue (PropertyManager .HEATMAP_AUTOFOCUS ))
301
303
bringToFront ();
@@ -353,6 +355,13 @@ private void updateHeatMapPanel() {
353
355
List <RankingOption > rankOptions = getDataSetRankOptions (map );
354
356
ClusterRankingOption clusterRankingOption = getClusterRankingOption (map );
355
357
358
+ resetWithoutListeners (() -> {
359
+ getContentPanel ().update (network , map , params , rankOptions , getContentPanel ().getUnionGenes (), getContentPanel ().getInterGenes (), clusterRankingOption );
360
+ });
361
+ }
362
+
363
+
364
+ private void resetWithoutListeners (Runnable runnable ) {
356
365
isResetting = true ;
357
366
358
367
getContentPanel ().getOperatorCombo ().removeActionListener (operatorActionListener );
@@ -361,7 +370,7 @@ private void updateHeatMapPanel() {
361
370
getContentPanel ().getShowValuesCheck ().removeActionListener (showValueActionListener );
362
371
363
372
try {
364
- getContentPanel (). update ( network , map , params , rankOptions , getContentPanel (). getUnionGenes (), getContentPanel (). getInterGenes (), clusterRankingOption );
373
+ runnable . run ( );
365
374
} finally {
366
375
getContentPanel ().getOperatorCombo ().addActionListener (operatorActionListener );
367
376
getContentPanel ().getNormCombo ().addActionListener (normActionListener );
0 commit comments