Java Code Examples for com.intellij.openapi.options.Configurable#disposeUIResources()
The following examples show how to use
com.intellij.openapi.options.Configurable#disposeUIResources() .
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: CoverageLineMarkerRenderer.java From consulo with Apache License 2.0 | 5 votes |
@Override public void actionPerformed(AnActionEvent e) { final ColorAndFontOptions colorAndFontOptions = new ColorAndFontOptions(){ @Override protected List<ColorAndFontPanelFactory> createPanelFactories() { final GeneralColorsPage colorsPage = new GeneralColorsPage(); final ColorAndFontPanelFactory panelFactory = new ColorAndFontPanelFactory() { @Nonnull @Override public NewColorAndFontPanel createPanel(@Nonnull ColorAndFontOptions options) { final SimpleEditorPreview preview = new SimpleEditorPreview(options, colorsPage); return NewColorAndFontPanel.create(preview, colorsPage.getDisplayName(), options, null, colorsPage); } @Nonnull @Override public String getPanelDisplayName() { return "Editor | " + getDisplayName() + " | " + colorsPage.getDisplayName(); } }; return Collections.singletonList(panelFactory); } }; final Configurable[] configurables = colorAndFontOptions.buildConfigurables(); try { final SearchableConfigurable general = colorAndFontOptions.findSubConfigurable(GeneralColorsPage.class); if (general != null) { final LineData lineData = getLineData(myLineNumber); ShowSettingsUtil.getInstance().editConfigurable(myEditor.getProject(), general, general.enableSearch(getAttributesKey(lineData).getExternalName())); } } finally { for (Configurable configurable : configurables) { configurable.disposeUIResources(); } colorAndFontOptions.disposeUIResources(); } }
Example 2
Source File: MergedCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public void disposeUIResources() { myRootPanel = null; myRootComponent = null; for (Configurable child : children) { child.disposeUIResources(); } }
Example 3
Source File: SubCompositeConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public final void disposeUIResources() { root = null; rootComponent = null; if (isChildrenMerged()) { for (Configurable child : children) { child.disposeUIResources(); } } children = null; }
Example 4
Source File: CopyrightFormattingConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@RequiredUIAccess @Override public void disposeUIResources() { if (myPanel != null) { myPanel.disposeUIResources(); } for (Configurable configurable : getConfigurables()) { configurable.disposeUIResources(); } myPanel = null; }
Example 5
Source File: ProjectStructureConfigurable.java From consulo with Apache License 2.0 | 5 votes |
@Override public void disposeUIResources() { final PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject); propertiesComponent.setValue("project.structure.last.edited", myUiState.lastEditedConfigurable); myContext.getDaemonAnalyzer().stop(); for (Configurable each : myName2Config) { each.disposeUIResources(); } myProjectStructureDialog = null; myContext.clear(); myName2Config.clear(); }