Search in sources :

Example 1 with HDInsightRootModuleImpl

use of com.microsoft.azure.hdinsight.serverexplore.HDInsightRootModuleImpl in project azure-tools-for-java by Microsoft.

the class HDInsightUtil method setHDInsightRootModule.

public static void setHDInsightRootModule(@NotNull AzureModule azureModule) {
    HDInsightRootModuleImpl hdInsightRootModule = new HDInsightRootModuleImpl(azureModule);
    // add telemetry for HDInsight Node
    hdInsightRootModule.addClickActionListener(new NodeActionListener() {

        @Override
        protected void actionPerformed(NodeActionEvent e) throws AzureCmdException {
            AppInsightsClient.create(HDInsightBundle.message("HDInsightExplorerHDInsightNodeExpand"), null);
        }
    });
    azureModule.setHdInsightModule(hdInsightRootModule);
}
Also used : HDInsightRootModuleImpl(com.microsoft.azure.hdinsight.serverexplore.HDInsightRootModuleImpl) AzureCmdException(com.microsoft.azuretools.azurecommons.helpers.AzureCmdException) NodeActionListener(com.microsoft.tooling.msservices.serviceexplorer.NodeActionListener) NodeActionEvent(com.microsoft.tooling.msservices.serviceexplorer.NodeActionEvent)

Aggregations

HDInsightRootModuleImpl (com.microsoft.azure.hdinsight.serverexplore.HDInsightRootModuleImpl)1 AzureCmdException (com.microsoft.azuretools.azurecommons.helpers.AzureCmdException)1 NodeActionEvent (com.microsoft.tooling.msservices.serviceexplorer.NodeActionEvent)1 NodeActionListener (com.microsoft.tooling.msservices.serviceexplorer.NodeActionListener)1