40 |
40 |
*/
|
41 |
41 |
package com.iver.cit.gvsig.gui.cad.tools;
|
42 |
42 |
|
|
43 |
import java.awt.Component;
|
43 |
44 |
import java.awt.Graphics;
|
44 |
45 |
import java.awt.Graphics2D;
|
45 |
46 |
import java.awt.event.InputEvent;
|
... | ... | |
48 |
49 |
import java.awt.geom.Rectangle2D;
|
49 |
50 |
import java.util.ArrayList;
|
50 |
51 |
|
|
52 |
import javax.swing.JOptionPane;
|
|
53 |
|
51 |
54 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
|
52 |
55 |
import com.iver.andami.PluginServices;
|
53 |
56 |
import com.iver.andami.messages.NotificationManager;
|
... | ... | |
203 |
206 |
vea.removeRow(row.getIndex(),getName(),EditionEvent.GRAPHIC);
|
204 |
207 |
} catch (ReadDriverException e) {
|
205 |
208 |
NotificationManager.addError(e.getMessage(),e);
|
206 |
|
}
|
|
209 |
}
|
207 |
210 |
}
|
|
211 |
}else{
|
|
212 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),PluginServices.getText(this,"hay_mas_de_una_geometria_seleccionada"));
|
208 |
213 |
}
|
209 |
214 |
int dif=1;//En el caso de ser pol?gono.
|
210 |
215 |
if (ig instanceof FGeometryCollection){
|
... | ... | |
242 |
247 |
NotificationManager.addError(e.getMessage(),e);
|
243 |
248 |
} catch (ReadDriverException e) {
|
244 |
249 |
NotificationManager.addError(e.getMessage(),e);
|
245 |
|
}
|
|
250 |
}
|
246 |
251 |
vle.addSelectionCache(new DefaultRowEdited(newRow,
|
247 |
252 |
IRowEdited.STATUS_MODIFIED, row.getIndex()));
|
248 |
253 |
|
... | ... | |
712 |
717 |
NotificationManager.addError(e.getMessage(),e);
|
713 |
718 |
} catch (ReadDriverException e) {
|
714 |
719 |
NotificationManager.addError(e.getMessage(),e);
|
715 |
|
}
|
|
720 |
}
|
716 |
721 |
}
|
717 |
722 |
}
|
718 |
723 |
}
|