diff options
author | Lars Vogel | 2019-12-02 19:12:34 +0000 |
---|---|---|
committer | Ed Merks | 2020-01-05 08:12:19 +0000 |
commit | 8a7213fb90a7c2f333c09968f22b0959e28aaed2 (patch) | |
tree | c5312a06f3953eabf4465d31487792f55d674d31 | |
parent | 42ba761663d1e2ec1df351ba96e586837f5509c6 (diff) | |
download | rt.equinox.bundles-8a7213fb90a7c2f333c09968f22b0959e28aaed2.tar.gz rt.equinox.bundles-8a7213fb90a7c2f333c09968f22b0959e28aaed2.tar.xz rt.equinox.bundles-8a7213fb90a7c2f333c09968f22b0959e28aaed2.zip |
Bug 549999 - Provide convenient MultiStatus constructorI20200106-0600
MultiStatus constructor is frequently called with null as last argument.
We should provide such a constructor and delegate to the existing to
simplify client code.
Change-Id: Iea50889f4466df9e8aebf11c6f7980052c106b38
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
3 files changed, 14 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.common/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.common/META-INF/MANIFEST.MF index fcdf9d9d4..b708fc24c 100644 --- a/bundles/org.eclipse.equinox.common/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.common/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.equinox.common; singleton:=true -Bundle-Version: 3.10.700.qualifier +Bundle-Version: 3.11.0.qualifier Bundle-Localization: plugin Export-Package: org.eclipse.core.internal.boot;x-friends:="org.eclipse.core.resources,org.eclipse.pde.build", org.eclipse.core.internal.runtime;common=split;mandatory:=common; diff --git a/bundles/org.eclipse.equinox.common/pom.xml b/bundles/org.eclipse.equinox.common/pom.xml index a2df79f92..f7c3ef995 100644 --- a/bundles/org.eclipse.equinox.common/pom.xml +++ b/bundles/org.eclipse.equinox.common/pom.xml @@ -19,6 +19,6 @@ </parent> <groupId>org.eclipse.equinox</groupId> <artifactId>org.eclipse.equinox.common</artifactId> - <version>3.10.700-SNAPSHOT</version> + <version>3.11.0-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project> diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/MultiStatus.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/MultiStatus.java index a30c485fa..b7a1c21b5 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/MultiStatus.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/MultiStatus.java @@ -60,6 +60,18 @@ public class MultiStatus extends Status { } /** + * Creates and returns a new multi-status object with no children. + * + * @param pluginId the unique identifier of the relevant plug-in + * @param code the plug-in-specific status code + * @param message a human-readable message, localized to the current locale + * @since 3.11 + */ + public MultiStatus(String pluginId, int code, String message) { + super(OK, pluginId, code, message, null); + } + + /** * Adds the given status to this multi-status. * * @param status the new child status |