Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » IMarkerResolution2 - Display HTML content (IMarker.MESSAGE - Display HTML content)
IMarkerResolution2 - Display HTML content [message #1755328] Thu, 02 March 2017 11:18
Suresh P is currently offline Suresh PFriend
Messages: 27
Registered: May 2013
Junior Member
hi,

I need to display HTML content (or formatted String) in IMarker.MESSAGE. Currently it displays only plain Text in single line.

       IMarker aiMarker = null;
                String markerRuleDesc = "\n\npublic void foo(String bar) throws Throwable { \n  throw new RuntimeException(\"My Message\");  \n}\n\nCompliant Solution";
	        aiMarker.setAttribute(IMarker.MESSAGE, markerRuleDesc);


In the above String "markerRuleDesc", the newline chars "\n" are not reflected in marker popup window.

Similarly, if I pass HTML contents to IMarker.MESSAGE, it is displayed as plain text in the popup window.

Previous Topic:JDT - Check Instances of RuntimeException class
Next Topic:Debugging: source lookup for dynamically compiled & loaded classes
Goto Forum:
  


Current Time: Tue Jan 23 02:23:52 GMT 2018

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

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