We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60ce2fc commit 2a44679Copy full SHA for 2a44679
1 file changed
ui/org.eclipse.pde.spy.css/src/org/eclipse/pde/spy/css/CssSpyPart.java
@@ -234,7 +234,7 @@ private void updateWidgetTreeInput() {
234
if (showAllShells.getSelection()) {
235
widgetTreeViewer.setInput(display);
236
} else {
237
- widgetTreeViewer.setInput(new Object[] { shown instanceof Control ? ((Control) shown).getShell() : shown });
+ widgetTreeViewer.setInput(new Object[] { shown instanceof Control c ? c.getShell() : shown });
238
}
239
performCSSSearch(new NullProgressMonitor());
240
0 commit comments