Search in sources :

Example 1 with TableEntityForm

use of com.microsoft.azuretools.azureexplorer.forms.TableEntityForm in project azure-tools-for-java by Microsoft.

the class TableFileEditor method editEntity.

private void editEntity() {
    TableEntity[] selectedEntities = getSelectedEntities();
    if (selectedEntities != null && selectedEntities.length > 0) {
        final TableEntity selectedEntity = selectedEntities[0];
        final TableEntityForm form = new TableEntityForm(PluginUtil.getParentShell(), "Edit Entity");
        form.setTableName(table.getName());
        form.setStorageAccount(storageAccount);
        form.setTableEntity(selectedEntity);
        form.setOnFinish(new Runnable() {

            @Override
            public void run() {
                //                    tableEntities.set(entitiesTable.getSelectedRow(), form.getTableEntity());
                refreshGrid();
            }
        });
        form.open();
    }
}
Also used : TableEntityForm(com.microsoft.azuretools.azureexplorer.forms.TableEntityForm) TableEntity(com.microsoft.tooling.msservices.model.storage.TableEntity)

Aggregations

TableEntityForm (com.microsoft.azuretools.azureexplorer.forms.TableEntityForm)1 TableEntity (com.microsoft.tooling.msservices.model.storage.TableEntity)1