Skip to content

Commit

Permalink
Bug 551901 - Unspecified organization name displays "by unknown"
Browse files Browse the repository at this point in the history
Change-Id: I3fdb3cc9b6af19c30a96be92ec842f83137ae4cd
Signed-off-by: PyvesB <PyvesDev@gmail.com>

Bug 551901: Removed unnecessary import of org.eclipse.equinox.util,
increased license feature to version 2.0.2

Signed-off-by: Leif Geiger <leif.geiger@yatta.de>
Change-Id: I3fdb3cc9b6af19c30a96be92ec842f83137ae4cd
  • Loading branch information
l3-g5 committed Oct 18, 2019
1 parent 99a7714 commit 6369d5f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.epp.mpc-target/staging.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.ds" version="0.0.0"/>
<unit id="org.eclipse.sdk.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.13-I-builds"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.14-I-builds"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.hamcrest" version="0.0.0"/>
Expand Down
1 change: 0 additions & 1 deletion org.eclipse.epp.mpc.core.win32/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.osgi;bundle-version="3.6.0",
org.eclipse.osgi.services;bundle-version="3.3.100",
org.eclipse.equinox.util;bundle-version="1.0.500",
com.sun.jna;bundle-version="4.1.0",
com.sun.jna.platform;bundle-version="4.1.0"
Import-Package: org.eclipse.epp.internal.mpc.core.transport.httpclient;bundle-version="1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.epp.mpc.dependencies.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version="1.8.0.qualifier"
provider-name="%providerName"
license-feature="org.eclipse.license"
license-feature-version="2.0.1">
license-feature-version="2.0.2">

<description url="http://www.eclipse.org/epp/mpc/">
%description
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.epp.mpc.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
provider-name="%providerName"
plugin="org.eclipse.epp.mpc.ui"
license-feature="org.eclipse.license"
license-feature-version="2.0.1">
license-feature-version="2.0.2">

<description url="http://www.eclipse.org/epp/mpc/">
%description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2018 The Eclipse Foundation and others.
* Copyright (c) 2010, 2019 The Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand All @@ -10,6 +10,7 @@
* Contributors:
* The Eclipse Foundation - initial API and implementation
* Yatta Solutions - bug 314936, bug 398200, bug 432803: public API, bug 413871: performance
* Pierre-Yves B., pyvesdev@gmail.com - Bug 551901: Unspecified organization name displays "by unknown"
*******************************************************************************/
package org.eclipse.epp.internal.mpc.ui.catalog;

Expand Down Expand Up @@ -348,7 +349,11 @@ protected CatalogItem createCatalogItem(final INode node, String categoryId, boo
} else {
catalogItem.setDescription(node.getShortdescription());
}
catalogItem.setProvider(node.getCompanyname());
String provider = node.getCompanyname();
if (provider == null || provider.isEmpty()) {
provider = node.getOwner();
}
catalogItem.setProvider(provider);
String updateurl = node.getUpdateurl();
if (updateurl != null) {
try {
Expand Down

0 comments on commit 6369d5f

Please sign in to comment.