I can't get these key bindings to work...

Started by Eric Vendeville, May 27, 2025, 17:43:13 PM

Previous topic - Next topic

Eric Vendeville

Hello Archi users !

Recently, i tried to bind some key combinations to activate the "Collapse All" and "Expand All" commands, in order to easily and quickly collapse my model tree each time I need it... with no luck, unfortunately  :'(

Is it working on your side ?

NB: I also activated the "show key binding when command is invoked through keyboard" and my binding is correctly caught... but it looks like the treeview component do not react to this event... ?

Phil Beauvoir

Hi,

because Archi is built on the Eclipse framework, Eclipse provides key binding placeholders that are not supported by Archi. "Collapse All" and "Expand All" are two of those.

The Archi User Guide says this:
QuoteNote that some key binding commands are not relevant to Archi and are present because of the underlying Eclipse framework. Examples of these are "Add Bookmark", "Close Perspective", "Content Assist" and several others.

I'll take a look at it at some point and see if these can be re-purposed for Archi's Models Tree.

Phil
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.


Phil Beauvoir

#3
Question - should "Expand All" and "Collapse All" apply to:

1. All tree nodes of the selected model in the Models Tree
2. All tree nodes of every model in the Models Tree
3. Just the child tree nodes of the selected node
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Eric Vendeville

Good question indeed !

I must admit that I have difficulty finding relevant criteria to choose between the three proposals...  ::)

One remark however concerning the second one : It is (I think, but I may be wrong) quite uncommon to have to work on several models simultaneously... for this reason, I don't know if having a "collapse-all/expand-all" behavior for all the models at the same time would make sense, or would be very useful...

Another thought : maybe the third option also has one (small) advantage over the first one : if needed, you can achieve the same result as with the first one by manually selecting several nodes at once (with CTRL + mouse-click) or all nodes (with CTRL+A) beforehand... Conversely, if you go for the first option, there won't be any way to expand/collapse some specific nodes only...

Phil Beauvoir

Quote from: Eric Vendeville on May 28, 2025, 13:03:49 PMAnother thought : maybe the third option also has one (small) advantage over the first one : if needed, you can achieve the same result as with the first one by manually selecting several nodes at once (with CTRL + mouse-click) or all nodes (with CTRL+A) beforehand... Conversely, if you go for the first option, there won't be any way to expand/collapse some specific nodes only...

I agree. I'll add key bindings to the existing expand/collapse functionality.
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Eric Vendeville

Great news !
Thanks again for your support Phil.

Jean-Baptiste Sarrodie

Hi,

I think it should be just the child tree nodes of the selected nodes. A typical use case for me is to do sor search to find an element to add to a view. This leads me with some folders opened (the folder hierarchy containing the searched element). So I'd like to select the top folder and collapse it.

By doing so on the child tree of selected nodes, I can quickly collapse a folder, a model or everything (by selecting all just before).

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Eric Vendeville

Hello JB, same use-case for me ! (that's why I tried to map this key binding...)  ;D