#12 New action: New Parent Node

closed-fixed
nobody
None
5
2005-12-05
2004-01-21
No

The "New Parent Node" action creates a node as a parent of one or more selected nodes. If more than one node is selected, the selected nodes must all have the same parent -- this restriction is imposed to make the action easier to understand and to undo manually, and could potentially be removed when we get automated undo. The root node must not be one of the selected nodes.

Three new resource strings are required. In Resources_en.properties, I used the following:

new_parent = New Parent Node
cannot_add_parent_diff_parents = Cannot add parent node if selected nodes have different parents
cannot_add_parent_to_root = Cannot add parent node to the root node

I added the following key binding to freemind.properties:

keystroke_add_parent = shift INSERT

I find this action useful when I need to add an extra level of grouping in the middle of an existing hierarchy. It is quicker than adding a new node at the same level and then cutting-and-pasting the child nodes. The code simply performs these actions in sequence, after validating the selected nodes.

Discussion

  • Stephen Viles

    Stephen Viles - 2004-01-21

    Patch to modes/ControllerAdapter.java and modes/mindmapmode/MindMapController.java

     
  • François Raffin

    Logged In: YES
    user_id=974656

    The idea looks great, but the format of the patch is not easy
    to use for me. I have just spent hours learning how to use
    Exlipse and .diff patches.

    How to use .txt patches ?

    Could you generate a .diff instead (the use of the patch is
    then fully automatic)

    LeButineur (Franois R.)

     
  • Stephen Viles

    Stephen Viles - 2004-02-19

    Logged In: YES
    user_id=885184

    You just need to change the file extension from .txt to .diff -- the patch file is in the unified diff (diff -u) format, ready for use with Eclipse. Sorry for using the wrong extension. Let me know if there are any more problems.

     
  • Eric L.

    Eric L. - 2005-12-05
    • status: open --> closed-fixed
     
  • Eric L.

    Eric L. - 2005-12-05

    Logged In: YES
    user_id=318488

     
  • Eric L.

    Eric L. - 2005-12-05

    Logged In: YES
    user_id=318488

    We consider that this patch has been introduced in FreeMind 0.8.0.
    Please complain and/or re-open the patch report if it should be
    wrong. In all cases, we thank you for your contribution and hope
    to hear more from you ;-)

    Thanks, Your FreeMind team

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks