コード例 #1
0
 public void reset() {
   final WebEditorOptions xmlEditorOptions = WebEditorOptions.getInstance();
   myAutomaticallyInsertClosingTagCheckBox.setSelected(
       xmlEditorOptions.isAutomaticallyInsertClosingTag());
   myAutomaticallyInsertRequiredAttributesCheckBox.setSelected(
       xmlEditorOptions.isAutomaticallyInsertRequiredAttributes());
   myAutomaticallyInsertRequiredSubTagsCheckBox.setSelected(
       xmlEditorOptions.isAutomaticallyInsertRequiredSubTags());
   myAutomaticallyStartAttributeAfterCheckBox.setSelected(
       xmlEditorOptions.isAutomaticallyStartAttribute());
 }
コード例 #2
0
 public boolean isModified() {
   final WebEditorOptions xmlEditorOptions = WebEditorOptions.getInstance();
   return xmlEditorOptions.isAutomaticallyInsertClosingTag()
           != myAutomaticallyInsertClosingTagCheckBox.isSelected()
       || xmlEditorOptions.isAutomaticallyInsertRequiredAttributes()
           != myAutomaticallyInsertRequiredAttributesCheckBox.isSelected()
       || xmlEditorOptions.isAutomaticallyStartAttribute()
           != myAutomaticallyStartAttributeAfterCheckBox.isSelected()
       || xmlEditorOptions.isAutomaticallyInsertRequiredSubTags()
           != myAutomaticallyInsertRequiredSubTagsCheckBox.isSelected();
 }