Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Code Formatting in Text based editor
Code Formatting in Text based editor [message #262197] Sat, 17 July 2004 10:50
Eclipse UserFriend
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
Previous Topic:Is there a way to listen to "Save As." command to do some additional post processing.
Next Topic:minimize view shortcut
Goto Forum:
  


Current Time: Sun May 11 07:40:25 EDT 2025

Powered by FUDForum. Page generated in 0.02706 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top