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


Java Disposer.dispose方法代码示例

本文整理汇总了Java中com.intellij.openapi.util.Disposer.dispose方法的典型用法代码示例。如果您正苦于以下问题:Java Disposer.dispose方法的具体用法?Java Disposer.dispose怎么用?Java Disposer.dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.openapi.util.Disposer的用法示例。


在下文中一共展示了Disposer.dispose方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testDisposalAndAbsenceOfReferences

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
public void testDisposalAndAbsenceOfReferences() throws Exception {
  Disposer.register(myRoot, myFolder1);
  Disposer.register(myRoot, myFolder2);
  Disposer.register(myFolder1, myLeaf1);

  Disposer.dispose(myFolder1);
  assertFalse(myRoot.isDisposed());
  assertDisposed(myFolder1);
  assertDisposed(myLeaf1);
  assertFalse(myFolder2.isDisposed());

  Disposer.dispose(myRoot);
  assertDisposed(myRoot);
  assertDisposed(myFolder2);

  Disposer.dispose(myLeaf1);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:DisposerTest.java

示例2: finishCompletionProcess

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
private void finishCompletionProcess(boolean disposeOffsetMap) {
  cancel();

  ApplicationManager.getApplication().assertIsDispatchThread();
  Disposer.dispose(myQueue);
  LookupManager.getInstance(getProject()).removePropertyChangeListener(myLookupManagerListener);

  CompletionProgressIndicator currentCompletion = CompletionServiceImpl.getCompletionService().getCurrentCompletion();
  LOG.assertTrue(currentCompletion == this, currentCompletion + "!=" + this);

  CompletionServiceImpl
    .assertPhase(CompletionPhase.BgCalculation.class, CompletionPhase.ItemsCalculated.class, CompletionPhase.Synchronous.class,
                 CompletionPhase.CommittingDocuments.class);
  CompletionPhase oldPhase = CompletionServiceImpl.getCompletionPhase();
  if (oldPhase instanceof CompletionPhase.CommittingDocuments) {
    LOG.assertTrue(((CompletionPhase.CommittingDocuments)oldPhase).isRestartingCompletion(), oldPhase);
    ((CompletionPhase.CommittingDocuments)oldPhase).replaced = true;
  }
  CompletionServiceImpl.setCompletionPhase(CompletionPhase.NoCompletion);
  if (disposeOffsetMap) {
    disposeIndicator();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:CompletionProgressIndicator.java

示例3: disposeUIResources

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
	if (form != null) {
		Disposer.dispose(form);
	}
	form = null;
}
 
开发者ID:xylo,项目名称:intellij-postfix-templates,代码行数:8,代码来源:CptPluginConfigurable.java

示例4: sessionDetached

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void sessionDetached( DebuggerSession session )
{
  if( !getHotSwappableDebugSessions().isEmpty() )
  {
    return;
  }

  final MessageBusConnection conn = _conn;
  if( conn != null )
  {
    Disposer.dispose( conn );
    _conn = null;
  }
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:16,代码来源:HotSwapComponent.java

示例5: onHintHidden

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
protected void onHintHidden() {
  super.onHintHidden();
  XValueHint prev = getEditor().getUserData(HINT_KEY);
  if (prev == this) {
    getEditor().putUserData(HINT_KEY, null);
  }
  if (myDisposable != null) {
    Disposer.dispose(myDisposable);
    myDisposable = null;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:XValueHint.java

示例6: disposeUIResources

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
  Disposer.dispose(new Disposable() {
    @Override
    public void dispose() {
      unregisterShortcut(ArrangementConstants.MATCHING_ALIAS_RULE_ADD, myTokenRulesPanel);
      unregisterShortcut(ArrangementConstants.MATCHING_ALIAS_RULE_REMOVE, myTokenRulesPanel);
      unregisterShortcut(ArrangementConstants.MATCHING_ALIAS_RULE_MOVE_UP, myTokenRulesPanel);
      unregisterShortcut(ArrangementConstants.MATCHING_ALIAS_RULE_MOVE_DOWN, myTokenRulesPanel);
      unregisterShortcut(ArrangementConstants.MATCHING_ALIAS_RULE_EDIT, myTokenRulesPanel);
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:ArrangementRuleAliasConfigurable.java

示例7: tearDown

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
protected void tearDown() throws Exception {
  Disposer.dispose(myEventsProcessor);
  Disposer.dispose(myConsole);

  super.tearDown();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:GeneralToSMTRunnerEventsConvertorTest.java

示例8: ShortDiffDetails

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
public ShortDiffDetails(Project project, Getter<Change[]> master, final VcsChangeDetailsManager vcsChangeDetailsManager) {
  myMaster = master;
  myProject = project;
  myVcsChangeDetailsManager = vcsChangeDetailsManager;

  myDetailsCache = new SLRUMap<FilePath, RefreshablePanel>(10, 10) {
    @Override
    protected void onDropFromCache(FilePath key, RefreshablePanel value) {
      if (value != null) {
        Disposer.dispose(value);
      }
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ShortDiffDetails.java

示例9: dispose

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
protected void dispose() {
  super.dispose();
  for (AbstractWizardStepEx step : mySteps) {
    Disposer.dispose(step);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:AbstractWizardEx.java

示例10: dispose

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void dispose() {
  for (JpsSourceFolder folder : myJpsSourceFolders) {
    Disposer.dispose(folder);
  }
  myJpsSourceFolders.clear();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:MavenSourceFoldersModuleExtension.java

示例11: disposeUI

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
public void disposeUI() {
  if (myInspectionProfilePanel == null) {
    return;
  }
  myAlarm.cancelAllRequests();
  myProfileFilter.dispose();
  if (mySelectedProfile != null) {
    for (ScopeToolState state : mySelectedProfile.getAllTools(myProjectProfileManager.getProject())) {
      state.resetConfigPanel();
    }
  }
  mySelectedProfile = null;
  Disposer.dispose(myDisposable);
  myDisposable = null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:SingleInspectionProfilePanel.java

示例12: dispose

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void dispose() {
    Disposer.dispose(this);
}
 
开发者ID:kookob,项目名称:mybatis-log-plugin,代码行数:5,代码来源:TailContentExecutor.java

示例13: actionPerformed

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void actionPerformed(AnActionEvent e) {
    Disposer.dispose(consoleView);
    myRerunAction.run();
}
 
开发者ID:kookob,项目名称:mybatis-log-plugin,代码行数:6,代码来源:TailContentExecutor.java

示例14: disposeComponent

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void disposeComponent() {
    Disposer.dispose(disposable);
    disposable = null;
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:6,代码来源:HybrisProjectApplicationComponent.java

示例15: dispose

import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void dispose() {
  Disposer.dispose(this);
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:5,代码来源:StudyStepicUserWidget.java


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