|
|
|
@ -11,6 +11,7 @@ import com.fr.design.gui.ibutton.UIRadioButton;
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.iprogressbar.ModernUIProgressBarUI; |
|
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
import com.fr.design.i18n.LocaleLinkProvider; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.VerticalFlowLayout; |
|
|
|
@ -18,6 +19,7 @@ import com.fr.design.mainframe.DesignerContext;
|
|
|
|
|
import com.fr.design.mainframe.DesignerFrameFileDealerPane; |
|
|
|
|
import com.fr.design.mainframe.vcs.VcsExceptionUtils; |
|
|
|
|
import com.fr.design.mainframe.vcs.common.VcsHelper; |
|
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.utils.ThemeUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
@ -74,6 +76,12 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private static final int DEFAULT_VALUE = 5; |
|
|
|
|
|
|
|
|
|
private static final String HELP_KEY = "Fine-Design_Vcs_Move_Help_Link"; |
|
|
|
|
|
|
|
|
|
private static final String HELP_KEY_DEFAULT = "Fine-Design_Vcs_Move_Help_Link_Default"; |
|
|
|
|
|
|
|
|
|
private static final String HELP_URL = LocaleLinkProvider.getInstance().getLink(HELP_KEY, HELP_KEY_DEFAULT); |
|
|
|
|
|
|
|
|
|
public static final String SETTING = "SETTING"; |
|
|
|
|
|
|
|
|
|
public static final String PROCESS = "PROCESS"; |
|
|
|
@ -121,6 +129,8 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private boolean visible = false; |
|
|
|
|
|
|
|
|
|
private UILabel seeLabel; |
|
|
|
|
private UILabel helpLabel; |
|
|
|
|
|
|
|
|
|
public VcsMovePanel(CardLayout cardLayout, JPanel parentPane, MoveCallBack callBack, BasicDialog parentDialog) { |
|
|
|
|
this.parentCard = cardLayout; |
|
|
|
@ -407,6 +417,9 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
body.add(new UILabel(StringUtils.BLANK)); |
|
|
|
|
body.add(tipLabel); |
|
|
|
|
body.add(new UILabel(StringUtils.BLANK)); |
|
|
|
|
JPanel panel = createHelpPane(); |
|
|
|
|
body.add(panel); |
|
|
|
|
body.add(new UILabel(StringUtils.BLANK)); |
|
|
|
|
body.add(button); |
|
|
|
|
statusPane.add(body); |
|
|
|
|
statusPane.setLayout(FRGUIPaneFactory.createCenterLayout(body, 0.5f, 0.5f)); |
|
|
|
@ -417,6 +430,24 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
tipLabel.setAlignmentX(CENTER_ALIGNMENT); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel createHelpPane() { |
|
|
|
|
JPanel panel = new JPanel(); |
|
|
|
|
seeLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Move_See")); |
|
|
|
|
seeLabel.setForeground(TIP_COLOR); |
|
|
|
|
helpLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Move_Help")); |
|
|
|
|
helpLabel.setForeground(LABEL_COLOR); |
|
|
|
|
helpLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); |
|
|
|
|
helpLabel.addMouseListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
BrowseUtils.browser(HELP_URL); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
panel.add(seeLabel); |
|
|
|
|
panel.add(helpLabel); |
|
|
|
|
return panel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private class MoveWorker extends SwingWorker<Boolean, Integer> { |
|
|
|
|
|
|
|
|
|