public int translateToError(BundleException e) {
		switch (e.getType()) {
		case BundleException.ACTIVATOR_ERROR:
			return LauncherConstants.ACTIVATOR_ERROR;

		case BundleException.DUPLICATE_BUNDLE_ERROR:
			return LauncherConstants.DUPLICATE_BUNDLE;

		case BundleException.RESOLVE_ERROR:
			return LauncherConstants.RESOLVE_ERROR;

		case BundleException.INVALID_OPERATION:
		case BundleException.MANIFEST_ERROR:
		case BundleException.NATIVECODE_ERROR:
		case BundleException.STATECHANGE_ERROR:
		case BundleException.UNSUPPORTED_OPERATION:
		case BundleException.UNSPECIFIED:
		default:
			return LauncherConstants.ERROR;
		}
	}