use of org.gephi.io.processor.plugin.DefaultProcessor in project gephi by gephi.
the class DesktopGeneratorController method finishGenerate.
private void finishGenerate(Container container) {
ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
ProjectControllerUI pcui = Lookup.getDefault().lookup(ProjectControllerUI.class);
Workspace workspace;
if (pc.getCurrentProject() == null) {
pcui.newProject();
workspace = pc.getCurrentWorkspace();
} else {
workspace = pc.newWorkspace(pc.getCurrentProject());
pc.openWorkspace(workspace);
}
if (container.getSource() != null) {
pc.setSource(workspace, container.getSource());
}
container.closeLoader();
DefaultProcessor defaultProcessor = new DefaultProcessor();
defaultProcessor.setContainers(new ContainerUnloader[] { container.getUnloader() });
defaultProcessor.setWorkspace(workspace);
defaultProcessor.process();
}
Aggregations