Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-02-18 23:17:47 +0000
committerChris Goldthorpe2010-02-18 23:17:47 +0000
commitfd788195a71d6b3a7031934e98945be0e0150dc3 (patch)
treea4a8e70142a8461253d356f82dbe382a0d03cf54
parentea659ad13573848b275ecab5d1ff2cee440d5264 (diff)
downloadeclipse.platform.ua-fd788195a71d6b3a7031934e98945be0e0150dc3.tar.gz
eclipse.platform.ua-fd788195a71d6b3a7031934e98945be0e0150dc3.tar.xz
eclipse.platform.ua-fd788195a71d6b3a7031934e98945be0e0150dc3.zip
Bug 303255 – Reference to Java 1.4 method in org.eclipse.help
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/criteria/CriterionResource.java24
1 files changed, 15 insertions, 9 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/criteria/CriterionResource.java b/org.eclipse.help/src/org/eclipse/help/internal/criteria/CriterionResource.java
index 88c7ec78f..cbd4f3dd3 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/criteria/CriterionResource.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/criteria/CriterionResource.java
@@ -1,11 +1,3 @@
-package org.eclipse.help.internal.criteria;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.help.ICriteria;
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
@@ -17,6 +9,16 @@ import org.eclipse.help.ICriteria;
* IBM Corporation - initial API and implementation
*******************************************************************************/
+package org.eclipse.help.internal.criteria;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import org.eclipse.help.ICriteria;
+
import org.eclipse.help.internal.HelpPlugin;
/**
@@ -71,7 +73,11 @@ public class CriterionResource {
&& 0 != elementValue.length()) {
if (HelpPlugin.getCriteriaManager().isSupportedCriterion(elementName)) {
elementName = elementName.toLowerCase();
- List values = Arrays.asList(elementValue.split(",")); //$NON-NLS-1$
+ StringTokenizer tokenizer = new StringTokenizer(elementValue, ","); //$NON-NLS-1$
+ List values = new ArrayList();
+ while (tokenizer.hasMoreTokens()) {
+ values.add(tokenizer.nextToken().trim());
+ }
for(int j = 0; j < criteriaList.size(); ++j){
CriterionResource criterion = (CriterionResource) criteriaList.get(j);
if(elementName.equals(criterion.getCriterionName())){

Back to the top