Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Keller2015-10-30 13:22:40 +0000
committerLars Vogel2015-11-10 12:03:18 +0000
commit40e147526c673fb4be753260a3715216c8e6cbd2 (patch)
tree478261c3246e9a04ccb814dc6ba0a66ab3a8d166
parent3ed9adf34191b49a3c8890127c99252130693836 (diff)
downloadeclipse.platform.ui-40e147526c673fb4be753260a3715216c8e6cbd2.tar.gz
eclipse.platform.ui-40e147526c673fb4be753260a3715216c8e6cbd2.tar.xz
eclipse.platform.ui-40e147526c673fb4be753260a3715216c8e6cbd2.zip
Bug 480929 - Use vararg MessageFormat.format method in Platform.UII20151110-0800
two fixes Change-Id: I3faffb1b820afa55cd9e547aaebeb0deee3939b2 Signed-off-by: Martin Keller <Martin.Keller@ts.fujitsu.com>
-rwxr-xr-xbundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java b/bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java
index 06f7ac075a5..52845794489 100755
--- a/bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java
+++ b/bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2010 IBM Corporation and others.
+ * Copyright (c) 2001, 2015 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
@@ -405,8 +405,7 @@ public class TabbedPropertyRegistry {
}
}
// could not append the section to any of the existing tabs - log error
- String message = MessageFormat.format(NO_TAB_ERROR, new Object[] {
- section.getId(), section.getTargetTab() });
+ String message = MessageFormat.format(NO_TAB_ERROR, section.getId(), section.getTargetTab());
IStatus status = new Status(IStatus.ERROR, TabbedPropertyViewPlugin
.getPlugin().getBundle().getSymbolicName(),
TabbedPropertyViewStatusCodes.NO_TAB_ERROR, message, null);
@@ -533,8 +532,7 @@ public class TabbedPropertyRegistry {
String category) {
String pluginId = configurationElement.getDeclaringExtension()
.getNamespaceIdentifier();
- String message = MessageFormat.format(TAB_ERROR, new Object[] {
- pluginId, category });
+ String message = MessageFormat.format(TAB_ERROR, pluginId, category );
IStatus status = new Status(IStatus.ERROR, pluginId,
TabbedPropertyViewStatusCodes.TAB_ERROR, message, null);
TabbedPropertyViewPlugin.getPlugin().getLog().log(status);

Back to the top