)]}'
{
  "commit": "13ff8430aaf8568f5fb6f2f326d87222ba0e0ef6",
  "tree": "ee7af0a2f871970a5e3ac492fe97ed8bccab5c65",
  "parents": [
    "8129e5f2bae0679f218079fcc9b1972a0bb18c27"
  ],
  "author": {
    "name": "Simeon Andreev",
    "email": "simeon.danailov.andreev@gmail.com",
    "time": "Mon Apr 09 15:36:41 2018 +0200"
  },
  "committer": {
    "name": "Andrey Loskutov",
    "email": "loskutov@gmx.de",
    "time": "Fri Apr 13 04:59:43 2018 -0400"
  },
  "message": "Bug 268608 - find/replace action disabled on first opening of console\n\nWhenever a new console page is opened in the Console View, a\nFindReplaceAction is registered for this console page. The target of\nthis action is set before the new console page is set as active by the\nPageBookView. This results in either a disabled find/edit action, if\nthere was no previous console page, or an action which targets the\npreviously active console page. I.e. the user either cannot search in\nthe new console page, or searches in an old one. This is also true when\nswitching between consoles, or when closing the Console View and\nre-opening it.\n\nTwo points are important here. First, global actions of TextConsolePage\npages are only updated on creation of the action, or if the selection in\nthe console\u0027s text widget changes. And second, PageBookView.showPageRec\nwill set the current page only after the SWT control of the new page is\ncreated (i.e. only after the new actions are updated). Therefore the\ntarget of the global find/replace action is updated only when a new\nconsole page is created, and its updated with the wrong current page.\n\nThis change ensures that the FindReplaceAction has the correct target\npage and its enabled state is correct, both when switching pages and\nwhen opening new ones. Namely, the selection of a TestConsolePage is\n\"reset\" after the new page is created and shown.\n\nChange-Id: I22c368acce902d12f83274c6df12e013fb7afaa3\nSigned-off-by: Simeon Andreev \u003csimeon.danailov.andreev@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a8413576eaf123e4d78e061836db1fd8e473eaa",
      "old_mode": 33188,
      "old_path": "org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java",
      "new_id": "607f70eef1f65231682dcc7e0ed61adcdce41760",
      "new_mode": 33188,
      "new_path": "org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java"
    },
    {
      "type": "modify",
      "old_id": "a69f1ed967acedf1e6ee1eb0239bb000df2aa518",
      "old_mode": 33188,
      "old_path": "org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java",
      "new_id": "ab03b3adb6f53f3e0be4253e096cf30f3e698a7d",
      "new_mode": 33188,
      "new_path": "org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleView.java"
    }
  ]
}
