use of org.gephi.project.spi.WorkspaceDuplicateProvider in project gephi by gephi.
the class ProjectControllerImpl method duplicateWorkspace.
@Override
public Workspace duplicateWorkspace(Workspace workspace) {
if (projects.hasCurrentProject()) {
Workspace duplicate = newWorkspace(projects.getCurrentProject());
for (WorkspaceDuplicateProvider dp : Lookup.getDefault().lookupAll(WorkspaceDuplicateProvider.class)) {
dp.duplicate(workspace, duplicate);
}
openWorkspace(duplicate);
return duplicate;
}
return null;
}
Aggregations