Revision 32290 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/creation/wizard/SelectFilesWizard.java

View differences:

SelectFilesWizard.java
1 1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22 22

  
23 23
/*
24
* AUTHORS (In addition to CIT):
25
* 2010 {Prodevelop}   {Task}
26
*/
27
 
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28 28
package org.gvsig.installer.swing.impl.creation.wizard;
29 29

  
30
import java.io.File;
31
import java.util.List;
32

  
30 33
import javax.swing.JPanel;
31 34

  
35
import org.gvsig.installer.lib.api.InstallerInfo;
36
import org.gvsig.installer.lib.api.InstallerLocator;
37
import org.gvsig.installer.lib.api.creation.InstallerCreationService;
32 38
import org.gvsig.installer.swing.impl.InstallerWizardPanel;
33 39
import org.gvsig.installer.swing.impl.creation.DefaultInstallerCreationWizard;
34 40
import org.gvsig.installer.swing.impl.creation.panel.SelectFilesPanel;
......
38 44
 */
39 45
public class SelectFilesWizard extends SelectFilesPanel implements InstallerWizardPanel{
40 46
	private DefaultInstallerCreationWizard installerCreationWizard;
41
	
47

  
42 48
	public SelectFilesWizard(DefaultInstallerCreationWizard installerCreationWizard) {
43 49
		super();
44 50
		this.installerCreationWizard = installerCreationWizard;
45 51
	}
46
	
52

  
47 53
	public JPanel getJPanel() {
48 54
		return this;
49 55
	}
......
54 60

  
55 61
	public void lastPanel() {
56 62
		// TODO Auto-generated method stub
57
		
63

  
58 64
	}
59 65

  
60 66
	public void nextPanel() {
61
		// TODO Auto-generated method stub
62
		
67
		InstallerInfo installerInfo =
68
			installerCreationWizard.getInstallerCreationService().getInstallerInfo();
69
		List<File> selectedFiles = getSelectedFiles();
70
		for (int i=0 ; i<selectedFiles.size() ; i++){
71
			installerInfo.addFileToCopy(selectedFiles.get(i));
72
		}
63 73
	}
64 74

  
65 75
	public void updatePanel() {
66 76
		// TODO Auto-generated method stub
67
		
77

  
68 78
	}
69 79

  
70 80
}

Also available in: Unified diff