Skip to content

Commit 78bc0ee

Browse files
committed
Fix the link a cluster dialog OK button missing issue on Linux
Signed-off-by: Wei Zhang <[email protected]>
1 parent aa73a9f commit 78bc0ee

File tree

1 file changed

+5
-12
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.azureexplorer/src/com/microsoft/azuretools/azureexplorer/forms

1 file changed

+5
-12
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.azureexplorer/src/com/microsoft/azuretools/azureexplorer/forms/AddNewClusterForm.java

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,13 @@ public class AddNewClusterForm extends AzureTitleAreaDialogWrapper implements Se
5050

5151
public AddNewClusterForm(Shell parentShell, HDInsightRootModule module) {
5252
super(parentShell);
53+
// enable help button
54+
setHelpAvailable(true);
55+
5356
this.hdInsightModule = module;
5457
this.ctrlProvider = new AddNewClusterCtrlProvider(this, new EclipseSchedulers(Activator.PLUGIN_ID));
5558
}
5659

57-
@Override
58-
protected void configureShell(Shell newShell) {
59-
super.configureShell(newShell);
60-
newShell.setSize(439, 415);
61-
newShell.setText("Link New HDInsight Cluster");
62-
63-
}
64-
6560
private void refreshContainers() {
6661
ctrlProvider.refreshContainers()
6762
.subscribe();
@@ -71,9 +66,7 @@ private void refreshContainers() {
7166
protected Control createDialogArea(Composite parent) {
7267
setTitle("Link New HDInsight Cluster");
7368
setMessage("Please enter HDInsight Cluster details");
74-
// enable help button
75-
setHelpAvailable(true);
76-
69+
7770
Composite container = new Composite(parent, SWT.NONE);
7871
GridLayout gridLayout = new GridLayout();
7972
gridLayout.numColumns = 2;
@@ -209,7 +202,7 @@ public void focusLost(FocusEvent e) {
209202
}
210203
});
211204

212-
return super.createDialogArea(parent);
205+
return container;
213206
}
214207

215208
@Override

0 commit comments

Comments
 (0)