|
Lines 124-131
Link Here
|
| 124 |
// If the bundle is not a singleton, then it is not added |
124 |
// If the bundle is not a singleton, then it is not added |
| 125 |
if (!isSingleton(bundle)) { |
125 |
if (!isSingleton(bundle)) { |
| 126 |
if (report) { |
126 |
if (report) { |
| 127 |
String message = NLS.bind(RegistryMessages.parse_nonSingleton, bundle.getLocation()); |
127 |
String message = NLS.bind(RegistryMessages.parse_nonSingleton, bundle.getSymbolicName()); |
| 128 |
RuntimeLog.log(new Status(IStatus.INFO, RegistryMessages.OWNER_NAME, 0, message, null)); |
128 |
RuntimeLog.log(new Status(IStatus.WARNING, RegistryMessages.OWNER_NAME, 0, message, null)); |
| 129 |
} |
129 |
} |
| 130 |
return null; |
130 |
return null; |
| 131 |
} |
131 |
} |
|
Lines 141-148
Link Here
|
| 141 |
return extensionURL; |
141 |
return extensionURL; |
| 142 |
|
142 |
|
| 143 |
if (report) { |
143 |
if (report) { |
| 144 |
String message = NLS.bind(RegistryMessages.parse_nonSingleton, hosts[0].getLocation()); |
144 |
String message = NLS.bind(RegistryMessages.parse_nonSingletonFragment, bundle.getSymbolicName(), hosts[0].getSymbolicName()); |
| 145 |
RuntimeLog.log(new Status(IStatus.INFO, RegistryMessages.OWNER_NAME, 0, message, null)); |
145 |
RuntimeLog.log(new Status(IStatus.WARNING, RegistryMessages.OWNER_NAME, 0, message, null)); |
| 146 |
} |
146 |
} |
| 147 |
return null; |
147 |
return null; |
| 148 |
} |
148 |
} |
|
Lines 155-161
Link Here
|
| 155 |
IContributor contributor = ContributorFactoryOSGi.createContributor(bundle); |
155 |
IContributor contributor = ContributorFactoryOSGi.createContributor(bundle); |
| 156 |
if (registry.hasContributor(contributor)) |
156 |
if (registry.hasContributor(contributor)) |
| 157 |
return; |
157 |
return; |
| 158 |
URL pluginManifest = getExtensionURL(bundle, registry.debug()); |
158 |
URL pluginManifest = getExtensionURL(bundle, true); |
| 159 |
if (pluginManifest == null) |
159 |
if (pluginManifest == null) |
| 160 |
return; |
160 |
return; |
| 161 |
InputStream is; |
161 |
InputStream is; |