{"action":"created","issue":{"url":"https://api.github.com/repos/vrapper/vrapper/issues/650","labels_url":"https://api.github.com/repos/vrapper/vrapper/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/vrapper/vrapper/issues/650/comments","events_url":"https://api.github.com/repos/vrapper/vrapper/issues/650/events","html_url":"https://github.com/vrapper/vrapper/issues/650","id":88640591,"number":650,"title":"ABAP in Eclipse: Exception activating MultiPageEditorPart - Vrapper stops working","user":{"login":"simachri","id":3276460,"avatar_url":"https://avatars.githubusercontent.com/u/3276460?v=3","gravatar_id":"","url":"https://api.github.com/users/simachri","html_url":"https://github.com/simachri","followers_url":"https://api.github.com/users/simachri/followers","following_url":"https://api.github.com/users/simachri/following{/other_user}","gists_url":"https://api.github.com/users/simachri/gists{/gist_id}","starred_url":"https://api.github.com/users/simachri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simachri/subscriptions","organizations_url":"https://api.github.com/users/simachri/orgs","repos_url":"https://api.github.com/users/simachri/repos","events_url":"https://api.github.com/users/simachri/events{/privacy}","received_events_url":"https://api.github.com/users/simachri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T07:05:57Z","updated_at":"2015-06-17T12:56:23Z","closed_at":"2015-06-17T12:56:23Z","body":"I use the ABAP Development Tools (ADT) from http://scn.sap.com/community/abap/eclipse\r\n\r\nADT make use of multi page editors. When launching Eclipse, Vrapper works fine in the editor tab that is loaded from my previous session. But when I switch editor tabs or editor pages, Vrapper throws an exception:\r\n\r\n![multipageeditorpart](https://cloud.githubusercontent.com/assets/3276460/8177556/352d6028-1406-11e5-8cd9-7a8ad9c92ff4.PNG)\r\n\r\nThis always breaks the search functionality of Vrapper and sometimes even the entire Vrapper functionality. Reloading the current editor tab or editor page as well as switching Vrapper on or off does not help. If I would like to get full Vrapper functionality again, I need to restart Eclipse.\r\n\r\nDo you have any suggestions on this, e.g. how I can force Vrapper to reinitialize when switching editor tabs or editor pages?"},"comment":{"url":"https://api.github.com/repos/vrapper/vrapper/issues/comments/112789604","html_url":"https://github.com/vrapper/vrapper/issues/650#issuecomment-112789604","issue_url":"https://api.github.com/repos/vrapper/vrapper/issues/650","id":112789604,"user":{"login":"simachri","id":3276460,"avatar_url":"https://avatars.githubusercontent.com/u/3276460?v=3","gravatar_id":"","url":"https://api.github.com/users/simachri","html_url":"https://github.com/simachri","followers_url":"https://api.github.com/users/simachri/followers","following_url":"https://api.github.com/users/simachri/following{/other_user}","gists_url":"https://api.github.com/users/simachri/gists{/gist_id}","starred_url":"https://api.github.com/users/simachri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simachri/subscriptions","organizations_url":"https://api.github.com/users/simachri/orgs","repos_url":"https://api.github.com/users/simachri/repos","events_url":"https://api.github.com/users/simachri/events{/privacy}","received_events_url":"https://api.github.com/users/simachri/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T12:56:23Z","updated_at":"2015-06-17T12:56:23Z","body":"I created a fix for two issues:\r\n\r\n1. vrapper only works on the main page (\"Global Class\") of an ABAP Class Editor -> Now works on all pages (\"Class-Relevant Local Types\", \"Local Types\", \"Test Classes\", \"Macros\")\r\n2. Search and replace functionality is not working in the ABAP Class Editor.\r\n\r\nThe coding (see my fork) definitely needs some cleansing.\r\n\r\nBackground of the issues:\r\n\r\nregarding 1.: The pages of the ABAP Class Editor are loaded lazily. When you switch from the main page \"Global Class\" to one of the other pages, this very page lacks an interceptor for vrapper. So for each page switch a new interceptor has to be created explicitly.\r\nregarding 2.: The pages of an ABAP Class Editor use a ProjectionViewer to display their contents. The ProjectionViewer is initialized with a document saying \"Loading data from backend...\" and gets replaced by the actual source code when the download has finished. Vrapper's search and replace functionality is still bound the the first document and needed to bound to the new document with the source code."}}