[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[geclipse-dev] [Bug 179927] Consider: how do obtain properties from core model?
|
Hello!
Together we Mathias we considered about solution for obtaining
properties from core model.
We think that the best solution is to implement:
a) in eu.geclipse.ui.properties
- classes like JobPropertySource, GridConnectionPropertySource etc,
which return IProperty[] objects for every type implementing IGridElement
b) in classes implementing IGridElement for every property add standard
methods: getXXX() (e.g. getId(), getUri(), getDescription() )
advantages of this solution:
+ properties are separated from core. So we avoid dependencies between
core and ui (properties use class
org.eclipse.ui.views.properties.IPropertyDescriptor)
+ added methods: getXXX() are general and can be used also in other places
+ for every class implementing IGridElement we have one class in
eu.geclipse.ui.properties: XXXPropertySource, which maps between
property and IGridElement
So, properties for given IGridElement are defined in one place, and are
easy expandable
If somebody has any comments, please post it here.
Regards,
--
Mariusz Wojtysiak