tag:blogger.com,1999:blog-6917071644715743308.post6185095742834409240..comments2023-09-01T05:42:40.590-07:00Comments on Contraptions for programming: Push in refactoring for AJDTAndrew Eisenberghttp://www.blogger.com/profile/07897697507691706588noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-6917071644715743308.post-51868943417008319692011-05-14T16:43:51.393-07:002011-05-14T16:43:51.393-07:00That's correct. Push in will only work on cod...That's correct. Push in will only work on code with no compile errors. What you are describing sounds like a bug with Roo. I'd recommend writing a post on the roo forum. Include the code snippet that is giving you problems.<br /><br />Here's the forum:<br />http://forum.springsource.org/forumdisplay.php?67-RooAndrew Eisenberghttps://www.blogger.com/profile/07897697507691706588noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-50501181243884519802011-05-14T16:05:10.026-07:002011-05-14T16:05:10.026-07:00Hello, I have got trouble with push in. I used it ...Hello, I have got trouble with push in. I used it in a roo project. For some reason roo produces tests with errors for an entity. The wrong tests are in ITDs. I chose push in in order to change them but after the re factoring the methods with errors disappeared and they didn't move to the class. Is it because the methods have got error? Does the push in not work when the methods contain errors?<br />Thanks for your help.Phttps://www.blogger.com/profile/00864396556531162505noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-560368375337483112010-01-22T07:14:02.560-08:002010-01-22T07:14:02.560-08:00Not sure if RHLeone still has this problem, but I ...Not sure if RHLeone still has this problem, but I was having the same issue and was able to right-click the project, select Maven and "Update Dependencies". After that, the push-in refactoring seemed ready to work again.Unknownhttps://www.blogger.com/profile/13366035587381917286noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-17244550746880702712009-12-30T13:08:32.070-08:002009-12-30T13:08:32.070-08:00Hello friends,
I have the same problem when wantin...Hello friends,<br />I have the same problem when wanting to make the push in. I want to know what the problem is your variable M2_REPORHLeonehttps://www.blogger.com/profile/04351848794017630632noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-14802380471879767852009-11-17T11:53:57.896-08:002009-11-17T11:53:57.896-08:00A big thank you,
The issue is with M2_REPO variabl...A big thank you,<br />The issue is with M2_REPO variable not configured properly.<br />You guidence was helpfull in reaching the goal.vamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-48702524870318374622009-11-17T10:47:54.100-08:002009-11-17T10:47:54.100-08:00Hmmmm...this is starting to sound like a bug.
Can...Hmmmm...this is starting to sound like a bug.<br /><br />Can you try a few things first, though:<br /><br />1. What happens when you click on one of the gutter markers for the ITDs? Are you able to navigate to their declaration?<br />2. Are there any relevant exceptions in the error log view?<br />3. Are you able to run your program correctly?<br /><br />If all this leads to nothing, can you please raise a bugzilla report for this? And attach the full project that you are using.<br /><br />https://bugs.eclipse.org/Andrew Eisenberghttps://www.blogger.com/profile/07897697507691706588noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-58423846271684845842009-11-17T10:41:11.443-08:002009-11-17T10:41:11.443-08:00Thanks for taking time,
I get the message:
'R...Thanks for taking time,<br />I get the message: <br />'Rebuild Project. No crosscutting model available'<br />I did rebuild the project several times.vamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-66860458767463781982009-11-17T09:46:27.485-08:002009-11-17T09:46:27.485-08:00In the package explorer, right click on Rsvp_Roo_E...In the package explorer, right click on Rsvp_Roo_Entity.aj. Select Refactoring -> Push In... This should bring up the correct refactoring dialog.Andrew Eisenberghttps://www.blogger.com/profile/07897697507691706588noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-18360231551401063742009-11-17T09:37:54.507-08:002009-11-17T09:37:54.507-08:00Here is the content of the Rsvp_Roo_Entity.aj file...Here is the content of the Rsvp_Roo_Entity.aj file,<br />How can I push all of it into Rsvp.java file<br /><br /><br />privileged aspect Rsvp_Roo_Entity {<br /> <br /> @PersistenceContext <br /> transient EntityManager Rsvp.entityManager; <br /> <br /> @Id <br /> @GeneratedValue(strategy = GenerationType.AUTO) <br /> @Column(name = "id") <br /> private Long Rsvp.id; <br /> <br /> @Version <br /> @Column(name = "version") <br /> private Integer Rsvp.version; <br /> <br /> public Long Rsvp.getId() { <br /> return this.id; <br /> } <br /> <br /> public void Rsvp.setId(Long id) { <br /> this.id = id; <br /> }<br />}vamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-88809425727850731712009-11-16T09:04:31.689-08:002009-11-16T09:04:31.689-08:00That's the correct behavior. Rsvp.java is not...That's the correct behavior. Rsvp.java is not an aspect, so it has no intertype declarations. You must explicitly select the intertype declarations from the aspects that you want to push in (either in the text or in the package explorer).Andrew Eisenberghttps://www.blogger.com/profile/07897697507691706588noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-34781220957646335292009-11-16T07:42:40.904-08:002009-11-16T07:42:40.904-08:00Here is source for the Rsvp.java file:
package com...Here is source for the Rsvp.java file:<br />package com.wedding.domain;<br /><br />import javax.persistence.Entity;<br />import org.springframework.roo.addon.javabean.RooJavaBean;<br />import org.springframework.roo.addon.tostring.RooToString;<br />import org.springframework.roo.addon.entity.RooEntity;<br /><br />@Entity<br />@RooJavaBean<br />@RooToString<br />@RooEntity<br />public class Rsvp {<br />}vamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-60583734867239217412009-11-16T07:34:33.157-08:002009-11-16T07:34:33.157-08:00Thanks for responding,
in the Rsvp.java file when ...Thanks for responding,<br />in the Rsvp.java file when I right click I do get the AspectJ Refactoring/Push-in,<br />However I get the following message box 'No Innertype declarations selected'vamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-70263212836450851222009-11-11T06:44:04.268-08:002009-11-11T06:44:04.268-08:00When you right click in an editor (any Java or AJ ...When you right click in an editor (any Java or AJ editor), do you see the menu item "AspectJ Refactorings"?<br /><br />If not, then AJDT does not seem to be installed properly. <br /><br />Are you seeing any relevant exceptions in your error log? If so, can you post them here?Andrew Eisenberghttps://www.blogger.com/profile/07897697507691706588noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-47943367656922052352009-11-10T15:25:31.578-08:002009-11-10T15:25:31.578-08:00I imported a roo project into eclipse, but I could...I imported a roo project into eclipse, but I could not get the ajdt to provide the push-in option, can you provide a walk tru from creating a web app from roo and then using the push-in to remove aspects and have a complete pojovamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.comtag:blogger.com,1999:blog-6917071644715743308.post-20171620078888167012009-11-10T15:06:35.882-08:002009-11-10T15:06:35.882-08:00Great,
I wanted to use roo for the point of "...Great, <br />I wanted to use roo for the point of "go-ahead with your project now", but then I wanted POJOs.<br />Roo with this push-in will helpvamsi vegihttps://www.blogger.com/profile/01022469740540536507noreply@blogger.com