Search in sources :

Example 1 with ContainerRegistryExplorerEditorInput

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

the class UIHelperImpl method openContainerRegistryPropertyView.

@Override
public void openContainerRegistryPropertyView(@NotNull ContainerRegistryNode node) {
    String sid = node.getSubscriptionId();
    String resId = node.getResourceId();
    if (Utils.isEmptyString(sid) || Utils.isEmptyString(resId)) {
        return;
    }
    IWorkbench workbench = PlatformUI.getWorkbench();
    ContainerRegistryExplorerEditorInput input = new ContainerRegistryExplorerEditorInput(sid, resId, node.getName());
    IEditorDescriptor descriptor = workbench.getEditorRegistry().findEditor(ContainerRegistryExplorerEditor.ID);
    openEditor(EditorType.CONTAINER_EXPLORER, input, descriptor);
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) ContainerRegistryExplorerEditorInput(com.microsoft.azuretools.azureexplorer.editors.container.ContainerRegistryExplorerEditorInput) IEditorDescriptor(org.eclipse.ui.IEditorDescriptor)

Aggregations

ContainerRegistryExplorerEditorInput (com.microsoft.azuretools.azureexplorer.editors.container.ContainerRegistryExplorerEditorInput)1 IEditorDescriptor (org.eclipse.ui.IEditorDescriptor)1 IWorkbench (org.eclipse.ui.IWorkbench)1