archimatetool / archimatetool/archi-scripting-plugin

Using view.openInUI() resets the model Navigator's "Go Into" setting

Open
#158 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
171
Forks
51
PR merge metrics
No merged PRs in 30d

Description

### jArchi Version

1.11.0

### Archi Version

5.9.0

### Operating System

Windows 11

### Description

When the view.openInUI() is invoked on a newly created view it has the unwanted a side-effect of resetting the Model Navigator's "Go Into" setting to the default- in effect, all loaded models become visible again in the Model Navigator pane.
It would be much better if the "Go Into" setting could be preserved when the new view is within the same model.

### Steps to reproduce

1. With multiple models loaded, use the "Go Into" arrow to focus on a specific model.
2. With this model selected, run a script that creates a new view and then make it the focus using the .openInUI() function;
3. Note the side-effect that the "Go Into" status is reset to the initial default (i.e. prior to Step 1).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with multiple models loaded: use the Model Navigator's "Go Into" arrow, then create a view and call view.openInUI() from a script. Trace the openInUI() entry point and verify that opening a view within the same model preserves the existing "Go Into" focus instead of restoring the default visibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.