Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Delete project takes long time
Delete project takes long time [message #335057] Thu, 19 March 2009 18:42 Go to next message
Praveen K Subramanian is currently offline Praveen K SubramanianFriend
Messages: 11
Registered: July 2009
Junior Member
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 #335257 is a reply to message #335057] Fri, 27 March 2009 22:20 Go to previous messageGo to next message
Praveen K Subramanian is currently offline Praveen K SubramanianFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,

As I was not able to figure out a way to override the delete action. I am
looking for a way to turn off the creation of ResourceUndoState objects
for all the files/folders under the project that needs to be deleted. Any
ideas?

Thanks,
Praveen
Re: Delete project takes long time [message #335291 is a reply to message #335057] Tue, 31 March 2009 03:27 Go to previous messageGo to next message
Praveen K Subramanian is currently offline Praveen K SubramanianFriend
Messages: 11
Registered: July 2009
Junior Member
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
Re: Delete project takes long time [message #335292 is a reply to message #335291] Tue, 31 March 2009 03:37 Go to previous message
Eclipse UserFriend
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
Previous Topic:Unit tests on eclipse application
Next Topic:[CNF] Tabbed Properties in Common Navigator
Goto Forum:
  


Current Time: Tue Jul 16 03:55:36 GMT 2024

Powered by FUDForum. Page generated in 0.03790 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top