Delete project takes long time [message #335057] |
Thu, 19 March 2009 14:42  |
Eclipse User |
|
|
|
Hi all,
We have a project in eclipse which has symlinks to an external project,
which is very huge and maintained by an in-house respository. We also have
implemented an IMoveDeleteHook for deleting these kind of projects. But
still when we attempt to delete the project, it takes a long time even
before the control comes to our customized MoveDeleteHook. On debugging,
we could trace it to the point where a ResourceUndoState object is created
for every IResource contained in the project and this takes a long time.
But we don't want to create a ResourceUndoState object for all the
IResource elements as the project is maintained outside by our in-house
repository system and we shall take care of all that.
Any ideas how to tackle this issue? Is there some flag or something that
can be used?
Thanks,
Praveen
|
|
|
|
|
Re: Delete project takes long time [message #335292 is a reply to message #335291] |
Mon, 30 March 2009 23:37  |
Eclipse User |
|
|
|
Originally posted by: francis.oaklandsoftware.com
The only thing that comes to mind is to replace the
DeleteResourcedRefactoringContribution with a modified version (of course
you will have to copy some code to modify the classes that it calls to do
what you want).
You can do this by that mechanism to modify the contents of the
ltk.core.refactoring plugin.xml using XSLT (I forget the name of it, but
if you search the Wiki you are likely to find it).
This was you don't need to modify the base. However if you are happy to
replace a plugin in your RCP app, that will work as well (and it will be
less code).
I recommend that you file an enhancement request about this to LTK as
well, and they might have a better idea about how you can do this. You
can also work out a solution where maybe you provide some additional API
to add this flexibility.
Francis
On Mon, 30 Mar 2009 20:27:52 -0700, Praveen K Subramanian
<praveen.thames@gmail.com> wrote:
> I searched for a way to bypass the ResourceUndoState object creation
> step in the process of deleting a Resource, but could not find anything.
> Does anyone know of any other way?
>
> Currently, I am planning to take the following alternative approach.
>
> Modify the perform() method of the DeleteResourceChange.java in
> the plugin : org.eclipse.ltk.core.refactoring
> And ship our product with this modified plugin
>
> Will this alternative approach cause any issue?
>
> Thanks,
> Praveen
>
--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm
http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases
You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds