Should be able to apply different colors to different messages which are output to MessageConsoleStr

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Should be able to apply different colors to different messages which are output to MessageConsoleStr

bharath v hegde

  Hi All,

I am using the statements like:

MessageConsoleStream oStream = console.newMessageStream();
oStream.setColor(new Color(Display.getCurrent(),
                              lineRGB));
oStream.println(individualLine);

I want to provide different colors to different messages. But by  above approach, once the color of the stream is set, the same color is applied to all the remaining text.


Is there any way to apply different colors to the messages which are output?

regards,
Bharat




_______________________________________________
eclipse-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev
Reply | Threaded
Open this post in threaded view
|

Re: Should be able to apply different colors to different messages which are output to MessageConsoleStr

Kevin Barnes
Bharat,
Each stream can only have one color, but you may create as many streams as
needed to get the colorization you need.
In the future, please use the newgroups for this type of question. The
development mailing lists are the way design and implementation issues are
discussed and decisions voted on by the committers.
Kevin




"bharath v hegde" <[hidden email]>
Sent by: [hidden email]
04/26/05 08:50 AM
Please respond to
bharath v hegde and "General development mailing list of the Eclipse
project."


To
[hidden email]
cc

Subject
[eclipse-dev] Should be able to apply different colors to different
messages which are output to MessageConsoleStr






  Hi All,

I am using the statements like:

MessageConsoleStream oStream = console.newMessageStream();
oStream.setColor(new Color(Display.getCurrent(),
                              lineRGB));
oStream.println(individualLine);

I want to provide different colors to different messages. But by  above
approach, once the color of the stream is set, the same color is applied
to all the remaining text.


Is there any way to apply different colors to the messages which are
output?

regards,
Bharat


_______________________________________________
eclipse-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev


_______________________________________________
eclipse-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev