Search in sources :

Example 31 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgThreadFromEDT.

@Test
public void testThreadChangingOnBgThreadFromEDT() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundThread(parent), new Invoker.EDT(parent), false);
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 32 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgThread.

@Test
public void testThreadChangingOnBgThread() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundThread(parent));
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 33 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testInvokeLaterOnBgPool.

@Test
public void testInvokeLaterOnBgPool() {
    Disposable parent = InvokerTest::dispose;
    testInvokeLater(parent, new Invoker.BackgroundPool(parent));
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 34 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testInvokeLaterIfNeededOnEDT.

@Test
public void testInvokeLaterIfNeededOnEDT() {
    Disposable parent = InvokerTest::dispose;
    testInvokeLaterIfNeeded(parent, new Invoker.EDT(parent));
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 35 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgPoolFromEDT.

@Test
public void testThreadChangingOnBgPoolFromEDT() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundPool(parent), new Invoker.EDT(parent), false);
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Aggregations

Disposable (com.intellij.openapi.Disposable)282 NotNull (org.jetbrains.annotations.NotNull)52 Test (org.junit.Test)25 Project (com.intellij.openapi.project.Project)18 TestOnly (org.jetbrains.annotations.TestOnly)17 ArrayList (java.util.ArrayList)13 VirtualFile (com.intellij.openapi.vfs.VirtualFile)11 RelativePoint (com.intellij.ui.awt.RelativePoint)11 Nullable (org.jetbrains.annotations.Nullable)10 Document (com.intellij.openapi.editor.Document)9 File (java.io.File)9 ProcessHandler (com.intellij.execution.process.ProcessHandler)6 Editor (com.intellij.openapi.editor.Editor)6 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)6 VirtualFilePointer (com.intellij.openapi.vfs.pointers.VirtualFilePointer)6 Content (com.intellij.ui.content.Content)6 ProcessCanceledException (com.intellij.openapi.progress.ProcessCanceledException)5 Alarm (com.intellij.util.Alarm)5 ActionEvent (java.awt.event.ActionEvent)5 ListSelectionEvent (javax.swing.event.ListSelectionEvent)5