package org.gcube.portlets.user.td.resourceswidget.client.save;

import org.gcube.portlets.user.td.gwtservice.shared.destination.WorkspaceDestination;
import org.gcube.portlets.user.td.gwtservice.shared.tr.resources.SaveResourceSession;
import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;

import com.allen_sauer.gwt.log.client.Log;
import com.google.web.bindery.event.shared.EventBus;

/**
 * 
 * @author Giancarlo Panichi
 * 
 *
 */
public class SaveResourceWizard extends WizardWindow {

	private String WIZARDWIDTH = "844px";

	
	public SaveResourceWizard(SaveResourceSession saveResourceSession,
			String title, EventBus eventBus) {
		super(title, eventBus);
		setWidth(WIZARDWIDTH);

		/*
		Log.info("NextCard DestinationSelectionCard");
		DestinationSelectionCard destinationSelectionCard = new DestinationSelectionCard(
				saveResourceSession);
		addCard(destinationSelectionCard);
		destinationSelectionCard.setup();
		*/
		
		Log.info("NextCard WorkspaceSelectionCard");
		WorkspaceDestination workspaceDestination = WorkspaceDestination.INSTANCE;
		saveResourceSession.setDestination(workspaceDestination);
		WorkSpaceSelectionCard workspaceSelectionCard = new WorkSpaceSelectionCard(
				saveResourceSession);
		addCard(workspaceSelectionCard);
		workspaceSelectionCard.setup();
		

	}

}