@Override public boolean isModified() { EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance(); boolean isModified = !Arrays.asList(myNegativePanel.getListItems()).equals(mySettings.getNegativePatterns()); isModified |= !Arrays.asList(myPositivePanel.getListItems()).equals(mySettings.getPositivePatterns()); isModified |= isModified( myCbUseSoftWrapsAtConsole, editorSettings.isUseSoftWraps(SoftWrapAppliancePlaces.CONSOLE)); isModified |= isModified( myCommandsHistoryLimitField, UISettings.getInstance().CONSOLE_COMMAND_HISTORY_LIMIT); if (ConsoleBuffer.useCycleBuffer()) { isModified |= isModified( myCbOverrideConsoleCycleBufferSize, UISettings.getInstance().OVERRIDE_CONSOLE_CYCLE_BUFFER_SIZE); isModified |= isModified( myConsoleCycleBufferSizeField, UISettings.getInstance().CONSOLE_CYCLE_BUFFER_SIZE_KB); } return isModified; }
public boolean isModified() { return !Arrays.asList(myNegativePanel.getListItems()).equals(mySettings.getNegativePatterns()) || !Arrays.asList(myPositivePanel.getListItems()).equals(mySettings.getPositivePatterns()); }