Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2015-03-09 20:54:50 +0000
committerPascal Rapicault2015-03-09 20:54:50 +0000
commit97c049de6141ed78adc45f6083aeb9ff447bfd0c (patch)
tree86b79a1e227f85048126a70598ba04f05ede29dd /bundles/org.eclipse.equinox.p2.publisher.eclipse
parent1f7d3bed9b77058a2c2bb18c4846c30fcfab6d18 (diff)
downloadrt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.tar.gz
rt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.tar.xz
rt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.zip
Bug 461758 - [Mac] Branding iron should set CFBundleDisplayNameI20150311-1300I20150310-0800
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.publisher.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
index 183653d06..b4c060b50 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
@@ -504,8 +504,10 @@ public class BrandingIron {
}
//Deal with error case
+ String capitalizedName = name.substring(0, 1).toUpperCase() + name.substring(1);
infoPListEditor.setKey(InfoPListEditor.MARKER_KEY, name);
- infoPListEditor.setKey(InfoPListEditor.BUNDLE_KEY, name);
+ infoPListEditor.setKey(InfoPListEditor.BUNDLE_KEY, capitalizedName);
+ infoPListEditor.setKey(InfoPListEditor.BUNDLE_DISPLAYNAME_KEY, capitalizedName);
infoPListEditor.setKey(InfoPListEditor.BUNDLE_ID_KEY, id == null ? name : id);
if (description != null)
infoPListEditor.setKey(InfoPListEditor.BUNDLE_INFO_KEY, description);
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
index 72c8885f4..9599eb27c 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
@@ -26,6 +26,7 @@ public class InfoPListEditor {
public static final String MARKER_KEY = "CFBundleExecutable"; //$NON-NLS-1$
public static final String BUNDLE_KEY = "CFBundleName"; //$NON-NLS-1$
public static final String BUNDLE_ID_KEY = "CFBundleIdentifier"; //$NON-NLS-1$
+ public static final String BUNDLE_DISPLAYNAME_KEY = "CFBundleDisplayName"; //$NON-NLS-1$
public static final String BUNDLE_INFO_KEY = "CFBundleGetInfoString"; //$NON-NLS-1$
public static final String BUNDLE_VERSION_KEY = "CFBundleVersion"; //$NON-NLS-1$
public static final String BUNDLE_SHORT_VERSION_KEY = "CFBundleShortVersionString"; //$NON-NLS-1$

Back to the top