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