Search in sources :

Example 1 with QueueFileEditor

use of com.microsoft.intellij.helpers.storage.QueueFileEditor in project azure-tools-for-java by Microsoft.

the class UIHelperImpl method refreshQueue.

@Override
public void refreshQueue(@NotNull final Object projectObject, @NotNull final StorageAccount storageAccount, @NotNull final Queue queue) {
    AzureTaskManager.getInstance().read(() -> {
        VirtualFile file = (VirtualFile) getOpenedFile(projectObject, storageAccount.name(), queue);
        if (file != null) {
            final QueueFileEditor queueFileEditor = (QueueFileEditor) FileEditorManager.getInstance((Project) projectObject).getEditors(file)[0];
            AzureTaskManager.getInstance().runLater(() -> queueFileEditor.fillGrid());
        }
    });
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) LightVirtualFile(com.intellij.testFramework.LightVirtualFile) Project(com.intellij.openapi.project.Project) QueueFileEditor(com.microsoft.intellij.helpers.storage.QueueFileEditor)

Aggregations

Project (com.intellij.openapi.project.Project)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 LightVirtualFile (com.intellij.testFramework.LightVirtualFile)1 QueueFileEditor (com.microsoft.intellij.helpers.storage.QueueFileEditor)1