diff --git a/plugins/org.teiid.designer.datatools.ui/src/org/teiid/designer/datatools/profiles/ws/ParameterPanel.java b/plugins/org.teiid.designer.datatools.ui/src/org/teiid/designer/datatools/profiles/ws/ParameterPanel.java index 78849b6860..4bb4105f0e 100644 --- a/plugins/org.teiid.designer.datatools.ui/src/org/teiid/designer/datatools/profiles/ws/ParameterPanel.java +++ b/plugins/org.teiid.designer.datatools.ui/src/org/teiid/designer/datatools/profiles/ws/ParameterPanel.java @@ -450,7 +450,26 @@ protected void setValue(Object element, Object value) { propertiesViewer.refresh(element); } } + } + + if (wsProfileDetailsWizardPage!=null){ + for( Object key : parameterMap.keySet() ) { + Parameter para = (Parameter)parameterMap.get(key); + wsProfileDetailsWizardPage.getProfileProperties().put(para.getPropertyKey(), para.getPropertyValue()); + } + wsProfileDetailsWizardPage.setParameterMap(parameterMap); + wsProfileDetailsWizardPage.urlPreviewText.setText(wsProfileDetailsWizardPage.updateUrlPreview().toString()); + }else{ + for( Object key : parameterMap.keySet() ) { + Parameter para = (Parameter)parameterMap.get(key); + propertyPage.getExtraProperties().put(para.getPropertyKey(), para.getPropertyValue()); + } + propertyPage.setParameterMap(parameterMap); + propertyPage.urlPreviewText.setText(propertyPage.updateUrlPreview().toString()); + } + + } } @@ -638,6 +657,7 @@ void handleDefaultValueChanged( String newDefaultValue ) { void handleTypeChanged(Object type) { this.type = (String)type; + handleAddProperty(); updateState(); } @@ -704,7 +724,7 @@ public String validateName( String proposedName ) { // make sure only letters for (char c : proposedName.toCharArray()) { if ( ! isValidChar(c)) { - return UTIL.getString("AddParameterDialog_invalidParametersName"); //$NON-NLS-1$ + return UTIL.getString("AddParameterDialog_invalidParameterName"); //$NON-NLS-1$ } } diff --git a/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/rest/TeiidRestImportSourcePage.java b/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/rest/TeiidRestImportSourcePage.java index 9a43d5730e..60ebe2a32f 100644 --- a/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/rest/TeiidRestImportSourcePage.java +++ b/plugins/org.teiid.designer.transformation.ui/src/org/teiid/designer/transformation/ui/wizards/rest/TeiidRestImportSourcePage.java @@ -906,6 +906,7 @@ public static String formatPath(URL newUrl) { if (dotLocation > -1) { filePath = filePath.substring(0, dotLocation); } + if (filePath.equals(EMPTY_STRING)) filePath="response"; //$NON-NLS-1$ return filePath; }