Java Code Examples for com.intellij.openapi.options.Configurable#reset()
The following examples show how to use
com.intellij.openapi.options.Configurable#reset() .
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: MergedCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public void reset() { for (Configurable child : children) { child.reset(); } }
Example 2
Source File: SubCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public final void reset() { if (root != null) { root.reset(getSettings()); } if (isChildrenMerged()) { for (Configurable child : children) { child.reset(); } } }
Example 3
Source File: ProjectStructureConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@Override public void reset() { // need this to ensure VFS operations will not block because of storage flushing // and other maintenance IO tasks run in background AccessToken token = HeavyProcessLatch.INSTANCE.processStarted("Resetting Project Structure"); try { myContext.reset(); ShowSdksSettingsUtil settingsUtil = (ShowSdksSettingsUtil)ShowSettingsUtil.getInstance(); settingsUtil.getSdksModel().reset(); Configurable toSelect = null; for (Configurable each : myName2Config) { if (myUiState.lastEditedConfigurable != null && myUiState.lastEditedConfigurable.equals(each.getDisplayName())) { toSelect = each; } if (each instanceof MasterDetailsComponent) { ((MasterDetailsComponent)each).setHistory(myHistory); } each.reset(); } myHistory.clear(); if (toSelect == null && myName2Config.size() > 0) { toSelect = myName2Config.iterator().next(); } removeSelected(); navigateTo(toSelect != null ? createPlaceFor(toSelect) : null, false); } finally { token.finish(); } }
Example 4
Source File: OptionsEditor.java From consulo with Apache License 2.0 | 4 votes |
public void reset(Configurable configurable, boolean notify) { configurable.reset(); if (notify) { getContext().fireReset(configurable); } }
Example 5
Source File: UpdateOrStatusOptionsDialog.java From consulo with Apache License 2.0 | 4 votes |
private void addComponent(AbstractVcs vcs, Configurable configurable, String constraint) { myEnvToConfMap.put(vcs, configurable); myMainPanel.add(configurable.createComponent(), constraint); configurable.reset(); }