[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: what is RTFWriter?

celvia jones wrote:
can anyone please tell me what RTFWriter is used for.

it is defined in the package
   org.eclipse.swt.custom.StyledText.RTFWriter

but i am unable to create the RTFWriter object.I dont understand why?..!!

RTFWriter is defined as a class within StyledText.But i cannot access it.Idont know how to use.

That is a protected inner class; protected members of a class can not be accessed from outside that class or its package or subclasses (which is a basic Java rule I would expect a Java programmer to know). You don't use that class directly; it is part of the implementation of StyledText.
If you browse the code of StyledText a little, you'd see that RTFWriter is used to copy the contents of the StyledText to the clipboard during copy and cut operations.


Hope this helps,
	Eric