Hi , Sorry for the noise. I think the bug I'm talking about is related to the recent modification to make column width persistent, not from the new tools in attribute toolbar.
If I load a file from disk, I don't get this NPE If I create a new (in-memory) Layer, I get a NPE with the following stacktrace : java.lang.NullPointerException at com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:432) at com.vividsolutions.jump.workbench.ui.AttributeTablePanel.<init>(AttributeTablePanel.java:316) at com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:164) at com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136) at com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:150) at com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88) PS : There is also an NPE already reported by Matthias on statistic tool if several layers are visible in the attribute view (info panel) Michaël Le 31/12/2011 11:54, Stefan Steiniger a écrit : > mhm true, > > I just checked with Mac and if I open the attribute view and click on > view schema, everything works - no NPE. > > stefan > > Am 31.12.11 11:17, schrieb Michaël Michaud: >> Hi Giuseppe, >> >>> Finally I tested with another computer (with win7) and see this NPE. >> Oh, I see. Maybe this is a bug related to a specific java version or a >> specific OS. I observed it on Windows Vista + java 1.6.0_26. >> Os-dependant bugs are generally more difficult to find and to fix (or to >> workaround). >>> When I changed the position of the attribute panel toolbar and added >>> these tools here I didn't have any NPE error, honestly I tested only >>> on Ubuntu (I have to reinstall windows). I wonder if I did a mistake >>> not to verify on Window. >> I'll try to have a look today. Currently, I only use windows. By chance, >> Ede have a good experience on both linux and windows, and stefan uses a >> mac, so that we have good opportunities to track bugs on any of these >> platforms, but it supposes that all of us extensively test any modification. >> >> Michaël >>> Peppe >>> >>> ------------------------------------------------------------------------ >>> *Da:* Michaël Michaud<michael.mich...@free.fr> >>> *A:* jump-pilot-devel@lists.sourceforge.net >>> *Inviato:* Venerdì 30 Dicembre 2011 19:11 >>> *Oggetto:* Re: [JPP-Devel] Feature Info Tool and Layer Attributes >>> Statistics >>> >>> Hi, >>> >>> Thanks for explanation. Hope we'll get some other feedback on this >>> subject. >>> >>>> *Save datasets* : I see no particular reason to have this button here >>>> as it will save "any" modification, not just attribute modifications >>>> and not just modifications made on active AttributePanel >>>> *Undo/redo* : same remark. Moreover, currently, if you delete >>>> features from the AttributePanel then click undo, features will be >>>> restored in the LayerViewPanel but not in AttributePanel. >>>> >>>> - I can reverse these modifications. The idea is to use >>>> AttributePanel for tables with no datasource (we still don't have >>>> something similar, I wanted to test Dante Fuster Import Excel file >>>> for that). As Stefan mentioned it is possible to duplicate the >>>> classes. I follow this way. >>> I think you mean tables with no "geometry". This feature has to be >>> discussed. I don't know what is the best approach, creating a specific >>> FeatureCollections, or using normal FeatureCollections with empty >>> geometries. >>> Anyhow, savedatasets saves modified FeatureCollections having a >>> datasource (linked to a file). So currently, it is not specific to >>> pure attribute table, and its action is not restricted to tables >>> visible in the attribute panel. >>>> - undo/redo works. If you delete a feature from Attribute Panel and >>>> click undu, the attribute is restored at the bottom of the table) >>> You're right, the behaviour I described is for Info Panel, not >>> Attribute Panel. I still think undo/redo is not necessary at this >>> place, but it is OK for Attribute Panel if other users think it's >>> useful. But it is not adapted to Info Panel. >>> If I remember correctly, it may not be easy to have different >>> behaviours in Attribute Panel and in Info Panel. >>> >>> Most important thing now is to fix the NPE, and to see if we can >>> define behaviours fitting exactly what we want for attribute panel >>> (only one layer) and for info panel (where several layers can be >>> displayed). >>> >>> Michaël >>>> *View/Edit schema* : very useful for ViewAttribute plugin, not >>>> working (NPE) for InfoPanel if several layers are displayed (should >>>> not be available for InfoPanel IMHO) >>>> - View/Edit schema is also activated using right click on View >>>> Attribute panel. I think that a view/edit schema button on the >>>> toolbar is more visible. >>>> >>>> *Statistics *: very good idea for ViewAttribute plugin, not working >>>> (NPE) for InfoPanel if several layers are displayed (should not be >>>> available for InfoPanel IMHO) >>>> - I like the idea to add Attribute plugins as button on the Attribute >>>> panel toolbar. I did some tests on OJ jufre (add area/perimeter or >>>> calculator plugins). But there are still some problems to solve >>>> (values not correctly displayed, etc). >>>> >>>> Peppe >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >>>> infrastructure or vast IT resources to deliver seamless, secure access to >>>> virtual desktops. With this all-in-one solution, easily deploy virtual >>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure >>>> costs. Try it free!http://p.sf.net/sfu/Citrix-VDIinabox >>>> >>>> >>>> _______________________________________________ >>>> Jump-pilot-devel mailing list >>>> Jump-pilot-devel@lists.sourceforge.net<mailto:Jump-pilot-devel@lists.sourceforge.net> >>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >>> ------------------------------------------------------------------------------ >>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >>> infrastructure or vast IT resources to deliver seamless, secure access to >>> virtual desktops. With this all-in-one solution, easily deploy virtual >>> desktops for less than the cost of PCs and save 60% on VDI infrastructure >>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> <mailto:Jump-pilot-devel@lists.sourceforge.net> >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >>> infrastructure or vast IT resources to deliver seamless, secure access to >>> virtual desktops. With this all-in-one solution, easily deploy virtual >>> desktops for less than the cost of PCs and save 60% on VDI infrastructure >>> costs. Try it free!http://p.sf.net/sfu/Citrix-VDIinabox >>> >>> >>> _______________________________________________ >>> Jump-pilot-devel mailing list >>> Jump-pilot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> >> >> >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel