Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java')
-rw-r--r--org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java
index 53b1eee36..591dd084e 100644
--- a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java
+++ b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/util/BundleUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2006 IBM Corporation and others.
+ * Copyright (c) 2004, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -41,12 +41,11 @@ public class BundleUtil {
if (bundle == null)
Log.error("Universal Welcome tried accessing a NULL bundle.", null); //$NON-NLS-1$
else {
- String msg = StringUtil
- .concat("Universal Welcome tried accessing Bundle: ", getBundleHeader( //$NON-NLS-1$
- bundle, Constants.BUNDLE_NAME), " vendor: ", //$NON-NLS-1$
- getBundleHeader(bundle, Constants.BUNDLE_VENDOR),
- " bundle state: ", String.valueOf(bundle.getState())).toString(); //$NON-NLS-1$
- Log.error(msg, null);
+ String msg = StringUtil.concat("Universal Welcome tried accessing Bundle: ", getBundleHeader( //$NON-NLS-1$
+ bundle, Constants.BUNDLE_NAME), " vendor: ", //$NON-NLS-1$
+ getBundleHeader(bundle, Constants.BUNDLE_VENDOR), " bundle state: ", //$NON-NLS-1$
+ String.valueOf(bundle.getState()));
+ Log.error(msg, null);
}
return false;
}
@@ -155,9 +154,9 @@ public class BundleUtil {
// localLocation can be null if the passed resource could not
// be found relative to the plugin. log fact, return resource,
// as is.
- String msg = StringUtil.concat("Could not find resource: ", //$NON-NLS-1$
- resource, " in ", getBundleHeader( //$NON-NLS-1$
- bundle, Constants.BUNDLE_NAME)).toString();
+ String msg = StringUtil.concat("Could not find resource: ", //$NON-NLS-1$
+ resource, " in ", getBundleHeader( //$NON-NLS-1$
+ bundle, Constants.BUNDLE_NAME));
Log.warning(msg);
return resource;
}
@@ -167,9 +166,9 @@ public class BundleUtil {
*/
return toExternalForm(localLocation);
} catch (Exception e) {
- String msg = StringUtil.concat("Failed to load resource: ", //$NON-NLS-1$
- resource, " from ", getBundleHeader(bundle, //$NON-NLS-1$
- Constants.BUNDLE_NAME)).toString();
+ String msg = StringUtil.concat("Failed to load resource: ", //$NON-NLS-1$
+ resource, " from ", getBundleHeader(bundle, //$NON-NLS-1$
+ Constants.BUNDLE_NAME));
Log.error(msg, e);
return resource;
}

Back to the top