Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-05-08 16:24:44 +0000
committerslewis2007-05-08 16:24:44 +0000
commit53d4fc11e572a49cfb40cad30d3de917f2367220 (patch)
tree185831927f56c362aa45c19bf79b6a75337ad965
parent21ed2d27999429ea87830d66e15dd5ad12186cf3 (diff)
downloadorg.eclipse.ecf-53d4fc11e572a49cfb40cad30d3de917f2367220.tar.gz
org.eclipse.ecf-53d4fc11e572a49cfb40cad30d3de917f2367220.tar.xz
org.eclipse.ecf-53d4fc11e572a49cfb40cad30d3de917f2367220.zip
Removed calls to String.split()v20070508-1842
-rw-r--r--framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomManagerView.java6
-rw-r--r--framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomView.java7
2 files changed, 11 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomManagerView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomManagerView.java
index d1f59b0d6..36463340b 100644
--- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomManagerView.java
+++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomManagerView.java
@@ -1533,7 +1533,11 @@ public class ChatRoomManagerView extends ViewPart implements
if (color != null) {
color.dispose();
}
- String[] vals = rgb.split(",");
+ StringTokenizer st = new StringTokenizer(rgb,",");
+ String [] vals = new String [3];
+ for(int i=0; i < 3; i++) {
+ vals[i] = st.nextToken();
+ }
color = new Color(getViewSite().getShell().getDisplay(), Integer
.parseInt(vals[0]), Integer.parseInt(vals[1]), Integer
.parseInt(vals[2]));
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomView.java
index 913f9dfc4..f510348e7 100644
--- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomView.java
+++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/deprecated/views/ChatRoomView.java
@@ -19,6 +19,7 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
+import java.util.StringTokenizer;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.user.IUser;
@@ -146,7 +147,11 @@ public class ChatRoomView extends ViewPart implements
if (color != null) {
color.dispose();
}
- String[] vals = rgb.split(",");
+ StringTokenizer st = new StringTokenizer(rgb,",");
+ String [] vals = new String [3];
+ for(int i=0; i < 3; i++) {
+ vals[i] = st.nextToken();
+ }
color = new Color(getViewSite().getShell().getDisplay(), Integer
.parseInt(vals[0]), Integer.parseInt(vals[1]), Integer
.parseInt(vals[2]));

Back to the top