-
1. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Nov 30, 2011 3:18 PM (in response to vyemialyanchyk)1 of 1 people found this helpfulYou can enable JBoss Tools Knowledge Base for your project if you want to have code completion/navigation/... working for your project avoiding adding JSF capabilities. See properties for your project.
If you use your custom TLD then it should work but if want to have support of custom JSP tag files then JBT doesn't support it yet.
-
2. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 1, 2011 12:33 PM (in response to akazakov)I've update my "stopka.us" test project with
<nature>org.jboss.tools.jsf.jsfnature</nature> <nature>org.jboss.tools.jst.web.kb.kbnature</nature> like you suggested and find a couple of related issues, please take a look.
-
3. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Dec 1, 2011 12:33 PM (in response to vyemialyanchyk)Did you add the natures manually or via JBT?
If you do it manually and didn't set other properties for the project then you will get a broken project.
-
4. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 1, 2011 1:12 PM (in response to akazakov)I added natures to the project manually (I modified .project file). ok - I see -
Right mouse click on project --> Configure --> Add JBoss Tools Knowledge Base support - add
org.jboss.tools.jst.web.kb.kbbuilder as a project builder.
Unfortunately, "Add JBoss Tools Knowledge Base support" to the project and then "Close" the project leads to exceptions...
I'll create separate issue for it.
sorry - the issue which I want to report was somehow related to test project particular state at that moment. I can't reproduce it constantly, so forget it.
But attached to the topic issues has a sense.
-
5. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Dec 1, 2011 1:14 PM (in response to vyemialyanchyk)Then you got a broken project. If you are not 100% sure what are you doing with your .project then it's better to use UI to configure the project.
For KB it adds nature and builder and makes sure that it's placed in right order.
For JSF nature it's even more complicated. Your project has to be a Dynimic Web Project.
-
6. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 1, 2011 1:13 PM (in response to akazakov)sorry about that, it was a wrondg alarm.
-
7. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 2, 2011 12:29 PM (in response to akazakov)Alexey, I must report what I've find "Add JBoss Tools Knowledge Base support" behavior complitly strange.
Here I describe 2 situations with my test project:
1) I've added org.jboss.tools.jsf.jsfnature & org.jboss.tools.jst.web.kb.kbnature - manually - after I closed the test project and reopen it - I can navigate with my tags (closed and reopen the project are obligatory steps);
2) when I added via "Add JBoss Tools Knowledge Base support" - I can not navigate to tld files with Ctrl+Left mouse
I'll attach test project here. Could you point what is wrong in my steps?
-
9. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Dec 2, 2011 1:07 PM (in response to vyemialyanchyk)It seems that you didn't enable JBoss Tools Knowledge Base support for your project.
.project doesn't have KB builder/nature.
See Project Properties->JBoss Tools Knowledge Base
Also if you want to get TLD navigation working you have to convert your project to Dynamic Web Project.
See Project Properties->Facets
-
10. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 2, 2011 1:17 PM (in response to akazakov)Alexey, you did not read my post above
Here I describe 2 situations with my test project:
1) I've added org.jboss.tools.jsf.jsfnature & org.jboss.tools.jst.web.kb.kbnature - manually - after I closed the test project and reopen it - I can navigate with my tags (closed and reopen the project are obligatory steps);
2) when I added via "Add JBoss Tools Knowledge Base support" - I can not navigate to tld files with Ctrl+Left mouse
the project is Dynamic Web Project - to see that - just necessary to download the project and import it to your workspace.
-
11. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Dec 2, 2011 1:26 PM (in response to vyemialyanchyk)So if you open Project Properties->JBoss Tools Knowledge Base for your project you see that KB is enabled there?
Can you take a screenshot?
Make sure that the .project file is exactly the same as you have in https://rapidshare.com/files/271188828/stopka-ui-test.zip
-
12. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 2, 2011 2:14 PM (in response to akazakov)I provided test project in it's initial state - so you can test:
clause (1) - add org.jboss.tools.jsf.jsfnature & org.jboss.tools.jst.web.kb.kbnature - manually - then closed the test project and reopen it - and you can navigate with tags;
clause (2) - use "Add JBoss Tools Knowledge Base support" - and see that navigation to tld files with Ctrl+Left mouse for test.jspx does not work.
-
13. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
akazakov Dec 2, 2011 2:22 PM (in response to vyemialyanchyk)As soon as you add org.jboss.tools.jsf.jsfnature & org.jboss.tools.jst.web.kb.kbnature manually you break your project. You have to undo your changes in .project file to be able work with Eclipse/WTP/JBT.
-
14. Re: Source navigation in JBossTools: open-on tld file in place corresponding to particular custom tag from my own custom tag library
vyemialyanchyk Dec 2, 2011 2:25 PM (in response to akazakov)thank you! I know this and I make clean independent testing, and you also can perform this - just download test project, make a copy,
test clause (1), delete the project, make a new copy, test clause (2).