Lines 151-156
Link Here
|
151 |
validatePluginId(header, id); |
151 |
validatePluginId(header, id); |
152 |
validateSingleton(header, elements[0]); |
152 |
validateSingleton(header, elements[0]); |
153 |
|
153 |
|
|
|
154 |
// Header introduced in OSGi R4 - warn if R3 manifest |
155 |
if (!fOsgiR4) |
156 |
report(NLS.bind(PDECoreMessages.BundleErrorReporter_R4SyntaxInR3Bundle, Constants.BUNDLE_SYMBOLICNAME), header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_R4_SYNTAX_IN_R3_BUNDLE, PDEMarkerFactory.CAT_OTHER); |
157 |
|
154 |
return true; |
158 |
return true; |
155 |
} |
159 |
} |
156 |
|
160 |
|
Lines 230-235
Link Here
|
230 |
return; |
234 |
return; |
231 |
} |
235 |
} |
232 |
|
236 |
|
|
|
237 |
// Header introduced in OSGi R4 - warn if R3 manifest |
238 |
if (!fOsgiR4) |
239 |
report(NLS.bind(PDECoreMessages.BundleErrorReporter_R4SyntaxInR3Bundle,Constants.FRAGMENT_HOST), header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_R4_SYNTAX_IN_R3_BUNDLE, PDEMarkerFactory.CAT_OTHER); |
240 |
|
233 |
if (!isCheckUnresolvedImports()) |
241 |
if (!isCheckUnresolvedImports()) |
234 |
return; |
242 |
return; |
235 |
|
243 |
|
Lines 550-555
Link Here
|
550 |
} |
558 |
} |
551 |
} |
559 |
} |
552 |
} |
560 |
} |
|
|
561 |
|
562 |
// Header introduced in OSGi R4 - warn if R3 manifest |
563 |
if (!fOsgiR4) |
564 |
report(NLS.bind(PDECoreMessages.BundleErrorReporter_R4SyntaxInR3Bundle, Constants.REQUIRE_BUNDLE), header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_R4_SYNTAX_IN_R3_BUNDLE, PDEMarkerFactory.CAT_OTHER); |
565 |
|
553 |
} |
566 |
} |
554 |
|
567 |
|
555 |
private void validateBundleVersionAttribute(IHeader header, ManifestElement element) { |
568 |
private void validateBundleVersionAttribute(IHeader header, ManifestElement element) { |
Lines 966-971
Link Here
|
966 |
int severity = CompilerFlags.getFlag(fProject, CompilerFlags.P_DEPRECATED); |
979 |
int severity = CompilerFlags.getFlag(fProject, CompilerFlags.P_DEPRECATED); |
967 |
if (header == null) |
980 |
if (header == null) |
968 |
return; |
981 |
return; |
|
|
982 |
|
983 |
// Header introduced in OSGi R4 - warn if R3 manifest |
984 |
if (!fOsgiR4) |
985 |
report(NLS.bind(PDECoreMessages.BundleErrorReporter_R4SyntaxInR3Bundle, Constants.BUNDLE_ACTIVATIONPOLICY), header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_R4_SYNTAX_IN_R3_BUNDLE, PDEMarkerFactory.CAT_OTHER); |
986 |
|
969 |
if (TargetPlatformHelper.getTargetVersion() >= 3.3) { |
987 |
if (TargetPlatformHelper.getTargetVersion() >= 3.3) { |
970 |
validateHeaderValue(header, new String[] {Constants.ACTIVATION_LAZY}); |
988 |
validateHeaderValue(header, new String[] {Constants.ACTIVATION_LAZY}); |
971 |
} else if (severity != CompilerFlags.IGNORE && !containsValidActivationHeader()) { |
989 |
} else if (severity != CompilerFlags.IGNORE && !containsValidActivationHeader()) { |
Lines 1130-1135
Link Here
|
1130 |
location = new String(); |
1148 |
location = new String(); |
1131 |
} |
1149 |
} |
1132 |
|
1150 |
|
|
|
1151 |
// Header introduced in OSGi R4 - warn if R3 manifest |
1152 |
if (!fOsgiR4) |
1153 |
report(NLS.bind(PDECoreMessages.BundleErrorReporter_R4SyntaxInR3Bundle, Constants.BUNDLE_LOCALIZATION), header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_R4_SYNTAX_IN_R3_BUNDLE, PDEMarkerFactory.CAT_OTHER); |
1154 |
|
1133 |
IResource res = PDEProject.getBundleRoot(fProject).findMember(location); |
1155 |
IResource res = PDEProject.getBundleRoot(fProject).findMember(location); |
1134 |
if (res == null || !(res instanceof IContainer)) { |
1156 |
if (res == null || !(res instanceof IContainer)) { |
1135 |
report(PDECoreMessages.BundleErrorReporter_localization_folder_not_exist, header.getLineNumber() + 1, CompilerFlags.getFlag(fProject, CompilerFlags.P_UNKNOWN_RESOURCE), PDEMarkerFactory.CAT_OTHER); |
1157 |
report(PDECoreMessages.BundleErrorReporter_localization_folder_not_exist, header.getLineNumber() + 1, CompilerFlags.getFlag(fProject, CompilerFlags.P_UNKNOWN_RESOURCE), PDEMarkerFactory.CAT_OTHER); |