- MessageDialog.openWarning(DistPlugin.getDefault()
- .getWorkbench().getDisplay().getActiveShell(),
- "WARNING", "Not yet implemented");
- return null;
- //
- //
- // IWorkbenchWindow iww = DistPlugin.getDefault().getWorkbench()
- // .getActiveWorkbenchWindow();
- // InputDialog inputDialog = new InputDialog(iww.getShell(),
- // "New copy of the current workspace",
- // "Choose a name for the workspace to create", "", null);
- // inputDialog.open();
- // String newWorkspaceName = inputDialog.getValue();
- // Session srcSession = null;
- // Session newSession = null;
- // try {
- // srcSession = repository.login(srcWorkspaceName);
- // // FIXME: simple call to Workspace.create(newName, oldName) does not
- // // work
- //
- // srcSession.getWorkspace().createWorkspace(newWorkspaceName,
- // srcWorkspaceName);
- //
- // // // Create the workspace
- // // srcSession.getWorkspace().createWorkspace(newWorkspaceName);
- // // Node srcRootNode = srcSession.getRootNode();
- // // // log in the newly created workspace
- // // newSession = repository.login(newWorkspaceName);
- // // newSession.save();
- // // Node newRootNode = newSession.getRootNode();
- // // copy(srcRootNode, newRootNode);
- // // newSession.save();
- //
- // CommandHelpers.callCommand(RefreshDistributionsView.ID);
- // } catch (RepositoryException re) {
- // throw new ArgeoException(
- // "Unexpected error while creating the new workspace.", re);
- // } finally {
- // if (srcSession != null)
- // srcSession.logout();
- // if (newSession != null)
- // newSession.logout();
- // }