Browse Source

Merge pull request #507 in BA/design from ~XIAOXIA/design:release to release

* commit '482e8c0a61a7f6369b39ab372210bdeb1794c9cd':
  rt
master
superman 8 years ago
parent
commit
e6c671831a
  1. 13
      designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java

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

@ -24,6 +24,7 @@ import com.fr.general.Inter;
import com.fr.general.SiteCenter; import com.fr.general.SiteCenter;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.collections.array.Array;
import javax.swing.*; import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.filechooser.FileNameExtensionFilter;
@ -36,6 +37,7 @@ import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.util.*;
/** /**
* Created with IntelliJ IDEA. * Created with IntelliJ IDEA.
@ -235,7 +237,7 @@ public class FormWidgetDetailPane extends FormDockView{
protected Object doInBackground() throws Exception { protected Object doInBackground() throws Exception {
ShareLoader.getLoader().refreshModule(); ShareLoader.getLoader().refreshModule();
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList();
comboBox.setSelectedIndex(0); refreshComboxData();
refreshDownPanel(false); refreshDownPanel(false);
return null; return null;
} }
@ -247,6 +249,11 @@ public class FormWidgetDetailPane extends FormDockView{
} }
private void refreshComboxData() {
comboBox.setSelectedIndex(0);
comboBox.setModel(new DefaultComboBoxModel(getFormCategories()));
}
/** /**
* 创建下载模板的按钮 * 创建下载模板的按钮
*/ */
@ -335,7 +342,7 @@ public class FormWidgetDetailPane extends FormDockView{
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Successful")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Successful"));
refreshDownPanel(false); refreshDownPanel(false);
replaceButtonPanel(false); replaceButtonPanel(false);
comboBox.setSelectedIndex(0); refreshComboxData();
} else { } else {
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Failed")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Removed_Failed"));
} }
@ -366,7 +373,7 @@ public class FormWidgetDetailPane extends FormDockView{
refreshShareMoudule(); refreshShareMoudule();
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList();
refreshDownPanel(false); refreshDownPanel(false);
comboBox.setSelectedIndex(0); refreshComboxData();
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_OK")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_OK"));
} catch (IOException e) { } catch (IOException e) {
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Error")); JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Share_Module_Error"));

Loading…
Cancel
Save