|
|
|
@ -16,6 +16,7 @@ import com.fr.design.layout.VerticalFlowLayout;
|
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.vcs.common.VcsHelper; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.utils.ThemeUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
@ -37,6 +38,9 @@ import java.awt.event.MouseEvent;
|
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
|
|
|
|
|
|
|
import static javax.swing.JOptionPane.YES_NO_CANCEL_OPTION; |
|
|
|
|
import static javax.swing.JOptionPane.YES_OPTION; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 迁移面板 |
|
|
|
@ -238,7 +242,9 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initVcsLabel(JPanel parent) { |
|
|
|
|
parent.removeAll(); |
|
|
|
|
if (!VcsHelper.getInstance().isLegacyMode()) { |
|
|
|
|
parent.setBackground(ThemeUtils.BACK_COLOR); |
|
|
|
|
centerButton = new UIButton(Toolkit.i18nText("Fine-Design_Vcs_Center")); |
|
|
|
|
parent.add(centerButton); |
|
|
|
|
initVcsCenterListener(); |
|
|
|
@ -324,11 +330,8 @@ public class VcsMovePanel extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private void doAfterMove() { |
|
|
|
|
visible = !VcsHelper.getInstance().isLegacyMode(); |
|
|
|
|
if (visible) { |
|
|
|
|
updatePane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
|
updatePane.add(new UIButton(Toolkit.i18nText("Fine-Design_Vcs_Center"))); |
|
|
|
|
} |
|
|
|
|
updatePane.setVisible(!visible); |
|
|
|
|
initVcsLabel(updatePane); |
|
|
|
|
updatePane.setVisible(visible); |
|
|
|
|
callBack.doCallBack(visible); |
|
|
|
|
parentCard.show(parentPane, SETTING); |
|
|
|
|
} |
|
|
|
|