Menu

#106 CheckableListListener: Unprecise method onOrderChanged()

next release
closed
FR 79
5
2018-03-05
2017-09-25
No

The CheckableListListener is only informed about the fact that the order of the list has been changed but not how. It would be therefore nice to have additional information such as the from- and the to-Index,especially in relation with feature 79.

Although this would require a few small changes, multiple components might be affected by this changes, so they should be applied at another branch.

Discussion

  • Philipp Mewes

    Philipp Mewes - 2017-09-25

    Replaced the method with itemMoved(int, int) ([4c881a]).

     

    Related

    Commit: [4c881a]

  • Philipp Mewes

    Philipp Mewes - 2017-09-25
    • status: in-progress --> needs-review
     
  • Till Schäfer

    Till Schäfer - 2017-09-25

    (1) How does itemMoved(int,int) behave if the list is repopulated or completeley re-ordered (e.g. by a sort in the model)? Was this case covered by onOrderChanged?
    (2) Why do we need the order Information to be shipped with the change event? The receiver of such an event ususally has direct access to the list itself. Thus, it can just read the current state from the list directly. Does this have performance implications?

    PS: In case you create a new feature/bug-branch that is side-arm of another feature/bug (i.e., FR 79 in this case) it might be less troublesome to branch it form the other feature branch in order to avoid merge conflicts. Furthermore, it better reflects the workflow/mergeflow.

     
  • Till Schäfer

    Till Schäfer - 2017-09-25
    • status: needs-review --> re-opened
    • Related To: feature 79 -->
    • Blocks: --> FR 79
     
  • Philipp Mewes

    Philipp Mewes - 2017-09-26

    (1) The listener is only triggered after a drag and drop event occured. Furthermore the only use of this method is in the PropertyConfgurationPanel so far for which [d29ff6] was applied, since this method should just not be called by every change of the list-order.

    (2) At feature 79 the table should be updated everytime the ColumnFilter changes. Currently this has to be done by completely rebuilding the column order. This overhead could be avoided by more precise information about the drag event.

    Ok, but i also need the changes from the master-branch. Merging the master into feature-79 and rebasing feature-106 on feature-79 seems to be the best way for me so. Since feature-106 is already pushed, it must be forced after reabasing. Hope this will not cause any trouble.

     

    Related

    Commit: [d29ff6]

  • Philipp Mewes

    Philipp Mewes - 2017-09-27
    • status: re-opened --> in-progress
     
  • Philipp Mewes

    Philipp Mewes - 2017-09-27

    Detected a small issue and fixed it. Also added two TODOs at importData() ([f2e269]). Can you please review them too?
    The method is named itemDragged() now and the javadoc offers a more detailed explanation of the methods purpose ([30ee78]).

     

    Related

    Commit: [30ee78]
    Commit: [f2e269]

    • Till Schäfer

      Till Schäfer - 2017-09-28

      Da Sourceforge mal wieder down ist ...

      Im Anhang findest du eine überarbeitete Version des CheckableListTransferHandlers. Du hattest recht mit deinen Todos. Darüber hinaus gab es aber noch ne ganz Menge an weitere Problemen (z.B. konnte man zwischen verschiedenen checkableLists drag&drop machen) und race conditions erzeugen. Da war es schneller das eben selbst zu umzuschreiben, als das über Mail zu kommunizieren.

      Ich werde das gleich auch noch mal versuchen zu pushen. Sag bitte kurz Bescheid, wenn du die angehängte Version verwenden solltest (da SF noch down ist, wenn du wieder daran arbeitest). Dann pushe ich diese nicht damit es zu keinen Merge-Konflikten kommt (d.h. du kannst die Änderungen in diesem Fall einfach commiten).

      Viele Grüße
      Till

      On Mittwoch, 27. September 2017 11:12:51 CEST Philipp Mewes wrote:

      Detected a small issue and fixed it. Also added two TODOs at importData() ([f2e269]). Can you please review them too?
      The method is named itemDragged() now and the javadoc offers a more detailed explanation of the methods purpose ([30ee78]).


      [feature-requests:#106] CheckableListListener: Unprecise method onOrderChanged()

      Status: in-progress
      Group: any future version
      Labels: checkablelist
      Created: Mon Sep 25, 2017 10:23 AM UTC by Philipp Mewes
      Last Updated: Wed Sep 27, 2017 09:06 AM UTC
      Owner: Philipp Mewes

      The CheckableListListener is only informed about the fact that the order of the list has been changed but not how. It would be therefore nice to have additional information such as the from- and the to-Index,especially in relation with feature 79.

      Although this would require a few small changes, multiple components might be affected by this changes, so they should be applied at another branch.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/scaffoldhunter/feature-requests/106/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

      --
      Dipl.-Inf. Till Schäfer
      TU Dortmund University
      Chair 11 - Algorithm Engineering
      Otto-Hahn-Str. 14 / Room 237
      44227 Dortmund, Germany

      e-mail: till.schaefer@cs.tu-dortmund.de
      phone: +49(231)755-7706
      fax: +49(231)755-7740
      web: http://ls11-www.cs.uni-dortmund.de/staff/schaefer
      pgp: https://keyserver2.pgp.com/vkd/SubmitSearch.event?&&SearchCriteria=0xD84DED79

       
  • Philipp Mewes

    Philipp Mewes - 2017-10-09

    Fixed a small bug with the listener ([0de327]).

     

    Related

    Commit: [0de327]

  • Philipp Mewes

    Philipp Mewes - 2017-10-16

    This feature is implemented and merged into feature #79.

     
  • Philipp Mewes

    Philipp Mewes - 2017-10-16
    • status: in-progress --> needs-review
     
  • Till Schäfer

    Till Schäfer - 2018-03-05
    • status: needs-review --> closed
    • Group: any future version --> next release
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.