Skip to content

Commit 4c47664

Browse files
Fix AST-136035: Clear detail panels on severity filter change; fix scan ID combo overflow
- Hide resultViewComposite and attackVectorCompositePanel when filter changes so the description and attack vector windows no longer show stale content - Replace fixed widthHint=520 on scan ID combo with SWT.FILL/grabExcess layout so the combo is always visible without needing to maximize the window Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 1b94a50 commit 4c47664

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/views/CheckmarxView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,7 @@ private void createScanIdComboBox(Composite parent) {
10821082
scanIdComboViewer.setContentProvider(ArrayContentProvider.getInstance());
10831083
scanIdComboViewer.setInput(new ArrayList<>());
10841084

1085-
GridData gridData = new GridData();
1086-
gridData.widthHint = 520;
1085+
GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
10871086
scanIdComboViewer.getCombo().setLayoutData(gridData);
10881087

10891088
scanIdComboViewer.getCombo().addListener(SWT.DefaultSelection, new Listener() {
@@ -2489,6 +2488,8 @@ private void listener(PluginListenerDefinition definition) {
24892488

24902489
private void updateResultsTree(List<DisplayModel> results, boolean expand) {
24912490
sync.asyncExec(() -> {
2491+
resultViewComposite.setVisible(false);
2492+
attackVectorCompositePanel.setVisible(false);
24922493
rootModel.children.clear();
24932494
rootModel.children.addAll(results);
24942495
Object[] expanded = resultsTree.getExpandedElements();

0 commit comments

Comments
 (0)