Browse Source

REPORT-61827

bugfix/11.0
方磊 3 years ago
parent
commit
a51db42343
  1. 9
      designer-form/src/main/java/com/fr/design/mainframe/DesignerTransferHandler.java

9
designer-form/src/main/java/com/fr/design/mainframe/DesignerTransferHandler.java

@ -1,12 +1,11 @@
package com.fr.design.mainframe; package com.fr.design.mainframe;
import java.awt.datatransfer.Transferable; import com.fr.design.designer.beans.events.DesignerEvent;
import com.fr.design.designer.beans.models.AddingModel;
import javax.swing.JComponent; import javax.swing.JComponent;
import javax.swing.TransferHandler; import javax.swing.TransferHandler;
import java.awt.datatransfer.Transferable;
import com.fr.design.designer.beans.events.DesignerEvent;
import com.fr.design.designer.beans.models.AddingModel;
public class DesignerTransferHandler extends TransferHandler { public class DesignerTransferHandler extends TransferHandler {
@ -20,7 +19,7 @@ public class DesignerTransferHandler extends TransferHandler {
} }
protected void exportDone(JComponent source, Transferable data, int action) { protected void exportDone(JComponent source, Transferable data, int action) {
if (!addingModel.isCreatorAdded()) { if (!addingModel.isCreatorAdded() && !addingModel.isNeedUndoWhenAddingFailed()) {
designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_CUTED); designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_CUTED);
} }
} }

Loading…
Cancel
Save