mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UI Inspector / UI Dropper: trim 'added at' text.
GitOrigin-RevId: c05a6ac3f0758e6b6fc56068397090da1dbc729c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
58f4ef9391
commit
86779a4bea
@@ -1210,7 +1210,7 @@ public class UiDropperAction extends ToggleAction implements DumbAware {
|
||||
int first = text.indexOf("at com.intellij", text.indexOf("at java.awt"));
|
||||
int last = text.indexOf("at java.awt.EventQueue");
|
||||
if (last == -1) last = text.length();
|
||||
String val = last > first && first > 0 ? text.substring(first, last) : null;
|
||||
String val = last > first && first > 0 ? text.substring(first, last).trim() : null;
|
||||
((JComponent)child).putClientProperty("uiInspector.addedAt", val);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1964,7 +1964,7 @@ public class UiInspectorAction extends ToggleAction implements DumbAware {
|
||||
int first = text.indexOf("at com.intellij", text.indexOf("at java.awt"));
|
||||
int last = text.indexOf("at java.awt.EventQueue");
|
||||
if (last == -1) last = text.length();
|
||||
String val = last > first && first > 0 ? text.substring(first, last): null;
|
||||
String val = last > first && first > 0 ? text.substring(first, last).trim(): null;
|
||||
((JComponent)child).putClientProperty("uiInspector.addedAt", val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user