xiaoxia 8 years ago
parent
commit
af38c88c95
  1. 33
      designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java

33
designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java

@ -252,12 +252,17 @@ public class FormWidgetDetailPane extends FormDockView{
deleteButton.addActionListener(new ActionListener() { deleteButton.addActionListener(new ActionListener() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
ShareLoader.getLoader().removeModulesFromMap(); if(ShareLoader.getLoader().removeModulesFromMap()) {
refreshShareMoudule(); ShareLoader.getLoader().removeModulesFromMap();
reuWidgetPanel.remove(deleteButton); refreshShareMoudule();
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); reuWidgetPanel.remove(deleteButton);
refreshDownPanel(false); elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList();
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Successful")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Successful"));
refreshDownPanel(false);
} else {
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Failed"));
}
} }
}); });
refreshDownPanel(true); refreshDownPanel(true);
@ -265,11 +270,17 @@ public class FormWidgetDetailPane extends FormDockView{
} }
private void installFromDiskZipFile(File chosenFile) { private void installFromDiskZipFile(File chosenFile) {
ShareLoader.getLoader().installModuleFromDiskZipFile(chosenFile); try {
refreshShareMoudule(); ShareLoader.getLoader().installModuleFromDiskZipFile(chosenFile);
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); refreshShareMoudule();
refreshDownPanel(false); elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList();
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_OK")); refreshDownPanel(false);
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_OK"));
} catch (IOException e) {
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Error"));
e.printStackTrace();
}
} }
private void refreshShareMoudule() { private void refreshShareMoudule() {

Loading…
Cancel
Save