|
|
|
@ -4,7 +4,7 @@ import com.fr.decision.update.data.UpdateConstants;
|
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.update.utils.FileUtils; |
|
|
|
|
import com.fr.design.update.utils.UpdateFileUtils; |
|
|
|
|
import com.fr.design.update.ui.widget.ColorfulCellRender; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
@ -86,7 +86,7 @@ public class RestoreDialog extends JDialog {
|
|
|
|
|
|
|
|
|
|
JPanel jarListPane = new JPanel(); |
|
|
|
|
jarListPane.setLayout(new BoxLayout(jarListPane, BoxLayout.Y_AXIS)); |
|
|
|
|
String[] jarBackupFiles = FileUtils.listFilteredFiles(StableUtils.getInstallHome(), UpdateConstants.DESIGNER_BACKUP_DIR); |
|
|
|
|
String[] jarBackupFiles = UpdateFileUtils.listFilteredFiles(StableUtils.getInstallHome(), UpdateConstants.DESIGNER_BACKUP_DIR); |
|
|
|
|
|
|
|
|
|
ArrayUtils.reverse(jarBackupFiles); |
|
|
|
|
String[] jarFilesList = ((jarBackupFiles.length < NUMOFCELL_LEAST) ? Arrays.copyOf(jarBackupFiles, NUMOFCELL_LEAST) : jarBackupFiles); |
|
|
|
|