|
|
@ -167,13 +167,15 @@ public class CheckServiceDialog extends JDialog implements ActionListener { |
|
|
|
centerPanel.add(detailsPane, BorderLayout.CENTER); |
|
|
|
centerPanel.add(detailsPane, BorderLayout.CENTER); |
|
|
|
JPanel buttonPanel = FRGUIPaneFactory.createBorderLayout_M_Pane(); |
|
|
|
JPanel buttonPanel = FRGUIPaneFactory.createBorderLayout_M_Pane(); |
|
|
|
buttonPanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); |
|
|
|
buttonPanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); |
|
|
|
boolean Sync = false; |
|
|
|
if (isOnline()) { |
|
|
|
if (isOnline() && Sync) { |
|
|
|
|
|
|
|
ignoreButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Sync_Ignore")); |
|
|
|
ignoreButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Sync_Ignore")); |
|
|
|
ignoreButton.addActionListener(this); |
|
|
|
ignoreButton.addActionListener(this); |
|
|
|
syncButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Sync_To_Local")); |
|
|
|
syncButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Sync_To_Local")); |
|
|
|
syncButton.setToolTipText(Toolkit.i18nText("Fine-Design_Basic_Sync_To_Local_Tip")); |
|
|
|
syncButton.setToolTipText(Toolkit.i18nText("Fine-Design_Basic_Sync_To_Local_Tip")); |
|
|
|
syncButton.addMouseListener(syncButtonClickListener); |
|
|
|
syncButton.addMouseListener(syncButtonClickListener); |
|
|
|
|
|
|
|
if(jarConsistency && differentPlugins.isEmpty()){ |
|
|
|
|
|
|
|
syncButton.setEnabled(false); |
|
|
|
|
|
|
|
} |
|
|
|
progressBar = new JProgressBar(); |
|
|
|
progressBar = new JProgressBar(); |
|
|
|
progressBar.setUI(new MotifProgressBarUI()); |
|
|
|
progressBar.setUI(new MotifProgressBarUI()); |
|
|
|
progressBar.setForeground(UpdateConstants.BAR_COLOR); |
|
|
|
progressBar.setForeground(UpdateConstants.BAR_COLOR); |
|
|
@ -184,6 +186,8 @@ public class CheckServiceDialog extends JDialog implements ActionListener { |
|
|
|
buttonPanel.add(progressBar, BorderLayout.CENTER); |
|
|
|
buttonPanel.add(progressBar, BorderLayout.CENTER); |
|
|
|
buttonPanel.add(syncButton, BorderLayout.EAST); |
|
|
|
buttonPanel.add(syncButton, BorderLayout.EAST); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
UILabel adviceLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Sync_Suggestion")); |
|
|
|
|
|
|
|
centerPanel.add(adviceLabel, BorderLayout.SOUTH); |
|
|
|
UIButton okButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Button_Confirm")); |
|
|
|
UIButton okButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Button_Confirm")); |
|
|
|
okButton.addActionListener(this); |
|
|
|
okButton.addActionListener(this); |
|
|
|
buttonPanel.add(okButton, BorderLayout.EAST); |
|
|
|
buttonPanel.add(okButton, BorderLayout.EAST); |
|
|
@ -307,6 +311,11 @@ public class CheckServiceDialog extends JDialog implements ActionListener { |
|
|
|
private MouseListener syncButtonClickListener = new MouseAdapter() { |
|
|
|
private MouseListener syncButtonClickListener = new MouseAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
|
|
|
sync(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void sync() { |
|
|
|
ignoreButton.setEnabled(false); |
|
|
|
ignoreButton.setEnabled(false); |
|
|
|
syncButton.setEnabled(false); |
|
|
|
syncButton.setEnabled(false); |
|
|
|
String[] option = {Toolkit.i18nText("Fine-Design_Report_Yes"), Toolkit.i18nText("Fine-Design_Report_No")}; |
|
|
|
String[] option = {Toolkit.i18nText("Fine-Design_Report_Yes"), Toolkit.i18nText("Fine-Design_Report_No")}; |
|
|
@ -379,7 +388,7 @@ public class CheckServiceDialog extends JDialog implements ActionListener { |
|
|
|
}.execute(); |
|
|
|
}.execute(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean deletePreviousPropertyFile() { |
|
|
|
private boolean deletePreviousPropertyFile() { |
|
|
|
File moveFile = new File(RestartHelper.MOVE_FILE); |
|
|
|
File moveFile = new File(RestartHelper.MOVE_FILE); |
|
|
|