|
Lines 10-22
Link Here
|
| 10 |
*******************************************************************************/ |
10 |
*******************************************************************************/ |
| 11 |
package org.eclipse.pde.internal.ui.shared.target; |
11 |
package org.eclipse.pde.internal.ui.shared.target; |
| 12 |
|
12 |
|
| 13 |
import org.eclipse.equinox.p2.operations.IUPropertyUtils; |
|
|
| 14 |
|
| 15 |
import com.ibm.icu.text.MessageFormat; |
13 |
import com.ibm.icu.text.MessageFormat; |
| 16 |
import java.net.URI; |
14 |
import java.net.URI; |
| 17 |
import org.eclipse.core.runtime.*; |
15 |
import org.eclipse.core.runtime.*; |
| 18 |
import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo; |
16 |
import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo; |
| 19 |
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit; |
17 |
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit; |
|
|
18 |
import org.eclipse.equinox.p2.common.TranslationSupport; |
| 20 |
import org.eclipse.jface.resource.ImageDescriptor; |
19 |
import org.eclipse.jface.resource.ImageDescriptor; |
| 21 |
import org.eclipse.jface.viewers.*; |
20 |
import org.eclipse.jface.viewers.*; |
| 22 |
import org.eclipse.pde.internal.core.target.*; |
21 |
import org.eclipse.pde.internal.core.target.*; |
|
Lines 38-43
Link Here
|
| 38 |
|
37 |
|
| 39 |
private boolean fShowVersion = true; |
38 |
private boolean fShowVersion = true; |
| 40 |
private boolean fAppendResolvedVariables = false; |
39 |
private boolean fAppendResolvedVariables = false; |
|
|
40 |
private TranslationSupport fTranslations; |
| 41 |
|
41 |
|
| 42 |
/** |
42 |
/** |
| 43 |
* Creates a label provider. |
43 |
* Creates a label provider. |
|
Lines 50-55
Link Here
|
| 50 |
PDEPlugin.getDefault().getLabelProvider().connect(this); |
50 |
PDEPlugin.getDefault().getLabelProvider().connect(this); |
| 51 |
fShowVersion = showVersion; |
51 |
fShowVersion = showVersion; |
| 52 |
fAppendResolvedVariables = appendResolvedVariables; |
52 |
fAppendResolvedVariables = appendResolvedVariables; |
|
|
53 |
fTranslations = new TranslationSupport(); |
| 53 |
} |
54 |
} |
| 54 |
|
55 |
|
| 55 |
/* (non-Javadoc) |
56 |
/* (non-Javadoc) |
|
Lines 136-142
Link Here
|
| 136 |
appendIncludedBundles(styledString, container); |
137 |
appendIncludedBundles(styledString, container); |
| 137 |
} else if (element instanceof IInstallableUnit) { |
138 |
} else if (element instanceof IInstallableUnit) { |
| 138 |
IInstallableUnit iu = (IInstallableUnit) element; |
139 |
IInstallableUnit iu = (IInstallableUnit) element; |
| 139 |
String name = IUPropertyUtils.getIUProperty(iu, IInstallableUnit.PROP_NAME); |
140 |
String name = fTranslations.getIUProperty(iu, IInstallableUnit.PROP_NAME); |
| 140 |
if (name == null) { |
141 |
if (name == null) { |
| 141 |
name = iu.getId(); |
142 |
name = iu.getId(); |
| 142 |
} |
143 |
} |