Add a HTML comment using Eclipse RAP

33 Views Asked by At

How do I add a HTML comment using Eclipse RAP 3.9 E4?

The following adds the comment text to the HTML albeit in a <div>. I would like the comment text in a <!-- -->.

public class MainEntry extends AbstractEntryPoint
{
   protected void createContents(Composite parent)
   {
      Label comment;

      comment = new Label(parent, SWT.NONE);

      comment.setText("This is my comment");
      comment.setVisible(false);
   }
}
0

There are 0 best solutions below