[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [subversive-dev] Framework + CheckoutOperation
|
- From: "Marcos Del Puerto" <mpuertog@xxxxxxxxx>
- Date: Fri, 4 Apr 2008 13:12:11 +0200
- Delivered-to: subversive-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xghjKdW/T51b3utUpM+7nm15ILYoQRWHe/OQhoFF5fg=; b=E3GSkz74LjPyWi9jlvsvXcNgjmdh6hOwjYZ9ghacJd4dxpOduf1vGf+3KrKcbznWbuQCxx+k7CdvVt57UMHoTQkRMU+Rpa8nc05ooTg8mXFaAtxF+2/NqvPu9AVdooPt910hPuwm6nwsIv1feFQO+xfGBKYKMwbuxWREXTDJk6I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K98M6rK/1N4nI3rR/RrTnuGlC/7TeqVHCfDqP/cvlS6IOraXFxmclOM30iUKFKYZkQvyDzoEn3Yq1FXpfGDii+6moGUTGgsdP1s+gOw+I82WRN2P52TIGw+AP2gAKqnsrJHlxIoojZqMWUBfTorvsoOicVNJw78km3mgltaYuUU=
Hi Alexander,
I have the following server and project:
"http://svn_server/svn/project_002". The folder "project_002" contains
the folder "trunk/example_project". In the folder example project the
source code can be found as well as the ".cproject" ".project" files.
And I want to check it out to the workspace and having "Project
Explorer->example_project" after calling an action from a View
(extends ViewPart).
In the example code you posted:
>> IRepositoryResource []resources = this.getSelectedRepositoryResources();
But the class "AbstractRepositoryOperation" do not define method
"getSelectedRepositoryResources".
Since I want to check out a single project I will have to use
"CheckoutAsOperation". Right?
Its constructor parameters are as follow:
(File to, IRepositoryResource resource, boolean recursive, boolean
ignoreExternals, boolean override)
Is "File to" the destination workspace folder?
How do I get the "resource"? Do I have to create a class which
implements the IRepositoryResource interface and init with the
repository information (setUrl, setBranchesLocation...)?
How do I choose the tag/branch I want to check out?
After making changes in the project, to commit the changes I have to
use CommitOperation.
The constructor parameters are:
(IFileProvider provider, String message, boolean recursive, boolean keepLocks)
Where does provider come from? How Subversive knows when I commit,
which repository is it related? Is is contained in the project
information?
Is there any better way to do those operations?
Best regards,
Marcos
PS: Thank you very much for your quick answer.