Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Integrate ImportFromSVNWizard into RCP?
Integrate ImportFromSVNWizard into RCP? [message #490458] Thu, 08 October 2009 17:25 Go to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

I want to make it possible to let a user import some files from a SVN
repository in my RCP app. Therefore I wanted to use the
ImportFromSVNWizard. I used the following code:

ImportFromSVNWizard wizard = new ImportFromSVNWizard();
IWorkbench wb = Activator.getDefault().getWorkbench();
ISelection selection =
wb.getActiveWorkbenchWindow().getSelectionService().getSelec tion();
if(selection instanceof IStructuredSelection) {
wizard.init(wb, (IStructuredSelection) selection);
} else {
wizard.init(wb, new StructuredSelection());
}
Shell shell = Display.getCurrent().getActiveShell();
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.create();
dialog.open();

The wizard opened without problems but then I recognized that the wizard
only imports projects. Is there a way to use the wizard to only import
files directly? And how can I find out which files have been imported?
The API of ImportFromSVNWizard doesn't have any methods regarding that.
Can anybody help me?

best regards,
Gilbert
Re: Integrate ImportFromSVNWizard into RCP? [message #490462 is a reply to message #490458] Thu, 08 October 2009 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

If I think about that issue deeper I think it would be enough if a
dialog, which displays all repository locations, does an export after
selecting some files. Those files have to be exported into the selected
folder in my workspace. Is there such a dialog already or can I use
something existing?
Re: Integrate ImportFromSVNWizard into RCP? [message #491710 is a reply to message #490462] Thu, 15 October 2009 14:20 Go to previous message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello Gilbert,

There are following ways how you can get resources from SVN using
Subversive:
1. Import from SVN wizard:
a. It allows to checkout selected resource as project.
b. Also it allows to checkout a selected folder into existing project, see
"Check out as a folder into existing project" option in Check Out As wizard.

2. You can export any resource from repository to file system, see Export
action in SVN Repositories view.
Note that resources are not checked out but exported here. Also as a
destination it allows to specify resource on file system, but not in
Workspace.

3. You can write your own wizard which allows to select resource from
repository and then destination in workspace.
You can use here
org.eclipse.team.svn.ui.wizard.SelectRepositoryResourceWizar d(I'm not sure
if it's available in release build, probably only in weekly build) which
allows to select repository resource by at first selecting existing
repository location; then you can extend its funtionality to add a page
which allows to specify destination in workspace.

Also do you want to checkout or export resources from repository?

> If I think about that issue deeper I think it would be enough if a
> dialog, which displays all repository locations, does an export after
> selecting some files. Those files have to be exported into the selected
> folder in my workspace. Is there such a dialog already or can I use
> something existing?
Previous Topic:Error message when trying to synchronize with subversive
Next Topic:How to revert a revision?
Goto Forum:
  


Current Time: Tue Apr 23 11:24:33 GMT 2024

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

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

Back to the top