@Override public void apply() throws ConfigurationException { myConfiguration.getState().setStartFoldingPattern(mySettingsPanel.getStartPattern()); myConfiguration.getState().setEndFoldingPattern(mySettingsPanel.getEndPattern()); myConfiguration.getState().setEnabled(mySettingsPanel.isEnabled()); myConfiguration .getState() .setDefaultCollapsedStatePattern(mySettingsPanel.getCollapsedStatePattern()); }
@Override public boolean isModified() { return myConfiguration.getState().isEnabled() != mySettingsPanel.isEnabled() || !myConfiguration .getState() .getStartFoldingPattern() .equals(mySettingsPanel.getStartPattern()) || !myConfiguration .getState() .getEndFoldingPattern() .equals(mySettingsPanel.getEndPattern()) || !myConfiguration .getState() .getDefaultCollapsedStatePattern() .equals(mySettingsPanel.getCollapsedStatePattern()); }