UI Inspector / UI Dropper: trim 'added at' text.

GitOrigin-RevId: c05a6ac3f0758e6b6fc56068397090da1dbc729c
This commit is contained in:
Vassiliy.Kudryashov
2020-01-30 12:09:31 +00:00
committed by intellij-monorepo-bot
parent 58f4ef9391
commit 86779a4bea
2 changed files with 2 additions and 2 deletions
@@ -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);
}
}