This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 184291 - Do not auto display TaskList window if there are no data to show in it
Summary: Do not auto display TaskList window if there are no data to show in it
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on: 185488
Blocks:
  Show dependency tree
 
Reported: 2010-04-15 14:39 UTC by Vladimir Voskresensky
Modified: 2010-05-10 09:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2010-04-15 14:39:06 UTC
C/C++ projects support have removed dependency on Indexing API and now "TODO" scanner can not grep our files.
But when user opens C/C++ project Taks List is automatically opened as well.
Oracle Solaris Studio (aka SunStudio) would be based on 6.9 and we do not want this window to be automatically opened, because there always would be empty content.
TaskList should ask if there are contributor of content and if it exists => it's fine to display itself on opening projects, but not earlier, because our users would be confused by empty window.
Comment 1 Stanislav Aubrecht 2010-04-16 08:36:11 UTC
there's no reliable way to find out whether there are any task list content providers.
you can remove task list window from 'OpenedProjects' window group and then the task list won't open on startup by default.
Comment 2 Vladimir Voskresensky 2010-04-16 19:29:27 UTC
If remove it from group => it would not be opened for any projects not only C++ projects. 
I'm fine with that (close it for Java as well), but now it is opened for all projects => someone made this decision.
In fact quite a lot people close Task list window when it appears => not clear why this window has very special (and very high) priority comparing to other IDE windows/functionality.

Can owner of Task list window remove it from OpenedProjects group? Or explain it's special status?

Thanks,
Vladimir.
Comment 3 Stanislav Aubrecht 2010-04-19 08:52:18 UTC
so why don't you remove task list window from 'OpenedProjects' group in sun studio's branding?

anyway, cc'ing hie team to advise
Comment 4 Vladimir Voskresensky 2010-04-19 21:50:24 UTC
the question not only about SunStudio, but about C/C++ projects in NB as well
Comment 5 Ondrej Langr 2010-04-28 13:58:35 UTC
I'd say the problem is not that tasklist is shown by default, but that C/C++ errors are not shown in tasklist (previously filed against other editors as P2s .. see e.g. issue #163127) which is standard behavior for other project types in the IDE. 

We could hide tasklist by default, but we will not prevent people complaining about "tasklist not working" for them. Note that tasklist can also contain bugzilla issues from Kenai .. (i.e. there can be content even for C/C++ projects).
Comment 6 Vladimir Voskresensky 2010-04-28 19:41:57 UTC
(In reply to comment #5)
> I'd say the problem is not that tasklist is shown by default, but that C/C++
> errors are not shown in tasklist (previously filed against other editors as P2s
> .. see e.g. issue #163127) which is standard behavior for other project types
> in the IDE. 
> 
> We could hide tasklist by default, but we will not prevent people complaining
> about "tasklist not working" for them. Note that tasklist can also contain
> bugzilla issues from Kenai .. (i.e. there can be content even for C/C++
> projects).
Ondrej, completely agree.
That's why I proposed originally not to hide it by default, but do not show if it is known to be empty:
- no errors in project
- no kenai info
- no TODO info
...

If we are talking about show/not show by default:
- please, check UI gestures and see how often this window is closed by users. If 80% users close this window => it is indication that it shouldn't be visible on the start at all and it doesn't matter whether it has content or not (users are not interested => they close)
Comment 7 Ondrej Langr 2010-05-03 15:12:21 UTC
Hi Vladimir, 

I tend to agree that it'd be great if we had usage statistics for this and I agree that if 80% users do not use it, it should be off by default. 

However, a user who closes it often can be the one who uses it .. and does for some reason not use window docking. So the analysis would have to be more complex (per user, only counting those who closed it just once and never interacted with it further), which is unfortunately not possible as of now (issue #185166 may change this once implemented). 

Does CND team have any plans for the future to provide data into tasklist?
Comment 8 Alexander Simon 2010-05-03 17:52:17 UTC
(In reply to comment #7)
> Does CND team have any plans for the future to provide data into tasklist?
Did you see CND requirements to task list:
Bug 178056 - provide task list feature at production level
Comment 9 Stanislav Aubrecht 2010-05-03 18:44:13 UTC
i don't think those new task list features will get implemented in the next version of netbeans unless the task list is made a priority feature for the next release.
Comment 10 Vladimir Voskresensky 2010-05-04 06:29:54 UTC
Ondrej, what was the driver to make TaskList to be a component with so "high" visibility priority? Looks like not UI gestures as well.
Comment 11 Vladimir Voskresensky 2010-05-04 06:32:47 UTC
(In reply to comment #9)
> i don't think those new task list features will get implemented in the next
> version of netbeans unless the task list is made a priority feature for the
> next release.

Can we implement in 6.9 NOT opening TaskList for MakeProjects?
Comment 12 Ondrej Langr 2010-05-04 12:02:43 UTC
> Ondrej, what was the driver to make TaskList to be a component
> with so "high" visibility priority? Looks like not UI gestures as well.

Correct, UI gestures were not the driver for this. And they could hardly be as it is not a cure for everything. I didn't make that decision, but if I remember correctly, there were indicators it's a desired feature with bad discoverability. 

> Can we implement in 6.9 NOT opening TaskList for MakeProjects?

Certainly fine with me .. not sure if it's doable, though .. Standa?
Comment 13 Stanislav Aubrecht 2010-05-04 12:18:54 UTC
yes, i think we can postpone task list window opening until a non-c++ project is opened.
Comment 14 Ondrej Langr 2010-05-04 12:40:02 UTC
Standa: OK, let's go with that. 

In the future (with next out-of-box user study) we will reconsider whether opening the tasklist still makes sense.
Comment 15 Vladimir Voskresensky 2010-05-04 12:50:56 UTC
(In reply to comment #13)
> yes, i think we can postpone task list window opening until a non-c++ project
> is opened.

Thanks. This is exactly what we need.
Comment 16 Stanislav Aubrecht 2010-05-04 15:32:07 UTC
i need some help from cnd team with this issue. i need to find out whether a
org.netbeans.api.project.Project is a CND project without any dependencies on
cnd modules.
is there anything that can be found only in cnd project's lookup?
Comment 17 Vladimir Voskresensky 2010-05-05 05:01:38 UTC
Standa, I don't think you can find anything special without dependency on cnd. Other way could be:
- introduce something in TaskList and we can put it in lookup
or
- check project.getClass().getName().equals("org.netbeans.modules.cnd.makeprojectMakeProject")
Comment 18 Stanislav Aubrecht 2010-05-05 09:04:04 UTC
core-main 4bca7d4f57ae
Comment 19 Vladimir Voskresensky 2010-05-06 10:36:36 UTC
Standa,
I do not see neither
http://hg.netbeans.org/cnd-main/rev/4bca7d4f57ae
nor
http://hg.netbeans.org/core-main/rev/4bca7d4f57ae
Comment 20 Stanislav Aubrecht 2010-05-06 10:45:56 UTC
sorry, i forgot to push. should be ok now
Comment 21 Vladimir Voskresensky 2010-05-07 13:56:55 UTC
thanks!
Comment 22 Quality Engineering 2010-05-10 09:15:20 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: