Search in sources :

Example 1 with TableFileEditor

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

the class UIHelperImpl method refreshTable.

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

Aggregations

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