当前位置: 首页>>代码示例>>Java>>正文


Java Configurable.disposeUIResources方法代码示例

本文整理汇总了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
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:MavenSettingsTest.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:28,代码来源:ProjectStructureConfigurable.java

示例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);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:ConfigurableCardPanel.java

示例4: disposeUIResources

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
  rootComponent = null;

  for (Configurable child : children) {
    child.disposeUIResources();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:MergedCompositeConfigurable.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:SubCompositeConfigurable.java

示例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();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:40,代码来源:CoverageLineMarkerRenderer.java

示例7: disposeUIResources

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public void disposeUIResources() {
  for (Configurable configurable : configurables) {
    configurable.disposeUIResources();
  }
  tabbedPane = null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:CompositeConfigurable.java


注:本文中的com.intellij.openapi.options.Configurable.disposeUIResources方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。