-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to use wst.facets or provide an adapter to an existing facet #99
Comments
Either solution works for me and I will be willing to write the code for either but I wanted to see what others here thought: @pascalleclercq @vrubezhny |
By far the simpler change is to just add a "class" element to the ternNatureAdapter and if an adopter provides a class (as opposed to just another nature id) then the tern adapter manager could call a method adapt on that class and see if tern should "recognize" that project, then adopters are free to implement the "this is a tern project" however they need, and in my case it would be the existence of liferay.portlet facet. |
Indeed, today tern nature adapter works only with project nature : You can write that :
It means that project which has the nature "org.eclipse.angularjs.core.angularnature" is a tern project. If I understand your need, you wish to use facet and not the project nature. To do that we could provide :
If class is not defined, it uses project nature like today. @gamerson @vrubezhny what do you think about that? Perhaps you will find a better name than ITernNatureCapability . |
That sounds good. On the flight from china to US (I didn't see your mail) I On Friday, July 4, 2014, Angelo notifications@github.com wrote:
Greg Amerson |
I close this issue since a PR was done for that at #100 |
Liferay IDE projects are just webtools projects with liferay.* facet. I would like the ability to either adapt a ternNature to the liferay facet or add support in tern for tern.java facet that would serve the same purpose as ternNature.
The text was updated successfully, but these errors were encountered: