本文整理匯總了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;
}