Code Formatting in Text based editor [message #262197] |
Sat, 17 July 2004 10:50 |
Eclipse User |
|
|
|
Hi,
I have developed a text based editor
it is working fine for code assist, syntax highlighting.
I want to add now code formatting. From one sample text editor i get the
code and its working fine with my plugin also but the problem is
it uses ContentFormatter class in getContentFormatter method but it is
deprecated and i need to use MultiPassContentFormatter instead of
ContentFormatter. So how to set it and how to use setMasterStrategy for
that?
I have used in setMasterStrategy(<class that implements
IFormattingStrategy>)
Now the problem is: above method gives exception for Assert.isTrue(strategy
instanceof IFormattingStrategyExtions) and my strategy is not instance of it
so gives error...
Please help me to solve it....
Thanking you in advance....
Mahesh Devjibhai Dhola
|
|
|
Powered by
FUDForum. Page generated in 0.02706 seconds