tag:blogger.com,1999:blog-2528245647272415122.post5112060828119312575..comments2016-11-04T12:53:40.835+01:00Comments on Phil on development: CopyTo...Pastebin (and others) Plug-In for EclipseUnknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2528245647272415122.post-14412927504443811842010-02-06T08:35:00.914+01:002010-02-06T08:35:00.914+01:00@Mariot: I was about to. Unfortunately I got sidet...@Mariot: I was about to. Unfortunately I got sidetracked by the issue that one contribution cannot make its contributions to the the main menu as well as the popup menu (different target URIs). I will move it again (since I have my own workaround in place now) to sit right under "Copy".Philipp Kursawehttps://www.blogger.com/profile/01559531684494695413noreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-49046295361162937302010-02-06T01:23:47.194+01:002010-02-06T01:23:47.194+01:00Hi Philipp,
Nice. Just a minor UI change please :...Hi Philipp,<br /><br />Nice. Just a minor UI change please : contribute your "Copy to" menu in the group where copy and paste actions are.<br /><br />Thanks,<br /><br />MariotMariot Chauvinhttps://www.blogger.com/profile/06363398743120781633noreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-19086030426413756422010-02-05T22:39:07.390+01:002010-02-05T22:39:07.390+01:00@Peter: Yes I know... Blogger platform just has no...@Peter: Yes I know... Blogger platform just has no useful, floating layouts. Or maybe you know a better one?<br /><br />@Hallvard: There is (was) already a version available. But it had dependencies on 3.6 Eclipse. I will build a new one that uses 3.4 as target on the weekend and publish the update site url.<br /><br />@Eugene: Privet :) Good idea. I will also add a dropdown button. I have already an entry in the "Edit" menu and unfortunately contributing to the popup menu or a usual menu differs. Basically one would have to register the menuContribution with "menu:" as well with "popup:" locations. That's a legacy issue. I address that currently in the code and just add an AbstractContributionFactory an fill it with "menu:" contributions myself. Adding the toolbar button with dropdown menu will be easy therefore, as no contribution has to be changed.<br />Also, as you suggested I already use the IStringVariableManager (which is unfortunately not very dynamic) to replace text in the url.<br /><br />The copyto command serialized looks like this:<br />eclipseutils.ui.copyto(url=;params=;id=)<br /><br />And the variables one can use are by default:<br />copyto.text<br />copyto.mime-type<br /><br />Of course each contribution can define its own static or dynamic variables and provide configuration of those variables in a preference page, as well as directly before the contribution is called (if you hold down the CTRL key).<br /><br />For a sample contribution for codepad.org checkout: http://pastebin.com/m392cd301Philipp Kursawehttps://www.blogger.com/profile/01559531684494695413noreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-70806970457462550642010-02-05T20:58:20.388+01:002010-02-05T20:58:20.388+01:00Very cool, and a great idea!Very cool, and a great idea!Unknownhttps://www.blogger.com/profile/14347520914207710571noreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-36824132917217446622010-02-05T18:57:32.288+01:002010-02-05T18:57:32.288+01:00If I may make a suggestion, instead of doing that ...If I may make a suggestion, instead of doing that in a popup menu, add a button to the main toolbar. You can use dropdown button similar to Run/Debug buttons. From the implementation point of view, you can simply request current selection from the selection service.<br /><br />Also, it would be neat if you could make paste web sites configurable, e.g. using simple url format with macro substitution, like http://server.com/paste?text=${text}&user=testEugene Kuleshovhttps://www.blogger.com/profile/08736056465101896635noreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-35995849933224495212010-02-05T14:54:29.308+01:002010-02-05T14:54:29.308+01:00I use both Eclipse and pastebin in the lectures of...I use both Eclipse and pastebin in the lectures of introductory course for objekts using Java, and look forward to trying it out! When do you have a downloadable/installable version available?Hallvard Trætteberghttp://www.idi.ntnu.no/~halnoreply@blogger.comtag:blogger.com,1999:blog-2528245647272415122.post-71506755540871534132010-02-05T13:19:05.103+01:002010-02-05T13:19:05.103+01:00Hi Phil, your blog layout is a little bit to narro...Hi Phil, your blog layout is a little bit to narrow to see the right part of the screenshot / video...Unknownhttps://www.blogger.com/profile/05280099787283077209noreply@blogger.com