Search in sources :

Example 1 with DeploymentSlotPropertyEditorInput

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

the class UIHelperImpl method openDeploymentSlotPropertyView.

@Override
public void openDeploymentSlotPropertyView(final DeploymentSlotNode node) {
    if (Utils.isEmptyString(node.getId())) {
        return;
    }
    AzureTaskManager.getInstance().runLater(() -> {
        IWorkbench workbench = PlatformUI.getWorkbench();
        DeploymentSlotPropertyEditorInput input = new DeploymentSlotPropertyEditorInput(node.getId(), node.getSubscriptionId(), node.getWebAppId(), node.getName());
        IEditorDescriptor descriptor = workbench.getEditorRegistry().findEditor(DeploymentSlotEditor.ID);
        openEditor(EditorType.WEBAPP_EXPLORER, input, descriptor);
    });
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) DeploymentSlotPropertyEditorInput(com.microsoft.azuretools.azureexplorer.editors.webapp.DeploymentSlotPropertyEditorInput) IEditorDescriptor(org.eclipse.ui.IEditorDescriptor)

Aggregations

DeploymentSlotPropertyEditorInput (com.microsoft.azuretools.azureexplorer.editors.webapp.DeploymentSlotPropertyEditorInput)1 IEditorDescriptor (org.eclipse.ui.IEditorDescriptor)1 IWorkbench (org.eclipse.ui.IWorkbench)1