Menu

#1 PositionFile not working

open
nobody
None
5
2018-04-18
2009-11-12
Anonymous
No

Hi guys!

I' ve tried to load a position file using the GUI but i could not do it! I tried it passing the of the file as a parameter and also choosing the file on the dicrectory tree (with no parameter). Debuging the code, I could see that the name of the file was passed to the framework correctly, but the reader instance can't read the lines of the file and returns a NULL reference. I don't know how this reader works and was not able to solve the problem. Can anyone help me, please?

Thanks a lot,

Mateus.

Discussion

  • Fabian

    Fabian - 2015-02-23

    I don't think you might be looking for an answer anymore, still it may help somebody else.

    As far as I can see there is only a (small) bug in saving a position file, that can be workarounded by explicitly telling the save-dialog that it is a .pos file (by selecting it on the dropdown, even if it is preselected).
    Alternatively, one could add fc.setFileFilter(posFf); after line 109 in sinalgo.io.eps.Exporter.java to set the FileFilter to the default value positionFile (.pos). Currently it is set to AcceptAllFileFilter (.*) by default, which is then disabled in line 109.

    Loading the position file works for me both using the file selection dialog (if position file text field is left empty), and using the full path of the position file in the text field of the node creation dialog.
    I use a Mac Os X 10.10 system to run sinalgo.

    Best,
    Fabian

     
  • Andre Brait

    Andre Brait - 2018-04-18

    This was fixed on my fork on Github: https://github.com/andrebrait/sinalgo

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.