bug fix on updating parameters of a Task Configuration
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/ws-task-executor-widget@169992 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
51a1f2f0cb
commit
f994d905d1
|
@ -19,6 +19,7 @@ import org.gcube.portlets.widgets.wstaskexecutor.client.event.DeleteCustomFieldE
|
|||
import org.gcube.portlets.widgets.wstaskexecutor.client.event.ShowListOfTaskConfigurationsEvent;
|
||||
import org.gcube.portlets.widgets.wstaskexecutor.client.view.LoaderIcon;
|
||||
import org.gcube.portlets.widgets.wstaskexecutor.shared.GcubeScope;
|
||||
import org.gcube.portlets.widgets.wstaskexecutor.shared.GcubeScopeType;
|
||||
import org.gcube.portlets.widgets.wstaskexecutor.shared.SelectableOperator;
|
||||
import org.gcube.portlets.widgets.wstaskexecutor.shared.WSItem;
|
||||
|
||||
|
@ -184,7 +185,9 @@ public abstract class CreateTaskConfigurationView extends Composite {
|
|||
if(isEditConfiguration){
|
||||
|
||||
String vreName = editConfiguration.getScope().substring(editConfiguration.getScope().lastIndexOf("/")+1, editConfiguration.getScope().length());
|
||||
field_select_scope.addItem(vreName, editConfiguration.getScope());
|
||||
GcubeScope gcubeScope = new GcubeScope(vreName, editConfiguration.getScope(), GcubeScopeType.VRE);
|
||||
mapScopes.put(gcubeScope.getScopeName(), gcubeScope);
|
||||
field_select_scope.addItem(gcubeScope.getScopeTitle(), editConfiguration.getScope());
|
||||
field_select_scope.setSelectedValue(editConfiguration.getScope());
|
||||
|
||||
field_select_task_id.addItem(editConfiguration.getTaskName(), editConfiguration.getTaskId());
|
||||
|
@ -515,6 +518,8 @@ public abstract class CreateTaskConfigurationView extends Composite {
|
|||
public GcubeScope getSelectedScope(){
|
||||
//String item = field_select_scope.getSelectedItemText();
|
||||
String text = field_select_scope.getSelectedValue();
|
||||
GWT.log("Selected scope: "+text);
|
||||
GWT.log("Selected scope: "+mapScopes.get(text));
|
||||
return mapScopes.get(text);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue