Revision 36113 branches/v2_0_0_prep/libraries/org.gvsig.newlayer/org.gvsig.newlayer.lib/org.gvsig.newlayer.lib.impl/src/main/java/org/gvsig/newlayer/impl/DefaultNewLayerWizard.java

View differences:

DefaultNewLayerWizard.java
7 7
import javax.swing.ImageIcon;
8 8
import javax.swing.JPanel;
9 9

  
10
import jwizardcomponent.CancelAction;
10 11
import jwizardcomponent.DefaultJWizardComponents;
11 12
import jwizardcomponent.FinishAction;
12 13
import jwizardcomponent.JWizardComponents;
......
17 18
import org.gvsig.newlayer.NewLayerService;
18 19
import org.gvsig.newlayer.NewLayerServiceException;
19 20
import org.gvsig.newlayer.NewLayerWizard;
20
import org.gvsig.newlayer.spi.AbstractNewLayerProvider;
21 21

  
22 22
public class DefaultNewLayerWizard extends NewLayerWizard {
23 23

  
......
32 32
		setPreferredSize(new Dimension(600,400));
33 33
		this.service = service;
34 34
		this.getWizardComponents().setFinishAction(new MyFinishAction(this.getWizardComponents()));
35
		this.getWizardComponents().setCancelAction(new MyCancelAction(this.getWizardComponents()));
35 36
		this.createTypeSelector();
36 37
	}
37 38

  
......
110 111

  
111 112
		public MyFinishAction(JWizardComponents arg0) {
112 113
			super(arg0);
113
			// TODO Auto-generated constructor stub
114 114
		}
115 115

  
116 116
		public void performAction() {
117
			//Comprobar storeName y storeParameters y pedirlos si no est?n 
117
			if (getService().getStoreName()==null){
118
				//TODO pedirlo
119
			}
120
			if (getService().getNewStoreParameters()==null){
121
				//TODO pedirlo
122
			}
118 123
			try {
119 124
				getService().createLayer();
120 125
			} catch (NewLayerServiceException e) {
......
124 129
		}
125 130

  
126 131
	}
132
	
133
	private class MyCancelAction extends CancelAction {
134
		
135
		public MyCancelAction(DefaultJWizardComponents wizardComponents) {
136
			super(wizardComponents);
137
		}
138

  
139
		public void performAction() {
140
			
141
		}
142
		
143
	}
127 144
}

Also available in: Unified diff