1

如何将TableViewer数据保存到属性文件中并在重新打开时填充相同的数据TableViewer

private void buildWellBoreDate(
            NearWellBoreModellingData nearWellBoreModellingData, Properties p) {
            List<DownholeComplexityTable> downhole=modelProviderDownholeComplexityTable.INSTANCE.getDownholeComplexityTables();
            for(int i=0;i<downhole.size();i++){
                p.setProperty("row"+i+"."+"NameofZones",((DownholeComplexityTable)downhole).getNameOfZones());
            }

            String fieldNameWell = nearWellBoreModellingData.getFieldNameWell();
            if (fieldNameWell != null) {
                p.setProperty(KEY_FIELDNAME_NEARWELL, fieldNameWell);
            }

while trying this way I am able to save the textfield data but getting error for the table java.lang.ClassCastException:
4

0 回答 0