[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-team-dev] Move/Rename project

I am trying to check if a project with the same name exists in the CM provider during a project rename. If it does, Then i want to display an error message . But without knowing if a rename or move is being performed . How do i accomplish this ?
 
 
-----Original Message-----
From: platform-team-dev-admin@xxxxxxxxxxx [mailto:platform-team-dev-admin@xxxxxxxxxxx]On Behalf Of Michael Valenta
Sent: Thursday, February 19, 2004 6:35 AM
To: platform-team-dev@xxxxxxxxxxx
Subject: Re: [platform-team-dev] Move/Rename project


No, there is no way to tell the difference. To me, this makes sense since conceptually there is no difference between a project move and a project rename (i.e. the project name and location on disk changes in both cases. Do you have a different take on this?

Michael



"Kadadi, Usha D" <Usha.Kadadi@xxxxxx>
Sent by: platform-team-dev-admin@xxxxxxxxxxx

19/02/2004 09:11 AM

Please respond to
platform-team-dev

To
<platform-team-dev@xxxxxxxxxxx>
cc
Subject
[platform-team-dev] Move/Rename project






I have a question regarding this method.

public boolean moveProject(IResourceTree tree,
                          IProject source,

                          IProjectDescription description,

                          int updateFlags,

                          IProgressMonitor monitor)Implements IResource.move(IPath,int,IProgressMonitor) and IResource.move(IProjectDescription,int,IProgressMonitor)

On entry on this hook, method. Is there a way to find out if a move is being performed or a rename ? Because both rename/move use the same method.

Thanks