]
Alexey Kazakov commented on JBIDE-17978:
----------------------------------------
We do not need to have any dialog to ask user to enable AngularJS for now:
- Our AngularJS adapter (extension in o.j.t.jsdt.jst plugin) enables AngularJS nature for
any project with a js nature.
- AngularJS IDE configures .tern-project and adds angularJS module to the project with
angularJS nature enabled when any HTML file with any AngularJS stuff is being opened with
HTML editor.
So let's review this approach and see what should/can be changed in JBT 4.3.*. But
it's OK for JBT 4.2.
Need to turn on 'angular'-Tern Module automatically in case
of AngularJS is detected on a project
-------------------------------------------------------------------------------------------------
Key: JBIDE-17978
URL:
https://issues.jboss.org/browse/JBIDE-17978
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: jsp/jsf/xml/html source editing
Affects Versions: 4.2.0.Beta3
Reporter: Victor Rubezhny
Assignee: Victor Rubezhny
Labels: new_and_noteworthy
Fix For: 4.3.x
Attachments: dialog.png
At the moment, a user cannot use Content Assist for Angular.js by default, because the
according Tern module isn't turned on by default.
So, users have to do the following set up in order to use it:
Add 'AngularJS module to Tern in order to make anguler-related stuff enabled on the
project. In order to do that you should enable 'JBoss Experimental configuration'
in Window -> Preferences -> General -> Capabilities first, then enable
'angilar' module in Project properties -> Tern -> Modules.
We shall detect the angular usage on a project and turn that module on automatically.
We should ask user to enable AngularJS support for the project when an html file with
angularJS usage is opened with JBT HTML Editor (if not enabled yet):
!dialog.png!