Skip to content

New and Noteworthy 0.5.0

angelozerr edited this page Aug 22, 2014 · 10 revisions

Here's a list of the most noteworthy things in the AngularJS Eclipse 0.5.0 release which will be available for download on ?. You can see issues for 0.5.0

Please read New and Noteworthy 0.5.0 of tern.java

JSP Features

Highlighting

AngularJS Eclipse support highlighting for Angular expression and directive like HTML editor :

JSP Angular Highlighting

To manage that it uses org.eclipse.wst.sse.ui.semanticHighlighting extension point. Here the extension point which manages directive highlight :

 <extension
       point="org.eclipse.wst.sse.ui.semanticHighlighting">
    <highlighting
          class="org.eclipse.angularjs.ui.style.DirectiveSemanticHighlighting"
          target="org.eclipse.jst.jsp.core.jspsource"
          styleStringKey="directiveName">
    </highlighting>
 </extension>

Validation

JSP validation (use JSP file with Angular) was developped like HTML validation (use HTML file with Angular). To enable JSP Angular Validation, you must go in your project properties Validation menu item and:

  • enable JSP Angular Content Validator

  • disable JSP Content Validator (otherwise you will have warnings for Angular attributes/elements)

Enable JSP Angular Content Validator

After this configuration, JSP Angular Content Validator is enable to :

  • ignore warning for HTML Angular attributes/elements (ng-app, custom directives, etc). Here a screenshot which shows you that ng-app is a known attribute and XXXX is an unkown attribute :

Ignore warnings

  • displays errors for unknown module, controller

Error for Unknown Controller

  • support global validation. If you validate your JSP :

Angular Validate

You will see marked errors :

Angular Validate

Clone this wiki locally