Re: [tasklist] Compiler Module II

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1046814568.706.187.camel@proto>
On Tue, 2003-03-04 at 12:40, Tim Lebedkov wrote:
> Hi group,
> 
> I will try to summarize thoughts about the new compiler module.
> In fact it is not only about it.
> 
> I see two different ways to handle suggestions:
> 
> 1. (Tor,JBuilder?,currently implemented) let the suggestion module 
>     parse currently opened file
>     and use a special action over a folder to search for suggestions in the
>     whole folder and place results in a separate view.
> 2. (Tim,Eclipse) Suggestion view always shows all suggestions for the
>     current project. These suggestions/problems/errors could be filtered 
>     to show only those from the currently opened file. As far as I 
>     understand Eclipse persists these suggestions between sessions 
>     and updates this view only on "file save" event.

That's correct - Eclipse is a bit different for a couple of reasons:
(1) their "TODO" scanner is performed by their compiler. 
    So when you compile your source tree, it also populates your
    TODOs from the project.
(2) they automatically compile a source file when you save a file.
(3) they have projects

NetBeans doesn't have real projects yet (although they're getting
close). That means that compilation can branch out in arbitrary
directions, to any file reachable from any of the file system
mounts. So, took keep the tasklist current, it would have to listen
to a massive number of files, or, it would only list tasks for
files you've already visited, or, it would only make itself current
by some explicit "scan" action.   It's this third approach I
implemented in NetBeans' tasklist. I think their PMD integration
relies on explicit execution.  So then you end up with the task
window being an aggregate output window, with one category node
for each thing. I personally think it's easier to have these
in separate tabs, since when I'm doing with one thing I can close
it, and since I can more easily switch tabs than navigate the
node hierarchy.

I'm going to take a look at VS.NET and see what they're doing.
I know they scan for TODOs right away while editing, not on save. 
But I believe they also may show stuff for more than the current
file. 

-- Tor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.