public void reset() { myEnabledCheckBox.setSelected(myManager.isEnabled()); myTabsEnabledCheckBox.setSelected(myManager.isEnabledForTabs()); myProjectViewEnabledCheckBox.setSelected(myManager.isEnabledForProjectView()); if (myLocalTable.isModified()) myLocalTable.reset(); if (mySharedTable.isModified()) mySharedTable.reset(); }
public boolean isModified() { boolean modified; modified = myEnabledCheckBox.isSelected() != myManager.isEnabled(); modified |= myTabsEnabledCheckBox.isSelected() != myManager.isEnabledForTabs(); modified |= myProjectViewEnabledCheckBox.isSelected() != myManager.isEnabledForProjectView(); modified |= myLocalTable.isModified() || mySharedTable.isModified(); return modified; }