Package org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins

Examples of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.PluginService


  public List<Plugin> searchAddOns(String searchTerms, boolean refresh, boolean trustedOnly, boolean compatibleOnly) {
    ServiceReference addOnServiceReference = null;
    try {
      addOnServiceReference = getAddOnService(addOnServiceReference);
      if (addOnServiceReference != null) {
        PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
        return service.search(searchTerms, refresh, trustedOnly, compatibleOnly);
      }
    }
    catch (Throwable e) {
      RooCoreActivator.log(e);
    } finally {
View Full Code Here


  public IStatus install(PluginVersion version) {
    ServiceReference addOnServiceReference = null;
    try {
      addOnServiceReference = getAddOnService(addOnServiceReference);
      if (addOnServiceReference != null) {
        PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
        InstallOrUpgradeStatus result = service.install(version);
        return handleResult(result);
      }
    }
    catch (Throwable e) {
      RooCoreActivator.log(e);
View Full Code Here

  public IStatus update(PluginVersion version) {
    ServiceReference addOnServiceReference = null;
    try {
      addOnServiceReference = getAddOnService(addOnServiceReference);
      if (addOnServiceReference != null) {
        PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
        InstallOrUpgradeStatus result = service.upgrade(version);
        return handleResult(result);
      }
    }
    catch (Throwable e) {
      RooCoreActivator.log(e);
View Full Code Here

  public IStatus uninstall(PluginVersion version) {
    ServiceReference addOnServiceReference = null;
    try {
      addOnServiceReference = getAddOnService(addOnServiceReference);
      if (addOnServiceReference != null) {
        PluginService service = (PluginService) framework.getBundleContext().getService(addOnServiceReference);
        InstallOrUpgradeStatus result = service.remove(version);
        if (result == InstallOrUpgradeStatus.SUCCESS) {
          return Status.OK_STATUS;
        }
        else {
          return new Status(IStatus.ERROR, RooCoreActivator.PLUGIN_ID, "Operation failed.");
View Full Code Here

TOP

Related Classes of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.PluginService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.