Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem: Content Formatting in custom text editor
Problem: Content Formatting in custom text editor [message #262389] Mon, 19 July 2004 12:10
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:Enabling and disabling commands / menu items
Next Topic:Content Formatting in custom text editor in Eclipse 3.0??
Goto Forum:
  


Current Time: Thu Jul 17 20:54:59 EDT 2025

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

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

Back to the top