|
|
@ -148,12 +148,12 @@ public class MobileAdvanceDefinePane extends MobileWidgetDefinePane { |
|
|
|
MobileBookMark bookMark = xCreator.toData().getMobileBookMark(); |
|
|
|
MobileBookMark bookMark = xCreator.toData().getMobileBookMark(); |
|
|
|
bookMark.setUseBookMark(this.useBookMarkCheck.isSelected()); |
|
|
|
bookMark.setUseBookMark(this.useBookMarkCheck.isSelected()); |
|
|
|
String newBookMarkName = this.bookMarkNameField.getText(); |
|
|
|
String newBookMarkName = this.bookMarkNameField.getText(); |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); |
|
|
|
if (ComparatorUtils.equals(newBookMarkName, bookMark.getBookMarkName())) { |
|
|
|
if (ComparatorUtils.equals(newBookMarkName, bookMark.getBookMarkName())) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!isExist(newBookMarkName)) { |
|
|
|
if (!isExist(newBookMarkName)) { |
|
|
|
bookMark.setBookMarkName(newBookMarkName); |
|
|
|
bookMark.setBookMarkName(newBookMarkName); |
|
|
|
DesignerContext.getDesignerFrame().getSelectedJTemplate().fireTargetModified(); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
FineJOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), |
|
|
|
FineJOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Mobile_BookMark_Rename_Failure"), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Mobile_BookMark_Rename_Failure"), |
|
|
|