74
74
import org .eclipse .swt .widgets .Text ;
75
75
import org .eclipse .ui .PlatformUI ;
76
76
77
+ import io .sloeber .autoBuild .api .IAutoBuildConfigurationDescription ;
77
78
import io .sloeber .autoBuild .api .ICustomBuildOptionEditor ;
78
79
import io .sloeber .autoBuild .core .AutoBuildCommon ;
79
80
import io .sloeber .autoBuild .integrations .ToolListLabelProvider ;
@@ -656,6 +657,7 @@ public void setVisible(boolean visible) {
656
657
super .setVisible (visible );
657
658
}
658
659
660
+ private IAutoBuildConfigurationDescription myLastUsedAutoConfDesc = null ;
659
661
protected void setValues () {
660
662
if (myAutoConfDesc == null ) {
661
663
return ;
@@ -670,16 +672,22 @@ protected void setValues() {
670
672
* - When the user changes the configuration selection
671
673
* - When the user changes the "exclude" setting for a resource
672
674
*/
673
-
675
+ if (myLastUsedAutoConfDesc ==myAutoConfDesc ) {
676
+ return ;
677
+ }
678
+ myLastUsedAutoConfDesc =myAutoConfDesc ;
674
679
// Create the Tree Viewer content provider if first time
675
680
if (listprovider == null ) {
676
681
listprovider = new ToolListContentProvider (mySelectedResource , myAutoConfDesc );
677
682
optionList .setContentProvider (listprovider );
683
+ }else {
684
+ listprovider .SetAutoBuildConfigurationDescription (myAutoConfDesc );
678
685
}
679
686
680
687
optionList .setInput (myAutoConfDesc );
681
688
// newElements = (ToolListElement[]) listprovider.getElements(fInfo);
682
689
optionList .expandAll ();
690
+ handleOptionSelection (false );
683
691
684
692
}
685
693
0 commit comments