Skip to content

Commit 660022c

Browse files
committed
Fix setValue does not work in eclipse function creation wizard
1 parent 9206d59 commit 660022c

File tree

1 file changed

+6
-5
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/src/com/microsoft/azure/toolkit/eclipse/function/wizard

1 file changed

+6
-5
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/src/com/microsoft/azure/toolkit/eclipse/function/wizard/ProjectArtifactPage.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void setDefaultValueFirstTime() {
4343
FunctionProjectPage previousPage = (FunctionProjectPage) getWizard().getPreviousPage(this);
4444

4545
if (StringUtils.isBlank(txtArtifact.getValue())) {
46-
this.txtArtifact.setValue(previousPage.getProjectName());
46+
this.txtArtifact.setValue(previousPage.getProjectName(), true);
4747
}
4848
}
4949

@@ -82,10 +82,11 @@ public FunctionArtifactModel getValue() {
8282

8383
@Override
8484
public void setValue(@Nonnull FunctionArtifactModel value) {
85-
this.txtGroupId.setValue(value.getGroupId());
86-
this.txtArtifact.setValue(value.getArtifactId());
87-
this.txtVersion.setValue(value.getVersion());
88-
this.txtPackageName.setValue(value.getPackageName());
85+
// todo: Diff user input and defualt values in SWT input components
86+
this.txtGroupId.setValue(value.getGroupId(), true);
87+
this.txtArtifact.setValue(value.getArtifactId(), true);
88+
this.txtVersion.setValue(value.getVersion(), true);
89+
this.txtPackageName.setValue(value.getPackageName(), true);
8990
}
9091

9192
@Override

0 commit comments

Comments
 (0)