Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Re: Re: questions about building and modifying CDT plugins

The main problem I was having was the changes I was making to the code were not observable. I got some help on another thread debugging an eclipse application to track down a different bug. In the process I got some experience debugging an eclipse app. Then I found that I don't even hit a breakpoint in the method that I had modified earlier to try to prevent post-make project refresh. FTR, changing the version of a plugin is a bad idea for an observable mod for a "quick and easy" way to verify a newbie's process of eclipse app development. Harald's suggestion was one of the best I got - he told me how to print to console for quick verification.

Thanks everyone for your help. I hope my novice questions haven't consumed too much bandwidth here...

On Tue, Mar 16, 2010 at 2:02 PM, Tim Black <timblaktu@xxxxxxxxx> wrote:
I wanted to bypass refreshing the project after each make, so I commented out the call to refreshProject(currProject) in invokeMake() on line 228 in MakeBuilder.java. I'm using Version tag CDT_6_0_2. (I imported project set, then Team - Switch to...) I made this single change, rebuilt, and tested the change but I still see the same behavior as before: About a 2 minute delay while "Updating project..." after making my makefile project. I tested this 2 ways:

0. Select all CDT plugins in my workspace, Run As - Eclipse Application.
1. Export - Plug-in Development --> Deployable plug-ins and fragments - select all CDT plugins in workspace - Install Into Host, Restart

For 1., I was using a fresh SDK 3.5.2 without CDT installed, so I could verify that upon restart CDT was added.

Can you think of anything obviously wrong with my procedure or things I should check?

I have tried this same basic procedure after making other trivial but hopefully observable changes to CDT, and not a single time have I observed a change, i.e. not a single time have I proven to myself that the plug-in installation methods are working. Can anyone propose another simple change I could make to CDT that I could observe in a target installation? E.g. I thought I could change the string in MakeBuilder.Updating_project in MakeMessages.properties and see a different string in the dialog other than "Updating project..." but this didn't work either. This is the reason why I feel there's something wrong with my "deployment" mechanism.

Thanks,
Tim


On Thu, Mar 11, 2010 at 4:14 PM, Alex Blewitt <alex.blewitt@xxxxxxxxx> wrote:
On 11 Mar 2010, at 22:45, Tim Black wrote:

> Well, the point of a file like a .psf seems to be to pull in a set of plugins, so I don't see why a .psf couldn't be generated when each branch or version is tagged (or whatever it's called in CVS) that includes the correct set of plugins. But John's suggestion to just use the .psf and then Switch/Replace seems like the way to go.

Eclipse Helios should record what version of each bundle is used, along with the CVS location.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=243582
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305157

I don't think this is slated for Eclipse in time for EclipseCon, but should be there shortly afterwards. The UI is to follow to allow an existing binary bundle be imported as a project, at exactly the right commit/tag, without the need for any kind of intermediary PSF.

Alex_______________________________________________



Back to the top