New question #157823 on Gephi:
https://answers.launchpad.net/gephi/+question/157823

There's also some code based on org.gephi.io.exporter.preview.PDFExporterTest, 
but it doesn't work:

...
@Before
public void setUp() throws Exception {
  ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
  pc.newProject();
  Workspace workspace = pc.getCurrentWorkspace();
  Container container = 
Lookup.getDefault().lookup(ContainerFactory.class).newContainer();
  ImportController importController = 
Lookup.getDefault().lookup(ImportController.class);

  importController.importFile(SOME_FILE);// Fails here

}
...

Because of another NPE:

java.lang.NullPointerException
        at 
org.gephi.io.importer.plugin.file.ImporterBuilderCSV.isMatchingImporter(ImporterBuilderCSV.java:53)
        at 
org.gephi.io.importer.impl.ImportControllerImpl.isFileSupported(ImportControllerImpl.java:342)

Any idea or suggestion?

Artem

-- 
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.

_______________________________________________
Mailing list: https://launchpad.net/~gephi.team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gephi.team
More help   : https://help.launchpad.net/ListHelp

Répondre à