Search in sources :

Example 1 with WebAppPropertyEditorInput

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

the class UIHelperImpl method openWebAppPropertyView.

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

Aggregations

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