Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Refresh project in MakeBuilder

Hello,

First thank you for CDT it's a great tool.

Our organization use Eclipse for a long time, we are developing a specific application that will contain Eclipse + part of CDT
(C/C++ Editors + GNU Makefile builds).

In our project we currently use CDT with a special organization for the build process which enable us to run parallel build so we don't need to call resfresh
after each invokeMake but at the end of the entire build process.

Currently we have a subsclass of MakeBuilder in which the invokeMake is a copy of the parent method with commented call to currProject.refreshLocal.

If the call to currProject.refreshLocal(IResource.DEPTH_INFINITE, null) was in a specific method, refreshProject for example, in our specific case we will just have to override the refreshProject method without having to copy the all invokeMake method, our project would gain in maintenance

I understand it's a specific case but could it be feasible to change this part of the code in CDT ?
The part :

try { // Do not allow the cancel of the refresh, since the builder is external // to Eclipse, files may have been created/modified and we will be out-of-sync. // The caveat is for hugue projects, it may take sometimes at every build. currProject.refreshLocal(IResource.DEPTH_INFINITE, null);
                   } catch (CoreException e) {
                   }
could be :
      refreshProject();

   with refresjProject :

   protected void refreshProject() {
                   /*
                   try {
// Do not allow the cancel of the refresh, since the builder is external // to Eclipse, files may have been created/modified and we will be out-of-sync. // The caveat is for hugue projects, it may take sometimes at every build. currProject.refreshLocal(IResource.DEPTH_INFINITE, null);
                   } catch (CoreException e) {
                   }
                   */
}
--
Marc DECUGIS, Modelisation Design Simulation
e-mail: mdecugis@xxxxxxxxx
tel : (33/0) 4 78 54 62 96
fax : (33/0) 4 72 13 35 65



Back to the top