Integrate ImportFromSVNWizard into RCP? [message #490458] |
Thu, 08 October 2009 17:25 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds