Revision 32290 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.impl/src/main/java/org/gvsig/installer/lib/impl/DefaultInstallerInfo.java

View differences:

DefaultInstallerInfo.java
28 28
package org.gvsig.installer.lib.impl;
29 29

  
30 30
import java.io.File;
31
import java.io.InputStream;
32
import java.io.OutputStream;
31
import java.util.ArrayList;
32
import java.util.List;
33 33

  
34 34
import org.gvsig.installer.lib.api.InstallerInfo;
35 35

  
......
44 44
	protected int build = 0;
45 45
	protected String state = "Testing";
46 46
	protected boolean official;
47
	protected List<File> selectedFiles = null;
48
	
49
	public DefaultInstallerInfo() {
50
		super();
51
		selectedFiles = new ArrayList<File>();
52
	}
47 53

  
48 54
	public String getCode() {
49 55
		return code;
......
102 108
	}
103 109

  
104 110
	public void addFileToCopy(File file) {
105
		// TODO Auto-generated method stub
106
		
111
		selectedFiles.add(file);		
107 112
	}
108 113

  
109 114
	public File getFileToCopyAt(int index) {
110
		// TODO Auto-generated method stub
111
		return null;
115
		return selectedFiles.get(index);
112 116
	}
113 117

  
114 118
	public int getFileToCopySize() {
115
		// TODO Auto-generated method stub
116
		return 0;
119
		return selectedFiles.size();
117 120
	}
118 121

  
119 122
	public void removeFileToCopy(int index) {
120
		// TODO Auto-generated method stub
121
		
123
		selectedFiles.remove(index);		
122 124
	}
123 125

  
124 126
}

Also available in: Unified diff