Bug 302021 - [backend] improved support loading properties from file
Summary: [backend] improved support loading properties from file
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: b3 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 302023 302017
Blocks:
  Show dependency tree
 
Reported: 2010-02-05 21:37 EST by Henrik Lindberg CLA
Modified: 2017-09-13 11:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Lindberg CLA 2010-02-05 21:37:43 EST
+++ This bug was initially created as a clone of Bug #302017 +++

A basic implementation is checked in to trunk.

The oportunities to improve the implementation consists of:
- Refactoring PropertySet to make it possible to have a special class for the
properties loaded from file (the current serialization of the regular
BPropertySet will serialize the property operations "generated" from the file
:). The refactoring was a bit much to do as both default and regular
property sets should be loadable. 
- The implemntation uses the simple java Properties class, there are probably other
more advanced Property support somewhere in Eclipse land that should be used.
- Perhaps this is also a way to load "preferences" ?
- The loading of the file is done with the simplest URI.toURL().openStream()
call - this is not very robust.