|
|
@ -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) { |
|
|
|
|
|
|
|
if(ShareLoader.getLoader().removeModulesFromMap()) { |
|
|
|
ShareLoader.getLoader().removeModulesFromMap(); |
|
|
|
ShareLoader.getLoader().removeModulesFromMap(); |
|
|
|
refreshShareMoudule(); |
|
|
|
refreshShareMoudule(); |
|
|
|
reuWidgetPanel.remove(deleteButton); |
|
|
|
reuWidgetPanel.remove(deleteButton); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
refreshDownPanel(false); |
|
|
|
|
|
|
|
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) { |
|
|
|
|
|
|
|
try { |
|
|
|
ShareLoader.getLoader().installModuleFromDiskZipFile(chosenFile); |
|
|
|
ShareLoader.getLoader().installModuleFromDiskZipFile(chosenFile); |
|
|
|
refreshShareMoudule(); |
|
|
|
refreshShareMoudule(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
refreshDownPanel(false); |
|
|
|
refreshDownPanel(false); |
|
|
|
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_OK")); |
|
|
|
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() { |
|
|
|