Disable Eclipse warning about generated html?

When developing projects, Flex Eclipse gives warnings about the default index.html file generated by Flex Builder. The file is located in the “target” folder (or “generated artifacts.” Yes, I also use Maven). Can I remove or disable this warning?

The code that generates the warning is below, although I would definitely prefer not to modify the html - as I said, this is a template proposed by Adobe. Eclipse warns of an "Undefined attribute name (xxx)" for scroll in the body tag and most embed attributes.

There is no DOCTYPE declaration in the html file.

 <html lang="en"> ... <body scroll="no"> ... <embed src="myswf.swf" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="myswf-flex" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed> ... 
+4
source share
1 answer

There are several options. The easiest way is to filter the target folder from the package explorer.

In the "Package Explorer" view, the bottom right displays a top-down view (using the "Tip View" menu), click on it and select Filters .... In the dialog box, check Name Filter Filters (the corresponding elements will be hidden): and enter the target in the field. The destination folder should now be hidden, and errors for the destination folder suppressed.

A few other options: In the Problems view, select the View menu triangle and select Configure Content .

In the dialog box, you can:

  • Clear the HTML Problem check box in the Types list. Obviously, this disables all HTML issues that are small.
  • In the Scope section, select In working set:. To create a new working set, select Select ... , create a new working set for the project, which includes everything except the goal.
+3
source

All Articles