Mercurial > projects > dwt-win
comparison dwt/custom/Bullet.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | a5afe31f5cdd |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | 2 * Copyright (c) 2000, 2006 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
14 | 14 |
15 import dwt.DWT; | 15 import dwt.DWT; |
16 import dwt.custom.StyleRange; | 16 import dwt.custom.StyleRange; |
17 import dwt.custom.ST; | 17 import dwt.custom.ST; |
18 import dwt.dwthelper.System; | 18 import dwt.dwthelper.System; |
19 import dwt.dwthelper.utils; | |
19 | 20 |
20 /** | 21 /** |
21 * Instances of this class represent bullets in the <code>StyledText</code>. | 22 * Instances of this class represent bullets in the <code>StyledText</code>. |
22 * <p> | 23 * <p> |
23 * The hashCode() method in this class uses the values of the public | 24 * The hashCode() method in this class uses the values of the public |
36 * @since 3.2 | 37 * @since 3.2 |
37 */ | 38 */ |
38 public class Bullet { | 39 public class Bullet { |
39 public int type; | 40 public int type; |
40 public StyleRange style; | 41 public StyleRange style; |
41 public char[] text; | 42 public String text; |
42 int[] linesIndices; | 43 int[] linesIndices; |
43 int count; | 44 int count; |
44 | 45 |
45 /** | 46 /** |
46 * Create a new bullet the specified style, the type is set to ST.BULLET_DOT. | 47 * Create a new bullet the specified style, the type is set to ST.BULLET_DOT. |