mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[Spellchecker][IDEA-310490] Use mutable list as item container in dictionaries table model
GitOrigin-RevId: 99b45c12a17456ca6f88cda130f63f2b41485775
This commit is contained in:
committed by
intellij-monorepo-bot
parent
634757ce23
commit
29c24fe07f
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.spellchecker.settings;
|
||||
|
||||
import com.intellij.openapi.fileChooser.FileChooser;
|
||||
@@ -145,7 +145,9 @@ public final class CustomDictionariesPanel extends JPanel {
|
||||
private CustomDictionariesTableView(@NotNull List<String> dictionaries,
|
||||
@NotNull List<String> defaultDictionaries) {
|
||||
myTypeRenderer = createTypeRenderer(defaultDictionaries);
|
||||
setModelAndUpdateColumns(new ListTableModel<>(createDictionaryColumnInfos(), ContainerUtil.concat(defaultDictionaries, dictionaries), 0));
|
||||
var items = new ArrayList<>(defaultDictionaries);
|
||||
items.addAll(dictionaries);
|
||||
setModelAndUpdateColumns(new ListTableModel<>(createDictionaryColumnInfos(), items, 0));
|
||||
setAutoResizeMode(AUTO_RESIZE_LAST_COLUMN);
|
||||
setShowGrid(false);
|
||||
setShowVerticalLines(false);
|
||||
|
||||
Reference in New Issue
Block a user