Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP Task + Javascript Task
PHP Task + Javascript Task [message #99138] Fri, 26 June 2009 14:54 Go to next message
BB is currently offline BBFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I'm new here and I've performed searches on the possibility combining PHP
Task and Javascript Task in the task view, but got nothing.

I've a question/request for this, since most of the time, we have php,
html, javascript and css files inside a php-web project (I even have
actionscript files).

Actually, only PHP tasks marked by TODO, @todo, etc. are parsed and
updated in the task view, which itself is very handy to manage PHP tasks
and from the task view, one can go directly to the line containing the
task.

The task management using Mylyn seems to me overkill for our projects, so
I want to know if there's any work-around to add all the tasks marked in
the code source of at least javascript files, into the task view.

If there's none, I'd like to request this feature.

Regards,
BB

PS: I even download the pdt code source to see if I could create a
validation like the PHPTodoTaskValidator.java, but it's too complicated
for me, while the plugin central has nothing for it :-)
Re: PHP Task + Javascript Task [message #99176 is a reply to message #99138] Fri, 26 June 2009 18:37 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4046
Registered: July 2009
Senior Member

BB wrote:
> I'm new here and I've performed searches on the possibility combining
> PHP Task and Javascript Task in the task view, but got nothing.
>
> I've a question/request for this, since most of the time, we have php,
> html, javascript and css files inside a php-web project (I even have
> actionscript files).
>
> Actually, only PHP tasks marked by TODO, @todo, etc. are parsed and
> updated in the task view, which itself is very handy to manage PHP tasks
> and from the task view, one can go directly to the line containing the
> task.
>
> The task management using Mylyn seems to me overkill for our projects,
> so I want to know if there's any work-around to add all the tasks marked
> in the code source of at least javascript files, into the task view.
>
> If there's none, I'd like to request this feature.
>
> Regards,
> BB
>
> PS: I even download the pdt code source to see if I could create a
> validation like the PHPTodoTaskValidator.java, but it's too complicated
> for me, while the plugin central has nothing for it :-)

For JavaScript tasks, you need to have JavaScript enabled on your
project (use its Configure context menu if it is not a Static or
Dynamic Web project to do so) and add the folders where you have
JavaScript files onto the JavaScript Libraries property page of the
project (Properties from the project's context menu, or use the
Project menu from the menubar at the top of the workbench window).
The matching Task Tags preference page is in the
Web/JavaScript/Validation category, and they're discovered through
normal workspace building.

HTML and CSS make use of the Task Tags preference page under the
Structured text Editors category; turning it on is all you need to
do there, but it's disabled because it can be slow to process the
entire workspace. This page covers XML, DTD, and JSP files as well,
if you have them.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


Nitin Dahyabhai
Eclipse Web Tools Platform
Re: PHP Task + Javascript Task [message #508216 is a reply to message #99176] Sun, 17 January 2010 18:19 Go to previous message
No real name is currently offline No real nameFriend
Messages: 1
Registered: January 2010
Junior Member
I have tried doing adding a folder to the libraries but it gives me a process error and when i click on the button to show the details it shows me nothing. I go back to view the libraries and the ones I just added are not there. I'm not sure what I'm doing wrong or if I'm missing something.


Edit:
I figured it out. I was using todo in the taskTags and was putting @todo in the code. For whatever reason the @ is not implied for taskTags in js like it is in php. changed the filter to use @todo and it picked it up just fine.

Also, for some reason, my css / html tasks are showing up twice. Not a big deal i guess since at least they're showing up, but could possibly get annoying.

[Updated on: Sun, 17 January 2010 19:13]

Report message to a moderator

Previous Topic:Aptana and Templates
Next Topic:'xxx.php is not a PHP file' setting up Run Configuration (for any php file)
Goto Forum:
  


Current Time: Mon May 17 18:28:39 GMT 2021

Powered by FUDForum. Page generated in 0.01809 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top