MCPcopy
hub / github.com/arduino/Arduino / windowDeactivated

Method windowDeactivated

app/src/processing/app/Editor.java:270–284  ·  view source on GitHub ↗
(WindowEvent e)

Source from the content-addressed store, hash-verified

268 // added for 1.0.5
269 // http://dev.processing.org/bugs/show_bug.cgi?id=1260
270 public void windowDeactivated(WindowEvent e) {
271 List<Component> toolsMenuItemsToRemove = new LinkedList<>();
272 for (Component menuItem : toolsMenu.getMenuComponents()) {
273 if (menuItem instanceof JComponent) {
274 Object removeOnWindowDeactivation = ((JComponent) menuItem).getClientProperty("removeOnWindowDeactivation");
275 if (removeOnWindowDeactivation != null && Boolean.valueOf(removeOnWindowDeactivation.toString())) {
276 toolsMenuItemsToRemove.add(menuItem);
277 }
278 }
279 }
280 for (Component menuItem : toolsMenuItemsToRemove) {
281 toolsMenu.remove(menuItem);
282 }
283 toolsMenu.remove(portMenu);
284 }
285 });
286
287 //PdeKeywords keywords = new PdeKeywords();

Callers

nothing calls this directly

Calls 4

valueOfMethod · 0.45
toStringMethod · 0.45
addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected