diff options
author | Dejan Gloszic | 2005-12-13 23:35:24 +0000 |
---|---|---|
committer | Dejan Gloszic | 2005-12-13 23:35:24 +0000 |
commit | 3d82bf33cd9b6848073fd408f48733080c4b2261 (patch) | |
tree | 003189a28226253f9b02686c386b1faaadb4c0d6 | |
parent | 733325804e7d93b7b5106c31145d60ed52857fdf (diff) | |
download | eclipse.platform.ua-3d82bf33cd9b6848073fd408f48733080c4b2261.tar.gz eclipse.platform.ua-3d82bf33cd9b6848073fd408f48733080c4b2261.tar.xz eclipse.platform.ua-3d82bf33cd9b6848073fd408f48733080c4b2261.zip |
*** empty log message ***
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java index 2fa669b7f..84f1cf8b3 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java @@ -663,9 +663,12 @@ public class SearchIndex implements ISearchIndex { currentLuceneVersion += (String) lucenePluginDescriptor.getHeaders() .get(Constants.BUNDLE_VERSION); } + //Direct comparison + if (currentLuceneVersion.equals(luceneVersion)) + return true; Version version = new Version(currentLuceneVersion); Version currentVersion = new Version(luceneVersion); - if (version.getMajor() == 1 && version.getMinor() == 4 && version.getMicro() >= 103) { + if (version.getMajor() == 1 && version.getMinor() == 4 && version.getMicro() == 103) { // this is compatible with 1.4.3 after moving to the // new format version = new Version("1.4.3"); //$NON-NLS-1$ |