Skip to content

Commit

Permalink
#4 - rename the 'Title' field in the Export dialog to 'Name'
Browse files Browse the repository at this point in the history
  • Loading branch information
tfesenko committed Mar 27, 2016
1 parent 8a756ae commit 1ffef76
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void perform( RestService restService, Object param )
if( name.startsWith("/") || name.toLowerCase().startsWith("http"))
name = restService.getProject().getName() + " - " + name;

dialog.setValue(Form.TITLE, name);
dialog.setValue(Form.NAME, name);
String baseUri = restService.getEndpoints().length != 0 ? restService.getEndpoints()[0] : "";
dialog.setValue(Form.BASEURI, baseUri);
dialog.setValue(Form.FOLDER, settings.getString(TARGET_PATH, ""));
Expand All @@ -54,7 +54,7 @@ public void perform( RestService restService, Object param )
try
{
RepreZenExporter exporter = new RepreZenExporter( restService.getProject() );
String name = dialog.getValue(Form.TITLE);
String name = dialog.getValue(Form.NAME);
if (!RepreZenExporter.hasContent(name)) {
name = "MyZenModel";
}
Expand Down Expand Up @@ -91,8 +91,8 @@ public interface Form
@AField( name = "Target Folder", description = "Where to save the RepreZen / RAPID-ML model", type = AField.AFieldType.FOLDER )
public final static String FOLDER = "Target Folder";

@AField( name = "Title", description = "The API Title", type = AField.AFieldType.STRING )
public final static String TITLE = "Title";
@AField( name = "Name", description = "The API Name", type = AField.AFieldType.STRING )
public final static String NAME = "Name";

@AField( name = "Base URI", description = "The resource model baseUri", type = AField.AFieldType.STRING )
public final static String BASEURI = "Base URI";
Expand Down

0 comments on commit 1ffef76

Please sign in to comment.