minor fix
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@130670 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7e21e3407b
commit
4431c2c729
|
@ -595,7 +595,6 @@ public class CreateDatasetForm extends Composite{
|
||||||
String errorMsg = validateDataOnContinue();
|
String errorMsg = validateDataOnContinue();
|
||||||
|
|
||||||
if(errorMsg == null){
|
if(errorMsg == null){
|
||||||
|
|
||||||
// check what to do
|
// check what to do
|
||||||
if(isWorkspaceRequest){
|
if(isWorkspaceRequest){
|
||||||
if(!addResourcesCheckBox.getValue()){
|
if(!addResourcesCheckBox.getValue()){
|
||||||
|
@ -609,22 +608,25 @@ public class CreateDatasetForm extends Composite{
|
||||||
if(workspaceResourcesContainer.getWidget() == null)
|
if(workspaceResourcesContainer.getWidget() == null)
|
||||||
workspaceResourcesContainer.add(resourcesTable);
|
workspaceResourcesContainer.add(resourcesTable);
|
||||||
|
|
||||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
// resources will be added automatically and we can show the page of the profiles
|
// resources will be added automatically and we can show the page of the profiles
|
||||||
formFirstStep.setVisible(false);
|
formFirstStep.setVisible(false);
|
||||||
formThirdStep.setVisible(true);
|
formThirdStep.setVisible(true);
|
||||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
// this is not a workspace request
|
// this is not a workspace request
|
||||||
formFirstStep.setVisible(false);
|
formFirstStep.setVisible(false);
|
||||||
formThirdStep.setVisible(true);
|
formThirdStep.setVisible(true);
|
||||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(metadataProfilesFormatListbox.getSelectedItemText().equals("none"))
|
||||||
|
selectedProfile.setText("");
|
||||||
|
else
|
||||||
|
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alertOnContinue("Please check inserted data [" + errorMsg + "]", AlertType.ERROR);
|
alertOnContinue("Please check inserted data [" + errorMsg + "]", AlertType.ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue