|
|
|
@ -71,7 +71,6 @@ import javax.swing.Action;
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import javax.swing.TransferHandler; |
|
|
|
|
import javax.swing.border.Border; |
|
|
|
|
import javax.swing.event.TreeSelectionEvent; |
|
|
|
@ -693,10 +692,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
getEditListenerTable().addListener(new DesignerEditListener() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void fireCreatorModified(final DesignerEvent evt) { |
|
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
public void fireCreatorModified(DesignerEvent evt) { |
|
|
|
|
// 只有选择组件时不触发模版更新,其他都要触发
|
|
|
|
|
if (evt.getCreatorEventID() != DesignerEvent.CREATOR_SELECTED) { |
|
|
|
|
FormDesigner.this.fireTargetModified(); |
|
|
|
@ -710,8 +706,6 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|