Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/gui/PopupMenu.java

View differences:

PopupMenu.java
43 43
import java.awt.Point;
44 44
import java.awt.event.ActionEvent;
45 45
import java.awt.event.ActionListener;
46
import java.io.IOException;
47 46

  
48 47
import javax.swing.ImageIcon;
49 48
import javax.swing.JMenuItem;
50 49
import javax.swing.JPopupMenu;
51 50

  
51
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
52 52
import com.iver.andami.PluginServices;
53 53
import com.iver.cit.gvsig.AddLayer;
54
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
54
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileReadException;
55
import com.iver.cit.gvsig.exceptions.expansionfile.ExpansionFileWriteException;
56
import com.iver.cit.gvsig.exceptions.validate.ValidateRowException;
55 57

  
56 58

  
57 59
/**
......
146 148

  
147 149
                        try {
148 150
							table.copyRow();
149
						} catch (DriverIOException e1) {
150
							// TODO Auto-generated catch block
151
						} catch (ReadDriverException e1) {
151 152
							e1.printStackTrace();
152
						} catch (IOException e1) {
153
							// TODO Auto-generated catch block
153
						} catch (ExpansionFileReadException e1) {
154 154
							e1.printStackTrace();
155 155
						}
156 156
                        PluginServices.getMainFrame().enableControls();
......
162 162

  
163 163
                        try {
164 164
							table.cutRow();
165
						} catch (DriverIOException e1) {
166
							// TODO Auto-generated catch block
165
						} catch (ReadDriverException e1) {
167 166
							e1.printStackTrace();
168
						} catch (IOException e1) {
169
							// TODO Auto-generated catch block
167
						} catch (ExpansionFileReadException e1) {
170 168
							e1.printStackTrace();
171 169
						}
172 170
                        PluginServices.getMainFrame().enableControls();
......
180 178

  
181 179
                        try {
182 180
							table.pasteRow();
183
						} catch (DriverIOException e1) {
184
							// TODO Auto-generated catch block
181
						} catch (ValidateRowException e1) {
185 182
							e1.printStackTrace();
186
						} catch (IOException e1) {
187
							// TODO Auto-generated catch block
183
						} catch (ReadDriverException e1) {
188 184
							e1.printStackTrace();
185
						} catch (ExpansionFileWriteException e1) {
186
							e1.printStackTrace();
189 187
						}
190 188
                        PluginServices.getMainFrame().enableControls();
191 189

  
......
212 210
                public void actionPerformed(ActionEvent e) {
213 211
                        try {
214 212
							table.removeRow();
215
						} catch (DriverIOException e1) {
216
							// TODO Auto-generated catch block
213
						} catch (ReadDriverException e1) {
217 214
							e1.printStackTrace();
218
						} catch (IOException e1) {
219
							// TODO Auto-generated catch block
215
						} catch (ExpansionFileReadException e1) {
220 216
							e1.printStackTrace();
221 217
						}
222 218
                        PluginServices.getMainFrame().enableControls();

Also available in: Unified diff