Search in sources :

Example 1 with EclipseAzureMessager

use of com.microsoft.azure.toolkit.eclipse.common.messager.EclipseAzureMessager in project azure-tools-for-java by Microsoft.

the class Activator method start.

/*
     * (non-Javadoc)
     * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
     */
@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    pluginInstLoc = Paths.get(PluginUtil.pluginFolder, File.separator, com.microsoft.azuretools.core.utils.Messages.commonPluginID).toString();
    dataFile = Paths.get(pluginInstLoc, File.separator, com.microsoft.azuretools.core.utils.Messages.dataFileName).toString();
    AzureStoreManager.register(new DefaultMachineStore(Paths.get(pluginInstLoc, "azure.json").toString()), new EclipseStore(), new EclipseSecureStore());
    AzureTaskManager.register(new EclipseAzureTaskManager());
    AzureMessager.setDefaultMessager(new EclipseAzureMessager());
    DefaultLoader.setPluginComponent(this);
    DefaultLoader.setIdeHelper(new IDEHelperImpl());
    SchedulerProviderFactory.getInstance().init(new AppSchedulerProvider());
    MvpUIHelperFactory.getInstance().init(new MvpUIHelperImpl());
    AzureConfigInitializer.initialize(InstallationIdUtils.getHashMac(), "Azure Toolkit for Eclipse", Activator.getDefault().getBundle().getVersion().toString());
    initAzureToolsCoreLibsSettings();
    // load up the plugin settings
    try {
        loadPluginSettings();
    } catch (IOException e) {
        showException("Azure Core Plugin", "An error occurred while attempting to load settings for the Azure Core plugin.", e);
    }
    findObsoletePackages(context);
    super.start(context);
}
Also used : EclipseAzureMessager(com.microsoft.azure.toolkit.eclipse.common.messager.EclipseAzureMessager) DefaultMachineStore(com.microsoft.azure.toolkit.ide.common.store.DefaultMachineStore) EclipseAzureTaskManager(com.microsoft.azure.toolkit.eclipse.common.task.EclipseAzureTaskManager) EclipseStore(com.microsoft.azuretools.core.store.EclipseStore) AppSchedulerProvider(com.microsoft.azuretools.core.mvp.ui.base.AppSchedulerProvider) MvpUIHelperImpl(com.microsoft.azuretools.core.azureexplorer.helpers.MvpUIHelperImpl) IOException(java.io.IOException) IDEHelperImpl(com.microsoft.azuretools.core.azureexplorer.helpers.IDEHelperImpl) EclipseSecureStore(com.microsoft.azuretools.core.store.EclipseSecureStore)

Aggregations

EclipseAzureMessager (com.microsoft.azure.toolkit.eclipse.common.messager.EclipseAzureMessager)1 EclipseAzureTaskManager (com.microsoft.azure.toolkit.eclipse.common.task.EclipseAzureTaskManager)1 DefaultMachineStore (com.microsoft.azure.toolkit.ide.common.store.DefaultMachineStore)1 IDEHelperImpl (com.microsoft.azuretools.core.azureexplorer.helpers.IDEHelperImpl)1 MvpUIHelperImpl (com.microsoft.azuretools.core.azureexplorer.helpers.MvpUIHelperImpl)1 AppSchedulerProvider (com.microsoft.azuretools.core.mvp.ui.base.AppSchedulerProvider)1 EclipseSecureStore (com.microsoft.azuretools.core.store.EclipseSecureStore)1 EclipseStore (com.microsoft.azuretools.core.store.EclipseStore)1 IOException (java.io.IOException)1