This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!

gong he

Greenhorn
+ Follow
since Dec 08, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gong he

is here a wrong place to ask the question?

as I know now,I can use org.eclipse.draw2d.text package to display text,just like this:
private void createComposite() {
LightweightSystem lws = new LightweightSystem(sShell);

FlowPage page=new FlowPage();
BlockFlow blockFlow=new BlockFlow();
page.add(blockFlow);

TextFlow text0=new TextFlow();
text0.setText("test string1 in color green");
text0.setForegroundColor(ColorConstants.green);

TextFlow text1=new TextFlow();
text1.setText("test string1 in color blue");
text1.setForegroundColor(ColorConstants.blue);

blockFlow.add(text0);
blockFlow.add(text1);

lws.setContents(page);

}


but how can make them editable? to define tool and EditPart?
16 years ago
Hi,
I'm looking for a way to use GEF with a text editor,I known how to display various sytle of text in a Figure,but I didn't know how to make it editable.
please give me some suggestion.thanks!
[ December 08, 2004: Message edited by: gong he ]
16 years ago