本文整理汇总了Java中com.intellij.openapi.options.Configurable.disposeUIResources方法的典型用法代码示例。如果您正苦于以下问题:Java Configurable.disposeUIResources方法的具体用法?Java Configurable.disposeUIResources怎么用?Java Configurable.disposeUIResources使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.options.Configurable
的用法示例。
在下文中一共展示了Configurable.disposeUIResources方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testNotModifiedAfterCreation
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public void testNotModifiedAfterCreation() throws Exception {
MavenSettings s = new MavenSettings(myProject);
s.createComponent();
s.reset();
try {
assertFalse(s.isModified());
}
finally {
s.disposeUIResources(); //prevent memory leaks
}
for (Configurable each : s.getConfigurables()) {
each.createComponent();
each.reset();
try {
assertFalse(each.isModified());
}
finally {
each.disposeUIResources(); //prevent memory leaks
}
}
}
示例2: disposeUIResources
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
if (!myUiInitialized) return;
final PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject);
propertiesComponent.setValue("project.structure.last.edited", myUiState.lastEditedConfigurable);
propertiesComponent.setValue("project.structure.proportion", String.valueOf(myUiState.proportion));
propertiesComponent.setValue("project.structure.side.proportion", String.valueOf(myUiState.sideProportion));
myWasUiDisposed = true;
myUiState.proportion = mySplitter.getProportion();
saveSideProportion();
myContext.getDaemonAnalyzer().stop();
for (Configurable each : myName2Config) {
each.disposeUIResources();
}
myContext.clear();
myName2Config.clear();
myModuleConfigurator.getFacetsConfigurator().clearMaps();
if (myErrorsComponent != null) {
Disposer.dispose(myErrorsComponent);
}
myUiInitialized = false;
}
示例3: dispose
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
protected void dispose(Configurable configurable) {
if (configurable != null) {
long time = System.currentTimeMillis();
try {
configurable.disposeUIResources();
}
catch (Exception unexpected) {
LOG.error("cannot dispose configurable", unexpected);
}
finally {
warn(configurable, "dispose", time);
}
}
}
示例4: disposeUIResources
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
rootComponent = null;
for (Configurable child : children) {
child.disposeUIResources();
}
}
示例5: disposeUIResources
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public final void disposeUIResources() {
root = null;
rootComponent = null;
if (isChildrenMerged()) {
for (Configurable child : children) {
child.disposeUIResources();
}
}
children = null;
}
示例6: actionPerformed
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@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() {
@NotNull
@Override
public NewColorAndFontPanel createPanel(@NotNull ColorAndFontOptions options) {
final SimpleEditorPreview preview = new SimpleEditorPreview(options, colorsPage);
return NewColorAndFontPanel.create(preview, colorsPage.getDisplayName(), options, null, colorsPage);
}
@NotNull
@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();
}
}
示例7: disposeUIResources
import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public void disposeUIResources() {
for (Configurable configurable : configurables) {
configurable.disposeUIResources();
}
tabbedPane = null;
}