Skip to content

Commit

Permalink
Merge pull request #1043 from eclipse-passage/1042
Browse files Browse the repository at this point in the history
Invalid image for license agreement data #1042
  • Loading branch information
eparovyshnaya authored Feb 20, 2022
2 parents e552d18 + 09376be commit 08346a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Automatic-Module-Name: org.eclipse.passage.lic.licenses.edit
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.passage.lic.licenses.edit;singleton:=true
Bundle-Version: 2.1.0.qualifier
Bundle-Version: 2.1.100.qualifier
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Copyright: %Bundle-Copyright
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*******************************************************************************/
package org.eclipse.passage.lic.licenses.edit.providers;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collection;
import java.util.List;

Expand Down Expand Up @@ -193,8 +195,12 @@ protected void addContentTypePropertyDescriptor(Object object) {
*/
@Override
public Object getImage(Object object) {
return overlayImage(object,
getResourceLocator().getImage("../org.eclipse.passage.lic.agreements.edit/full/obj16/agreement.png")); //$NON-NLS-1$
try {
return overlayImage(object,
new URL("platform:/plugin/org.eclipse.passage.lic.agreements.edit/full/obj16/agreement.png")); //$NON-NLS-1$
} catch (MalformedURLException e) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/license.png")); //$NON-NLS-1$
}
}

/**
Expand Down

0 comments on commit 08346a1

Please sign in to comment.