本文整理汇总了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);
}
示例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();
}
}
示例3: disposeUIResources
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void disposeUIResources() {
if (form != null) {
Disposer.dispose(form);
}
form = null;
}
示例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;
}
}
示例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;
}
}
示例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);
}
});
}
示例7: tearDown
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
protected void tearDown() throws Exception {
Disposer.dispose(myEventsProcessor);
Disposer.dispose(myConsole);
super.tearDown();
}
示例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);
}
}
};
}
示例9: dispose
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
protected void dispose() {
super.dispose();
for (AbstractWizardStepEx step : mySteps) {
Disposer.dispose(step);
}
}
示例10: dispose
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void dispose() {
for (JpsSourceFolder folder : myJpsSourceFolders) {
Disposer.dispose(folder);
}
myJpsSourceFolders.clear();
}
示例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;
}
示例12: dispose
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void dispose() {
Disposer.dispose(this);
}
示例13: actionPerformed
import com.intellij.openapi.util.Disposer; //导入方法依赖的package包/类
@Override
public void actionPerformed(AnActionEvent e) {
Disposer.dispose(consoleView);
myRerunAction.run();
}
示例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);
}