Java Code Examples for com.intellij.openapi.options.Configurable#isModified()
The following examples show how to use
com.intellij.openapi.options.Configurable#isModified() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OptionsEditor.java From consulo with Apache License 2.0 | 6 votes |
public void apply() { Map<Configurable, ConfigurationException> errors = new LinkedHashMap<>(); final Set<Configurable> modified = getContext().getModified(); for (Configurable each : modified) { try { each.apply(); if (!each.isModified()) { getContext().fireModifiedRemoved(each, null); } } catch (ConfigurationException e) { errors.put(each, e); LOG.debug(e); } } getContext().fireErrorsChanged(errors, null); if (!errors.isEmpty()) { myTree.select(errors.keySet().iterator().next()); } }
Example 2
Source File: SubCompositeConfigurable.java From consulo with Apache License 2.0 | 6 votes |
@RequiredUIAccess @Override public final void apply() throws ConfigurationException { if (root != null) { root.apply(getSettings()); XDebuggerConfigurableProvider.generalApplied(getCategory()); } if (isChildrenMerged()) { for (Configurable child : children) { if (child.isModified()) { child.apply(); } } } }
Example 3
Source File: OptionsEditor.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess private void fireModificationInt(final Configurable configurable) { if (configurable.isModified()) { getContext().fireModifiedAdded(configurable, null); } else if (!configurable.isModified() && !getContext().getErrors().containsKey(configurable)) { getContext().fireModifiedRemoved(configurable, null); } }
Example 4
Source File: MergedCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public boolean isModified() { for (Configurable child : children) { if (child.isModified()) { return true; } } return false; }
Example 5
Source File: MergedCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public void apply() throws ConfigurationException { for (Configurable child : children) { if (child.isModified()) { child.apply(); } } }
Example 6
Source File: SubCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public final boolean isModified() { if (root != null && root.isModified(getSettings())) { return true; } else if (isChildrenMerged()) { for (Configurable child : children) { if (child.isModified()) { return true; } } } return false; }
Example 7
Source File: ProjectStructureConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@Override public boolean isModified() { for (Configurable each : myName2Config) { if (each.isModified()) return true; } return false; }