|
|
@ -266,14 +266,14 @@ public class TemplateTreePane extends JPanel implements FileOperations { |
|
|
|
|
|
|
|
|
|
|
|
if (JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
if (JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
tipContent, |
|
|
|
tipContent, |
|
|
|
UIManager.getString("OptionPane.titleText"), |
|
|
|
UIManager.getString("OptionPane.messageDialogTitle"), |
|
|
|
YES_NO_OPTION) |
|
|
|
YES_NO_OPTION) |
|
|
|
== JOptionPane.YES_OPTION) { |
|
|
|
== JOptionPane.YES_OPTION) { |
|
|
|
// 删除所有选中的即可
|
|
|
|
// 删除所有选中的即可
|
|
|
|
if (!deleteNodes(Arrays.asList(treeNodes))) { |
|
|
|
if (!deleteNodes(Arrays.asList(treeNodes))) { |
|
|
|
JOptionPane.showConfirmDialog(null, |
|
|
|
JOptionPane.showConfirmDialog(null, |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Delete_Failure"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Delete_Failure"), |
|
|
|
UIManager.getString("OptionPane.titleText"), |
|
|
|
UIManager.getString("OptionPane.messageDialogTitle"), |
|
|
|
JOptionPane.DEFAULT_OPTION, |
|
|
|
JOptionPane.DEFAULT_OPTION, |
|
|
|
JOptionPane.ERROR_MESSAGE); |
|
|
|
JOptionPane.ERROR_MESSAGE); |
|
|
|
} |
|
|
|
} |
|
|
@ -287,14 +287,14 @@ public class TemplateTreePane extends JPanel implements FileOperations { |
|
|
|
|
|
|
|
|
|
|
|
if (JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
if (JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
tipContent, |
|
|
|
tipContent, |
|
|
|
UIManager.getString("OptionPane.titleText"), |
|
|
|
UIManager.getString("OptionPane.messageDialogTitle"), |
|
|
|
YES_NO_OPTION) |
|
|
|
YES_NO_OPTION) |
|
|
|
== JOptionPane.YES_OPTION) { |
|
|
|
== JOptionPane.YES_OPTION) { |
|
|
|
// 删除其他
|
|
|
|
// 删除其他
|
|
|
|
if (!deleteNodes(deletableNodes)) { |
|
|
|
if (!deleteNodes(deletableNodes)) { |
|
|
|
JOptionPane.showConfirmDialog(null, |
|
|
|
JOptionPane.showConfirmDialog(null, |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Delete_Failure"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Delete_Failure"), |
|
|
|
UIManager.getString("OptionPane.titleText"), |
|
|
|
UIManager.getString("OptionPane.messageDialogTitle"), |
|
|
|
JOptionPane.DEFAULT_OPTION, |
|
|
|
JOptionPane.DEFAULT_OPTION, |
|
|
|
JOptionPane.ERROR_MESSAGE); |
|
|
|
JOptionPane.ERROR_MESSAGE); |
|
|
|
} |
|
|
|
} |
|
|
@ -406,7 +406,7 @@ public class TemplateTreePane extends JPanel implements FileOperations { |
|
|
|
if (!lockedNodes.isEmpty()) { |
|
|
|
if (!lockedNodes.isEmpty()) { |
|
|
|
JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Warn_Rename_Lock_File"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Warn_Rename_Lock_File"), |
|
|
|
UIManager.getString("OptionPane.titleText"), |
|
|
|
UIManager.getString("OptionPane.messageDialogTitle"), |
|
|
|
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE); |
|
|
|
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|