{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/426","labels_url":"https://api.github.com/repos/robotframework/RIDE/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/RIDE/issues/426/comments","events_url":"https://api.github.com/repos/robotframework/RIDE/issues/426/events","html_url":"https://github.com/robotframework/RIDE/issues/426","id":83930050,"number":426,"title":"editor needs a public interface","user":{"login":"yanne","id":159146,"avatar_url":"https://avatars.githubusercontent.com/u/159146?v=3","gravatar_id":"","url":"https://api.github.com/users/yanne","html_url":"https://github.com/yanne","followers_url":"https://api.github.com/users/yanne/followers","following_url":"https://api.github.com/users/yanne/following{/other_user}","gists_url":"https://api.github.com/users/yanne/gists{/gist_id}","starred_url":"https://api.github.com/users/yanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanne/subscriptions","organizations_url":"https://api.github.com/users/yanne/orgs","repos_url":"https://api.github.com/users/yanne/repos","events_url":"https://api.github.com/users/yanne/events{/privacy}","received_events_url":"https://api.github.com/users/yanne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/RIDE/labels/enhancement","name":"enhancement","color":"ededed"},{"url":"https://api.github.com/repos/robotframework/RIDE/labels/prio-medium","name":"prio-medium","color":"ededed"},{"url":"https://api.github.com/repos/robotframework/RIDE/labels/wontfix","name":"wontfix","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-02T09:13:15Z","updated_at":"2015-06-02T09:13:21Z","closed_at":null,"body":"> *Originally submitted to [Google Code](http://code.google.com/p/robotframework-ride/issues/detail?id=397) by bryan.oakley on 4 Mar 2010*\n\n\nUsing a plugin, I want to create my own test case editor (and, in fact,\r\nhave done that). What I now want to do is tell RIDE to use my editor rather\r\nthan the default test case editor, rather than have my editor be a separate\r\ntab on the notebook.\r\n\r\nI can do this with the following hack:\r\n\r\n    class MyTestCaseEditor(wx.Panel):\r\n        ...\r\n    import robotide.editor.editors\r\n    robotide.editor.editors.TestCaseEditor = MyTestCaseEditor\r\n\r\nI would like to see a public interface to effectively do the same thing.\r\nFor example, it would be nice to do something like:\r\n\r\n    self.application.register_editor(TestCase, MyTestCaseEditor)\r\n\r\nThe other issue that needs to be solved is mostly one of documentation.\r\nWhat interface must an editor implement? Through trial and error I've\r\nlearned I need to implement the method 'close'. Beyond that, I don't know\r\nwhat else I need to support.\r\n\r\nIf there were a well defined interface that an editor needs to implement,\r\nit would possibly open up RIDE to new and improved ways to edit the various\r\ntypes of data, and even data that RIDE doesn't currently support (such as\r\nplain text files, XML, csv files, etc).\r\n\n\n"},"comment":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/comments/107879005","html_url":"https://github.com/robotframework/RIDE/issues/426#issuecomment-107879005","issue_url":"https://api.github.com/repos/robotframework/RIDE/issues/426","id":107879005,"user":{"login":"yanne","id":159146,"avatar_url":"https://avatars.githubusercontent.com/u/159146?v=3","gravatar_id":"","url":"https://api.github.com/users/yanne","html_url":"https://github.com/yanne","followers_url":"https://api.github.com/users/yanne/followers","following_url":"https://api.github.com/users/yanne/following{/other_user}","gists_url":"https://api.github.com/users/yanne/gists{/gist_id}","starred_url":"https://api.github.com/users/yanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanne/subscriptions","organizations_url":"https://api.github.com/users/yanne/orgs","repos_url":"https://api.github.com/users/yanne/repos","events_url":"https://api.github.com/users/yanne/events{/privacy}","received_events_url":"https://api.github.com/users/yanne/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T09:13:21Z","updated_at":"2015-06-02T09:13:21Z","body":"> *Originally submitted to [Google Code](http://code.google.com/p/robotframework-ride/issues/detail?id=397#c5) by bryan.oakley on 18 Mar 2010*\n\n\nI would definitely like to get the hooks in (as mentioned in this issue) in the next\r\nrelease so that the plugin can be used. I don't think the plugin is ready for wide\r\nrelease just yet though. \r\n\r\nI'm also not sure about making it more tightly integrated. I think it works well as a\r\nplugin, and would pave the way for others to think of even more creative ways to edit\r\ntest cases. \r\n\r\nI'm going to be working on it almost full time for the next week, but my hope is to\r\nsee a new release of RIDE with the hooks in the next few days, and I can perhaps make\r\nthe plugin available in a couple weeks for people to experiment with.\r\n\r\n\n\n"}}