Search in sources :

Example 1 with BlobExplorerFileEditor

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

the class UIHelperImpl method refreshBlobs.

@Override
public void refreshBlobs(@NotNull final Object projectObject, @NotNull final String accountName, @NotNull final BlobContainer container) {
    AzureTaskManager.getInstance().read(() -> {
        VirtualFile file = (VirtualFile) getOpenedFile(projectObject, accountName, container);
        if (file != null) {
            final BlobExplorerFileEditor containerFileEditor = (BlobExplorerFileEditor) FileEditorManager.getInstance((Project) projectObject).getEditors(file)[0];
            AzureTaskManager.getInstance().runLater(() -> containerFileEditor.fillGrid());
        }
    });
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) LightVirtualFile(com.intellij.testFramework.LightVirtualFile) Project(com.intellij.openapi.project.Project) BlobExplorerFileEditor(com.microsoft.intellij.helpers.storage.BlobExplorerFileEditor)

Aggregations

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