diff options
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java')
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java index f57426d4d..ddacba5a7 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginIndex.java @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Sopot Cela - Bug 466829 *******************************************************************************/ package org.eclipse.help.internal.search; @@ -131,13 +132,12 @@ public class PluginIndex { } public boolean isCompatible(Bundle bundle, IPath prefixedPath) { - URL url = FileLocator.find(bundle, prefixedPath - .append(SearchIndex.DEPENDENCIES_VERSION_FILENAME), null); + URL url = FileLocator.find(bundle, prefixedPath.append(SearchIndex.DEPENDENCIES_VERSION_FILENAME), null); if (url == null) { - HelpBasePlugin.logError(prefixedPath - .append(SearchIndex.DEPENDENCIES_VERSION_FILENAME) - + " file missing from help index \"" //$NON-NLS-1$ - + path + "\" of plugin " + getPluginId(), null); //$NON-NLS-1$ + HelpBasePlugin.logError( + prefixedPath.append(SearchIndex.DEPENDENCIES_VERSION_FILENAME) + " file missing from help index \"" //$NON-NLS-1$ + + path + "\" of plugin " + getPluginId(), //$NON-NLS-1$ + null); return false; } @@ -150,6 +150,8 @@ public class PluginIndex { .getProperty(SearchIndex.DEPENDENCIES_KEY_ANALYZER); if (!targetIndex.isLuceneCompatible(lucene) || !targetIndex.isAnalyzerCompatible(analyzer)) { + HelpBasePlugin.logError("Error trying to consume Lucene index from bundle " + bundle.toString() //$NON-NLS-1$ + + ". Please use an index built with Lucene 6.1 or higher.", null); //$NON-NLS-1$ return false; } } catch (MalformedURLException mue) { |