當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。