xiaoxia 8 years ago
parent
commit
88520e8249
  1. 20
      designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java

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

@ -252,28 +252,24 @@ 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().removeElementFromMap(); ShareLoader.getLoader().removeModulesFromMap();
refreshShareMoudule(); refreshShareMoudule();
reuWidgetPanel.remove(deleteButton); reuWidgetPanel.remove(deleteButton);
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList();
refreshDownPanel(false); refreshDownPanel(false);
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Successful"));
} }
}); });
refreshDownPanel(true); refreshDownPanel(true);
} }
private void installFromDiskZipFile(File chosenFile) { private void installFromDiskZipFile(File chosenFile) {
try { ShareLoader.getLoader().installModuleFromDiskZipFile(chosenFile);
refreshShareMoudule();
IOUtils.copy(chosenFile, new File(ShareLoader.MODULE_PATH)); 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