Skip to content

Commit 68ccf78

Browse files
#1904008: [Test]Create function class failed on Mac due to unhandled event loop exception
1 parent 3eb71f0 commit 68ccf78

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/component/AzureComboBox.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import javax.annotation.Nullable;
1919

2020
import org.apache.commons.lang3.StringUtils;
21-
import org.apache.commons.lang3.SystemUtils;
2221
import org.apache.commons.lang3.exception.ExceptionUtils;
2322
import org.eclipse.jface.viewers.ArrayContentProvider;
2423
import org.eclipse.jface.viewers.LabelProvider;
@@ -275,9 +274,6 @@ public void setEnabled(boolean b) {
275274
}
276275

277276
public boolean isEnabled() {
278-
if (SystemUtils.IS_OS_MAC) {
279-
return this.enabled;
280-
}
281277
return this.enabled || this.viewer.isEnabled();
282278
}
283279

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/component/AzureComboBoxViewer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void setEnabled(boolean b) {
8989
}
9090

9191
public boolean isEnabled() {
92-
return super.getControl().isEnabled();
92+
return super.getControl().getEnabled();
9393
}
9494

9595
public void repaint() {

0 commit comments

Comments
 (0)