Skip to content

Commit 238bf9a

Browse files
committed
Hide the Winutil location label for non-windows platforms
Signed-off-by: Wei Zhang <[email protected]>
1 parent 7f2c903 commit 238bf9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/ui/SparkLocalRunConfigurable.form

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</grid>
4343
</constraints>
4444
</vspacer>
45-
<grid id="e909" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
45+
<grid id="e909" binding="myWinutilsLocationPanel" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
4646
<margin top="0" left="0" bottom="0" right="0"/>
4747
<constraints>
4848
<grid row="4" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/ui/SparkLocalRunConfigurable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public class SparkLocalRunConfigurable {
6060
private TextFieldWithBrowseButton myDataRootDirectoryFieldWithBrowseButton;
6161
private JLabel myDataDefaultDirectory;
6262
private JLabel myHadoopUserDefaultDirectoryLabel;
63+
private JPanel myWinutilsLocationPanel;
6364

6465
@Nullable
6566
private JComponent myAnchor;
@@ -105,7 +106,7 @@ protected void textChanged(DocumentEvent documentEvent) {
105106
if (SystemUtils.IS_OS_WINDOWS) {
106107
updateWinUtilsPathTextField(System.getenv(HADOOP_HOME_ENV));
107108
} else {
108-
myWinutilsPathTextFieldWithBrowserButton.setVisible(false);
109+
myWinutilsLocationPanel.setVisible(false);
109110
}
110111
}
111112

0 commit comments

Comments
 (0)