updated step wizard select
This commit is contained in:
parent
d8d4b204f0
commit
4a102a4a0c
1
pom.xml
1
pom.xml
|
@ -153,6 +153,7 @@
|
|||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>workspace-explorer</artifactId>
|
||||
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
|
|
|
@ -219,6 +219,7 @@ public class CreateDatasetForm extends Composite{
|
|||
|
||||
// map of organization name title
|
||||
private Map<String, String> nameTitleOrganizationMap = new HashMap<String, String>();
|
||||
|
||||
private WizardCreator wizCreator;
|
||||
|
||||
/**
|
||||
|
@ -881,7 +882,7 @@ public class CreateDatasetForm extends Composite{
|
|||
|
||||
formSecondStep.setVisible(!hideManageRes);
|
||||
formThirdStep.setVisible(hideManageRes);
|
||||
wizCreator.activeStep(stepActive);
|
||||
activeWizardStep(stepActive);
|
||||
|
||||
// add the resources to the container panel
|
||||
if(workspaceResourcesContainer.getWidget() == null){
|
||||
|
@ -894,7 +895,7 @@ public class CreateDatasetForm extends Composite{
|
|||
// this is not a workspace request
|
||||
formFirstStep.setVisible(false);
|
||||
formThirdStep.setVisible(true);
|
||||
wizCreator.activeStep(3);
|
||||
activeWizardStep(3);
|
||||
|
||||
}
|
||||
|
||||
|
@ -904,6 +905,12 @@ public class CreateDatasetForm extends Composite{
|
|||
selectedProfile.setText("Selected Type is " + metadataTypeListbox.getSelectedItemText());
|
||||
|
||||
}
|
||||
|
||||
private void activeWizardStep(int step) {
|
||||
if(wizCreator!=null) {
|
||||
wizCreator.activeStep(step);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@UiHandler("goBackButtonFirstStep")
|
||||
|
@ -911,7 +918,7 @@ public class CreateDatasetForm extends Composite{
|
|||
|
||||
// swap forms
|
||||
formFirstStep.setVisible(true);
|
||||
wizCreator.activeStep(1);
|
||||
activeWizardStep(1);
|
||||
formSecondStep.setVisible(false);
|
||||
formThirdStep.setVisible(false);
|
||||
|
||||
|
@ -932,11 +939,12 @@ public class CreateDatasetForm extends Composite{
|
|||
}
|
||||
formFirstStep.setVisible(hideManageRes);
|
||||
formSecondStep.setVisible(!hideManageRes);
|
||||
wizCreator.activeStep(stepActive);
|
||||
activeWizardStep(stepActive);
|
||||
}else{
|
||||
wizCreator.activeStep(1);
|
||||
|
||||
formFirstStep.setVisible(true);
|
||||
formSecondStep.setVisible(false);
|
||||
activeWizardStep(1);
|
||||
}
|
||||
formThirdStep.setVisible(false);
|
||||
|
||||
|
@ -948,7 +956,7 @@ public class CreateDatasetForm extends Composite{
|
|||
// swap forms
|
||||
formSecondStep.setVisible(false);
|
||||
formThirdStep.setVisible(true);
|
||||
wizCreator.activeStep(3);
|
||||
activeWizardStep(3);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue