mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-210897 Not possible to paste the value containing equals sign in the environment variables
GitOrigin-RevId: 0b26682b4c1b744fbaea5eccf0e637a2249f21ff
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2055b22b66
commit
ec31df9687
@@ -221,9 +221,12 @@ public class EnvVariablesTable extends ListTableWithButtons<EnvironmentVariable>
|
||||
@Override
|
||||
public void performPaste(@NotNull DataContext dataContext) {
|
||||
String content = CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor);
|
||||
if (StringUtil.isEmpty(content)) {
|
||||
return;
|
||||
}
|
||||
Map<String, String> map = parseEnvsFromText(content);
|
||||
if (map.isEmpty() && !StringUtil.isEmpty(content)) {
|
||||
TableView<EnvironmentVariable> view = getTableView();
|
||||
TableView<EnvironmentVariable> view = getTableView();
|
||||
if ((view.isEditing() || map.isEmpty())) {
|
||||
int row = view.getEditingRow();
|
||||
int column = view.getEditingColumn();
|
||||
if (row < 0 || column < 0) {
|
||||
|
||||
Reference in New Issue
Block a user