Search in sources :

Example 1 with RedisExplorerEditorInput

use of com.microsoft.azuretools.azureexplorer.editors.rediscache.RedisExplorerEditorInput in project azure-tools-for-java by Microsoft.

the class UIHelperImpl method openRedisExplorer.

@Override
public void openRedisExplorer(@NotNull RedisCacheNode node) {
    IWorkbench workbench = PlatformUI.getWorkbench();
    RedisExplorerEditorInput input = new RedisExplorerEditorInput(node.getSubscriptionId(), node.getResourceId(), node.getName());
    IEditorDescriptor descriptor = workbench.getEditorRegistry().findEditor(RedisExplorerEditor.ID);
    openEditor(EditorType.REDIS_EXPLORER, input, descriptor);
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) IEditorDescriptor(org.eclipse.ui.IEditorDescriptor) RedisExplorerEditorInput(com.microsoft.azuretools.azureexplorer.editors.rediscache.RedisExplorerEditorInput)

Aggregations

RedisExplorerEditorInput (com.microsoft.azuretools.azureexplorer.editors.rediscache.RedisExplorerEditorInput)1 IEditorDescriptor (org.eclipse.ui.IEditorDescriptor)1 IWorkbench (org.eclipse.ui.IWorkbench)1