[tasklist] recent fixes

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1047660340.3861.1588.camel@proto>
I promised a while ago I would post to dev@tasklist an occasional
note about updates to the code. But I've forgotten to do that.
So here's a section from my commit log. In addition to the below,
Tim has been making a lot of changes to the compiler module, as
well as providing a number of new property editor, making bugfixes,
etc.

These are the commits since Feb 1. I don't remember when I sent
the last update but hopefully this is adequate for giving you a sense
of what's changed recently.

-- Tor



* Show annotations for all user tasks with associated file positions.
  These annotations do not have line highlights, only glyph gutter
icons.
* Howevering over the gutter icon for a task annotation will cause its
  corresponding task to be selected in the tasklist view (if visible).
* PMD Unused Field-removal now handles field declarations that span
multiple
  lines, and also removes the javadoc associated with the field.
* Fix such that the summary of a task is shown in the status area, when
  a task is shown (for example, when F12'ing through the tasks.)
* Fix to task scanner such that it correctly handles the very first
  line in the file. There was a bug in there which caused the first
character
  in the buffer to get dropped.


* Fix bug related to directory scanning and javaparser
* Remove various obsolete TODO and XXX tasks in the source code
* Avoid getting errors when showing confirmation panels
  where the string to be changed is on the first line

* Fix various bugs I've run into in using the suggestions
  view in my daily work.


* Fix http://tasklist.netbeans.org/issues/show_bug.cgi?id=31151
  [performance] Suggestion Cache entries must get flushed when their 
     documents are closed
* Remove deprecated call usage in core/ and usertasks/ modules
  as well.  This completes
    http://tasklist.netbeans.org/issues/show_bug.cgi?id=29732
     Upgrade to the latest APIs (get rid of deprecated API usages)
* Use reflection to obtain core actions (Next/Previous actions)
  and remove dependency (compile and runtime) on core-output.jar.
* In the javaparser, if there are more than 30 errors, drop the
  remainder. (I had a single syntax error near the beginning of
  the file, and suddenly had 231 parser errors in the suggestions
  view!)
* Fix bug where sometimes closing the suggestions window wouldn't
  turn off document scanning


* Make menus include the "global" actions at the end as discussed
  on the dev alias.
* Fix "New Task" panel; in implementing 31454 I removed the checkbox
  which controls whether this task is a subtask of another. That had
  an unfortunate side effect. If there's a selection in the tasklist,
  new task will by default make the new task a subtask of the existing
  task (because the combo is showing the selected task). If I don't
  have the checkbox on the other hand, it's harder to make a subtask
  when you want one. So put the checkbox back in (but add an accessible
  name on the combo to pass a11y problems.)
* Add "Delete" and "Go To Source" to the User Task List toolbar.
* Add a toolbar in the suggestions view, containing "Fix", "Show Source"
' and "Filter".
* Rename View action from "Task List" to "User Tasks"
* Add Task List and Suggestion view actions to the View toolbar.
  Pending: what do we do about the TaskList toolbar?
* Fix bug where the number of showing filtered nodes was incorrect



* Refactor the javaparser module's code such that the
  error-analysis and suggestion-generating code can
  be accessed independently of the java module's
  ParserMessage API; see the handleError method
  in ErrorSuggester.java. Hopefully this will make it
  possible for the compiler module to get similar 
  functionality. (I may need to make the method static
  or provide an instance lookup method for the error
  suggester itself.)
* Print "Due Soon" and "Past Due" instead of just "Due"
  in the usertasks suggestion provider
* Add "Show Task" to the context menu for the usertasks
  showing up in the Suggestions view
* Adjust default columnn width for the "Done" column to
  be narrow (40, instead of 150)


[Issue 31367]  - Gnome Calendar import does not work
http://www.netbeans.org/issues/show_bug.cgi?id=31367

Correctly handle timezones.


Fix [Issue 31581]: Update ParseSourceRequest usage
http://www.netbeans.org/issues/show_bug.cgi?id=31581
Thanks to Svata Dedic for providing the patch.


[Issue 31451] - a11y compliance in new task dialog
Http://www.netbeans.org/issues/show_bug.cgi?id=31451



* Rev Version numbers to 0.9.0 -- yup, we're getting close to beta!
* Improve suggestions scanning framework to correctly handle "slow"
  scanners such that there can be pending/in-progress scanning when
  windows change etc. Required an API change which providers were
  updated to use. (I used to have a problem that if you quickly
  switched editor tabs before scanning was complete, additional
  results would come in and get associated with the wrong file. This
  would then make it into the cache and be retrieved each time you
  would open the file!)
* I installed some modules from the update center and discovered that
  the module-updates files needed updating: first, add the module name
  itself to the top so you know what you're seeing version info from,
  and truncate all but the last couploe of version updates, since
  there's no scrollpane surrounding the text.
* Remove the Source Scan View. The code is still there, but is no
  longer available from a menu. (For deserialization the code is still
  there, but it switches its persistence to Never, so it should
  disappear from the window system deserialization repository.
* Use TopComponent.componentShowing() and TopComponent.componentHidden
  instead of adding my own ComponentListeners and handling
  componentShown/Hidden(ComponentEvent).
* Remove javadoc from some inherited methods - javadoc will pick up
  more accurate javadoc from the parent class.
* Fix PMD module category from TaskList to Task List so that it will
  show up with the other modules when it's eventually added to the
  update center.




* On Unix, make the tasklist unreadable by others
  (chmod go-rwx) after writing it.
* Fix various UI and accessibility bugs in the usertasks
  module identified by Chris Ledantec

    http://www.netbeans.org/issues/show_bug.cgi?id=31452
    Summary: new task dialog and menu item don't have the same name

    http://www.netbeans.org/issues/show_bug.cgi?id=31453
    Summary: move Details label to line up with top of text area

    http://www.netbeans.org/issues/show_bug.cgi?id=31454
    Summary: sub task of ui un-clear

    [not completely fixed]
    http://www.netbeans.org/issues/show_bug.cgi?id=31451
    Summary: a11y compliance in new task dialog




* Fix task deletion; I accidentally broke it in my last
  putback (I had commented something out to test something
  else, and accidentally commented out the destroy() method
  in TaskNode!)
* Add missing bundle key used during file import
* Fix Node.Handle bug
   http://tasklist.netbeans.org/issues/show_bug.cgi?id=29709
   Root node of SuggestionsView not persistent



* Chmod go-rwx the tasklist file


* Upgrade javaparser module to use the "official" API
  for parser error which has now been integrated into the
  java module.  The patches are no longer necessary - in fact,
  you should get rid of your local changes in the java module
  if you have previously applied the javaparser patches.
* Add descriptions to suggestion types; show these in 
  the Edit Types... dialog
* Fix double-lining problem in copyright error confirmation
  dialog
* Fix tooltip over the tree-column; it was just showing the column
  name, not the hint text
* Show in the status bar the summary of the task being selected
* Fix http://www.netbeans.org/issues/show_bug.cgi?id=31367
  Gnome Calendar import does not work


* Make F12/Shift F12 navigate tasks in all visible tasklist 
  windows
* Show priorities in the suggestions window using Tim's new
  PriorityPropertyEditor


* Override the Next/Previous Error actions (F12, Shift F12)
  such that you can navigate from error to error



* Fix "node expansion" of category nodes when you switch back
  and forth between a couple of files (and nodes are created
  and removed.)  It should now correctly restore expanded
  nodes as expanded and collapsed nodes as collapsed.
  Also removed Task.isExpanded/setExpanded method since they
  depended on Children.Keys addNotify and removeNotify, and
  it appears that removeNotify is -not- called when the task
  node is collapsed, but at some much later point (finalization?)
* Keep view reference when a list is added to a view. This
  allows more accurate lookup of views when trying to run some
  action on them, instead of the various "getCurrentView" hacks.

* Fix bug related to suggestion cache which caused items to
  not get cleared when the document was edited after having
  been set from the cache
* Fix some compilation error problems:
   - don't add "create method" suggestions when the target
     class is in package java.* or javax.*
   - fix confirmation panel double-line separators
   - add suggestion check which helps identify usage of "size"
     when you should use "length" and vice versa
* PMD fixes:
   - add autofix to remove imports that are in the same
     package, or classes in java.lang.
   - make confirmation panel more specific
   - upgrade to PMD-NetBeans 0.70 and PMD 1.03
     - build files
     - set priority
* Change API to include medium-high and medium-low priorities,
  such that we can properly reflect priorities on PMD rules.
  Since "normal-high" didn't sound right, I renamed "NORMAL"
  to "MEDIUM" as well, which resulted in having to modify
  many other modules as well.

* If I make a method remover, don't just use it for UnusedPrivateMethod;
  employ it for the UnnecessaryConstructorRule as well.
* Abstract out the method creation routine from javaparser, and
  use it to auto-assist fix OverrideBothEqualsAndHashcodeRule


* Fix performance/scalability issue when importing, or deleting, a
  large number of tasks. I noticed that during imports, the
  file was getting saved for every modified task. Similar problem
  when deleting a multiselection of tasks.


* During HTML export, allow icons to be exported as well. This
  takes the Image objects and exports them as .png files in the
  same directory as the exported HTML, and refers to these files
  from the HTML.  (This relies on ImageIO, which is only present
  in JDK1.4 and on. Therefore, this functionality is only enabled
  for JDK1.4.)

* Implement a document suggestion cache.  This makes switching back
  and forth between files "immediate" once the suggestions have been
  computed in the first place. The suggestions are immediately posted.
* Fix HTML Rewrite action such that it can operate on not-yet-open
  data objects (it opens the document before processing it.)



* Update manifest files to require IDE 3.35 - means that
  a lot of the module magic machinery no longer assumes
  the modules are out of date and automatically adds in
  debugger dependencies etc.
* Update a lot of TopManager calls such that many modules
  no longer need openide-deprecated. A few remain - notably
  usertasks, core and suggestions.  Mostly changed
  ErrorManager calls, which will work in 3.4.1 as well
  so this does not cause a big merging maintainance headache.
* Implement getAsText and setAsText on the DateEditor - but
  still not hooked up to to property sheet since the
  custom editor needs a bit more work to become a bean
  customizer.

* Watch out for DateEditor and javaparser!


* Scan documents in descending provider type order; makes
  refresh less "jittery"
* Remove disable-confirmation checkbox from the Fix dialog.
* Remove obsolete logging calls
* Replace " with &quot; in HTML sent to confirmation panels
* Create dialog after fixes if file documents have not been opened.


* Fix suggestion type ordering. The suggestions should stay in a fixed
  order now - which I've set up roughly according to "importance":
      Compilation Errors
      Tasks Due
      Rule Violations
      HTML Problems
      Source Tasks
      Javadoc Problems
      Copyright Problems
* Add confirmation panel to "Disable Type"; it explains that disabling
  a type gets rid of ALL suggestions of that type and explains how some
  types offer specialized customizers. This will hopefully prevent
people
  who for example dislike the "OnlyOneReturn" from disabling PMD
  altogether.
* Change empty tasklist template name to "Empty Task List" from "Empty
  iCalendar" since the usage of iCalendar is an implementation detail
  most people don't care about (used to be more important when we
  offered both xCalendar and iCalendar.)
* Fix http://tasklist.netbeans.org/issues/show_bug.cgi?id=30693      
  Tasklist JavaHelp not included in NBM.   Thanks Jesse Glick!



Fix 30562: [tasklist/javadoc] Reports missing Javadoc
  for override method

* Fix 30451: Change mouse cursor while fetching bugs
* Fix 30454: Buglist export to HTML miss summary field
* Fix 30461: Tasklist suite display name improvements
* Do busy cursor on suggestion scanning as well, and
  fix a problem related to figuring out the current
  suggestions window
* Automatically refresh bug list if it's opened and
  it's empty.
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.