{"action":"created","comment":{"url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/comments/52951878","id":52951878,"diff_hunk":"@@ -0,0 +1,103 @@\n+package edu.wpi.grip.ui;\n+\n+import com.google.common.annotations.VisibleForTesting;\n+import com.google.common.eventbus.Subscribe;\n+import edu.wpi.grip.core.Operation;\n+import edu.wpi.grip.core.events.OperationAddedEvent;\n+import edu.wpi.grip.ui.annotations.ParametrizedController;\n+import edu.wpi.grip.ui.util.ControllerMap;\n+import edu.wpi.grip.ui.util.SearchUtility;\n+import javafx.beans.InvalidationListener;\n+import javafx.beans.property.SimpleStringProperty;\n+import javafx.beans.property.StringProperty;\n+import javafx.collections.MapChangeListener;\n+import javafx.fxml.FXML;\n+import javafx.scene.Node;\n+import javafx.scene.control.Tab;\n+import javafx.scene.layout.VBox;\n+\n+import javax.inject.Inject;\n+import java.util.logging.Logger;\n+\n+/**\n+ * Controller for a VBox of {@link OperationController}s.  The user data for this should be what category it shows,\n+ * and the filterText property allows for fuzzy searching the operations.\n+ *\n+ * @see edu.wpi.grip.core.Operation.Category\n+ */\n+@ParametrizedController(url = \"OperationList.fxml\")\n+public class OperationListController {\n+\n+    @FXML private Tab root;\n+    @FXML private VBox operations;\n+\n+    @Inject private OperationController.Factory operationControllerFactory;\n+    @Inject private Logger logger;\n+\n+    private final StringProperty filterText = new SimpleStringProperty(this, \"filterText\", \"\");\n+    private String baseText = null;","path":"ui/src/main/java/edu/wpi/grip/ui/OperationListController.java","position":38,"original_position":38,"commit_id":"7ef4ea5e047083255b5b4fad7c00a3afc98e4ab0","original_commit_id":"7ef4ea5e047083255b5b4fad7c00a3afc98e4ab0","user":{"login":"WPIRoboticsProjects-Bot","id":14011429,"avatar_url":"https://avatars.githubusercontent.com/u/14011429?v=3","gravatar_id":"","url":"https://api.github.com/users/WPIRoboticsProjects-Bot","html_url":"https://github.com/WPIRoboticsProjects-Bot","followers_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/followers","following_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/following{/other_user}","gists_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/gists{/gist_id}","starred_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/subscriptions","organizations_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/orgs","repos_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/repos","events_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/events{/privacy}","received_events_url":"https://api.github.com/users/WPIRoboticsProjects-Bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Perhaps 'baseText' could be replaced by a local variable.](https://www.codacy.com/app/WPIRoboticsProjects/GRIP/file/2047798627/issues/source?bid=2943107&fileBranchId=3130834#l38)","created_at":"2016-02-15T23:05:02Z","updated_at":"2016-02-15T23:05:02Z","html_url":"https://github.com/WPIRoboticsProjects/GRIP/pull/502#discussion_r52951878","pull_request_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502","_links":{"self":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/comments/52951878"},"html":{"href":"https://github.com/WPIRoboticsProjects/GRIP/pull/502#discussion_r52951878"},"pull_request":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502"}}},"pull_request":{"url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502","id":59305807,"html_url":"https://github.com/WPIRoboticsProjects/GRIP/pull/502","diff_url":"https://github.com/WPIRoboticsProjects/GRIP/pull/502.diff","patch_url":"https://github.com/WPIRoboticsProjects/GRIP/pull/502.patch","issue_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/502","number":502,"state":"open","locked":false,"title":"Add palette categories","user":{"login":"ThomasJClark","id":3964980,"avatar_url":"https://avatars.githubusercontent.com/u/3964980?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasJClark","html_url":"https://github.com/ThomasJClark","followers_url":"https://api.github.com/users/ThomasJClark/followers","following_url":"https://api.github.com/users/ThomasJClark/following{/other_user}","gists_url":"https://api.github.com/users/ThomasJClark/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasJClark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasJClark/subscriptions","organizations_url":"https://api.github.com/users/ThomasJClark/orgs","repos_url":"https://api.github.com/users/ThomasJClark/repos","events_url":"https://api.github.com/users/ThomasJClark/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasJClark/received_events","type":"User","site_admin":false},"body":"This should make it a lot easier to find operations, and it means we don't have to add operations in a certain order anymore to force them into categories.\r\n\r\n![palette](https://cloud.githubusercontent.com/assets/3964980/13036397/46f5cce4-d334-11e5-9b68-5258a7add459.gif)\r\n\r\nCloses #496\r\n\r\n(Again, formatting changes were done weeks ago and I'm not gonna undo them)","created_at":"2016-02-14T21:02:45Z","updated_at":"2016-02-15T23:05:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b12ebb0824abb858b88ba7a3bee4e26fa56ccf5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502/commits","review_comments_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502/comments","review_comment_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/502/comments","statuses_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/statuses/7ef4ea5e047083255b5b4fad7c00a3afc98e4ab0","head":{"label":"ThomasJClark:palette-gui","ref":"palette-gui","sha":"7ef4ea5e047083255b5b4fad7c00a3afc98e4ab0","user":{"login":"ThomasJClark","id":3964980,"avatar_url":"https://avatars.githubusercontent.com/u/3964980?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasJClark","html_url":"https://github.com/ThomasJClark","followers_url":"https://api.github.com/users/ThomasJClark/followers","following_url":"https://api.github.com/users/ThomasJClark/following{/other_user}","gists_url":"https://api.github.com/users/ThomasJClark/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasJClark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasJClark/subscriptions","organizations_url":"https://api.github.com/users/ThomasJClark/orgs","repos_url":"https://api.github.com/users/ThomasJClark/repos","events_url":"https://api.github.com/users/ThomasJClark/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasJClark/received_events","type":"User","site_admin":false},"repo":{"id":41703859,"name":"GRIP","full_name":"ThomasJClark/GRIP","owner":{"login":"ThomasJClark","id":3964980,"avatar_url":"https://avatars.githubusercontent.com/u/3964980?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasJClark","html_url":"https://github.com/ThomasJClark","followers_url":"https://api.github.com/users/ThomasJClark/followers","following_url":"https://api.github.com/users/ThomasJClark/following{/other_user}","gists_url":"https://api.github.com/users/ThomasJClark/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasJClark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasJClark/subscriptions","organizations_url":"https://api.github.com/users/ThomasJClark/orgs","repos_url":"https://api.github.com/users/ThomasJClark/repos","events_url":"https://api.github.com/users/ThomasJClark/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasJClark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThomasJClark/GRIP","description":"Program for rapidly developing computer vision applications","fork":true,"url":"https://api.github.com/repos/ThomasJClark/GRIP","forks_url":"https://api.github.com/repos/ThomasJClark/GRIP/forks","keys_url":"https://api.github.com/repos/ThomasJClark/GRIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThomasJClark/GRIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThomasJClark/GRIP/teams","hooks_url":"https://api.github.com/repos/ThomasJClark/GRIP/hooks","issue_events_url":"https://api.github.com/repos/ThomasJClark/GRIP/issues/events{/number}","events_url":"https://api.github.com/repos/ThomasJClark/GRIP/events","assignees_url":"https://api.github.com/repos/ThomasJClark/GRIP/assignees{/user}","branches_url":"https://api.github.com/repos/ThomasJClark/GRIP/branches{/branch}","tags_url":"https://api.github.com/repos/ThomasJClark/GRIP/tags","blobs_url":"https://api.github.com/repos/ThomasJClark/GRIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThomasJClark/GRIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThomasJClark/GRIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThomasJClark/GRIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThomasJClark/GRIP/statuses/{sha}","languages_url":"https://api.github.com/repos/ThomasJClark/GRIP/languages","stargazers_url":"https://api.github.com/repos/ThomasJClark/GRIP/stargazers","contributors_url":"https://api.github.com/repos/ThomasJClark/GRIP/contributors","subscribers_url":"https://api.github.com/repos/ThomasJClark/GRIP/subscribers","subscription_url":"https://api.github.com/repos/ThomasJClark/GRIP/subscription","commits_url":"https://api.github.com/repos/ThomasJClark/GRIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThomasJClark/GRIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThomasJClark/GRIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThomasJClark/GRIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThomasJClark/GRIP/contents/{+path}","compare_url":"https://api.github.com/repos/ThomasJClark/GRIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThomasJClark/GRIP/merges","archive_url":"https://api.github.com/repos/ThomasJClark/GRIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThomasJClark/GRIP/downloads","issues_url":"https://api.github.com/repos/ThomasJClark/GRIP/issues{/number}","pulls_url":"https://api.github.com/repos/ThomasJClark/GRIP/pulls{/number}","milestones_url":"https://api.github.com/repos/ThomasJClark/GRIP/milestones{/number}","notifications_url":"https://api.github.com/repos/ThomasJClark/GRIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThomasJClark/GRIP/labels{/name}","releases_url":"https://api.github.com/repos/ThomasJClark/GRIP/releases{/id}","deployments_url":"https://api.github.com/repos/ThomasJClark/GRIP/deployments","created_at":"2015-08-31T22:30:05Z","updated_at":"2016-01-22T06:13:14Z","pushed_at":"2016-02-15T23:02:19Z","git_url":"git://github.com/ThomasJClark/GRIP.git","ssh_url":"git@github.com:ThomasJClark/GRIP.git","clone_url":"https://github.com/ThomasJClark/GRIP.git","svn_url":"https://github.com/ThomasJClark/GRIP","homepage":"http://wpi.edu","size":22313,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"WPIRoboticsProjects:master","ref":"master","sha":"9e5d5773f69f7ea5d0192933798d7ee8026a053e","user":{"login":"WPIRoboticsProjects","id":14004340,"avatar_url":"https://avatars.githubusercontent.com/u/14004340?v=3","gravatar_id":"","url":"https://api.github.com/users/WPIRoboticsProjects","html_url":"https://github.com/WPIRoboticsProjects","followers_url":"https://api.github.com/users/WPIRoboticsProjects/followers","following_url":"https://api.github.com/users/WPIRoboticsProjects/following{/other_user}","gists_url":"https://api.github.com/users/WPIRoboticsProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/WPIRoboticsProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WPIRoboticsProjects/subscriptions","organizations_url":"https://api.github.com/users/WPIRoboticsProjects/orgs","repos_url":"https://api.github.com/users/WPIRoboticsProjects/repos","events_url":"https://api.github.com/users/WPIRoboticsProjects/events{/privacy}","received_events_url":"https://api.github.com/users/WPIRoboticsProjects/received_events","type":"Organization","site_admin":false},"repo":{"id":41505521,"name":"GRIP","full_name":"WPIRoboticsProjects/GRIP","owner":{"login":"WPIRoboticsProjects","id":14004340,"avatar_url":"https://avatars.githubusercontent.com/u/14004340?v=3","gravatar_id":"","url":"https://api.github.com/users/WPIRoboticsProjects","html_url":"https://github.com/WPIRoboticsProjects","followers_url":"https://api.github.com/users/WPIRoboticsProjects/followers","following_url":"https://api.github.com/users/WPIRoboticsProjects/following{/other_user}","gists_url":"https://api.github.com/users/WPIRoboticsProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/WPIRoboticsProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WPIRoboticsProjects/subscriptions","organizations_url":"https://api.github.com/users/WPIRoboticsProjects/orgs","repos_url":"https://api.github.com/users/WPIRoboticsProjects/repos","events_url":"https://api.github.com/users/WPIRoboticsProjects/events{/privacy}","received_events_url":"https://api.github.com/users/WPIRoboticsProjects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WPIRoboticsProjects/GRIP","description":"Program for rapidly developing computer vision applications","fork":false,"url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP","forks_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/forks","keys_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/teams","hooks_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/hooks","issue_events_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/events{/number}","events_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/events","assignees_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/assignees{/user}","branches_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/branches{/branch}","tags_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/tags","blobs_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/statuses/{sha}","languages_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/languages","stargazers_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/stargazers","contributors_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/contributors","subscribers_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/subscribers","subscription_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/subscription","commits_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/contents/{+path}","compare_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/merges","archive_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/downloads","issues_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues{/number}","pulls_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls{/number}","milestones_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/milestones{/number}","notifications_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/labels{/name}","releases_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/releases{/id}","deployments_url":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/deployments","created_at":"2015-08-27T18:59:07Z","updated_at":"2016-02-14T17:29:05Z","pushed_at":"2016-02-15T23:03:32Z","git_url":"git://github.com/WPIRoboticsProjects/GRIP.git","ssh_url":"git@github.com:WPIRoboticsProjects/GRIP.git","clone_url":"https://github.com/WPIRoboticsProjects/GRIP.git","svn_url":"https://github.com/WPIRoboticsProjects/GRIP","homepage":"http://wpiroboticsprojects.github.io/GRIP","size":41902,"stargazers_count":79,"watchers_count":79,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":83,"forks":28,"open_issues":83,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502"},"html":{"href":"https://github.com/WPIRoboticsProjects/GRIP/pull/502"},"issue":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/502"},"comments":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/issues/502/comments"},"review_comments":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502/comments"},"review_comment":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/pulls/502/commits"},"statuses":{"href":"https://api.github.com/repos/WPIRoboticsProjects/GRIP/statuses/7ef4ea5e047083255b5b4fad7c00a3afc98e4ab0"}}}}