- Timestamp:
- 2016-08-18T21:28:57+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/PasteMembersAction.java
r10604 r10847 8 8 import javax.swing.TransferHandler.TransferSupport; 9 9 10 import org.openstreetmap.josm.Main; 10 11 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 11 12 import org.openstreetmap.josm.gui.dialogs.relation.IRelationEditor; … … 33 34 @Override 34 35 public void actionPerformed(ActionEvent e) { 35 new MemberTransferHandler().importData(getSupport()); 36 try { 37 new MemberTransferHandler().importData(getSupport()); 38 } catch (IllegalStateException ex) { 39 Main.error(ex); 40 } 36 41 } 37 42 … … 42 47 @Override 43 48 protected void updateEnabledState() { 44 setEnabled(new MemberTransferHandler().canImport(getSupport())); 49 try { 50 setEnabled(new MemberTransferHandler().canImport(getSupport())); 51 } catch (IllegalStateException ex) { 52 Main.error(ex); 53 } 45 54 } 46 55
Note:
See TracChangeset
for help on using the changeset viewer.